Function RenderPass.setVertexBuffer

Sets an active vertex buffer at slot.

void setVertexBuffer (
  uint slot,
  Buffer buffer,
  uint size = 0u
);

void setVertexBuffer (
  uint slot,
  Buffer buffer,
  uint offset = 0u,
  uint size = 0u
) @trusted;

If size is 0, size becomes Buffer.descriptor.size.