Skip to content

LiteFX::Rendering::Backends::DirectX12Device::releaseGlobalDescriptors

Releases a range of descriptors from the global descriptor heaps.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] virtual void releaseGlobalDescriptors(DirectX12DescriptorSet const& descriptorSet) const override;

Description

This is done, if a descriptor set layout is destroyed, of a descriptor set, which contains an unbounded array is freed. It will cause the global descriptor heaps to fragment, which may result in inefficient future descriptor allocations and should be avoided. Consider caching descriptor sets with unbounded arrays instead. Also avoid relying on creating and releasing pipeline layouts during runtime. Instead, it may be more efficient to write shaders that support multiple pipeline variations, that can be kept alive for the lifetime of the whole application.

Parameters

NameDescription
descriptorSetImplements a DirectX 12 DescriptorSet.