Skip to content

LiteFX::Rendering::Backends::DirectX12CommandBuffer::bind

Binds a index buffer to the pipeline.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] virtual void bind(IDirectX12IndexBuffer const& buffer) const noexcept override;

Description

After binding the index buffer, the next call to drawIndexed will read from it, until another index buffer is bound.

Parameters

NameDescription
bufferThe index buffer to bind to the pipeline.

See Also

IndexBuffer

drawIndexed