#[repr(C)]pub struct TextVertex {
pub position: [f32; 2],
pub uv: [f32; 2],
pub color: [f32; 4],
pub layer: f32,
}Fields§
§position: [f32; 2]Device-space position in pixels, y down from the top of the viewport.
uv: [f32; 2]Atlas coordinates normalized to atlas size.
color: [f32; 4]§layer: f32Atlas array layer holding this glyph’s coverage.
Trait Implementations§
Source§impl Clone for TextVertex
impl Clone for TextVertex
impl Copy for TextVertex
Source§impl Debug for TextVertex
impl Debug for TextVertex
impl Pod for TextVertex
Auto Trait Implementations§
impl Freeze for TextVertex
impl RefUnwindSafe for TextVertex
impl Send for TextVertex
impl Sync for TextVertex
impl Unpin for TextVertex
impl UnsafeUnpin for TextVertex
impl UnwindSafe for TextVertex
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.