PDA

View Full Version : What is GL_MAX_UNIFORM_BLOCK_SIZE being measured in?



Nikki_k
08-02-2014, 03:02 AM
I'm not sure based on my observations. Is it in bytes or in uniforms in the buffer?

On NVidia it looks like bytes, I get a return value of 65536, and I can't define a vec4 array with 4096 entries or more.
On Intel it returns 16384 but the array with 2048 vec4's I settled upon appears to compile without an error, but that's 32768 bytes.

Osbios
08-02-2014, 03:24 AM
The documentations says "basic machine units" aka bytes.

Nikki_k
08-02-2014, 11:29 AM
Yeah, I saw that and on NVidia it's certainly true. I still wonder what's up with Intel here, does it just silently fail if the uniform block gets too large or is the returned info bogus?