Macro encase::rts_array::impl_rts_array
source · macro_rules! impl_rts_array { ($type:ty $( ; using $($using:tt)* )?) => { ... }; ($type:ty; ($($generics:tt)*) $( ; using $($using:tt)* )?) => { ... }; }
Expand description
Used to implement ShaderType
for the given runtime-sized array type
The given runtime-sized array type should implement Length
and optionally Truncate
depending on needed capability (they can also be derived via $using
)
Args
-
$type
the type (representing a runtime-sized array) for whichShaderType
will be imeplemented for -
$generics
[optional] generics that will be passed into theimpl< >
-
$using
[optional] can be any combination oflen truncate