PFND3DDDI_WAITFORSYNCHRONIZATIONOBJECTCB callback function (d3dumddi.h)

The pfnWaitForSynchronizationObjectCb function inserts a wait for the specified synchronization objects in the specified context DMA stream.

Syntax

PFND3DDDI_WAITFORSYNCHRONIZATIONOBJECTCB Pfnd3dddiWaitforsynchronizationobjectcb;

HRESULT Pfnd3dddiWaitforsynchronizationobjectcb(
  HANDLE hDevice,
  const D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT *unnamedParam2
)
{...}

Parameters

hDevice

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

unnamedParam2

pData [in]

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

Return value

pfnWaitForSynchronizationObjectCb 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

Direct3D Version 11 Note:  For more information about how the driver calls pfnWaitForSynchronizationObjectCb, see Changes from Direct3D 10.

For a code example of how to use the pfnWaitForSynchronizationObjectCb function, see pfnSignalSynchronizationObjectCb.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT