Expand Minimize

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

D3dumddi.h (include D3dumddi.h)

See also

Discard
RECT

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft