Skip to content

LiteFX::Rendering::Backends::VulkanDescriptorSetLayout::allocate

allocate overloads

Synopses

Declared in <litefx/backends/vulkan.hpp>

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

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

» more...

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

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

» more...

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

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

[[dllimport, dllexport]] virtual 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]] virtual Generator<UniquePtr<descriptor_set_type>> allocate(
    UInt32 descriptorSets,
    std::mdspan<DescriptorBinding, std::dextents<size_t, 2>> bindings) const;

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

» more...

Allocates an array of descriptor sets.

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

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

See Also

IDescriptorLayout

allocate(std::initializer_list)