summaryrefslogtreecommitdiffstats
path: root/third_party/rust/metal/src/library.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/metal/src/library.rs')
-rw-r--r--third_party/rust/metal/src/library.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/third_party/rust/metal/src/library.rs b/third_party/rust/metal/src/library.rs
index 2c7d0c92ce..9f7d58cc7c 100644
--- a/third_party/rust/metal/src/library.rs
+++ b/third_party/rust/metal/src/library.rs
@@ -7,11 +7,10 @@
use super::*;
-use foreign_types::ForeignType;
-use objc::runtime::{Object, BOOL, NO, YES};
+use objc::runtime::{BOOL, NO, YES};
use std::ffi::CStr;
-use std::os::raw::{c_char, c_void};
+use std::os::raw::c_char;
use std::ptr;
/// Only available on (macos(10.12), ios(10.0)
@@ -361,6 +360,10 @@ pub enum MTLLanguageVersion {
V2_3 = 0x20003,
/// available on macOS 12.0+, iOS 15.0+
V2_4 = 0x20004,
+ /// available on macOS 13.0+, iOS 16.0+
+ V3_0 = 0x30000,
+ /// available on macOS 14.0+, iOS 17.0+
+ V3_1 = 0x30001,
}
/// See <https://developer.apple.com/documentation/metal/mtlfunctionconstantvalues/>