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:
- ID3D12Resource::WriteToSubresource
- ID3D12Resource::ReadFromSubresource
- ID3D12GraphicsCommandList::CopyResource
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
DLL |
|