Skip to content

LiteFX::Rendering::IDescriptorSetLayout::allocate

allocate overloads

Synopses

Declared in <litefx/rendering_api.hpp>

Allocates a new descriptor set or returns an instance of an unused descriptor set.

[[dllimport, dllexport]] UniquePtr<IDescriptorSet> allocate(Generator<DescriptorBinding> bindings) const;

» more...

Allocates a new descriptor set or returns an instance of an unused descriptor set.

[[dllimport, dllexport]] UniquePtr<IDescriptorSet> allocate(Span<DescriptorBinding> bindings) const;

» more...

Allocates a new descriptor set or returns an instance of an unused descriptor set.

[[dllimport, dllexport]] UniquePtr<IDescriptorSet> allocate(std::initializer_list<DescriptorBinding> bindings = { }) const;

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] Generator<UniquePtr<IDescriptorSet>> allocate(
    UInt32 descriptorSets,
    std::initializer_list<std::initializer_list<DescriptorBinding>> bindings = { }) const;

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] Generator<UniquePtr<IDescriptorSet>> allocate(
    UInt32 descriptorSets,
    std::mdspan<DescriptorBinding, std::dextents<size_t, 2>> bindings) const;

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] UniquePtr<IDescriptorSet> allocate(
    UInt32 descriptors,
    Generator<DescriptorBinding> bindings) const;

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] UniquePtr<IDescriptorSet> allocate(
    UInt32 descriptors,
    Span<DescriptorBinding> bindings) const;

» more...

Allocates a new descriptor set or returns an instance of an unused descriptor set.

[[dllimport, dllexport]] UniquePtr<IDescriptorSet> allocate(
    UInt32 descriptors,
    std::initializer_list<DescriptorBinding> bindings) const;

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] Generator<UniquePtr<IDescriptorSet>> allocate(
    UInt32 descriptorSets,
    UInt32 descriptors,
    std::initializer_list<std::initializer_list<DescriptorBinding>> bindings = { }) const;

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] Generator<UniquePtr<IDescriptorSet>> allocate(
    UInt32 descriptorSets,
    UInt32 descriptors,
    std::mdspan<DescriptorBinding, std::dextents<size_t, 2>> bindings) const;

» more...

Return Value

  • The instance of the descriptor set.
  • A generator that produces the descriptor set instances.

Parameters

NameDescription
bindingsOptional default bindings for descriptors in the descriptor set.
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.
descriptorsThe number of descriptor sets to allocate.

See Also

IDescriptorLayout

allocate(std::initializer_list)