PFND3DDDI_WAITFORSYNCHRONIZATIONOBJECT2CB - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dumddi.h

PFND3DDDI_WAITFORSYNCHRONIZATIONOBJECT2CB Pfnd3dddiWaitforsynchronizationobject2cb;

HRESULT Pfnd3dddiWaitforsynchronizationobject2cb(
  HANDLE hDevice,
  const D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT2 *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dumddi-pfnd3dddi_waitforsynchronizationobject2cb)

PFND3DDDI_WAITFORSYNCHRONIZATIONOBJECT2CB callback function

Description

Inserts a wait command for the specified synchronization objects in the specified context command stream. Used by Windows Display Driver Model (WDDM) 1.2 and later user-mode display drivers.

Parameters

hDevice

A handle to a display device (that is, the graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT2 structure that describes the synchronization objects and context DMA stream that are required to set up the wait.

Return value

Returns one of the following values:

Return code Description
S_OK The wait was successfully set up.
E_INVALIDARG Parameters were validated and determined to be incorrect.

This function might also return other HRESULT values.

Remarks

The pfnCreateSynchronizationObject2Cb function returns a kernel-mode handle to the newly created synchronization object in the hSyncObject member of the D3DDDICB_CREATESYNCHRONIZATIONOBJECT2 structure that the pData parameter points to. The user-mode display driver passes this handle in calls to the following functions:

Do not call this function if the synchronization object is of type D3DDDI_CPU_NOTIFICATION—namely, the Type member of the D3DDDI_SYNCHRONIZATIONOBJECTINFO2 structure has a value of D3DDDI_CPU_NOTIFICATION.pfnDestroySynchronizationObjectCb

See also

D3DDDICB_CREATESYNCHRONIZATIONOBJECT2

D3DDDI_DEVICECALLBACKS

D3DDDI_SYNCHRONIZATIONOBJECTINFO2

pfnCreateSynchronizationObject2Cb

pfnDestroySynchronizationObjectCb

pfnSignalSynchronizationObject2Cb