Skip to content

LiteFX::Rendering::DescriptorSetLayout::allocate

Allocates an array of descriptor sets.

Synopsis

Declared in <litefx/rendering.hpp>

UniquePtr<descriptor_set_type> allocate(
    UInt32 unboundedArraySize,
    Generator<DescriptorBinding const&> bindings) const;

Return Value

The instance of the descriptor set.

Parameters

NameDescription
unboundedArraySizeThe number of descriptors to allocate in an unbounded descriptor array. Ignored, if the descriptor set does not contain an unbounded array.
bindingsA generator that generates the optional default bindings for descriptors in each descriptor set.

See Also

allocate(std::initializer_list)