#[repr(C)]pub struct CustomWaveVertex {
pub pos: [f32; 2],
pub color: [f32; 4],
}Expand description
One vertex of the custom-wave stream. The shader is pure passthrough
— pos is already clip-space [-1, 1], color is the per-point RGBA
after r/g/b/a carried through the per-point loop.
Fields§
§pos: [f32; 2]§color: [f32; 4]Trait Implementations§
Source§impl Clone for CustomWaveVertex
impl Clone for CustomWaveVertex
Source§fn clone(&self) -> CustomWaveVertex
fn clone(&self) -> CustomWaveVertex
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 moreSource§impl Debug for CustomWaveVertex
impl Debug for CustomWaveVertex
Source§impl Default for CustomWaveVertex
impl Default for CustomWaveVertex
Source§fn default() -> CustomWaveVertex
fn default() -> CustomWaveVertex
Returns the “default value” for a type. Read more
Source§impl PartialEq for CustomWaveVertex
impl PartialEq for CustomWaveVertex
impl Copy for CustomWaveVertex
impl Pod for CustomWaveVertex
impl StructuralPartialEq for CustomWaveVertex
Auto Trait Implementations§
impl Freeze for CustomWaveVertex
impl RefUnwindSafe for CustomWaveVertex
impl Send for CustomWaveVertex
impl Sync for CustomWaveVertex
impl Unpin for CustomWaveVertex
impl UnwindSafe for CustomWaveVertex
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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.§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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().