wgsl_types/types/
mat2x2.rs

1use crate::prelude::*;
2use bytes_kman::prelude::*;
3
4#[derive(Bytes)]
5pub struct mat2x2<T>(pub vec2<T>, pub vec2<T>);
6
7impl<T: TBytes + Clone> Clone for mat2x2<T> {
8    fn clone(&self) -> Self {
9        Self(self.0.clone(), self.1.clone())
10    }
11}
12
13impl<T: TBytes + Copy> Copy for mat2x2<T> {}