Skip to content

LiteFX::Rendering::Backends::DirectX12Device::allocateGlobalDescriptors

Allocates a range of descriptors in the global descriptor heaps for the provided descriptorSet.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, nodiscard, dllexport]] virtual VirtualAllocator::Allocation allocateGlobalDescriptors(
    DirectX12DescriptorSet const& descriptorSet,
    DescriptorHeapType heapType) const override;

Return Value

The allocation for the descriptor set at the descriptor heap indicated by heapType.

Note

The return value should not be discarded.

Parameters

NameDescription
descriptorSetThe descriptor set containing the descriptors to update.
heapTypeThe type of the descriptor heap to allocate descriptors on.