#[repr(C)]pub struct SymbolVertex {
pub position: [f32; 3],
pub glyph_offset: [f32; 2],
pub tex_coord: [f32; 2],
pub color: [f32; 4],
pub halo_color: [f32; 4],
pub params: [f32; 4],
}Expand description
A vertex for the symbol GPU pipeline.
Renders SDF glyphs and icons as textured quads. Each glyph is a quad (4 vertices, 6 indices) that samples from an SDF glyph atlas texture. The fragment shader thresholds the SDF to produce crisp, scalable text with optional halo.
Fields§
§position: [f32; 3]Glyph anchor position [x, y, z] in camera-relative meters.
glyph_offset: [f32; 2]Glyph quad offset from anchor [dx, dy] in world-space meters.
tex_coord: [f32; 2]Texture coordinates [u, v] into the SDF atlas.
color: [f32; 4]Text colour [r, g, b, a].
halo_color: [f32; 4]Halo colour [r, g, b, a].
params: [f32; 4]Symbol parameters: [halo_width, gamma_scale, 0, 0].
Implementations§
Source§impl SymbolVertex
impl SymbolVertex
Sourcepub fn layout() -> VertexBufferLayout<'static>
pub fn layout() -> VertexBufferLayout<'static>
Vertex buffer layout for the symbol pipeline.
Trait Implementations§
Source§impl Clone for SymbolVertex
impl Clone for SymbolVertex
Source§fn clone(&self) -> SymbolVertex
fn clone(&self) -> SymbolVertex
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 SymbolVertex
impl Debug for SymbolVertex
impl Copy for SymbolVertex
impl Pod for SymbolVertex
Auto Trait Implementations§
impl Freeze for SymbolVertex
impl RefUnwindSafe for SymbolVertex
impl Send for SymbolVertex
impl Sync for SymbolVertex
impl Unpin for SymbolVertex
impl UnsafeUnpin for SymbolVertex
impl UnwindSafe for SymbolVertex
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
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.