setVertexBuffer method

void setVertexBuffer(
  1. GPUIndex32 slot,
  2. GPUBuffer? buffer, [
  3. GPUSize64 offset,
  4. GPUSize64 size,
])

The setVertexBuffer() method of the GPURenderPassEncoder interface sets or unsets the current GPUBuffer for the given slot that will provide vertex data for subsequent drawing commands.

Implementation

external void setVertexBuffer(
  GPUIndex32 slot,
  GPUBuffer? buffer, [
  GPUSize64 offset,
  GPUSize64 size,
]);