PFND3D11DDI_CREATEDEPTHSTENCILVIEW回调函数 (d3d10umddi.h)

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

语法

PFND3D11DDI_CREATEDEPTHSTENCILVIEW Pfnd3d11ddiCreatedepthstencilview;

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

参数

unnamedParam1

hDevice [in]

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

unnamedParam2

pCreateDepthStencilView [in]

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

unnamedParam3

hDepthStencilView [in]

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

unnamedParam4

hRTDepthStencilView [in]

驱动程序在回调到 Direct3D 运行时时应使用的着色器资源视图的句柄。

返回值

备注

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

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

要求

要求
最低受支持的客户端 从 Windows 7 操作系统开始支持 CreateDepthStencilView (D3D11) 。
目标平台 桌面
标头 d3d10umddi.h (包括 D3d10umddi.h)

另请参阅

CalcPrivateDepthStencilViewSize (D3D11)

D3D11DDIARG_CREATEDEPTHSTENCILVIEW

D3D11DDI_DEVICEFUNCS

DestroyDepthStencilView

pfnSetErrorCb