// d3dumddi.h
typedef struct D3DDDIARG_UPDATESUBRESOURCEUP {
HANDLE hResource;
UINT SubResourceIndex;
D3DDDIBOX DstBox;
const VOID *pSysMemUP;
UINT RowPitch;
UINT DepthPitch;
D3DDDIARG_COPYFLAGS Flags;
} D3DDDIARG_UPDATESUBRESOURCEUP;
View the official Windows Driver Kit DDI referenceNo description available.
Describes info that's used to update a destination subresource region from a source system-memory region. Used by Windows Display Driver Model (WDDM) 1.3 and later user-mode display drivers.
hResourceA handle to the destination resource to copy to.
SubResourceIndexThe index of the destination subresource to which data is to be copied.
DstBoxA destination region, of type D3DDDIBOX, of the subresource to which data is to be copied. If Flags->BoxValid is not set, the entire subresource must be updated.
pSysMemUPA pointer to the beginning address of the source data that the pfnUpdateSubresourceUP function copies to update the destination subresource.
RowPitchThe offset, in bytes, to move to the next row of source data.
DepthPitchThe offset, in bytes, to move to the next depth slice of source data.
FlagsA D3DDDIARG_COPYFLAGS structure that specifies additional characteristics of the subresource update operation.