Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorSetLayoutBuilder::withConstantBuffer

Adds an uniform/constant buffer descriptor.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withConstantBuffer(this 
    TSelf&& self,
    UInt32 binding,
    UInt32 descriptorSize);

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.