Skip to content

LiteFX::Rendering::Backends::DirectX12InputAssemblerBuilder::use

Adds an index buffer layout to the input assembler. Can only be called once.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
constexpr TSelf&& use(this 
    TSelf&& self,
    SharedPtr<index_buffer_layout_type>&& layout);

Exceptions

NameThrown on
RuntimeExceptionThrown if another index buffer layout has already been specified.

Parameters

NameDescription
layoutThe index buffer layout to add to the input assembler.