IPixD3DState::GetDepthStencil 方法

透過 ID3D12GraphicsCommandList::OMSetRenderTargets 取得目前繫結在命令清單上的深度樣板檢視。

語法

HRESULT GetDepthStencil(
    REFIID riid,
    void ** ppDepthStencil);

參數

riid [在]

要返回深度樣板檢視的介面 IID。 預期: IPixDepthStencilView。

ppDepthStencil [出]

傳回介面的指標。

傳回

如果未繫結任何深度樣板檢視,或不支援深度樣板檢視,則傳回失敗 (例如GPU 驅動程式不支援在 dxdmp 檔案案例) 中錄製資訊。

另請參閱