draw method

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

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

Implementation

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