ID3D11DeviceContext4::Wait method (d3d11_3.h)

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

Requirement Value
Target Platform Windows
Header d3d11_3.h
Library D3D11.lib

See also

ID3D11DeviceContext4

Multi-engine synchronization