Re:Show HN: Vertexshaderart.com
by Kristine1975 on Wednesday November 04, 2015 @01:46AM
(#10504964)
>There's absolutely no incentive to do that though
But there is: Lulz.
>Every input is checked, every bounds checked
That would require solving the Halting Problem. The WebGL spec even says: https://www.khronos.org/registry/webgl/specs/latest/1.0/#4.4
>In the general case it is not possible to impose limits on the structure of incoming shaders to guard against this problem. Experimentation has shown that even very strict structural limits are insufficient to prevent long rendering times, and such limits would prevent shader authors from implementing common algorithms.
As for GPU drivers being exposed WebGL is designed to cover that. Every input is checked, every bounds checked, shaders are re-written and drivers with bugs either worked around or banned.