PFND3D11_1DDI_DISCARD - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

PFND3D11_1DDI_DISCARD Pfnd3d111DdiDiscard;

VOID Pfnd3d111DdiDiscard(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D11DDI_HANDLETYPE HandleType,
  VOID *hResourceOrView,
  const D3D10_DDI_RECT *unnamedParam4,
  UINT NumRects
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d10umddi-pfnd3d11_1ddi_discard)

PFND3D11_1DDI_DISCARD callback function

Description

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

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.

Remarks

The D3D10_DDI_RECT structure is defined as a RECT structure.

typedef RECT D3D10_DDI_RECT;

See also

D3D11DDI_HANDLETYPE

D3D11_1DDI_DEVICEFUNCS