#[repr(C)]pub struct GizmoLineInstance {
pub start: [f32; 4],
pub end: [f32; 4],
pub color: [f32; 4],
}Expand description
A single line segment for GPU rendering.
#[repr(C)] layout matches the WGSL GizmoLine struct.
Fields§
§start: [f32; 4]Start point in world space.
end: [f32; 4]End point in world space.
color: [f32; 4]RGBA color.
Implementations§
Trait Implementations§
Source§impl Clone for GizmoLineInstance
impl Clone for GizmoLineInstance
Source§fn clone(&self) -> GizmoLineInstance
fn clone(&self) -> GizmoLineInstance
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 GizmoLineInstance
impl Debug for GizmoLineInstance
impl Copy for GizmoLineInstance
impl Pod for GizmoLineInstance
Auto Trait Implementations§
impl Freeze for GizmoLineInstance
impl RefUnwindSafe for GizmoLineInstance
impl Send for GizmoLineInstance
impl Sync for GizmoLineInstance
impl Unpin for GizmoLineInstance
impl UnsafeUnpin for GizmoLineInstance
impl UnwindSafe for GizmoLineInstance
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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.