共用方式為


ID3D10EffectDepthStencilViewVariable::SetDepthStencil 方法 (d3d10effect.h)

設定深度樣板檢視資源。

語法

HRESULT SetDepthStencil(
  [in] ID3D10DepthStencilView *pResource
);

參數

[in] pResource

類型: ID3D10DepthStencilView*

深度樣板檢視介面的指標。 請參閱 ID3D10DepthStencilView 介面

傳回值

類型: HRESULT

傳回下列其中一個 Direct3D 10 傳回碼

規格需求

需求
目標平台 Windows
標頭 d3d10effect.h (include D3d10)

另請參閱

ID3D10EffectDepthStencilViewVariable 介面