Syntax
Parameters
pDstBuffer [in]Type: ID3D12Resource * Specifies the destination ID3D12Resource. DstOffset
Type: UINT64 Specifies a UINT64 offset (in bytes) into the destination resource. pSrcBuffer [in]
Type: ID3D12Resource * Specifies the source ID3D12Resource. SrcOffset
Type: UINT64 Specifies a UINT64 offset (in bytes) into the source resource, to start the copy from. NumBytes
Type: UINT64 Specifies the number of bytes to copy.
Return value
Type: void None.Remarks
Consider using the CopyResource method when copying an entire resource, and use this method for copying regions of a resource. CopyBufferRegion may be used to initialize resources which alias the same heap memory. See CreatePlacedResource for more details.Examples
The D3D12HelloTriangle sample uses ID3D12GraphicsCommandList::CopyBufferRegion as follows:Requirements
Header: d3d12_xs.h or d3d12_x.hLibrary: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family
