From da1071fab435ab2755ea6acf99ffe642b4689f7b Mon Sep 17 00:00:00 2001 From: khyperia Date: Tue, 1 Jun 2021 12:49:32 +0200 Subject: [PATCH] Remove the spirv-std dependency --- Cargo.toml | 1 - src/lib.rs | 2 +- src/spirv.rs | 23 ----------------------- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cc3814e0..6ef06186 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,6 @@ mint = { version = "0.5", optional = true, default-features = false } num-traits = { version = "0.2.14", optional = true, default-features = false } rand = { version = "0.8", optional = true, default-features = false } serde = { version = "1.0", optional = true, features = ["derive"] } -spirv-std = { version = "0.4.0-alpha.7", optional = true } [dev-dependencies] criterion = { version = "0.3", features = ["html_reports"] } diff --git a/src/lib.rs b/src/lib.rs index 0149e55e..2fa44bf4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -253,7 +253,7 @@ mod vec3; mod vec4; mod vec_mask; -#[cfg(feature = "spirv-std")] +#[cfg(target_arch = "spirv")] mod spirv; #[cfg(feature = "transform-types")] diff --git a/src/spirv.rs b/src/spirv.rs index 3502c366..1de0ccd6 100644 --- a/src/spirv.rs +++ b/src/spirv.rs @@ -24,26 +24,3 @@ unsupported_features! { "serde", "std", } - -use spirv_std::vector::Vector; - -unsafe impl Vector for crate::BVec2 {} -unsafe impl Vector for crate::BVec3 {} -unsafe impl Vector for crate::BVec4 {} - -unsafe impl Vector for crate::Vec2 {} -unsafe impl Vector for crate::Vec3 {} -unsafe impl Vector for crate::Vec3A {} -unsafe impl Vector for crate::Vec4 {} - -unsafe impl Vector for crate::DVec2 {} -unsafe impl Vector for crate::DVec3 {} -unsafe impl Vector for crate::DVec4 {} - -unsafe impl Vector for crate::UVec2 {} -unsafe impl Vector for crate::UVec3 {} -unsafe impl Vector for crate::UVec4 {} - -unsafe impl Vector for crate::IVec2 {} -unsafe impl Vector for crate::IVec3 {} -unsafe impl Vector for crate::IVec4 {}