Skip to content

LiteFX::Rendering::InputAssemblerBuilder::use

use overloads

Synopses

Declared in <litefx/containers.hpp>

Called by child builders to pass a constructed object back to the parent builder.

template<typename TInstance>
void use(pointer_type&&) noexcept = delete;

» more...

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

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

» more...

Adds a vertex buffer layout to the input assembler. Can be called multiple times.

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

» more...

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.