#[repr(C)]pub struct SegmentRecord {
pub start: [f32; 3],
pub _pad0: f32,
pub end: [f32; 3],
pub _pad1: f32,
pub start_color: [f32; 4],
pub end_color: [f32; 4],
pub width_px: f32,
pub _pad2: [f32; 3],
}Expand description
Instance vertex layout of loam-render’s line_raster.wgsl.
Fields§
§start: [f32; 3]§_pad0: f32§end: [f32; 3]§_pad1: f32§start_color: [f32; 4]§end_color: [f32; 4]§width_px: f32§_pad2: [f32; 3]Trait Implementations§
Source§impl Clone for SegmentRecord
impl Clone for SegmentRecord
Source§fn clone(&self) -> SegmentRecord
fn clone(&self) -> SegmentRecord
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 SegmentRecord
impl Debug for SegmentRecord
Source§impl Default for SegmentRecord
impl Default for SegmentRecord
Source§fn default() -> SegmentRecord
fn default() -> SegmentRecord
Returns the “default value” for a type. Read more
Source§impl PartialEq for SegmentRecord
impl PartialEq for SegmentRecord
impl Copy for SegmentRecord
impl Pod for SegmentRecord
impl StructuralPartialEq for SegmentRecord
Auto Trait Implementations§
impl Freeze for SegmentRecord
impl RefUnwindSafe for SegmentRecord
impl Send for SegmentRecord
impl Sync for SegmentRecord
impl Unpin for SegmentRecord
impl UnsafeUnpin for SegmentRecord
impl UnwindSafe for SegmentRecord
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.