Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorRange::cpuHandle

Returns the CPU handle of element in the shader-visible global descriptor heap.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] D3D12_CPU_DESCRIPTOR_HANDLE cpuHandle(UInt32 element = 0) const;

Description

Views created at this handle are visible to shaders immediately. This is intended for interop with external libraries that create their own views. Descriptors written through update use a staging heap instead.

Parameters

NameDescription
elementThe descriptor for which to obtain the handle.