spirv_std::vector

Trait Vector

Source
pub unsafe trait Vector<T: Scalar, const N: usize>: VectorOrScalar<Scalar = T> { }
Expand description

Abstract trait representing a SPIR-V vector type.

§Safety

Implementing this trait on non-simd-vector types breaks assumptions of other unsafe code, and should not be done.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Vector<f32, 2> for Vec2

Source§

impl Vector<f32, 3> for Vec3A

Source§

impl Vector<f32, 3> for Vec3

Source§

impl Vector<f32, 4> for Vec4

Source§

impl Vector<f64, 2> for DVec2

Source§

impl Vector<f64, 3> for DVec3

Source§

impl Vector<f64, 4> for DVec4

Source§

impl Vector<i32, 2> for IVec2

Source§

impl Vector<i32, 3> for IVec3

Source§

impl Vector<i32, 4> for IVec4

Source§

impl Vector<u32, 2> for UVec2

Source§

impl Vector<u32, 3> for UVec3

Source§

impl Vector<u32, 4> for UVec4

Implementors§