透過 ID3D12GraphicsCommandList::SetComputeRootConstantBufferView、SetComputeRootShaderResourceView 或 SetComputeRootUnorderedAccessView ,在計算根簽章集的指定索引處取得根參數的緩衝區位置。
語法
HRESULT GetComputeRootDescriptor(
UINT32 rootParameterIndex,
D3D12_GPU_VIRTUAL_ADDRESS * pGpuVa);
參數
rootParameterIndex
沒有提供描述。
pGpuVa
沒有提供描述。
傳回
如果索引超出範圍、未繫結任何計算根簽章,或不支援 (,則傳回失敗,例如GPU 驅動程式不支援在 dxdmp 檔案案例) 中錄製資訊。