_D3DDDIARG_DISCARD structure

Defines video display memory that can be discarded because the contents are no longer needed.

Syntax

typedef struct _D3DDDIARG_DISCARD {
  HANDLE     hResource;
  UINT       FirstSubResource;
  UINT       NumSubResources;
  const RECT *pRects;
  UINT       NumRects;
} D3DDDIARG_DISCARD;

Members

hResource

A handle to the resource in which subresources are to be discarded.

FirstSubResource

The index of the first subresource to be discarded.

NumSubResources

The number of subresources to be discarded.

pRects

An array of RECT structures for the rectangles in the resource view to discard. If NULL, the Discard function discards the entire surface.

NumRects

The number of rectangles in the array that the pRects member specifies.

Requirements

   
Windows version Windows 8 Windows 8
Header d3dumddi.h (include D3dumddi.h)

See Also

Discard

RECT