Attributes¶
-
class
Attribute
¶ -
name
¶ str – The attribute name. The name will be filtered to have no array syntax on it’s end. Attribute name without
'[0]'
ending if any.
-
location
¶ int – The location of the attribute. The result of the glGetAttribLocation.
-
array_length
¶ int – If the attribute is an array the array_length is the length of the array otherwise 1.
-
dimension
¶ int – The attribute dimension.
GLSL type dimension int 1 ivec2 2 ivec3 3 ivec4 4 uint 1 uvec2 2 uvec3 3 uvec4 4 float 1 vec2 2 vec3 3 vec4 4 double 1 dvec2 2 dvec3 3 dvec4 4 mat2 4 mat2x3 6 mat2x4 8 mat3x2 6 mat3 9 mat3x4 12 mat4x2 8 mat4x3 12 mat4 16 dmat2 4 dmat2x3 6 dmat2x4 8 dmat3x2 6 dmat3 9 dmat3x4 12 dmat4x2 8 dmat4x3 12 dmat4 16
-