Type alias VertexFormatInfo
VertexFormatInfo: {
byteSize: 1 | 2 | 4 | 8 | 12 | 16;
bytesPerComponent: 1 | 2 | 4 | "packed";
componentCount: 1 | 2 | 3 | 4;
type: "float" | "unorm" | "snorm" | "uint" | "sint";
wgslType: "f32" | "vec2<f32>" | "vec3<f32>" | "vec4<f32>" | "u32" | "vec2<u32>" | "vec3<u32>" | "vec4<u32>" | "i32" | "vec2<i32>" | "vec3<i32>" | "vec4<i32>";
}
Type declaration
Readonly
byteSize: 1 | 2 | 4 | 8 | 12 | 16
Readonly
bytesPerComponent: 1 | 2 | 4 | "packed"
Readonly
componentCount: 1 | 2 | 3 | 4
Readonly
type: "float" | "unorm" | "snorm" | "uint" | "sint"
Readonly
wgslType: "f32" | "vec2<f32>" | "vec3<f32>" | "vec4<f32>" | "u32" | "vec2<u32>" | "vec3<u32>" | "vec4<u32>" | "i32" | "vec2<i32>" | "vec3<i32>" | "vec4<i32>"
Per-GPUVertexFormat info.