pfnCreateSynchronizationObject2Cb routine
Creates a GPU synchronization object that a device context can signal and wait for. Used by WDDM 1.2 and later user-mode display drivers.
Syntax
PFND3DDDI_CREATESYNCHRONIZATIONOBJECT2CB pfnCreateSynchronizationObject2Cb;
_Check_return_ HRESULT APIENTRY CALLBACK* pfnCreateSynchronizationObject2Cb(
_In_ HANDLE hDevice,
_Inout_ D3DDDICB_WAITFORSYNCHRONIZATIONOBJECT2 *pData
)
{ ... }
Parameters
- hDevice [in]
-
A handle to the display device (that is, the graphics context) that will own the synchronization object that pfnCreateSynchronizationObject2Cb creates.
- pData [in, out]
-
A pointer to a D3DDDICB_CREATESYNCHRONIZATIONOBJECT2 structure that describes the synchronization object to create.
Return value
Returns one of the following values:
| Return code | Description |
|---|---|
|
The synchronization object was successfully created. |
|
The function could not allocate memory that was required for it to complete. |
|
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:
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Header |
|
See also
- D3DDDICB_CREATESYNCHRONIZATIONOBJECT2
- D3DDDI_DEVICECALLBACKS
- pfnDestroySynchronizationObjectCb
- pfnSignalSynchronizationObject2Cb
- pfnWaitForSynchronizationObject2Cb
Send comments about this topic to Microsoft
Build date: 11/29/2012
