pub fn stride(&self) -> usize {
        match self {
            MultiType::Scalar(s) => s.stride(),

            // FIXME: this may not always be right!
            MultiType::Vec(st, n) => st.stride() * n,
            MultiType::Mat(st, w, h) => st.stride() * w * h,
        }
    }
/// Size (in bytes) of the data type (useful for setting the 'stride' in WGSL)
Size (in bytes) of the data type (useful for setting the 'stride' in WGSL)
Size ( in bytes ) of the data type ( useful for setting the ' stride ' in WGSL )
pub fn stride(&self) -> usize {
        match self {
            MultiType::Scalar(s) => s.stride(),
            // FIXME: this may not always be right!
            MultiType::Vec(st, n) => st.stride() * n,
            MultiType::Mat(st, w, h) => st.stride() * w * h,
        }
    }
pub fn stride ( & self ) -> usize { match self { MultiType :: Scalar ( s ) => s . stride ( ) , // FIXME: this may not always be right! MultiType :: Vec ( st , n ) => st . stride ( ) * n , MultiType :: Mat ( st , w , h ) => st . stride ( ) * w * h , } }
Size (in bytes) of the data type (useful for setting the 'stride' in WGSL)
Size ( in bytes ) of the data type ( useful for setting the ' stride ' in WGSL )
&self
&self