pub struct AtlasRegion {
pub id: u64,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub uv_bounds: [f32; 4],
pub last_used_frame: u64,
}Expand description
Allocated sub-region within the GPU texture atlas.
Fields§
§id: u64§x: u32§y: u32§width: u32§height: u32§uv_bounds: [f32; 4]§last_used_frame: u64Trait Implementations§
Source§impl Clone for AtlasRegion
impl Clone for AtlasRegion
impl Copy for AtlasRegion
Source§impl Debug for AtlasRegion
impl Debug for AtlasRegion
Source§impl PartialEq for AtlasRegion
impl PartialEq for AtlasRegion
impl StructuralPartialEq for AtlasRegion
Auto Trait Implementations§
impl Forget for AtlasRegion
impl Freeze for AtlasRegion
impl Move for AtlasRegion
impl RefUnwindSafe for AtlasRegion
impl Send for AtlasRegion
impl Sync for AtlasRegion
impl Unpin for AtlasRegion
impl UnsafeUnpin for AtlasRegion
impl UnwindSafe for AtlasRegion
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