pub struct UniformArray<T> { /* private fields */ }Expand description
An array of bindings to uniforms of the same type T. Access elements via [] and set them
individually.
ⓘ
let colors = shader.get_uniform_vec4_array("uColorArray")?;
colors[0].set(&mut shader, 1.0, 0.0, 1.0, 0.3);See also: FragmentShader::get_uniform_float_array, how UniformArrays are acquired.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for UniformArray<T>
impl<T: Clone> Clone for UniformArray<T>
Source§impl<T: Debug> Debug for UniformArray<T>
impl<T: Debug> Debug for UniformArray<T>
Auto Trait Implementations§
impl<T> Forget for UniformArray<T>
impl<T> Freeze for UniformArray<T>
impl<T> Move for UniformArray<T>
impl<T> RefUnwindSafe for UniformArray<T>where
T: RefUnwindSafe,
impl<T> Send for UniformArray<T>
impl<T> Sync for UniformArray<T>
impl<T> Unpin for UniformArray<T>
impl<T> UnsafeUnpin for UniformArray<T>
impl<T> UnwindSafe for UniformArray<T>where
RawVecInner: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more