Blt
Expand Minimize

Discard routine

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

_Check_return_ HRESULT APIENTRY* Discard(
  _In_  HANDLE hDevice,
  _In_  const D3DDDIARG_DISCARD *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_DISCARD
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft