LiteFX::Rendering::DescriptorSetLayout::allocate¶
Allocates an array of descriptor sets.
Synopsis¶
Declared in <litefx/rendering.hpp>
virtual Generator<UniquePtr<descriptor_set_type>> allocate(
UInt32 descriptorSets,
UInt32 descriptors,
std::function<Generator<DescriptorBinding>(UInt32)> bindingFactory) const = 0;
Return Value¶
A generator that produces the descriptor set instances.
Parameters¶
| Name | Description |
|---|---|
| descriptorSets | The number of descriptor sets to allocate. |
| descriptors | The number of descriptors to allocate in an unbounded descriptor array. Ignored, if the descriptor set does not contain an unbounded array. |
| bindingFactory | A factory function that is called for each descriptor set in order to provide the default bindings. |
See Also¶
allocate(std::initializer_list)