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,
    std::function<Generator<DescriptorBinding>(UInt32)> bindingFactory) const;

Return Value

A generator that produces the descriptor set instances.

Parameters

NameDescription
descriptorSetsThe number of descriptor sets to allocate.
bindingFactoryA factory function that is called for each descriptor in each descriptor set in order to provide the default bindings.

See Also

allocate(std::initializer_list)