Skip to content

Latest commit

 

History

History
96 lines (71 loc) · 2.62 KB

nc-d3d12umddi-pfnd3d12ddi_queueprocessingwork_cb_0062.md

File metadata and controls

96 lines (71 loc) · 2.62 KB
UID title description tech.root ms.date keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos ms.custom f1_keywords topic_type api_type api_location api_name dev_langs
NC:d3d12umddi.PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062
PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062
PfnQueueProcessingWorkCb is provided by the runtime and called by user mode drivers to register and queue work items.
display
04/04/2019
PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062 callback function
d3d12umddi.h
Windows 10, version 1903
Windows
D3D12 Release 6, Build rev 2., 19H1
PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062
d3d12umddi/PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062
apiref
UserDefined
d3d12umddi.h
PFND3D12DDI_QUEUEPROCESSINGWORK_CB_0062
c++

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

-param hRTDevice [in]

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

-param pfnCallback [in]

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

-param pfnCancel [in, opt]

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

-param pContext [in, opt]

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

-returns

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