macro_rules! dynamic_uniform { () => { ... }; ($($field:ident: $value:expr), *,) => { ... }; }
Expand description
Returns a Dynamic Uniforms Container to which values can be added later.
ยงExample
let mut uniforms = dynamic_uniform!{
color: &[1.0, 1.0, 0.0, 1.0],
some_value: &12i32,
};
uniforms.add("another_value", &1.5f32);