Skip to content

LiteFX::Rendering::DescriptorBinding::toDescriptor

Returns a copy of the binding, starting at descriptor descriptor. This is only required for descriptor arrays where you don't want to start binding at the first descriptor in the array. Specify the binding point by calling at. If it is not set, the index of the array element provided to the binding function will be used instead.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, nodiscard, dllexport]] constexpr DescriptorBinding toDescriptor(UInt32 descriptor) const noexcept;

Return Value

A copy of the binding with firstDescriptor set to descriptor.

Note

The return value should not be discarded.

Parameters

NameDescription
descriptorThe index of the first descriptor in the descriptor array at binding point binding to bind.