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