#[repr(C)]pub struct ShapeVertex {
pub pos: [f32; 2],
pub color: [f32; 3],
pub alpha: f32,
}Expand description
One vertex of a filled custom shape.
Fields§
§pos: [f32; 2]World-space position — see the module docs.
color: [f32; 3]Premultiplied RGB, already scaled by the instance’s alpha.
alpha: f32Coverage, which the additive seam needs to equal the light’s own footprint (ADR-0056).
Trait Implementations§
Source§impl Clone for ShapeVertex
impl Clone for ShapeVertex
Source§fn clone(&self) -> ShapeVertex
fn clone(&self) -> ShapeVertex
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 ShapeVertex
impl Debug for ShapeVertex
impl Copy for ShapeVertex
impl Pod for ShapeVertex
Auto Trait Implementations§
impl Freeze for ShapeVertex
impl RefUnwindSafe for ShapeVertex
impl Send for ShapeVertex
impl Sync for ShapeVertex
impl Unpin for ShapeVertex
impl UnsafeUnpin for ShapeVertex
impl UnwindSafe for ShapeVertex
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.