#[repr(C)]pub struct LineInstance {
pub start: [f32; 2],
pub end: [f32; 2],
pub width: f32,
pub _padding: f32,
pub color: [f32; 4],
}Expand description
GPU instanced line segment.
Fields§
§start: [f32; 2]§end: [f32; 2]§width: f32§_padding: f32§color: [f32; 4]Implementations§
Trait Implementations§
Source§impl Clone for LineInstance
impl Clone for LineInstance
impl Copy for LineInstance
Source§impl Debug for LineInstance
impl Debug for LineInstance
Source§impl PartialEq for LineInstance
impl PartialEq for LineInstance
impl Pod for LineInstance
impl StructuralPartialEq for LineInstance
Auto Trait Implementations§
impl Forget for LineInstance
impl Freeze for LineInstance
impl Move for LineInstance
impl RefUnwindSafe for LineInstance
impl Send for LineInstance
impl Sync for LineInstance
impl Unpin for LineInstance
impl UnsafeUnpin for LineInstance
impl UnwindSafe for LineInstance
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.