Skip to content

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

Binds a vertex buffer to the pipeline.

Synopsis

Declared in <litefx/backends/dx12.hpp>

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

Description

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

Parameters

NameDescription
bufferThe vertex buffer to bind to the pipeline.

See Also

VertexBuffer

draw

drawIndexed