Datatypes

A table of all of the datatype string that must be understood by all implementations of PFX

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

Table 1. Datatypes (various datatype attributes)

Datatype

Description

mat4, mat4x4

A matrix with 4 columns, each a 4 component vector of 32-bit float

mat3x4

A matrix with 3 columns, each a 4 component vector of 32-bit float

mat2x4

A matrix with 2 columns, each a 4 component vector of 32-bit float

mat4x3

A matrix with 4 columns, each a 3 component vector of 32-bit float

mat3, mat4x4

A matrix with 3 columns, each a 3 component vector of 32-bit float

mat2x3

A matrix with 2 columns, each a 3 component vector of 32-bit float

mat4x2

A matrix with 4 columns, each a 2 component vector of 32-bit float

mat3x2

A matrix with 3 columns, each a 2 component vector of 32-bit float

mat2, mat2x2

A matrix with 2 columns, each a 2 component vector of 32-bit float

vec4

A 4-component vector each element of which is a 32-bit float

vec3

A 3-component vector each element of which is a 32-bit float

vec2

A 2-component vector each element of which is a 32-bit float

ivec4

A 4-component vector each element of which is a 32-bit integer

ivec3

A 3-component vector each element of which is a 32-bit integer

ivec2

A 2-component vector each element of which is a 32-bit integer

bvec4

A 4-component vector each element of which is a boolean

bvec3

A 3-component vector each element of which is a boolean

bvec2

A 2-component vector each element of which is a boolean

float

A 32-bit floating point number

int

A 32-bit integer

bool

A boolean value (true/false)

Table 2. Texture Format Features
Format Color attachment Bit Color attachment Blend Bit Depth

r8_unorm

x

x

r8_uint

x

r8_sint

x

r8g8_unorm

x

x

r8g8_uint

x

r8g8_sint

x

r8g8b8a8_unorm

x

x

r8g8b8a8_uint

x

r8g8b8a8_sint

x

r8g8b8a8_unorm_srgb

x

x

b8g8r8a8_unorm

x

x

b8g8r8a8_unorm_srgb

x

x

a8b8g8r8_unorm

x

x

a8b8g8r8_uint

x

a8b8g8r8_sint

x

a8b8g8r8_unorm_srgb

x

x

r16_uint

x

r16_sint

x

r16_sfloat

x

x

r16g16_uint

x

r16g16_sint

x

r16g16_sfloat

x

x

r16g16b16a16_uint

x

r16g16b16a16_sint

x

r16g16b16a16_sfloat

x

x

r32_uint

x

r32_sint

x

r32_sfloat

x

r32g32_uint

x

r32g32_sint

x

r32g32_sfloat

x

r32g32b32a32_uint

x

r32g32b32a32_sint

x

r32g32b32a32_sfloat

x

d16

x

d24

x

d24s8

x

d32

x