Optional
vertexThe VertexBuffer to add this VertexBufferAttribute to
The name of the VertexBufferAttribute
Optional
typeThe WGSL type of the VertexBufferAttribute, i.e. "f32"
, "vec2f"
, "vec3f"
, etc.
Optional
bufferThe buffer format of the VertexBufferAttribute, i.e. "float32"
, "float32x2"
, "float32x3"
, etc.
Optional
sizeThe size of the VertexBufferAttribute. A "f32"
is of size 1
, a "vec2f"
of size 2
, a "vec3f"
of size 3
, etc.
VertexBufferAttribute array that will be used by the VertexBuffer
Optional
verticesUse this VertexBufferAttribute for every X vertices. Useful for vertex/face color, etc.
Parameters used to create a VertexBufferAttribute