ID3D11DeviceContext3::Flush1 method

Sends queued-up commands in the command buffer to the graphics processing unit (GPU), with a specified context type and an optional event handle to create an event query.

Syntax

void Flush1(
  D3D11_CONTEXT_TYPE ContextType,
  HANDLE             hEvent
);

Parameters

ContextType

Type: D3D11_CONTEXT_TYPE

A D3D11_CONTEXT_TYPE that specifies the context in which a query occurs, such as a 3D command queue, 3D compute queue, 3D copy queue, video, or image.

hEvent

Type: HANDLE

An optional event handle. When specified, this method creates an event query.

Flush1 operates asynchronously, therefore it can return either before or after the GPU finishes executing the queued graphics commands, which will eventually complete. To create an event query, you can call ID3D11Device::CreateQuery with the value D3D11_QUERY_EVENT value. To determine when the GPU is finished processing the graphics commands, you can then use that event query in a call to ID3D11DeviceContext::GetData.

Return value

None

Remarks

Flush1 has parameters. For more information, see ID3D11DeviceContext::Flush, which doesn't have parameters.

Requirements

   
Target Platform Windows
Header d3d11_3.h
Library D3D11.lib

See also

ID3D11DeviceContext3

ID3D11DeviceContext::Flush