draw method

void draw(
  1. GPUSize32 vertexCount, [
  2. GPUSize32 instanceCount,
  3. GPUSize32 firstVertex,
  4. GPUSize32 firstInstance,
])

The draw() method of the GPURenderBundleEncoder interface draws primitives based on the vertex buffers provided by GPURenderBundleEncoder.setVertexBuffer.

Note

This method is functionally identical to its equivalent on GPURenderPassEncoder — GPURenderPassEncoder.draw.

Implementation

external void draw(
  GPUSize32 vertexCount, [
  GPUSize32 instanceCount,
  GPUSize32 firstVertex,
  GPUSize32 firstInstance,
]);