[ACCEPTED]-What does the term "genType" mean in OpenGL/GLSL?-glsl

Accepted answer
Score: 37

It's a catch-all for multiple types. From 9 the specification section 8

When the built-in functions are specified 8 below, where the input arguments (and 7 corresponding output) can be float , vec2 6 , vec3 , or vec4 , genType is used as 5 the argument. Where the input arguments 4 (and corresponding output) can be int 3 , ivec2 , ivec3 , or ivec4 , genIType is 2 used as the argument.

For reference, all 1 the "generic" types:

  • genType: floats
  • genDType: double floats
  • genIType: signed integers
  • genUType: unsigned integers
  • genBType: booleans
  • mat: float matrices
  • dmat: double matrices

More Related questions