Trait spirv_std::vector::Vector

source ·
pub unsafe trait Vector<T: Scalar, const N: usize>: Default { }
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.

Implementations on Foreign Types§

source§

impl Vector<f64, 2> for DVec2

source§

impl Vector<i32, 3> for IVec3

source§

impl Vector<f64, 3> for DVec3

source§

impl Vector<f32, 2> for Vec2

source§

impl Vector<u32, 3> for UVec3

source§

impl Vector<f64, 4> for DVec4

source§

impl Vector<u32, 4> for UVec4

source§

impl Vector<f32, 4> for Vec4

source§

impl Vector<i32, 4> for IVec4

source§

impl Vector<u32, 2> for UVec2

source§

impl Vector<i32, 2> for IVec2

source§

impl Vector<f32, 3> for Vec3A

source§

impl Vector<f32, 3> for Vec3

Implementors§