summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
diff options
context:
space:
mode:
authorOatmealDome <julian@oatmealdome.me>2021-08-06 23:26:51 -0400
committerOatmealDome <julian@oatmealdome.me>2021-12-25 15:16:27 -0500
commit08396c56e56708344d63fded5900020f47337b8e (patch)
treee508eb09e46d0b4a7f6cb30826e89f0cd61db26d /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
parent6dae4043cb967925ae28cce92d9c100330a5d17e (diff)
VideoConfig: Add bool for sampler LOD bias support
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanContext.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
index 23cb06e846..ead13df547 100644
--- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
@@ -289,6 +289,7 @@ void VulkanContext::PopulateBackendInfo(VideoConfig* config)
config->backend_info.bSupportsFramebufferFetch = false; // Dependent on OS and features.
config->backend_info.bSupportsCoarseDerivatives = true; // Assumed support.
config->backend_info.bSupportsTextureQueryLevels = true; // Assumed support.
+ config->backend_info.bSupportsLodBiasInSampler = false; // Dependent on OS.
}
void VulkanContext::PopulateBackendInfoAdapters(VideoConfig* config, const GPUList& gpu_list)
@@ -316,6 +317,13 @@ void VulkanContext::PopulateBackendInfoFeatures(VideoConfig* config, VkPhysicalD
config->backend_info.bSupportsSSAA = (features.sampleRateShading == VK_TRUE);
config->backend_info.bSupportsLogicOp = (features.logicOp == VK_TRUE);
+#ifdef __APPLE__
+ // Metal doesn't support this.
+ config->backend_info.bSupportsLodBiasInSampler = false;
+#else
+ config->backend_info.bSupportsLodBiasInSampler = true;
+#endif
+
// Disable geometry shader when shaderTessellationAndGeometryPointSize is not supported.
// Seems this is needed for gl_Layer.
if (!features.shaderTessellationAndGeometryPointSize)