pub struct AtlasEntry {
pub uv: [f32; 4],
pub width: u32,
pub height: u32,
}Expand description
单个 glyph 在 atlas 中的位置
Fields§
§uv: [f32; 4]归一化纹理坐标 (u0, v0, u1, v1),左下角原点(WGPU 约定)
width: u32§height: u32Trait Implementations§
Source§impl Clone for AtlasEntry
impl Clone for AtlasEntry
Source§fn clone(&self) -> AtlasEntry
fn clone(&self) -> AtlasEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AtlasEntry
Auto Trait Implementations§
impl Forget for AtlasEntry
impl Freeze for AtlasEntry
impl Move for AtlasEntry
impl RefUnwindSafe for AtlasEntry
impl Send for AtlasEntry
impl Sync for AtlasEntry
impl Unpin for AtlasEntry
impl UnsafeUnpin for AtlasEntry
impl UnwindSafe for AtlasEntry
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