#[repr(C)]pub struct Res {
pub ulog2: i8,
pub vlog2: i8,
}Expand description
Pixel resolution of a given texture. The resolution is stored in log form: ulog2 = log2(ures), vlog2 = log2(vres)). Note: negative ulog2 or vlog2 values are reserved for internal use.
Fields§
§ulog2: i8log2 of u resolution, in texels
vlog2: i8log2 of v resolution, in texels
Implementations§
Trait Implementations§
Source§impl ExternType for Res
impl ExternType for Res
impl Copy for Res
impl Eq for Res
Auto Trait Implementations§
impl Freeze for Res
impl RefUnwindSafe for Res
impl Send for Res
impl Sync for Res
impl Unpin for Res
impl UnwindSafe for Res
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