PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062 callback function (d3d12umddi.h)
PfnQueueProcessingWorkCb is provided by the runtime and called by user mode drivers to register and queue work items.
The runtime is responsible for managing threads, either directly, or through a Thread Pool. The UMD will not have any control over which thread the work is processed on. Work will be processed in the order it was received. PfnQueueProcessingWorkCb may be called from multiple threads concurrently and is thread safe (runtime will serialize).
Syntax
PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062 Pfnd3d12ddiQueueprocessingworkCb0062;
HRESULT Pfnd3d12ddiQueueprocessingworkCb0062(
[in] D3D12DDI_HRTDEVICE hRTDevice,
[in] PFND3D12DDI_UMD_CALLBACK_METHOD pfnCallback,
[in, opt] PFND3D12DDI_UMD_CALLBACK_METHOD pfnCancel,
[in, opt] void *pContext
)
{...}
Parameters
[in] hRTDevice
The handle of the device for the driver to use when it calls back into the runtime.
[in] pfnCallback
Pointer to a PFND3D12DDI_UMD_CALLBACK_METHOD callback that is called from the thread where work is being performed.
[in, opt] pfnCancel
Pointer to a PFND3D12DDI_UMD_CALLBACK_METHOD callback that is called if the device is destroyed before pfnCallback has executed.
[in, opt] pContext
Pointer to a device context that is passed to pfnCallback or pfnCancel.
Return value
Returns HRESULT.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1903 |
Header | d3d12umddi.h |