Skip to content

Commit

Permalink
Properly set msl version to 2.3 if supported
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald authored and kvark committed Jan 24, 2022
1 parent dd8299b commit fe09f57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wgpu-hal/src/metal/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,9 @@ impl super::PrivateCapabilities {
Self {
family_check,
msl_version: if os_is_mac {
if Self::version_at_least(major, minor, 10, 15) {
if Self::version_at_least(major, minor, 11, 0) {
MTLLanguageVersion::V2_3
} else if Self::version_at_least(major, minor, 10, 15) {
MTLLanguageVersion::V2_2
} else if Self::version_at_least(major, minor, 10, 14) {
MTLLanguageVersion::V2_1
Expand All @@ -587,6 +589,8 @@ impl super::PrivateCapabilities {
} else {
MTLLanguageVersion::V1_0
}
} else if Self::version_at_least(major, minor, 14, 0) {
MTLLanguageVersion::V2_3
} else if Self::version_at_least(major, minor, 13, 0) {
MTLLanguageVersion::V2_2
} else if Self::version_at_least(major, minor, 12, 0) {
Expand Down

0 comments on commit fe09f57

Please sign in to comment.