ID3D12Device::CopyDescriptors method

Copies descriptors from a source to a destination.

Syntax

void CopyDescriptors(
  UINT                              NumDestDescriptorRanges,
  const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  const UINT                        *pDestDescriptorRangeSizes,
  UINT                              NumSrcDescriptorRanges,
  const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  const UINT                        *pSrcDescriptorRangeSizes,
  D3D12_DESCRIPTOR_HEAP_TYPE        DescriptorHeapsType
);

Parameters

NumDestDescriptorRanges

Type: UINT

The number of destination descriptor ranges to copy to.

pDestDescriptorRangeStarts

Type: const D3D12_CPU_DESCRIPTOR_HANDLE*

An array of CPU_descriptor_handle objects to copy to.

pDestDescriptorRangeSizes

Type: const UINT*

An array of destination descriptor range sizes to copy to.

NumSrcDescriptorRanges

Type: UINT

The number of source descriptor ranges to copy from.

pSrcDescriptorRangeStarts

Type: const D3D12_CPU_DESCRIPTOR_HANDLE*

An array of CPU_descriptor_handle objects to copy from.

pSrcDescriptorRangeSizes

Type: const UINT*

An array of source descriptor range sizes to copy from.

DescriptorHeapsType

Type: D3D12_DESCRIPTOR_HEAP_TYPE

The D3D12_DESCRIPTOR_HEAP_TYPE-typed value that specifies the type of descriptor heap to copy with.

Return Value

Returns nothing.

Requirements

   
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See Also

Copying Descriptors

ID3D12Device