Skip to content

Commit

Permalink
make missing features optional for DX11
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Dec 8, 2024
1 parent 72381b4 commit c28b530
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/d3d11/d3d11_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1956,15 +1956,15 @@ namespace dxvk {
}

if (featureLevel >= D3D_FEATURE_LEVEL_9_1) {
enabled.core.features.depthClamp = VK_TRUE;
enabled.core.features.depthBiasClamp = VK_TRUE;
enabled.core.features.fillModeNonSolid = VK_TRUE;
enabled.core.features.depthClamp = supported.core.features.depthClamp;
enabled.core.features.depthBiasClamp = supported.core.features.depthBiasClamp;
enabled.core.features.fillModeNonSolid = supported.core.features.fillModeNonSolid;
enabled.core.features.pipelineStatisticsQuery = supported.core.features.pipelineStatisticsQuery;
enabled.core.features.sampleRateShading = VK_TRUE;
enabled.core.features.samplerAnisotropy = supported.core.features.samplerAnisotropy;
enabled.core.features.shaderClipDistance = VK_TRUE;
enabled.core.features.shaderCullDistance = VK_TRUE;
enabled.core.features.textureCompressionBC = VK_TRUE;
enabled.core.features.shaderClipDistance = supported.core.features.shaderClipDistance;
enabled.core.features.shaderCullDistance = supported.core.features.shaderCullDistance;
enabled.core.features.textureCompressionBC = supported.core.features.textureCompressionBC;
enabled.extDepthClipEnable.depthClipEnable = supported.extDepthClipEnable.depthClipEnable;
enabled.extHostQueryReset.hostQueryReset = VK_TRUE;
}
Expand All @@ -1975,7 +1975,7 @@ namespace dxvk {

if (featureLevel >= D3D_FEATURE_LEVEL_9_3) {
enabled.core.features.independentBlend = VK_TRUE;
enabled.core.features.multiViewport = VK_TRUE;
enabled.core.features.multiViewport = supported.core.features.multiViewport;
}

if (featureLevel >= D3D_FEATURE_LEVEL_10_0) {
Expand All @@ -1984,11 +1984,11 @@ namespace dxvk {
enabled.core.features.shaderImageGatherExtended = VK_TRUE;
enabled.core.features.variableMultisampleRate = supported.core.features.variableMultisampleRate;
enabled.extTransformFeedback.transformFeedback = VK_TRUE;
enabled.extTransformFeedback.geometryStreams = VK_TRUE;
enabled.extTransformFeedback.geometryStreams = supported.extTransformFeedback.geometryStreams;
}

if (featureLevel >= D3D_FEATURE_LEVEL_10_1) {
enabled.core.features.dualSrcBlend = VK_TRUE;
enabled.core.features.dualSrcBlend = supported.core.features.dualSrcBlend;
enabled.core.features.imageCubeArray = VK_TRUE;
}

Expand All @@ -2003,7 +2003,7 @@ namespace dxvk {
}

if (featureLevel >= D3D_FEATURE_LEVEL_11_1) {
enabled.core.features.logicOp = VK_TRUE;
enabled.core.features.logicOp = supported.core.features.logicOp;
enabled.core.features.variableMultisampleRate = VK_TRUE;
enabled.core.features.vertexPipelineStoresAndAtomics = VK_TRUE;
}
Expand Down

0 comments on commit c28b530

Please sign in to comment.