LiteFX::Rendering::IDescriptorSetLayout::allocate¶
Allocates an array of descriptor sets.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] Generator<UniquePtr<IDescriptorSet>> allocate(
UInt32 descriptorSets,
UInt32 descriptors,
std::initializer_list<std::initializer_list<DescriptorBinding>> bindings = { }) const;
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. |
| bindings | Optional default bindings for descriptors in each descriptor set. |
See Also¶
allocate(std::initializer_list)