macro_rules! uniform { () => { ... }; ($field:ident: $value:expr) => { ... }; ($field1:ident: $value1:expr, $($field:ident: $value:expr),+) => { ... }; ($($field:ident: $value:expr),*,) => { ... }; }
Expand description
Returns an implementation-defined type which implements the Uniform
trait.
ยงExample
let uniforms = uniform! {
color: [1.0, 1.0, 0.0, 1.0],
some_value: 12i32
};