[go: up one dir, main page]

glam 0.30.3

A simple and fast 3D math library for games and graphics
Documentation
#[cfg(target_arch = "spirv")]
macro_rules! unsupported_features {
    ($($feature:literal),+ $(,)?) => {
        $(
            #[cfg(feature = $feature)]
            compile_error!(
                concat!(
                    "`",
                    $feature,
                    "`",
                    " feature is not supported when building for SPIR-V.",
                )
            );
        )+
    }
}

#[cfg(target_arch = "spirv")]
unsupported_features! {
    "approx",
    "debug-glam-assert",
    "glam-assert",
    "rand",
    "serde",
    "std",
}