formatToWGSLType
const
formatToWGSLType:object
Defined in: packages/typegpu/src/data/vertexFormatData.ts:51
Type declaration
Section titled “Type declaration”float16
Section titled “float16”
readonly
float16:F32
=f32
float16x2
Section titled “float16x2”
readonly
float16x2:Vec2f
=vec2f
float16x4
Section titled “float16x4”
readonly
float16x4:Vec4f
=vec4f
float32
Section titled “float32”
readonly
float32:F32
=f32
float32x2
Section titled “float32x2”
readonly
float32x2:Vec2f
=vec2f
float32x3
Section titled “float32x3”
readonly
float32x3:Vec3f
=vec3f
float32x4
Section titled “float32x4”
readonly
float32x4:Vec4f
=vec4f
sint16
Section titled “sint16”
readonly
sint16:I32
=i32
sint16x2
Section titled “sint16x2”
readonly
sint16x2:Vec2i
=vec2i
sint16x4
Section titled “sint16x4”
readonly
sint16x4:Vec4i
=vec4i
sint32
Section titled “sint32”
readonly
sint32:I32
=i32
sint32x2
Section titled “sint32x2”
readonly
sint32x2:Vec2i
=vec2i
sint32x3
Section titled “sint32x3”
readonly
sint32x3:Vec3i
=vec3i
sint32x4
Section titled “sint32x4”
readonly
sint32x4:Vec4i
=vec4i
readonly
sint8:I32
=i32
sint8x2
Section titled “sint8x2”
readonly
sint8x2:Vec2i
=vec2i
sint8x4
Section titled “sint8x4”
readonly
sint8x4:Vec4i
=vec4i
snorm16
Section titled “snorm16”
readonly
snorm16:F32
=f32
snorm16x2
Section titled “snorm16x2”
readonly
snorm16x2:Vec2f
=vec2f
snorm16x4
Section titled “snorm16x4”
readonly
snorm16x4:Vec4f
=vec4f
snorm8
Section titled “snorm8”
readonly
snorm8:F32
=f32
snorm8x2
Section titled “snorm8x2”
readonly
snorm8x2:Vec2f
=vec2f
snorm8x4
Section titled “snorm8x4”
readonly
snorm8x4:Vec4f
=vec4f
uint16
Section titled “uint16”
readonly
uint16:U32
=u32
uint16x2
Section titled “uint16x2”
readonly
uint16x2:Vec2u
=vec2u
uint16x4
Section titled “uint16x4”
readonly
uint16x4:Vec4u
=vec4u
uint32
Section titled “uint32”
readonly
uint32:U32
=u32
uint32x2
Section titled “uint32x2”
readonly
uint32x2:Vec2u
=vec2u
uint32x3
Section titled “uint32x3”
readonly
uint32x3:Vec3u
=vec3u
uint32x4
Section titled “uint32x4”
readonly
uint32x4:Vec4u
=vec4u
readonly
uint8:U32
=u32
uint8x2
Section titled “uint8x2”
readonly
uint8x2:Vec2u
=vec2u
uint8x4
Section titled “uint8x4”
readonly
uint8x4:Vec4u
=vec4u
unorm10-10-10-2
Section titled “unorm10-10-10-2”
readonly
unorm10-10-10-2:Vec4f
=vec4f
unorm16
Section titled “unorm16”
readonly
unorm16:F32
=f32
unorm16x2
Section titled “unorm16x2”
readonly
unorm16x2:Vec2f
=vec2f
unorm16x4
Section titled “unorm16x4”
readonly
unorm16x4:Vec4f
=vec4f
unorm8
Section titled “unorm8”
readonly
unorm8:F32
=f32
unorm8x2
Section titled “unorm8x2”
readonly
unorm8x2:Vec2f
=vec2f
unorm8x4
Section titled “unorm8x4”
readonly
unorm8x4:Vec4f
=vec4f
unorm8x4-bgra
Section titled “unorm8x4-bgra”
readonly
unorm8x4-bgra:Vec4f
=vec4f