The number of vertices to draw.
Optional
instanceCount: numberThe number of instances to draw.
Optional
firstVertex: numberOffset into the vertex buffers, in vertices, to begin drawing from.
Optional
firstInstance: numberFirst instance to draw.
Draws indexed primitives. See https://www.w3.org/TR/webgpu/#rendering-operations for the detailed specification.
The number of indices to draw.
Optional
instanceCount: numberThe number of instances to draw.
Optional
firstIndex: numberOffset into the index buffer, in indices, begin drawing from.
Optional
baseVertex: numberAdded to each index value before indexing into the vertex buffers.
Optional
firstInstance: numberFirst instance to draw.
Draws indexed primitives using parameters read from a GPUBuffer. See https://www.w3.org/TR/webgpu/#rendering-operations for the detailed specification. tightly packed block of five 32-bit unsigned integer values (20 bytes total), given in the same order as the arguments for GPURenderEncoderBase#drawIndexed. For example:
Buffer containing the indirect drawIndexed parameters.
Offset in bytes into indirectBuffer
where the drawing data begins.
Draws primitives using parameters read from a GPUBuffer. See https://www.w3.org/TR/webgpu/#rendering-operations for the detailed specification. packed block of four 32-bit unsigned integer values (16 bytes total), given in the same order as the arguments for GPURenderEncoderBase#draw. For example:
Buffer containing the indirect draw parameters.
Offset in bytes into indirectBuffer
where the drawing data begins.
Sets the current index buffer.
Buffer containing index data to use for subsequent drawing commands.
Format of the index data contained in buffer
.
Optional
offset: numberOffset in bytes into buffer
where the index data begins. Defaults to 0
.
Optional
size: numberSize in bytes of the index data in buffer
.
Defaults to the size of the buffer minus the offset.
Sets the current GPURenderPipeline.
The render pipeline to use for subsequent drawing commands.
Sets the current vertex buffer for the given slot.
The vertex buffer slot to set the vertex buffer for.
Buffer containing vertex data to use for subsequent drawing commands.
Optional
offset: numberOffset in bytes into buffer
where the vertex data begins. Defaults to 0
.
Optional
size: numberSize in bytes of the vertex data in buffer
.
Defaults to the size of the buffer minus the offset.
Generated using TypeDoc
Draws primitives. See https://www.w3.org/TR/webgpu/#rendering-operations for the detailed specification.