pub struct UniformVec2Slot { /* private fields */ }Expand description
A binding to a uniform of type vec2. Calling set on this object updates the
uniform’s value.
See also: FragmentShader::get_uniform_vec2.
Implementations§
Source§impl UniformVec2Slot
impl UniformVec2Slot
Sourcepub fn set(self, shader: &mut FragmentShader, x: f64, y: f64)
pub fn set(self, shader: &mut FragmentShader, x: f64, y: f64)
Set the float value of the bound uniform.
Trait Implementations§
Source§impl Clone for UniformVec2Slot
impl Clone for UniformVec2Slot
impl Copy for UniformVec2Slot
Auto Trait Implementations§
impl Forget for UniformVec2Slot
impl Freeze for UniformVec2Slot
impl Move for UniformVec2Slot
impl RefUnwindSafe for UniformVec2Slot
impl Send for UniformVec2Slot
impl Sync for UniformVec2Slot
impl Unpin for UniformVec2Slot
impl UnsafeUnpin for UniformVec2Slot
impl UnwindSafe for UniformVec2Slot
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