#[repr(C)]pub struct GradientVertex {
pub position: [f32; 2],
pub local: [f32; 2],
}Expand description
A single vertex fed to gradient.wgsl.
Fields§
§position: [f32; 2]Pixel-space quad-corner position (@location(0)).
local: [f32; 2]Pixel-space position passed to the fragment stage for gradient sampling
(@location(1)).
Trait Implementations§
Source§impl Clone for GradientVertex
impl Clone for GradientVertex
Source§fn clone(&self) -> GradientVertex
fn clone(&self) -> GradientVertex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GradientVertex
impl Debug for GradientVertex
Source§impl PartialEq for GradientVertex
impl PartialEq for GradientVertex
Source§fn eq(&self, other: &GradientVertex) -> bool
fn eq(&self, other: &GradientVertex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GradientVertex
impl Pod for GradientVertex
impl StructuralPartialEq for GradientVertex
Auto Trait Implementations§
impl Freeze for GradientVertex
impl RefUnwindSafe for GradientVertex
impl Send for GradientVertex
impl Sync for GradientVertex
impl Unpin for GradientVertex
impl UnsafeUnpin for GradientVertex
impl UnwindSafe for GradientVertex
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.