setVertexBuffer method

void setVertexBuffer(
  1. int slot,
  2. GpuBuffer buffer
)

Implementation

void setVertexBuffer(int slot, GpuBuffer buffer) {
  _wgpu.wgpuRenderPassEncoderSetVertexBuffer(
      _handle, slot, buffer.handle.cast(), 0, buffer.size);
}