#[repr(C)]pub struct DebugVertex {
pub position: [f32; 4],
pub color: [f32; 4],
}Expand description
One endpoint of one segment, matching debug_draw.slang’s DebugVertex.
position.w is unused — the vertex stage supplies the homogeneous one — and
color is linear RGBA, written into the HDR scene target.
Fields§
§position: [f32; 4]The endpoint in world space, with an unused w.
color: [f32; 4]Linear RGBA, alpha-blended over the scene.
Trait Implementations§
Source§impl Clone for DebugVertex
impl Clone for DebugVertex
impl Copy for DebugVertex
Source§impl Debug for DebugVertex
impl Debug for DebugVertex
Source§impl PartialEq for DebugVertex
impl PartialEq for DebugVertex
impl Pod for DebugVertex
impl StructuralPartialEq for DebugVertex
Auto Trait Implementations§
impl Forget for DebugVertex
impl Freeze for DebugVertex
impl Move for DebugVertex
impl RefUnwindSafe for DebugVertex
impl Send for DebugVertex
impl Sync for DebugVertex
impl Unpin for DebugVertex
impl UnsafeUnpin for DebugVertex
impl UnwindSafe for DebugVertex
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
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.