// d3dumddi.h
PFND3DDDI_FLUSH Pfnd3dddiFlush;
HRESULT Pfnd3dddiFlush(
HANDLE hDevice
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The Flush function submits outstanding hardware commands that are in the hardware command buffer to the display miniport driver.
hDeviceA handle to the display device (graphics context).
Flush returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | Hardware commands were successfully flushed. |
| E_OUTOFMEMORY | Flush could not allocate the required memory for it to complete. |
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.