Bewerken

Delen via


PFND3DDDI_DISCARD callback function (d3dumddi.h)

Discards (evicts) a set of subresources from video display memory. Implemented by Windows Display Driver Model (WDDM) 1.2 and later user-mode display drivers.

Syntax

PFND3DDDI_DISCARD Pfnd3dddiDiscard;

HRESULT Pfnd3dddiDiscard(
  HANDLE hDevice,
  const D3DDDIARG_DISCARD *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_DISCARD structure that defines the set of subresources that is to be discarded.

Return value

Returns S_OK if successful, or an appropriate error result if the operation is not successful.

Requirements

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

See also

D3DDDIARG_DISCARD

D3DDDI_DEVICEFUNCS