IPixD3DState 介面

代表可在命令清單上設定的 D3D12 狀態。

可直接在命令清單上設定的狀態會直接在此介面上公開,而可針對每個程式、管線狀態物件或狀態物件設定的狀態,會透過 IPixD3DState::GetProgramState 所傳回的 IPixProgramState 公開。

繼承

IPixD3DState 繼承自 IUnknown。

介面識別碼

{4D0E115E-DB54-472D-A051-2A1B33B4F915}

方法

介面會 IPixD3DState 宣告這些方法。

方法 描述
GetProgramState 取得 GPU 程式/管線狀態。
HasGraphicsRootSignature 透過 ID3D12GraphicsCommandList::SetGraphicsRootSignature 檢查圖形根簽章目前是否繫結在命令清單上。
GetGraphicsRootSignature 透過 ID3D12GraphicsCommandList::SetGraphicsRootSignature,取得目前繫結在命令清單上的圖形根簽章。
HasComputeRootSignature 透過 ID3D12GraphicsCommandList::SetComputeRootSignature 檢查計算根簽章目前是否系結在命令清單上。
GetComputeRootSignature 透過 ID3D12GraphicsCommandList::SetComputeRootSignature 取得目前繫結在命令清單上的計算根簽章。
GetGraphicsRootParameterCount 取得圖形根簽章上繫結的根參數數目。
HasGraphicsRootParameter 檢查是否已設定圖形根簽章上指定索引的根參數。
GetGraphicsRootParameterType 取得圖形根簽章上指定索引的根參數類型。
HasGraphicsRoot32BitConstant 檢查是否已設定給定根參數索引中給定索引處的常數。
GetGraphicsRoot32BitConstants 透過 ID3D12GraphicsCommandList::SetGraphicsRoot32BitConstants 在圖形根簽章集的指定索引處取得根參數的常數。
GetGraphicsRootDescriptor 透過 ID3D12GraphicsCommandList::SetGraphicsRootConstantBufferView、SetGraphicsRootShaderResourceView 或 SetGraphicsRootUnorderedAccessView ,取得根參數在圖形根簽章集上指定索引的緩衝區位置。
GetGraphicsRootDescriptorTable 透過 ID3D12GraphicsCommandList::SetGraphicsRootDescriptorTable 在圖形根簽章集的指定索引處取得根描述元資料表的基本描述元位置。
GetComputeRootParameterCount 取得在計算根簽章上繫結的根參數數目。
HasComputeRoot參數 檢查是否已設定計算根簽章上指定索引的根參數。
GetComputeRootParameterType 取得計算根簽章上指定索引的根參數類型。
HasComputeRoot32BitConstant 檢查是否已設定給定根參數索引中給定索引處的常數。
GetComputeRoot32BitConstants 透過 ID3D12GraphicsCommandList::SetComputeRoot32BitConstants 在計算根簽章集的指定索引處取得根參數的常數。
GetComputeRootDescriptor 透過 ID3D12GraphicsCommandList::SetComputeRootConstantBufferView、SetComputeRootShaderResourceView 或 SetComputeRootUnorderedAccessView ,在計算根簽章集的指定索引處取得根參數的緩衝區位置。
GetComputeRootDescriptorTable 透過 ID3D12GraphicsCommandList::SetComputeRootDescriptorTable 在計算根簽章集的指定索引處取得根描述元資料表的基本描述元位置。
GetDescriptorHeaps 透過 ID3D12GraphicsCommandList::SetDescriptorHeaps 取得目前繫結在命令清單上的描述元堆積。
HasPrimitiveTopology 檢查是否已透過 ID3D12GraphicsCommandList::IASetPrimitiveTopology 在命令清單上設定基本拓撲。
GetPrimitiveTopology 透過 ID3D12GraphicsCommandList::IASetPrimitiveTopology 取得命令清單上目前設定的基本拓撲。
HasIndexBuffer 透過 ID3D12GraphicsCommandList::IASetIndexBuffer 檢查索引緩衝區目前是否繫結在命令清單上。
GetIndexBuffer 透過 ID3D12GraphicsCommandList::IASetIndexBuffer 取得目前繫結在命令清單上的索引緩衝區。
HasIndexBufferStripCutValue 檢查是否已透過 IASetIndexBufferStripCutValue 設定命令清單索引緩衝區條帶剪除值覆寫。
GetIndexBufferStripCutValue 透過 ID3D12GraphicsCommandList9::IASetIndexBufferStripCutValue 取得命令清單索引緩衝區條帶剪除值覆寫設定。
GetVertexBuffers 透過 ID3D12GraphicsCommandList::IASetVertexBuffers 取得目前繫結在命令清單上的頂點緩衝區。
GetViewportCount 透過 ID3D12GraphicsCommandList::RSSetViewports 取得命令清單上目前設定的檢視區數目。
GetViewports 透過 ID3D12GraphicsCommandList::RSSetViewports 取得目前在命令清單上設定的檢視區。
GetScissorRectCount 透過 ID3D12GraphicsCommandList::RSSetScissorRects 取得命令清單上目前設定的剪刀矩形數目。
GetScissorRects 透過 ID3D12GraphicsCommandList::RSSetScissorRects 取得命令清單上目前設定的剪刀式矩形。
HasShadingRate 是否已透過 ID3D12GraphicsCommandList5::RSSetShadingRate 在命令清單上設定網底速率。
GetShadingRate 透過 ID3D12GraphicsCommandList5::RSSetShadingRate 取得目前在命令清單上設定的基本著色速率。
GetShadingRateCombinerCount 透過 ID3D12GraphicsCommandList5::RSSetShadingRate 取得目前設定在命令清單上的著色速率組合器數目。
GetShadingRateCombiners 透過 ID3D12GraphicsCommandList5::RSSetShadingRate 取得目前在命令清單上設定的著色速率組合器。
HasShadingRateImage 透過 ID3D12GraphicsCommandList5::RSSetShadingRateImage 檢查著色速率影像目前是否繫結在命令清單上。
GetShadingRateImage 透過 ID3D12GraphicsCommandList5::RSSetShadingRateImage 取得目前繫結在命令清單上的著色率影像。
HasDepthBias 檢查是否已透過 ID3D12GraphicsCommandList9::RSSetDepthBias 設定深度偏差。
GetDepthBias 透過 ID3D12GraphicsCommandList9::RSSetDepthBias 取得命令清單深度偏差覆寫設定。
GetNumSamplesPerPixel 透過 ID3D12GraphicsCommandList1::SetSamplePositions 取得命令清單上設定的 numSamplesPerPixel 值。
GetNumPixels 透過 ID3D12GraphicsCommandList1::SetSamplePositions 取得命令清單上設定的 numPixels 值。
GetSamplePositions 透過 ID3D12GraphicsCommandList1::SetSamplePositions 取得目前設定在命令清單上的範例位置。
HasBlendFactor 是否已透過 ID3D12GraphicsCommandList::OMSetBlendFactor 在命令清單上設定混合因數。
GetBlendFactor 透過 ID3D12GraphicsCommandList::OMSetBlendFactor 取得目前在命令清單上設定的混合因數。
GetRenderTargets 透過 ID3D12GraphicsCommandList::OMSetRenderTargets 取得目前繫結在命令清單上的轉譯目標。
HasDepthStencil 透過 ID3D12GraphicsCommandList::OMSetRenderTargets 檢查深度樣板檢視目前是否系結在命令清單上。
GetDepthStencil 透過 ID3D12GraphicsCommandList::OMSetRenderTargets 取得目前繫結在命令清單上的深度樣板檢視。
HasFrontStencilRef 檢查是否已透過 ID3D12GraphicsCommandList::OMSetStencilRef 或 ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef 在命令清單上設定前面樣板參考值。
GetFrontStencilRef 透過 ID3D12GraphicsCommandList::OMSetStencilRef 或 ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef,取得目前設定在命令清單上的前面樣板參考值。
HasBackStencilRef 檢查是否已透過 ID3D12GraphicsCommandList::OMSetStencilRef 或 ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef 在命令清單上設定後面樣板參考值。
GetBackStencilRef 透過 ID3D12GraphicsCommandList::OMSetStencilRef 或 ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef,取得命令清單上目前設定的背面樣板參考值。
HasDepthBounds 是否已透過 ID3D12GraphicsCommandList1::OMSetDepthBounds 在命令清單上設定深度界限。
GetDepthBounds 透過 ID3D12GraphicsCommandList1::OMSetDepthBounds 取得目前在命令清單上設定的深度界限。
GetStreamOutputBuffers 透過 ID3D12GraphicsCommandList::SOSetTargets 取得串流輸出緩衝區檢視。
HasViewInstanceMask 檢查是否已透過 ID3D12GraphicsCommandList1::SetViewInstanceMask 設定檢視實例遮罩。
GetViewInstanceMask 透過 ID3D12GraphicsCommandList1::SetViewInstanceMask 取得檢視執行個體遮罩集。
HasActivePredication 檢查是否透過 ID3D12GraphicsCommandList::SetPredication 啟用述詞。
GetPredication 透過 ID3D12GraphicsCommandList::SetPredication 取得命令清單上目前設定的述詞緩衝區、緩衝區位移和作業。
ResolveGraphicsRootDescriptorToResource 協助程式函數。
ResolveComputeRootDescriptorToResource 將指定索引的計算根描述元解析為對應的 D3D12 資源。
ResolveGraphicsRootDescriptorRangeToViews 將圖形根描述元資料表中指定根參數索引中的描述元範圍解析為 D3D12 資源檢視的對應範圍。
ResolveComputeRootDescriptorRangeToViews 將指定根參數索引中計算根描述元資料表中的描述元範圍解析為 D3D12 資源檢視的對應範圍。

需求

標頭: PixApiD3DStateInterfaces.h