Enum wgsl_to_wgpu::MatrixVectorTypes
source · pub enum MatrixVectorTypes {
Rust,
Glam,
Nalgebra,
}
Expand description
The format to use for matrix and vector types. Note that the generated types for the same WGSL type may differ in size or alignment.
Variants§
Rust
Rust types like [f32; 4]
or [[f32; 4]; 4]
.
Glam
glam
types like glam::Vec4
or glam::Mat4
.
Types not representable by glam
like mat2x3<f32>
will use the output from MatrixVectorTypes::Rust.
Nalgebra
nalgebra
types like nalgebra::SVector<f64, 4>
or nalgebra::SMatrix<f32, 2, 3>
.
Trait Implementations§
source§impl Clone for MatrixVectorTypes
impl Clone for MatrixVectorTypes
source§fn clone(&self) -> MatrixVectorTypes
fn clone(&self) -> MatrixVectorTypes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MatrixVectorTypes
impl Debug for MatrixVectorTypes
source§impl Default for MatrixVectorTypes
impl Default for MatrixVectorTypes
source§impl PartialEq for MatrixVectorTypes
impl PartialEq for MatrixVectorTypes
source§fn eq(&self, other: &MatrixVectorTypes) -> bool
fn eq(&self, other: &MatrixVectorTypes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MatrixVectorTypes
impl Eq for MatrixVectorTypes
impl StructuralPartialEq for MatrixVectorTypes
Auto Trait Implementations§
impl Freeze for MatrixVectorTypes
impl RefUnwindSafe for MatrixVectorTypes
impl Send for MatrixVectorTypes
impl Sync for MatrixVectorTypes
impl Unpin for MatrixVectorTypes
impl UnwindSafe for MatrixVectorTypes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.