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

Re: [Public WebGL] maximum length of identifiers in WebGL GLSL



Its not in the GLSL spec because its an implementation constant. See ACTIVE_UNIFORM_MAX_LENGTH and ACTIVE_ATTRIBUTE_MAX_LENGTH in the OpenGL/WebGL specs.

- Phil

On Thu, Jul 29, 2010 at 3:11 PM, Gregg Tavares (wrk) <gman@google.com> wrote:
Do we want to specify a maximum identifier length for WebGL GLSL?

I didn't see one in the GLSL spec.  I was going to write a test with really long identifiers (4meg) to see if I could find some drivers that had problems with them but it might be better to just require WebGL to enforce some maximum length.  64 chars? 128 chars? 256 chars which will make shaders less likely to fail on some drivers.

Thoughts?