LiteFX::Rendering::Backends::VulkanDescriptorSetLayoutBuilder::withDescriptor¶
Adds a descriptor to the descriptor set layout.
Synopsis¶
Declared in <litefx/rendering_builders.hpp>
template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withDescriptor(this
TSelf&& self,
DescriptorType type,
UInt32 binding,
UInt32 descriptorSize,
UInt32 descriptors = 1,
bool unbounded = false);
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| type | The type of the descriptor. |
| binding | The binding point for the descriptor. |
| descriptorSize | The size of a single descriptor. |
| descriptors | The number of descriptors to bind. |
| unbounded | true if the descriptor should define an unbounded array and false otherwise. |