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.

ID3D11DeviceContext4::Wait method

Waits until the specified fence reaches or exceeds the specified value before future work can begin.

This member function is equivalent to the Direct3D 12 ID3D12CommandQueue::Wait member function, and applies between Direct3D 11 and Direct3D 12 in interop scenarios.

Note  This method only applies to immediate-mode contexts.
 

Syntax


HRESULT Wait(
   ID3D11Fence *pFence,
   UINT64      Value
);

Parameters

pFence

Type: ID3D11Fence*

A pointer to the ID3D11Fence object.

Value

Type: UINT64

The value that the device context is waiting for the fence to reach or exceed. So when ID3D11Fence::GetCompletedValue is greater than or equal to Value, the wait is terminated.

Return value

Type: HRESULT

This method returns one of the Direct3D 11 Return Codes.

Requirements

Header

D3d11_3.h

Library

D3D11.lib

See also

ID3D11DeviceContext4
Synchronization and Multi-Engine (Direct3D 12)

 

 

Show:
© 2017 Microsoft