[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] maximum length of identifiers in WebGL GLSL
On Thu, Jul 29, 2010 at 3:25 PM, Phil Keslin <email@example.com>
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.
It's probably staring me in the face but I don't see maximum lengths defined in the OpenGL ES spec either. ACTIVE_UNIFORM_MAX_LENGTH and ACTIVE_ATTRIBUTE_MAX_LENGTH return the max length in the current program, not any implementation max length.
On Thu, Jul 29, 2010 at 3:11 PM, Gregg Tavares (wrk) <firstname.lastname@example.org>
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.