D3D12_SUBRESOURCE_DATA structure (d3d12.h)
Describes subresource data.
C++
typedef struct D3D12_SUBRESOURCE_DATA {
const void *pData;
LONG_PTR RowPitch;
LONG_PTR SlicePitch;
} D3D12_SUBRESOURCE_DATA;
pData
A pointer to a memory block that contains the subresource data.
RowPitch
The row pitch, or width, or physical size, in bytes, of the subresource data.
SlicePitch
The depth pitch, or width, or physical size, in bytes, of the subresource data.
This structure is used by a number of the helper functions, refer to Helper Structures and Functions for D3D12.
Requirement | Value |
---|---|
Header | d3d12.h |