mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
The `metal` crate is currently unsound regarding unknown/future enum variants, see https://github.com/gfx-rs/metal-rs/issues/209 and https://github.com/rust-lang/rfcs/pull/3803. `objc2-metal` fixes this by emitting C enums as a newtype + constants for each variant, but that prevents us from importing the variants/constants. So this commit converts to a pattern that works with that in preparation for the migration.