mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Make samplerAnisotropy feature optional
This commit is contained in:
parent
0a787683b6
commit
c3feea2bce
@ -1935,7 +1935,7 @@ namespace dxvk {
|
||||
enabled.core.features.fillModeNonSolid = VK_TRUE;
|
||||
enabled.core.features.pipelineStatisticsQuery = supported.core.features.pipelineStatisticsQuery;
|
||||
enabled.core.features.sampleRateShading = VK_TRUE;
|
||||
enabled.core.features.samplerAnisotropy = 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;
|
||||
|
@ -3755,7 +3755,7 @@ namespace dxvk {
|
||||
enabled.core.features.fillModeNonSolid = VK_TRUE;
|
||||
enabled.core.features.pipelineStatisticsQuery = supported.core.features.pipelineStatisticsQuery;
|
||||
enabled.core.features.sampleRateShading = VK_TRUE;
|
||||
enabled.core.features.samplerAnisotropy = VK_TRUE;
|
||||
enabled.core.features.samplerAnisotropy = supported.core.features.samplerAnisotropy;
|
||||
enabled.core.features.shaderClipDistance = VK_TRUE;
|
||||
enabled.core.features.shaderCullDistance = VK_TRUE;
|
||||
|
||||
|
@ -33,6 +33,9 @@ namespace dxvk {
|
||||
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK;
|
||||
samplerInfo.unnormalizedCoordinates = info.usePixelCoord;
|
||||
|
||||
if (!device->features().core.features.samplerAnisotropy)
|
||||
samplerInfo.anisotropyEnable = VK_FALSE;
|
||||
|
||||
if (samplerInfo.addressModeU == VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER
|
||||
|| samplerInfo.addressModeV == VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER
|
||||
|| samplerInfo.addressModeW == VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER)
|
||||
|
Loading…
x
Reference in New Issue
Block a user