MTLUtil: Always use MSL 2.3

The minimum macOS (and minimum iOS on my personal fork) are enough to allow MSL 2.3 usage without availability checks.
This commit is contained in:
OatmealDome 2025-04-01 15:23:10 -04:00
parent 53b66be47d
commit 65f42ee2d2

View file

@ -565,14 +565,7 @@ std::optional<std::string> Metal::Util::TranslateShaderToMSL(ShaderStage stage,
spirv_cross::CompilerMSL compiler(std::move(*code));
if (@available(macOS 11, iOS 14, *))
options.set_msl_version(2, 3);
else if (@available(macOS 10.15, iOS 13, *))
options.set_msl_version(2, 2);
else if (@available(macOS 10.14, iOS 12, *))
options.set_msl_version(2, 1);
else
options.set_msl_version(2, 0);
options.set_msl_version(2, 3);
options.use_framebuffer_fetch_subpasses = true;
compiler.set_msl_options(options);