There is a bool
type for shader variables that I would like to use, but I could not find what size it has. This matters because when setting the vertex attribute pointer I specify a data type that may be
GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE
In C ++, usually bool
should be the same size as 4 int
bytes, but can I assume the same for GLSL or does it only have 1 byte?
Raven source share