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
)
$c
nr of columns the given matrix contains
$r
nr of rows the given matrix contains
$type
the type (representing a matrix) for which ShaderType
will be implemented for
$generics
[optional] generics that will be passed into the impl< >
$el_type
[optional] inner element type of the matrix (should implement MatrixScalar
)
$using
[optional] can be any combination of AsRef AsMut From
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4