PFND3D10DDI_CREATEDEPTHSTENCILVIEW回调函数 (d3d10umddi.h)

CreateDepthStencilView 函数创建深度模具视图。

语法

PFND3D10DDI_CREATEDEPTHSTENCILVIEW Pfnd3d10ddiCreatedepthstencilview;

void Pfnd3d10ddiCreatedepthstencilview(
  D3D10DDI_HDEVICE unnamedParam1,
  const D3D10DDIARG_CREATEDEPTHSTENCILVIEW *unnamedParam2,
  D3D10DDI_HDEPTHSTENCILVIEW unnamedParam3,
  D3D10DDI_HRTDEPTHSTENCILVIEW unnamedParam4
)
{...}

参数

unnamedParam1

hDevice [in]

显示设备的句柄(图形上下文)。

unnamedParam2

pCreateDepthStencilView [in]

指向 D3D10DDIARG_CREATEDEPTHSTENCILVIEW 结构的指针,该结构描述用户模式显示驱动程序用于创建深度模具视图的参数。

unnamedParam3

hDepthStencilView [in]

用于深度模具视图的驱动程序专用数据的句柄。

unnamedParam4

hRTDepthStencilView [in]

驱动程序应在调用 Direct3D 运行时时使用深度模具视图的句柄。

返回值

没有

言论

驱动程序可以使用 pfnSetErrorCb 回调函数来设置错误代码。

驱动程序可能内存不足。 因此,驱动程序可以在调用 pfnSetErrorCb 函数时传递E_OUTOFMEMORY或D3DDDIERR_DEVICEREMOVED。 Direct3D 运行时将确定任何其他错误都至关重要。 如果驱动程序通过任何错误(包括D3DDDIERR_DEVICEREMOVED),Direct3D 运行时将确定句柄无效;因此,运行时不会调用 DestroyDepthStencilView 函数来销毁 hDepthStencilView 参数指定的句柄。

要求

要求 价值
最低支持的客户端 在 Windows Vista 和更高版本的 Windows作系统中可用。
目标平台 桌面
标头 d3d10umddi.h (包括 D3d10umddi.h)

另请参阅

CalcPrivateDepthStencilViewSize

D3D10DDIARG_CREATEDEPTHSTENCILVIEW

D3D10DDI_DEVICEFUNCS

DestroyDepthStencilView

pfnSetErrorCb