ID3D12Device::CopyDescriptors method

Copies descriptors from a source to a destination.

Syntax


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

Parameters

NumDestDescriptorRanges [in]

Type: UINT

The number of destination descriptor ranges to copy to.

pDestDescriptorRangeStarts [in]

Type: const D3D12_CPU_DESCRIPTOR_HANDLE*

An array of CPU_descriptor_handle objects to copy to.

pDestDescriptorRangeSizes [in, optional]

Type: const UINT*

An array of destination descriptor range sizes to copy to.

NumSrcDescriptorRanges [in]

Type: UINT

The number of source descriptor ranges to copy from.

pSrcDescriptorRangeStarts [in]

Type: const D3D12_CPU_DESCRIPTOR_HANDLE*

An array of CPU_descriptor_handle objects to copy from.

pSrcDescriptorRangeSizes [in, optional]

Type: const UINT*

An array of source descriptor range sizes to copy from.

DescriptorHeapsType [in]

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

Header

D3D12.h

Library

D3D12.lib

DLL

D3D12.dll

See also

ID3D12Device
Copying Descriptors

 

 

Show: