MemcpySubresource function

Copies a subresource row by row.

Syntax

void inline MemcpySubresource(
  _In_ const D3D12_MEMCPY_DEST      *pDest,
  _In_ const D3D12_SUBRESOURCE_DATA *pSrc,
             SIZE_T                 RowSizeInBytes,
             UINT                   NumRows,
             UINT                   NumSlices
);

Parameters

pDest [in]

Type: const D3D12_MEMCPY_DEST*

A pointer to a D3D12_MEMCPY_DEST structure that describes the destination of the memory copy operation.

pSrc [in]

Type: const D3D12_SUBRESOURCE_DATA*

A pointer to a D3D12_SUBRESOURCE_DATA structure that describes the source of the memory copy operation.

RowSizeInBytes

Type: SIZE_T

The size, in bytes, of each row.

NumRows

Type: UINT

The number of rows.

NumSlices

Type: UINT

The number of slices.

Return value

This function does not return a value.

Remarks

Also consider the following methods:

Requirements

Requirement Value
Header
D3dx12.h
Library
D3D12.lib
DLL
D3D12.dll

See also

Helper Functions for D3D12

Subresources