mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
[msl-out] add min version check for primitive_id
This commit is contained in:
1 parent
46c472731f
commit
89ab5902b2
1 file changed
+5
@@ -258,6 +258,11 @@ impl Options {
|
||||
crate::BuiltIn::InstanceIndex if self.lang_version < (1, 2) => {
|
||||
return Err(Error::UnsupportedAttribute("instance_id".to_string()));
|
||||
}
|
||||
// macOS: Since Metal 2.2
|
||||
// iOS: Since Metal 2.3 (check depends on https://github.com/gfx-rs/naga/issues/2164)
|
||||
crate::BuiltIn::PrimitiveIndex if self.lang_version < (2, 2) => {
|
||||
return Err(Error::UnsupportedAttribute("primitive_id".to_string()));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user