D3D10DDI_CORELAYER_DEVICECALLBACKS structure (d3d10umddi.h)

The D3D10DDI_CORELAYER_DEVICECALLBACKS structure contains Microsoft Direct3D 10 runtime callback functions that the user-mode display driver can use.

Syntax

typedef struct D3D10DDI_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;
} D3D10DDI_CORELAYER_DEVICECALLBACKS;

Members

pfnSetErrorCb

A pointer to the pfnSetErrorCb function, which the driver uses to send errors back to the Direct3D 10 runtime because many of the driver's functions (in D3D10DDI_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.

Remarks

Because the Direct3D 10 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 Available in Windows Vista and later versions of the Windows operating systems.
Header d3d10umddi.h (include D3d10umddi.h)

See also

CreateDevice(D3D10)

D3D10DDIARG_CREATEDEVICE

D3D10DDI_DEVICEFUNCS