Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorSetLayoutBuilder::withDescriptor

Adds a descriptor to the descriptor set layout.

Synopses

Declared in <litefx/rendering_builders.hpp>

Adds a descriptor to the descriptor set layout.

template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withDescriptor(this 
    TSelf&& self,
    descriptor_layout_type&& layout);

» more...

Adds a descriptor to the descriptor set layout.

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

» more...

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
layoutThe descriptor layout to add.
typeThe type of the descriptor.
bindingThe binding point for the descriptor.
descriptorSizeThe size of a single descriptor.
descriptorsThe number of descriptors to bind.
unboundedtrue if the descriptor should define an unbounded array and false otherwise.