// d3dumddi.h
typedef struct _D3DDDIARG_DISCARD {
HANDLE hResource;
UINT FirstSubResource;
UINT NumSubResources;
const RECT *pRects;
UINT NumRects;
} D3DDDIARG_DISCARD;
View the official Windows Driver Kit DDI referenceNo description available.
Defines video display memory that can be discarded because the contents are no longer needed.
hResourceA handle to the resource in which subresources are to be discarded.
FirstSubResourceThe index of the first subresource to be discarded.
NumSubResourcesThe number of subresources to be discarded.
pRectsAn array of RECT structures for the rectangles in the resource view to discard. If NULL, the Discard function discards the entire surface.
NumRectsThe number of rectangles in the array that the pRects member specifies.