IPixD3DState::GetGraphicsRootDescriptor 方法

透過 ID3D12GraphicsCommandList::SetGraphicsRootConstantBufferView、SetGraphicsRootShaderResourceView 或 SetGraphicsRootUnorderedAccessView ,取得根參數在圖形根簽章集上指定索引的緩衝區位置。

語法

HRESULT GetGraphicsRootDescriptor(
    UINT32 rootParameterIndex,
    D3D12_GPU_VIRTUAL_ADDRESS * pGpuVa);

參數

rootParameterIndex

沒有提供描述。

pGpuVa

沒有提供描述。

傳回

如果索引超出範圍、未繫結任何圖形根簽章,或不支援 (傳回失敗,例如GPU 驅動程式不支援在 dxdmp 檔案案例) 中錄製資訊。

另請參閱