Datatypes

The table below lists of the datatype strings that must be understood by all implementations even if unsupported by the API itself.

DatatypeDescription
mat4, mat4x4A matrix with 4 columns, each a 4 component vector of 32-bit float
mat3x4A matrix with 3 columns, each a 4 component vector of 32-bit float
mat2x4A matrix with 2 columns, each a 4 component vector of 32-bit float
mat4x3A matrix with 4 columns, each a 3 component vector of 32-bit float
mat3, mat4x4A matrix with 3 columns, each a 3 component vector of 32-bit float
mat2x3A matrix with 2 columns, each a 3 component vector of 32-bit float
mat4x2A matrix with 4 columns, each a 2 component vector of 32-bit float
mat3x2A matrix with 3 columns, each a 2 component vector of 32-bit float
mat2, mat2x2A matrix with 2 columns, each a 2 component vector of 32-bit float
vec4A 4-component vector each element of which is a 32-bit float
vec3A 3-component vector each element of which is a 32-bit float
vec2A 2-component vector each element of which is a 32-bit float
ivec4A 4-component vector each element of which is a 32-bit integer
ivec3A 3-component vector each element of which is a 32-bit integer
ivec2A 2-component vector each element of which is a 32-bit integer
bvec4A 4-component vector each element of which is a boolean
bvec3A 3-component vector each element of which is a boolean
bvec2A 2-component vector each element of which is a boolean
floatA 32-bit floating point number
intA 32-bit integer
boolA boolean value (true/false)
FormatColor attachment BitColor attachment Blend BitDepth
r8_unormxx 
r8_uintx  
r8_sintx  
r8g8_unormxx 
r8g8_uintx  
r8g8_sintx  
r8g8b8a8_unormxx 
r8g8b8a8_uintx  
r8g8b8a8_sintx  
r8g8b8a8_unorm_srgbxx 
b8g8r8a8_unormxx 
b8g8r8a8_unorm_srgbxx 
a8b8g8r8_unormxx 
a8b8g8r8_uintx  
a8b8g8r8_sintx  
a8b8g8r8_unorm_srgbxx 
r16_uintx  
r16_sintx  
r16_sfloatxx 
r16g16_uintx  
r16g16_sintx  
r16g16_sfloatxx 
r16g16b16a16_uintx  
r16g16b16a16_sintx  
r16g16b16a16_sfloatxx 
r32_uintx  
r32_sintx  
r32_sfloatx  
r32g32_uintx  
r32g32_sintx  
r32g32_sfloatx  
r32g32b32a32_uintx  
r32g32b32a32_sintx  
r32g32b32a32_sfloatx  
d16  x
d24  x
d24s8  x
d32  x