If attributes
is empty and stepMode
is WGPUVertexStepMode_Undefined, indicates a "hole" in the parent WGPUVertexState buffers
array, with behavior equivalent to null
in the JS API.
If attributes
is empty but stepMode
is not WGPUVertexStepMode_Undefined, indicates a vertex buffer with no attributes, with behavior equivalent to { attributes: [] }
in the JS API. (TODO: If the JS API changes not to distinguish these cases, then this distinction doesn't matter and we can remove this documentation.)
If stepMode
is WGPUVertexStepMode_Undefined but attributes
is not empty, stepMode
defaults to WGPUVertexStepMode_Vertex.
Default values can be set using WGPU_VERTEX_BUFFER_LAYOUT_INIT as initializer.
Definition at line 3965 of file webgpu.h.