LiteFX::Rendering::Backends::VulkanDescriptorLayout::VulkanDescriptorLayout¶
Constructors
Synopses¶
Declared in <litefx/backends/vulkan.hpp>
Copy constructor
[[dllimport, dllexport]] VulkanDescriptorLayout(VulkanDescriptorLayout const& other);
Move constructor
[[dllimport, dllexport]] VulkanDescriptorLayout(VulkanDescriptorLayout&& other) noexcept;
Initializes a new Vulkan descriptor layout for an input attachment.
[[dllimport, dllexport]] VulkanDescriptorLayout(
UInt32 binding,
UInt32 inputAttachmentIndex);
Initializes a new Vulkan descriptor layout for a static sampler.
[[dllimport, dllexport]] VulkanDescriptorLayout(
IVulkanSampler const& staticSampler,
UInt32 binding);
Initializes a new Vulkan descriptor layout.
[[dllimport, dllexport]] VulkanDescriptorLayout(
DescriptorType type,
UInt32 binding,
size_t elementSize,
UInt32 descriptors = 1,
bool unbounded = false);
Parameters¶
| Name | Description |
|---|---|
| binding | The binding point for the descriptor. |
| inputAttachmentIndex | If type equals DescriptorType::InputAttachment this value specifies the index of the input attachment. Otherwise, the value is ignored. |
| staticSampler | The static sampler to initialize the state with. |
| type | The type of the descriptor. |
| elementSize | The size of the descriptor. |
| descriptors | The number of descriptors in the descriptor array. If unbounded is set, this value sets the upper limit for the array size. |
| unbounded | If set to true, the descriptor will be defined as a runtime-allocated, unbounded array. |
See Also¶
descriptors