Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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,
  [in, optional] 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 [in, optional]

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

This method does not return a value.

Remarks

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

Requirements

Header

D3d11_3.h

Library

D3D11.lib

See also

ID3D11DeviceContext3
ID3D11DeviceContext::Flush

 

 

Show:
© 2017 Microsoft