Bewerken

Delen via


D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT2 structure (d3dumddi.h)

Describes the parameters that are required to set up the wait in a call to the pfnWaitForSynchronizationObject2Cb function.

Syntax

typedef struct _D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT2 {
  [in] HANDLE        hContext;
  [in] UINT          ObjectCount;
       D3DKMT_HANDLE ObjectHandleArray[D3DDDI_MAX_OBJECT_WAITED_ON];
  [in] UINT64        FenceValue;
} D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT2;

Members

[in] hContext

A handle to a Direct3D context that waits for the synchronization objects in the array that the ObjectHandleArray member specifies to occur.

[in] ObjectCount

The number of synchronization objects in the ObjectHandleArray array.

ObjectHandleArray must be set to 1 if the GPU synchronization object is of type D3DDDI_FENCE—namely, the Type member of the D3DDDI_SYNCHRONIZATIONOBJECTINFO2 structure has a value of D3DDDI_FENCE.

[in] ObjectHandleArray[D3DDDI_MAX_OBJECT_WAITED_ON]

An array of handles to the GPU synchronization objects that are to be signaled. The D3DDDI_MAX_OBJECT_WAITED_ON constant, which is defined as 32, indicates the maximum number of synchronization objects that the context can wait for.

All synchronization objects must be created on a logical adapter that has its context specified by the hContext member.

[in] FenceValue

A 64-bit value that specifies the current fence value of the GPU synchronization object that is to be waited on.

This value applies only if the GPU synchronization object is of type D3DDDI_FENCE—namely, the Type member of the D3DDDI_SYNCHRONIZATIONOBJECTINFO2 structure has a value of D3DDDI_FENCE.

Remarks

Synchronization objects of type D3DDDI_CPU_NOTIFICATION cannot be used to wait on calls to pfnWaitForSynchronizationObject2Cb.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDI_SYNCHRONIZATIONOBJECTINFO2

pfnWaitForSynchronizationObject2Cb