pub fn create_uniform(name: &str, type_r: UniformType, num: u16) -> Uniform
Expand description
  • name: Uniform name in shader.
  • type_r: Type of uniform (See: bgfx::UniformType).
  • num: Number of elements in array.