debian/missing-sources/glam-0.29.3/src/spirv.rs
raw| 1 | #[cfg(target_arch = "spirv")] |
| 2 | macro_rules! unsupported_features { |
| 3 | ($($feature:literal),+ $(,)?) => { |
| 4 | $( |
| 5 | #[cfg(feature = $feature)] |
| 6 | compile_error!( |
| 7 | concat!( |
| 8 | "`", |
| 9 | $feature, |
| 10 | "`", |
| 11 | " feature is not supported when building for SPIR-V.", |
| 12 | ) |
| 13 | ); |
| 14 | )+ |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | #[cfg(target_arch = "spirv")] |
| 19 | unsupported_features! { |
| 20 | "approx", |
| 21 | "debug-glam-assert", |
| 22 | "glam-assert", |
| 23 | "rand", |
| 24 | "serde", |
| 25 | "std", |
| 26 | } |