An attribute in the packed per-vertex layout.
type AttributeLayoutMember = {
name: string,
type: string,
structType: string,
offset: number,
size: number
}On this page
Properties
name: string
Geometry attribute name.
type: string
Attribute type, eg "vec3f" or "oct16".
structType: string
WGSL type of the unpacked value in the attribute struct.
offset: number
Offset within the vertex in 32-bit words.
size: number
Size in 32-bit words.