Skip to content

Documentation / @ripl/webgpu / DrawCommand

Interface: DrawCommand ​

Defined in: webgpu/src/geometry.ts:258

A single draw call within a flush result.

Properties ​

PropertyTypeDescriptionDefined in
indexCountnumberNumber of indices to draw for this mesh.webgpu/src/geometry.ts:260
indexOffsetnumberOffset into the shared index buffer where this mesh's indices begin.webgpu/src/geometry.ts:262
modelBindGroupGPUBindGroupBind group holding this mesh's model and normal matrices.webgpu/src/geometry.ts:264
textureBindGroup?GPUBindGroupBind group holding this mesh's texture and sampler, when the backend manages textures.webgpu/src/geometry.ts:266