Skip to content

LiteFX::Rendering::Backends::VulkanDevice::allocateGlobalDescriptors

allocateGlobalDescriptors overloads

Synopses

Declared in <litefx/backends/vulkan.hpp>

Allocates a descriptor range with a capacity of descriptors from the global descriptor heap indicated by heapType. This overload allocates a raw descriptor range from a global descriptor heap. It is intended for interop purposes, where external libraries need to bind resources, as well as bindless rendering using SM 6.6 dynamic resources (ResourceDescriptorHeap/SamplerDescriptorHeap).

[[dllimport, nodiscard, dllexport]] virtual UniquePtr<VulkanDescriptorRange> allocateGlobalDescriptors(
    DescriptorHeapType heapType,
    UInt32 descriptors) const override;

» more...

Allocates a descriptor range with a capacity of descriptors from the global descriptor heap indicated by heapType. This overload allocates a raw descriptor range from a global descriptor heap. It is intended for interop purposes, where external libraries need to bind resources, as well as bindless rendering using SM 6.6 dynamic resources (ResourceDescriptorHeap/SamplerDescriptorHeap).

[[dllimport, nodiscard, dllexport]] virtual DescriptorHeapAllocation allocateGlobalDescriptors(
    VulkanDescriptorSet const& descriptorSet,
    DescriptorHeapType heapType) const override;

» more...

Allocates a range of descriptors in the global descriptor heap indicated by heapType for the provided descriptorSet.

[[dllimport, nodiscard]] virtual DescriptorHeapAllocation allocateGlobalDescriptors(
    descriptor_set_type const& descriptorSet,
    DescriptorHeapType heapType) const = 0;

» more...

Return Value

  • A pointer to the descriptor range.
  • The allocation for the descriptor set at the descriptor heap indicated by heapType.

Note

The return value should not be discarded.

Parameters

NameDescription
heapTypeThe global descriptor heap from which to allocate the descriptor range.
descriptorsThe number of descriptors to allocate from the descriptor range.
descriptorSetThe descriptor set containing the descriptors to update.

See Also

allocateGlobalDescriptors(const IDescriptorSet&, DescriptorHeapType)

allocateGlobalDescriptors(DescriptorHeapType, UInt32)