From ec9fb08dabe15a287ed0dd5ae095a2cbde942817 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Thu, 10 Apr 2025 23:48:01 -0400 Subject: [PATCH] MTLUtil: Remove availability check for iOS 13 My personal fork requires minimum iOS 14, so this is not required. --- Source/Core/VideoBackends/Metal/MTLUtil.mm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Core/VideoBackends/Metal/MTLUtil.mm b/Source/Core/VideoBackends/Metal/MTLUtil.mm index e7e71649aa..05e2115ab3 100644 --- a/Source/Core/VideoBackends/Metal/MTLUtil.mm +++ b/Source/Core/VideoBackends/Metal/MTLUtil.mm @@ -262,15 +262,11 @@ void Metal::Util::PopulateBackendInfoFeatures(const VideoConfig& config, Backend backend_info->bSupportsST3CTextures = true; backend_info->bSupportsBPTCTextures = true; #else - bool supports_apple4 = false; + backend_info->bSupportsDepthClamp = [device supportsFamily:MTLGPUFamilyApple4]; + bool supports_bcn = false; - if (@available(iOS 13, *)) - supports_apple4 = [device supportsFamily:MTLGPUFamilyApple4]; - else - supports_apple4 = [device supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]; if (@available(iOS 16.4, *)) supports_bcn = [device supportsBCTextureCompression]; - backend_info->bSupportsDepthClamp = supports_apple4; backend_info->bSupportsST3CTextures = supports_bcn; backend_info->bSupportsBPTCTextures = supports_bcn;