ID3D10EffectDepthStencilViewVariable::SetDepthStencil 方法 (d3d10effect.h)

设置深度模具视图资源。

语法

HRESULT SetDepthStencil(
  [in] ID3D10DepthStencilView *pResource
);

参数

[in] pResource

类型: ID3D10DepthStencilView*

指向深度模具视图接口的指针。 请参阅 ID3D10DepthStencilView 接口

返回值

类型: HRESULT

返回以下 Direct3D 10 返回代码之一。

要求

要求
目标平台 Windows
标头 d3d10effect.h (包括 D3d10)

另请参阅

ID3D10EffectDepthStencilViewVariable 接口