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 code | Description |
|---|---|
|
Hardware commands were successfully flushed. |
|
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 |
|
See also
Send comments about this topic to Microsoft
Build date: 2/23/2012