pub struct ShaderValue {
pub value: f32,
pub property: Option<String>,
}Expand description
A render-state value of a shader pass: the value the shader declares, and the material property it is bound to
(Blend [_SrcBlend] ...), which then gives the value.
Fields§
§value: f32The value as stored.
property: Option<String>The material property that gives the value instead, when the shader binds one (None for a fixed value).
Trait Implementations§
Source§impl Clone for ShaderValue
impl Clone for ShaderValue
Source§impl Debug for ShaderValue
impl Debug for ShaderValue
Source§impl PartialEq for ShaderValue
impl PartialEq for ShaderValue
Source§impl Serialize for ShaderValue
impl Serialize for ShaderValue
impl StructuralPartialEq for ShaderValue
Auto Trait Implementations§
impl Freeze for ShaderValue
impl RefUnwindSafe for ShaderValue
impl Send for ShaderValue
impl Sync for ShaderValue
impl Unpin for ShaderValue
impl UnsafeUnpin for ShaderValue
impl UnwindSafe for ShaderValue
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