Skip to content

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::mdspan<DescriptorBinding, std::dextents<size_t, 2>> bindings) const;

Return Value

A generator that produces the descriptor set instances.

Parameters

NameDescription
descriptorSetsThe number of descriptor sets to allocate.
descriptorsThe number of descriptors to allocate in an unbounded descriptor array. Ignored, if the descriptor set does not contain an unbounded array.
bindingsOptional default bindings for descriptors in each descriptor set.

See Also

allocate(std::initializer_list)