Skip to content

Commit 531b8c4

Browse files
committed
Use MSL 2.0 for mobile and 2.3 for desktop
1 parent ea0759f commit 531b8c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

filament/backend/src/metal/MetalShaderCompiler.mm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ bool isReady() const noexcept {
118118
// not always true: it is possible for the environment to be set
119119
// up in a way where an older version is used by default. So we
120120
// explicitly set the minimum version we require.
121-
options.languageVersion = MTLLanguageVersion2_3;
121+
#if defined(FILAMENT_IOS)
122+
options.languageVersion = MTLLanguageVersion2_0;
123+
#else
124+
options.languageVersion = MTLLanguageVersion2_3;
125+
#endif
122126

123127
assert_invariant(source[source.size() - 1] == '\0');
124128
// the shader string is null terminated and the length includes the null character

0 commit comments

Comments
 (0)