Skip to content

Commit 7caf399

Browse files
committed
bump metal binary output to macos-metal1.2 and ios-metal2.0 (needed for dual-source blending)
1 parent b35d429 commit 7caf399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shdc/bytecode.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ static bool mtl_cc(const std::string& src_path, const std::string& out_dia, cons
156156
cmdline += " -o ";
157157
cmdline += out_air;
158158
if (slang == Slang::METAL_MACOS) {
159-
cmdline += " -mmacosx-version-min=10.11 -std=osx-metal1.1 ";
159+
cmdline += " -mmacosx-version-min=10.11 -std=macos-metal1.2 ";
160160
} else {
161-
cmdline += " -miphoneos-version-min=9.0 -std=ios-metal1.1 ";
161+
cmdline += " -miphoneos-version-min=9.0 -std=ios-metal2.0 ";
162162
}
163163
cmdline += src_path;
164164
return 0 == xcrun(cmdline, output, slang);

0 commit comments

Comments
 (0)