Function RenderPass.setIndexBuffer

Sets the active index buffer.

void setIndexBuffer(T) (
  Buffer buffer,
  uint offset = 0
)
if (is(T == vshort) || is(T == uint));

void setIndexBuffer (
  Buffer buffer,
  IndexFormat format,
  uint offset = 0u
);

Subsequent calls to drawIndexed on this RenderPass will use buffer as the source index buffer.