ID3D12CommandQueue::Wait method

Waits until the specified fence reaches or exceeds the specified value.

Syntax

HRESULT Wait(
  ID3D12Fence *pFence,
  UINT64      Value
);

Parameters

pFence

Type: ID3D12Fence*

A pointer to the ID3D12Fence object.

Value

Type: UINT64

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

Return Value

Type: HRESULT

This method returns one of the Direct3D 12 Return Codes.

Requirements

   
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See Also

ID3D12CommandQueue

Synchronization and Multi-Engine