Skip to content

LiteFX::Rendering::PipelineBindingHint::DescriptorHeapHint

Defines a hint that is used to initialize a dynamic descriptor heap.

Synopsis

Declared in <litefx/rendering_api.hpp>

struct DescriptorHeapHint;

Description

This hint is special, as it must not be associated with an existing binding. Instead, dynamic descriptor heaps use a proxy descriptor set to bind resources to the global descriptor heaps, that can later be directly indexed by the shader. In the DirectX 12 backend, this hint will cause a new descriptor set to be created, that is not part of the pipeline state. In Vulkan, this functionality is emulated using the VK_EXT_mutable_descriptor_type extension and binds to an existing descriptor set. DXC emits this descriptor set automatically, if direct heap indexing is used from a shader.

Data Members

NameDescription
HeapSize The number of descriptors allocated for the heap.
Type The desired type of the descriptor heap.

See Also

GraphicsDeviceFeatures::DynamicDescriptors

DescriptorType::ResourceDescriptorHeap

DescriptorType::SamplerDescriptorHeap