IPixD3DState::GetRenderTargets 方法

透過 ID3D12GraphicsCommandList::OMSetRenderTargets 取得目前繫結在命令清單上的轉譯目標。

語法

HRESULT GetRenderTargets(
    REFIID riid,
    void ** ppRenderTargets);

參數

riid [在]

要返回之集合的介面 IID。 預期: IPixCollection<IPixRenderTargetView>。

ppRenderTargets [出]

傳回介面的指標。

傳回

如果不支援,則會傳回失敗 (例如GPU 驅動程式不支援在 dxdmp 檔案案例) 中錄製資訊。

註解

集合項目依插槽順序排列。 項目數目上限為 D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT。

另請參閱