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