D3D10DDI_MAPPED_SUBRESOURCE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

typedef struct D3D10DDI_MAPPED_SUBRESOURCE {
  [out] void *pData;
  [out] UINT RowPitch;
  [out] UINT DepthPitch;
} D3D10DDI_MAPPED_SUBRESOURCE;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3d10umddi-d3d10ddi_mapped_subresource)

D3D10DDI_MAPPED_SUBRESOURCE structure

Description

The D3D10DDI_MAPPED_SUBRESOURCE structure describes a subresource that the driver maps to through a call to the driver's ResourceMap function.

Members

pData [out]

A pointer to a buffer that contains the contents of the subresource.

RowPitch [out]

The row pitch, width, or physical size (in bytes) of the data.

DepthPitch [out]

The depth pitch, width, or physical size (in bytes) of the data.

Remarks

The pData member points to row 0 and slice 0.

The RowPitch member is the value that is added to pData to move from row to row. Each row should contain multiple pixels.

The DepthPitch member is the value that is added to pData to move from depth slice to depth slice. Each depth slice should contain multiple rows.

It is not advisable to assign a value of zero to the RowPitch and DepthPitch members.

To avoid zero values for these members, it helps to think of all resources as being three-dimensional, as in these two examples:

See also

ResourceMap