formatToWGSLType
constformatToWGSLType:object
Defined in: packages/typegpu/src/data/vertexFormatData.ts:51
Type declaration
Section titled “Type declaration”float16
Section titled “float16”
readonlyfloat16:F32=f32
float16x2
Section titled “float16x2”
readonlyfloat16x2:Vec2f=vec2f
float16x4
Section titled “float16x4”
readonlyfloat16x4:Vec4f=vec4f
float32
Section titled “float32”
readonlyfloat32:F32=f32
float32x2
Section titled “float32x2”
readonlyfloat32x2:Vec2f=vec2f
float32x3
Section titled “float32x3”
readonlyfloat32x3:Vec3f=vec3f
float32x4
Section titled “float32x4”
readonlyfloat32x4:Vec4f=vec4f
sint16
Section titled “sint16”
readonlysint16:I32=i32
sint16x2
Section titled “sint16x2”
readonlysint16x2:Vec2i=vec2i
sint16x4
Section titled “sint16x4”
readonlysint16x4:Vec4i=vec4i
sint32
Section titled “sint32”
readonlysint32:I32=i32
sint32x2
Section titled “sint32x2”
readonlysint32x2:Vec2i=vec2i
sint32x3
Section titled “sint32x3”
readonlysint32x3:Vec3i=vec3i
sint32x4
Section titled “sint32x4”
readonlysint32x4:Vec4i=vec4i
readonlysint8:I32=i32
sint8x2
Section titled “sint8x2”
readonlysint8x2:Vec2i=vec2i
sint8x4
Section titled “sint8x4”
readonlysint8x4:Vec4i=vec4i
snorm16
Section titled “snorm16”
readonlysnorm16:F32=f32
snorm16x2
Section titled “snorm16x2”
readonlysnorm16x2:Vec2f=vec2f
snorm16x4
Section titled “snorm16x4”
readonlysnorm16x4:Vec4f=vec4f
snorm8
Section titled “snorm8”
readonlysnorm8:F32=f32
snorm8x2
Section titled “snorm8x2”
readonlysnorm8x2:Vec2f=vec2f
snorm8x4
Section titled “snorm8x4”
readonlysnorm8x4:Vec4f=vec4f
uint16
Section titled “uint16”
readonlyuint16:U32=u32
uint16x2
Section titled “uint16x2”
readonlyuint16x2:Vec2u=vec2u
uint16x4
Section titled “uint16x4”
readonlyuint16x4:Vec4u=vec4u
uint32
Section titled “uint32”
readonlyuint32:U32=u32
uint32x2
Section titled “uint32x2”
readonlyuint32x2:Vec2u=vec2u
uint32x3
Section titled “uint32x3”
readonlyuint32x3:Vec3u=vec3u
uint32x4
Section titled “uint32x4”
readonlyuint32x4:Vec4u=vec4u
readonlyuint8:U32=u32
uint8x2
Section titled “uint8x2”
readonlyuint8x2:Vec2u=vec2u
uint8x4
Section titled “uint8x4”
readonlyuint8x4:Vec4u=vec4u
unorm10-10-10-2
Section titled “unorm10-10-10-2”
readonlyunorm10-10-10-2:Vec4f=vec4f
unorm16
Section titled “unorm16”
readonlyunorm16:F32=f32
unorm16x2
Section titled “unorm16x2”
readonlyunorm16x2:Vec2f=vec2f
unorm16x4
Section titled “unorm16x4”
readonlyunorm16x4:Vec4f=vec4f
unorm8
Section titled “unorm8”
readonlyunorm8:F32=f32
unorm8x2
Section titled “unorm8x2”
readonlyunorm8x2:Vec2f=vec2f
unorm8x4
Section titled “unorm8x4”
readonlyunorm8x4:Vec4f=vec4f
unorm8x4-bgra
Section titled “unorm8x4-bgra”
readonlyunorm8x4-bgra:Vec4f=vec4f