#[repr(u32)]pub enum Tiling {
Optimal = 0,
Linear = 1,
}
Expand description
Image tiling modes.
Variants§
Optimal = 0
Optimal tiling for GPU memory access. Implementation-dependent.
Linear = 1
Optimal for CPU read/write. Texels are laid out in row-major order, possibly with some padding on each row.
Trait Implementations§
Source§impl Ord for Tiling
impl Ord for Tiling
Source§impl PartialOrd for Tiling
impl PartialOrd for Tiling
impl Copy for Tiling
impl Eq for Tiling
impl StructuralPartialEq for Tiling
Auto Trait Implementations§
impl Freeze for Tiling
impl RefUnwindSafe for Tiling
impl Send for Tiling
impl Sync for Tiling
impl Unpin for Tiling
impl UnwindSafe for Tiling
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)