[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] token length clarification

Good question. The spec hasn't made this distinction to this point,
since the preprocessor and compiler are not separate stages in the
WebGL API. Despite the fact that too-long tokens in excluded #if
blocks would trigger this restriction, I think it's easier to
understand if the restriction is expressed as preprocessor tokens, so
that the shader-with-257-character-define.html test is still correct.


On Tue, Jul 3, 2012 at 4:28 PM, Alok Priyadarshi <[email protected]> wrote:
> http://www.khronos.org/registry/webgl/specs/latest/#6.17
> "WebGL requires support of tokens up to 256 characters in length. Shaders
> containing tokens longer than 256 characters must fail to compile"
> Which type of tokens is being implied here - preprocessing-tokens or
> compiler-tokens? There is a difference between the two. I do not think we
> want this restriction on preprocessing-tokens, otherwise non-compliant
> tokens inside excluded blocks would also generate error.
> If we mean compiler-tokens, then this test is wrong:
> https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/glsl/misc/shader-with-257-character-define.html

You are currently subscribed to [email protected]
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl