Skip to content

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,
    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.
bindingsOptional default bindings for descriptors in each descriptor set.

See Also

allocate(std::initializer_list)