LiteFX::Rendering::Backends::DirectX12DescriptorSetLayoutBuilder::withTextureArray¶
Adds an image/texture descriptor.
Synopsis¶
Declared in <litefx/rendering_builders.hpp>
template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withTextureArray(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¶
| Name | Description |
|---|---|
| binding | The binding point or register index of the descriptor. |
| descriptors | The number of descriptors in the array. |
| writable | true, if the buffer should be writable. |
| unbounded | true if the descriptor should define an unbounded array, false otherwise. |