Expand Minimize

Discard(D3D11_1) routine

Discards (evicts) an allocation from video display memory. Implemented by Windows Display Driver Model (WDDM) 1.2 and later user-mode display drivers.

Syntax


PFND3D11_1DDI_DISCARD Discard(D3D11_1);

VOID APIENTRY* Discard(D3D11_1)(
  D3D10DDI_HDEVICE hDevice,
  D3D11DDI_HANDLETYPE HandleType,
  VOID *hResourceOrView,
  _In_opt_  const D3D10_DDI_RECT *pRects,
  UINT NumRects
)
{ ... }

Parameters

hDevice

A handle to the display device (graphics context).

HandleType

A value, of type D3D11DDI_HANDLETYPE, that identifies the context handle type.

hResourceOrView

A pointer to a handle to the resource or to the view that is to be discarded.

pRects [in, optional]

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

NumRects

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

Return value

This routine does not return a value.

Remarks

The D3D10_DDI_RECT structure is defined as a RECT structure.


typedef RECT D3D10_DDI_RECT;

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D11_1DDI_DEVICEFUNCS
D3D11DDI_HANDLETYPE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft