mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Add convenience query for Conservative Rasterization tier
This commit is contained in:
parent
59dd2d54cd
commit
c082e7f0a9
2 changed files with 9 additions and 1 deletions
|
@ -1138,7 +1138,7 @@ namespace dxvk {
|
|||
return E_INVALIDARG;
|
||||
|
||||
if (desc.ConservativeRaster != D3D11_CONSERVATIVE_RASTERIZATION_MODE_OFF
|
||||
&& !m_dxvkDevice->features().extConservativeRasterization)
|
||||
&& !m_deviceFeatures.GetConservativeRasterizationTier())
|
||||
return E_INVALIDARG;
|
||||
|
||||
if (!ppRasterizerState)
|
||||
|
|
|
@ -46,6 +46,14 @@ namespace dxvk {
|
|||
return m_d3d11Options2.TiledResourcesTier;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Queries conservative rasterization tier
|
||||
* \returns Conservative rasterization tier
|
||||
*/
|
||||
D3D11_CONSERVATIVE_RASTERIZATION_TIER GetConservativeRasterizationTier() const {
|
||||
return m_d3d11Options2.ConservativeRasterizationTier;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
DxvkDeviceFeatures m_features;
|
||||
|
|
Loading…
Add table
Reference in a new issue