Skip to content

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

Binds a vertex buffer to the pipeline.

Synopsis

Declared in <litefx/rendering.hpp>

[[dllimport]] virtual void bind(vertex_buffer_type const& buffer) const noexcept = 0;

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