#[repr(C)]pub struct TextQuadVertex {
pub pos_clip: [f32; 2],
pub uv: [f32; 2],
pub rgba: [f32; 4],
}Expand description
Per-glyph vertex pushed to the GPU vertex buffer.
Fields§
§pos_clip: [f32; 2]Clip-space position ([-1, 1] per axis). CPU side does the
[0, 1] screen → clip + aspect-correction so the vertex
shader stays a pass-through.
uv: [f32; 2]Atlas UV ([0, 1]).
rgba: [f32; 4]Tint colour (r, g, b, a). The fragment shader multiplies the
sampled atlas alpha by a to produce a premultiplied output.
Trait Implementations§
Source§impl Clone for TextQuadVertex
impl Clone for TextQuadVertex
Source§fn clone(&self) -> TextQuadVertex
fn clone(&self) -> TextQuadVertex
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 TextQuadVertex
impl Debug for TextQuadVertex
Source§impl Default for TextQuadVertex
impl Default for TextQuadVertex
Source§fn default() -> TextQuadVertex
fn default() -> TextQuadVertex
Returns the “default value” for a type. Read more
impl Copy for TextQuadVertex
impl Pod for TextQuadVertex
Auto Trait Implementations§
impl Freeze for TextQuadVertex
impl RefUnwindSafe for TextQuadVertex
impl Send for TextQuadVertex
impl Sync for TextQuadVertex
impl Unpin for TextQuadVertex
impl UnwindSafe for TextQuadVertex
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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().