D3D11DDI_CORELAYER_DEVICECALLBACKS structure (d3d10umddi.h)
The D3D11DDI_CORELAYER_DEVICECALLBACKS structure contains Microsoft Direct3D 11 runtime callback functions that the user-mode display driver can use.
Syntax
typedef struct D3D11DDI_CORELAYER_DEVICECALLBACKS {
PFND3D10DDI_SETERROR_CB pfnSetErrorCb;
PFND3D10DDI_STATE_VS_CONSTBUF_CB pfnStateVsConstBufCb;
PFND3D10DDI_STATE_PS_SRV_CB pfnStatePsSrvCb;
PFND3D10DDI_STATE_PS_SHADER_CB pfnStatePsShaderCb;
PFND3D10DDI_STATE_PS_SAMPLER_CB pfnStatePsSamplerCb;
PFND3D10DDI_STATE_VS_SHADER_CB pfnStateVsShaderCb;
PFND3D10DDI_STATE_PS_CONSTBUF_CB pfnStatePsConstBufCb;
PFND3D10DDI_STATE_IA_INPUTLAYOUT_CB pfnStateIaInputLayoutCb;
PFND3D10DDI_STATE_IA_VERTEXBUF_CB pfnStateIaVertexBufCb;
PFND3D10DDI_STATE_IA_INDEXBUF_CB pfnStateIaIndexBufCb;
PFND3D10DDI_STATE_GS_CONSTBUF_CB pfnStateGsConstBufCb;
PFND3D10DDI_STATE_GS_SHADER_CB pfnStateGsShaderCb;
PFND3D10DDI_STATE_IA_PRIMITIVE_TOPOLOGY_CB pfnStateIaPrimitiveTopologyCb;
PFND3D10DDI_STATE_VS_SRV_CB pfnStateVsSrvCb;
PFND3D10DDI_STATE_VS_SAMPLER_CB pfnStateVsSamplerCb;
PFND3D10DDI_STATE_GS_SRV_CB pfnStateGsSrvCb;
PFND3D10DDI_STATE_GS_SAMPLER_CB pfnStateGsSamplerCb;
PFND3D10DDI_STATE_OM_RENDERTARGETS_CB pfnStateOmRenderTargetsCb;
PFND3D10DDI_STATE_OM_BLENDSTATE_CB pfnStateOmBlendStateCb;
PFND3D10DDI_STATE_OM_DEPTHSTATE_CB pfnStateOmDepthStateCb;
PFND3D10DDI_STATE_RS_RASTSTATE_CB pfnStateRsRastStateCb;
PFND3D10DDI_STATE_SO_TARGETS_CB pfnStateSoTargetsCb;
PFND3D10DDI_STATE_RS_VIEWPORTS_CB pfnStateRsViewportsCb;
PFND3D10DDI_STATE_RS_SCISSOR_CB pfnStateRsScissorCb;
PFND3D10DDI_DISABLE_DEFERRED_STAGING_RESOURCE_DESTRUCTION_CB pfnDisableDeferredStagingResourceDestruction;
PFND3D10DDI_STATE_TEXTFILTERSIZE_CB pfnStateTextFilterSizeCb;
PFND3D11DDI_STATE_HS_SRV_CB pfnStateHsSrvCb;
PFND3D11DDI_STATE_HS_SHADER_CB pfnStateHsShaderCb;
PFND3D11DDI_STATE_HS_SAMPLER_CB pfnStateHsSamplerCb;
PFND3D11DDI_STATE_HS_CONSTBUF_CB pfnStateHsConstBufCb;
PFND3D11DDI_STATE_DS_SRV_CB pfnStateDsSrvCb;
PFND3D11DDI_STATE_DS_SHADER_CB pfnStateDsShaderCb;
PFND3D11DDI_STATE_DS_SAMPLER_CB pfnStateDsSamplerCb;
PFND3D11DDI_STATE_DS_CONSTBUF_CB pfnStateDsConstBufCb;
PFND3D11DDI_PERFORM_AMORTIZED_PROCESSING_CB pfnPerformAmortizedProcessingCb;
PFND3D11DDI_STATE_CS_SRV_CB pfnStateCsSrvCb;
PFND3D11DDI_STATE_CS_UAV_CB pfnStateCsUavCb;
PFND3D11DDI_STATE_CS_SHADER_CB pfnStateCsShaderCb;
PFND3D11DDI_STATE_CS_SAMPLER_CB pfnStateCsSamplerCb;
PFND3D11DDI_STATE_CS_CONSTBUF_CB pfnStateCsConstBufCb;
} D3D11DDI_CORELAYER_DEVICECALLBACKS;
Members
pfnSetErrorCb
A pointer to the pfnSetErrorCb function, which the driver uses to send errors back to the Direct3D 11 runtime because many of the driver's functions (in D3D11DDI_DEVICEFUNCS) return void.
pfnStateVsConstBufCb
A pointer to the pfnStateVsConstBufCb function.
pfnStatePsSrvCb
A pointer to the pfnStatePsSrvCb function.
pfnStatePsShaderCb
A pointer to the pfnStatePsShaderCb function.
pfnStatePsSamplerCb
A pointer to the pfnStatePsSamplerCb function.
pfnStateVsShaderCb
A pointer to the pfnStateVsShaderCb function.
pfnStatePsConstBufCb
A pointer to the pfnStatePsConstBufCb function.
pfnStateIaInputLayoutCb
A pointer to the pfnStateIaInputLayoutCb function.
pfnStateIaVertexBufCb
A pointer to the pfnStateIaVertexBufCb function.
pfnStateIaIndexBufCb
A pointer to the pfnStateIaIndexBufCb function.
pfnStateGsConstBufCb
A pointer to the pfnStateGsConstBufCb function.
pfnStateGsShaderCb
A pointer to the pfnStateGsShaderCb function.
pfnStateIaPrimitiveTopologyCb
A pointer to the pfnStateIaPrimitiveTopologyCb function.
pfnStateVsSrvCb
A pointer to the pfnStateVsSrvCb function.
pfnStateVsSamplerCb
A pointer to the pfnStateVsSamplerCb function.
pfnStateGsSrvCb
A pointer to the pfnStateGsSrvCb function.
pfnStateGsSamplerCb
A pointer to the pfnStateGsSamplerCb function.
pfnStateOmRenderTargetsCb
A pointer to the pfnStateOmRenderTargetsCb function.
pfnStateOmBlendStateCb
A pointer to the pfnStateOmBlendStateCb function.
pfnStateOmDepthStateCb
A pointer to the pfnStateOmDepthStateCb function.
pfnStateRsRastStateCb
A pointer to the pfnStateRsRastStateCb function.
pfnStateSoTargetsCb
A pointer to the pfnStateSoTargetsCb function.
pfnStateRsViewportsCb
A pointer to the pfnStateRsViewportsCb function.
pfnStateRsScissorCb
A pointer to the pfnStateRsScissorCb function.
pfnDisableDeferredStagingResourceDestruction
A pointer to the pfnDisableDeferredStagingResourceDestruction function. By default, the Direct3D 10 runtime defers the destruction of staging resources until the driver indicates that the hardware no longer requires them. The driver can call this function to disable this feature if the driver does not require the deferred destruction functionality.
pfnStateTextFilterSizeCb
A pointer to the pfnStateTextFilterSizeCb function.
The following functions are supported beginning with Windows 7:
pfnStateHsSrvCb
A pointer to the pfnStateHsSrvCb function.
pfnStateHsShaderCb
A pointer to the pfnStateHsShaderCb function.
pfnStateHsSamplerCb
A pointer to the pfnStateHsSamplerCb function.
pfnStateHsConstBufCb
A pointer to the pfnStateHsConstBufCb function.
pfnStateDsSrvCb
A pointer to the pfnStateDsSrvCb function.
pfnStateDsShaderCb
A pointer to the pfnStateDsShaderCb function.
pfnStateDsSamplerCb
A pointer to the pfnStateDsSamplerCb function.
pfnStateDsConstBufCb
A pointer to the pfnStateDsConstBufCb function.
pfnPerformAmortizedProcessingCb
A pointer to the pfnPerformAmortizedProcessingCb function.
pfnStateCsSrvCb
A pointer to the pfnStateCsSrvCb function.
pfnStateCsUavCb
A pointer to the pfnStateCsUavCb function.
pfnStateCsShaderCb
A pointer to the pfnStateCsShaderCb function.
pfnStateCsSamplerCb
A pointer to the pfnStateCsSamplerCb function.
pfnStateCsConstBufCb
A pointer to the pfnStateCsConstBufCb function.
Remarks
Because the Direct3D 11 runtime might change the function pointers dynamically, the user-mode display driver cannot cache the function pointers directly.
The driver uses the functions with "State" in their name to retrieve the current state of the pipeline.
Requirements
Requirement | Value |
---|---|
Minimum supported client | D3D11DDI_CORELAYER_DEVICECALLBACKS is supported beginning with the Windows 7 operating system. |
Header | d3d10umddi.h (include D3d10umddi.h) |