pub enum Source {
Vertex {
semantic: Semantic,
channel: u8,
},
Mask {
texture: TextureRef,
channels: [f32; 4],
bias: f32,
},
}Expand description
A value read per pixel.
Variants§
Vertex
Channel channel (0..=3) of an interpolated vertex stream.
Mask
dot(sample.rgba, channels) + bias of a texture sampled with its own UV set, wrap and transform.
Trait Implementations§
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Forget for Source
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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