D3DDDIARG_DISCARD structure (d3dumddi.h)

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

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header d3dumddi.h (include D3dumddi.h)

See also

Discard

RECT