透過 ID3D12GraphicsCommandList::OMSetStencilRef 或 ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef,取得命令清單上目前設定的背面樣板參考值。
語法
HRESULT GetBackStencilRef(
UINT * pRef);
參數
pRef [出]
沒有提供描述。
傳回
如果尚未呼叫或不支援 OMSetStencilRef/OMSetFrontAndBackStencilRef,則傳回失敗。
註解
如果裝置不支援獨立的正面和背面樣板參考,且已呼叫 OMSetStencilRef,則此函式會傳回與 GetFrontStencilRef 相同的值。