mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Expose Feature Level 11_1 if explicitly requested
Not enabled by default since some 11_1 functionality is not yet implemented.
This commit is contained in:
parent
127fad89be
commit
d6d6ed4efd
@ -1601,7 +1601,6 @@ namespace dxvk {
|
|||||||
enabled.logicOp = supported.logicOp;
|
enabled.logicOp = supported.logicOp;
|
||||||
enabled.shaderImageGatherExtended = VK_TRUE;
|
enabled.shaderImageGatherExtended = VK_TRUE;
|
||||||
enabled.textureCompressionBC = VK_TRUE;
|
enabled.textureCompressionBC = VK_TRUE;
|
||||||
enabled.vertexPipelineStoresAndAtomics = VK_TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (featureLevel >= D3D_FEATURE_LEVEL_10_1) {
|
if (featureLevel >= D3D_FEATURE_LEVEL_10_1) {
|
||||||
@ -1617,6 +1616,11 @@ namespace dxvk {
|
|||||||
enabled.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
enabled.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (featureLevel >= D3D_FEATURE_LEVEL_11_1) {
|
||||||
|
enabled.logicOp = VK_TRUE;
|
||||||
|
enabled.vertexPipelineStoresAndAtomics = VK_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
return enabled;
|
return enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1872,7 +1876,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
D3D_FEATURE_LEVEL D3D11Device::GetMaxFeatureLevel() {
|
D3D_FEATURE_LEVEL D3D11Device::GetMaxFeatureLevel() {
|
||||||
static const std::array<std::pair<std::string, D3D_FEATURE_LEVEL>, 6> s_featureLevels = {{
|
static const std::array<std::pair<std::string, D3D_FEATURE_LEVEL>, 7> s_featureLevels = {{
|
||||||
|
{ "11_1", D3D_FEATURE_LEVEL_11_1 },
|
||||||
{ "11_0", D3D_FEATURE_LEVEL_11_0 },
|
{ "11_0", D3D_FEATURE_LEVEL_11_0 },
|
||||||
{ "10_1", D3D_FEATURE_LEVEL_10_1 },
|
{ "10_1", D3D_FEATURE_LEVEL_10_1 },
|
||||||
{ "10_0", D3D_FEATURE_LEVEL_10_0 },
|
{ "10_0", D3D_FEATURE_LEVEL_10_0 },
|
||||||
@ -1891,7 +1896,6 @@ namespace dxvk {
|
|||||||
return entry != s_featureLevels.end()
|
return entry != s_featureLevels.end()
|
||||||
? entry->second
|
? entry->second
|
||||||
: D3D_FEATURE_LEVEL_11_0;
|
: D3D_FEATURE_LEVEL_11_0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user