macro_rules! impl_matrix {
($c:literal, $r:literal, $type:ty $( ; using $($using:tt)* )?) => { ... };
($c:literal, $r:literal, $type:ty; ($($generics:tt)*) $( ; using $($using:tt)* )?) => { ... };
($c:literal, $r:literal, $type:ty, $el_ty:ty $( ; using $($using:tt)* )?) => { ... };
}Expand description
Used to implement ShaderType for the given matrix type
The given matrix type should implement any combination of
AsRefMatrixParts, AsMutMatrixParts, FromMatrixParts
depending on needed capability (they can also be derived via $using)
ยงArgs
-
$cnr of columns the given matrix contains -
$rnr of rows the given matrix contains -
$typethe type (representing a matrix) for whichShaderTypewill be implemented for -
$generics[optional] generics that will be passed into theimpl< > -
$el_type[optional] inner element type of the matrix (should implementMatrixScalar) -
$using[optional] can be any combination ofAsRef AsMut From