glium::uniform!
[−]
[src]
macro_rules! uniform { () => { ... }; ($field:ident: $value:expr) => { ... }; ($field1:ident: $value1:expr, $($field:ident: $value:expr),+) => { ... }; ($($field:ident: $value:expr),*,) => { ... }; }
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 };