#[repr(C)]pub struct VertexUV {
pub x: f32,
pub y: f32,
pub u: f32,
pub v: f32,
}Expand description
Vertex with position and UV coordinates for textured rendering.
Useful for rendering bitmap glyphs or SDF textures. UV coordinates are typically in [0, 1] range for texture sampling.
Compatible with wgpu Float32x2 at offset 0 (position) and offset 8 (uv).
§Memory Layout
- Size: 16 bytes
- Alignment: 4 bytes
Fields§
§x: f32X coordinate (position)
y: f32Y coordinate (position)
u: f32U coordinate (texture)
v: f32V coordinate (texture)
Implementations§
Trait Implementations§
impl Copy for VertexUV
impl StructuralPartialEq for VertexUV
Auto Trait Implementations§
impl Freeze for VertexUV
impl RefUnwindSafe for VertexUV
impl Send for VertexUV
impl Sync for VertexUV
impl Unpin for VertexUV
impl UnsafeUnpin for VertexUV
impl UnwindSafe for VertexUV
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