LiteFX::Rendering::IDescriptorSetLayout::allocate¶
Allocates a new descriptor set or returns an instance of an unused descriptor set.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] UniquePtr<IDescriptorSet> allocate(
UInt32 descriptors,
std::initializer_list<DescriptorBinding> bindings) const;
Return Value¶
The instance of the descriptor set.
Parameters¶
| Name | Description |
|---|---|
| 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 the descriptor set. |
See Also¶
IDescriptorLayout
allocate(std::initializer_list)