PFND3D11_1DDI_DISCARD callback function (d3d10umddi.h)

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 Pfnd3d111DdiDiscard;

void Pfnd3d111DdiDiscard(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D11DDI_HANDLETYPE HandleType,
  VOID *hResourceOrView,
  const D3D10_DDI_RECT *unnamedParam4,
  UINT NumRects
)
{...}

Parameters

unnamedParam1

hDevice [in]

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.

unnamedParam4

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

None

Remarks

The D3D10_DDI_RECT structure is defined as a RECT structure.

typedef RECT D3D10_DDI_RECT;

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See also

D3D11DDI_HANDLETYPE

D3D11_1DDI_DEVICEFUNCS