Skip to content

LiteFX::Rendering::DescriptorSetLayoutBuilder::withConstantBufferArray

Adds an uniform/constant buffer descriptor array.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withConstantBufferArray(this 
    TSelf&& self,
    UInt32 binding,
    UInt32 descriptorSize,
    UInt32 descriptors,
    bool unbounded = false);

Description

If the unbounded is set to true, the descriptors parameter defines the upper limit for the number of descriptors in the runtime array. Note that unbounded constant/uniform buffer arrays might not be supported on older hardware.

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
bindingThe binding point or register index of the descriptor.
descriptorSizeThe size of a single descriptor.
descriptorsThe number of descriptors in the array.
unboundedtrue if the descriptor should define an unbounded array, false otherwise.