LiteFX::Rendering::Backends::DirectX12DescriptorSetLayoutBuilder::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¶
| Name | Description |
|---|---|
| binding | The binding point or register index of the descriptor. |
| descriptorSize | The size of a single descriptor. |
| descriptors | The number of descriptors in the array. |
| unbounded | true if the descriptor should define an unbounded array, false otherwise. |