Skip to content

LiteFX::Rendering::ICommandBuffer::bind

Binds an arbitrary input range of descriptor sets to the last pipeline that was used by the command buffer.

Synopsis

Declared in <litefx/rendering_api.hpp>

template<
    typename TSelf,
    typename T>
void bind(this 
    TSelf const& self,
    std::initializer_list<T const*> descriptorSets)
requires std::derived_from<T, IDescriptorSet>;

Description

Note that if an element of descriptorSets is nullptr, it will be ignored.

Exceptions

NameThrown on
RuntimeExceptionThrown, if no pipeline has been used before attempting to bind the descriptor set.

Template Parameters

NameDescription
TThe type of the descriptor sets.

Parameters

NameDescription
descriptorSetsThe pointers to the descriptor sets to bind.