Skip to content

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

allocate overloads

Synopses

Declared in <litefx/rendering.hpp>

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

» more...

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

» more...

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

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] Generator<UniquePtr<descriptor_set_type>> allocate(
    UInt32 descriptorSets,
    UInt32 unboundedArraySize,
    std::mdspan<DescriptorBinding const, 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.
unboundedArraySizeThe 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

IDescriptorLayout

allocate(std::initializer_list)

allocate(std::initializer_list)