Skip to main content
Copies descriptors from a source to a destination.

Syntax

Parameters

NumDescriptors [in]
Type: UINT
The number of descriptors to copy. DestDescriptorRangeStart [in]
Type: D3D12_CPU_DESCRIPTOR_HANDLE
A D3D12_CPU_DESCRIPTOR_HANDLE that describes the destination descriptors to start to copy to. The destination and source descriptors must be in heaps of the same D3D12_DESCRIPTOR_HEAP_TYPE. SrcDescriptorRangeStart [in]
Type: D3D12_CPU_DESCRIPTOR_HANDLE
A D3D12_CPU_DESCRIPTOR_HANDLE that describes the source descriptors to start to copy from.
The SrcDescriptorRangeStart parameter must be in a non shader-visible descriptor heap. This is because shader-visible descriptor heaps may be created in WRITE_COMBINE memory or GPU local memory, which is prohibitively slow to read from. If your application manages descriptor heaps via copying the descriptors required for a given pass or frame from local “storage” descriptor heaps to the GPU-bound descriptor heap, then use shader-opaque heaps for the storage heaps and copy into the GPU-visible heap as required.
DescriptorHeapsType [in]
Type: D3D12_DESCRIPTOR_HEAP_TYPE
The D3D12_DESCRIPTOR_HEAP_TYPE-typed value that specifies the type of descriptor heap to copy with. This is required as different descriptor types may have different sizes. Both the source and destination descriptor heaps must have the same type, else the debug layer will emit an error.

Return value

Type: void None.

Remarks

Where applicable, prefer this method to ID3D12Device::CopyDescriptors. It can have a better CPU cache miss rate due to the linear nature of the copy.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

Copying Descriptors ID3D12Device
Last modified on August 20, 2026