OptionalvertexThe VertexBuffer to add this VertexBufferAttribute to.
The name of the VertexBufferAttribute.
OptionalarrayVertexBufferAttribute array that will be used by the VertexBuffer.
OptionalnormalizedWhether this attribute should be normalized from [0, 255] range to [0, 1] range.
The WGSL type of the VertexBufferAttribute, i.e. "f32", "vec2f", "vec3f", etc.
The buffer format of the VertexBufferAttribute, i.e. "float32", "float32x2", "float32x3", etc.
The size of the VertexBufferAttribute. A "f32" is of size 1, a "vec2f" of size 2, a "vec3f" of size 3, etc.
Bytes offset of the array inside the VertexBuffer array.
Use this VertexBufferAttribute for every X vertices. Useful for vertex/face color, etc.
A VertexBufferAttribute holds geometry data to be sent to the vertex shader. Most common geometry attributes are 'position' and 'uv'.