Skip to content

LiteFX::Rendering::DescriptorSetLayoutBuilder::withBufferArray

Adds a texel buffer descriptor array.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withBufferArray(this 
    TSelf&& self,
    UInt32 binding,
    UInt32 descriptors = 1,
    bool writable = false,
    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.

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
bindingThe binding point or register index of the descriptor.
descriptorsThe number of descriptors in the array.
writabletrue, if the buffer should be writable.
unboundedtrue if the descriptor should define an unbounded array, false otherwise.