pub enum ShaderArg {
Float(f32),
Float2(f32, f32),
Color(Color),
}Expand description
An argument passed through to the shader function, after the arguments SwiftUI supplies itself.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShaderArg
impl RefUnwindSafe for ShaderArg
impl Send for ShaderArg
impl Sync for ShaderArg
impl Unpin for ShaderArg
impl UnsafeUnpin for ShaderArg
impl UnwindSafe for ShaderArg
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