mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Expose feature level 12_0
This commit is contained in:
parent
91ff6d68e1
commit
91bdc8d06c
1 changed files with 13 additions and 3 deletions
|
@ -2007,6 +2007,15 @@ namespace dxvk {
|
||||||
if (!adapter->checkFeatureSupport(features))
|
if (!adapter->checkFeatureSupport(features))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (featureLevel >= D3D_FEATURE_LEVEL_12_0) {
|
||||||
|
D3D11_TILED_RESOURCES_TIER tiledResourcesTier = DetermineTiledResourcesTier(
|
||||||
|
adapter->features(),
|
||||||
|
adapter->devicePropertiesExt());
|
||||||
|
|
||||||
|
if (tiledResourcesTier < D3D11_TILED_RESOURCES_TIER_2)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO also check for required limits
|
// TODO also check for required limits
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -2609,9 +2618,10 @@ namespace dxvk {
|
||||||
return pair.first == maxLevel;
|
return pair.first == maxLevel;
|
||||||
});
|
});
|
||||||
|
|
||||||
return entry != s_featureLevels.end()
|
if (entry != s_featureLevels.end())
|
||||||
? entry->second
|
return entry->second;
|
||||||
: D3D_FEATURE_LEVEL_11_1;
|
|
||||||
|
return D3D_FEATURE_LEVEL_12_0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue