WIP: Cycles: Reduce Metal Language Version #120279

Closed
Alaska wants to merge 1 commits from Alaska:reduce-metal-version into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 0 additions and 10 deletions

View File

@ -580,16 +580,6 @@ void MetalDevice::compile_and_load(int device_id, MetalPipelineType pso_type)
if (@available(macos 12.0, *)) {
options.languageVersion = MTLLanguageVersion2_4;
}
# if defined(MAC_OS_VERSION_13_0)
if (@available(macos 13.0, *)) {
options.languageVersion = MTLLanguageVersion3_0;
}
# endif
# if defined(MAC_OS_VERSION_14_0)
if (@available(macos 14.0, *)) {
options.languageVersion = MTLLanguageVersion3_1;
}
# endif
if (getenv("CYCLES_METAL_PROFILING") || getenv("CYCLES_METAL_DEBUG")) {
path_write_text(path_cache_get(string_printf("%s.metal", kernel_type_as_string(pso_type))),