Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorSetLayout::allocate

Allocates an array of descriptor sets.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] virtual Generator<UniquePtr<DirectX12DescriptorSet>> allocate(
    UInt32 descriptorSets,
    UInt32 descriptors,
    std::function<Generator<DescriptorBinding>(UInt32)> bindingFactory) const override;

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.
bindingFactoryA factory function that is called for each descriptor set in order to provide the default bindings.

See Also

allocate(std::initializer_list)