LiteFX::Rendering::Backends::DirectX12DescriptorSetLayout::allocate¶
allocate overloads
Synopses¶
Declared in <litefx/backends/dx12.hpp>
Allocates a new descriptor set or returns an instance of an unused descriptor set.
[[dllimport, dllexport]] virtual UniquePtr<descriptor_set_type> allocate(Generator<DescriptorBinding> bindings) const;
Allocates a new descriptor set or returns an instance of an unused descriptor set.
[[dllimport, dllexport]] virtual UniquePtr<descriptor_set_type> allocate(Span<DescriptorBinding> bindings) const;
Allocates a new descriptor set or returns an instance of an unused descriptor set.
[[dllimport, dllexport]] virtual UniquePtr<descriptor_set_type> allocate(std::initializer_list<DescriptorBinding> bindings = { }) const;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual Generator<UniquePtr<descriptor_set_type>> allocate(
UInt32 descriptorSets,
std::function<Generator<DescriptorBinding>(UInt32)> bindings) const;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual Generator<UniquePtr<descriptor_set_type>> allocate(
UInt32 descriptorSets,
std::initializer_list<std::initializer_list<DescriptorBinding>> bindings = { }) const;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual Generator<UniquePtr<descriptor_set_type>> allocate(
UInt32 descriptorSets,
std::mdspan<DescriptorBinding, std::dextents<size_t, 2>> bindings) const;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual UniquePtr<DirectX12DescriptorSet> allocate(
UInt32 descriptors,
Generator<DescriptorBinding> bindings) const override;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual UniquePtr<DirectX12DescriptorSet> allocate(
UInt32 descriptors,
Span<DescriptorBinding> bindings) const override;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual UniquePtr<DirectX12DescriptorSet> allocate(
UInt32 descriptors,
std::initializer_list<DescriptorBinding> bindings) const override;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual Generator<UniquePtr<DirectX12DescriptorSet>> allocate(
UInt32 descriptorSets,
UInt32 descriptors,
std::function<Generator<DescriptorBinding>(UInt32)> bindingFactory) const override;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual Generator<UniquePtr<DirectX12DescriptorSet>> allocate(
UInt32 descriptorSets,
UInt32 descriptors,
std::initializer_list<std::initializer_list<DescriptorBinding>> bindings = { }) const override;
Allocates an array of descriptor sets.
[[dllimport, dllexport]] virtual Generator<UniquePtr<DirectX12DescriptorSet>> allocate(
UInt32 descriptorSets,
UInt32 descriptors,
std::mdspan<DescriptorBinding, std::dextents<size_t, 2>> bindings) const override;
Return Value¶
- The instance of the descriptor set.
- A generator that produces the descriptor set instances.
Parameters¶
| Name | Description |
|---|---|
| bindings | Optional default bindings for descriptors in the descriptor set. |
| descriptorSets | The number of descriptor sets to allocate. |
| descriptors | The number of descriptor sets to allocate. |
| bindingFactory | A factory function that is called for each descriptor set in order to provide the default bindings. |
See Also¶
IDescriptorLayout
allocate(std::initializer_list)