PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062 - NtDoc

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

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
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d12umddi-pfnd3d12ddi_queueprocessingwork_cb_0062)

PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062 callback function

Description

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).

Parameters

hRTDevice [in]

The handle of the device for the driver to use when it calls back into the runtime.

pfnCallback [in]

Pointer to a PFND3D12DDI_UMD_CALLBACK_METHOD callback that is called from the thread where work is being performed.

pfnCancel [in, opt]

Pointer to a PFND3D12DDI_UMD_CALLBACK_METHOD callback that is called if the device is destroyed before pfnCallback has executed.

pContext [in, opt]

Pointer to a device context that is passed to pfnCallback or pfnCancel.

Return value

Returns HRESULT.

Prototype

//Declaration

PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062 Pfnd3d12ddiQueueprocessingworkCb0062;

// Definition

HRESULT Pfnd3d12ddiQueueprocessingworkCb0062
(
    D3D12DDI_HRTDEVICE hRTDevice
    PFND3D12DDI_UMD_CALLBACK_METHOD pfnCallback
    PFND3D12DDI_UMD_CALLBACK_METHOD pfnCancel
     void *pContext
)
{...}

Remarks

See also