Blt
Expand Minimize

Flush routine

The Flush function submits outstanding hardware commands that are in the hardware command buffer to the display miniport driver.

Syntax


PFND3DDDI_FLUSH Flush;

__checkReturn HRESULT APIENTRY Flush(
  _In_  HANDLE hDevice
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

Return value

Flush returns one of the following values:

Return codeDescription
S_OK

Hardware commands were successfully flushed.

E_OUTOFMEMORY

Flush could not allocate the required memory for it to complete.

 

Remarks

The Microsoft Direct3D runtime can call the user-mode display driver's Flush function at any time to notify the user-mode display driver to submit any outstanding hardware commands that are in the hardware command buffer to the display miniport driver. However, a call to Flush should never cause the user-mode display driver to submit invalid commands to the display miniport driver.

To submit commands to the display miniport driver, the user-mode display driver's Flush function should typically call the runtime's pfnRenderCb function.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDI_DEVICEFUNCS
pfnRenderCb

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft