pub struct ShaderUniform {
pub name: String,
pub value: ShaderUniformValue,
}Expand description
A single shader uniform with a name and typed value.
Fields§
§name: StringThe uniform variable name in the shader.
value: ShaderUniformValueThe value to set for this uniform.
Trait Implementations§
Source§impl Clone for ShaderUniform
impl Clone for ShaderUniform
Source§fn clone(&self) -> ShaderUniform
fn clone(&self) -> ShaderUniform
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShaderUniform
impl RefUnwindSafe for ShaderUniform
impl Send for ShaderUniform
impl Sync for ShaderUniform
impl Unpin for ShaderUniform
impl UnsafeUnpin for ShaderUniform
impl UnwindSafe for ShaderUniform
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