pub struct TileLayout {
pub log2_cols: u8,
pub log2_rows: u8,
pub mi_cols: usize,
pub mi_rows: usize,
pub cols: Vec<(usize, usize)>,
pub rows: Vec<(usize, usize)>,
}Fields§
§log2_cols: u8§log2_rows: u8§mi_cols: usize§mi_rows: usize§cols: Vec<(usize, usize)>§rows: Vec<(usize, usize)>Implementations§
Source§impl TileLayout
impl TileLayout
pub fn new(mi_cols: usize, mi_rows: usize, threads: usize) -> TileLayout
pub fn with_log2( mi_cols: usize, mi_rows: usize, log2_cols: u8, log2_rows: u8, ) -> TileLayout
pub fn sb_cols(&self) -> usize
pub fn sb_rows(&self) -> usize
pub fn tile_row_of(&self, sb_row: usize) -> usize
Trait Implementations§
Source§impl Clone for TileLayout
impl Clone for TileLayout
Source§fn clone(&self) -> TileLayout
fn clone(&self) -> TileLayout
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 moreSource§impl Debug for TileLayout
impl Debug for TileLayout
Source§impl PartialEq for TileLayout
impl PartialEq for TileLayout
Source§fn eq(&self, other: &TileLayout) -> bool
fn eq(&self, other: &TileLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TileLayout
impl StructuralPartialEq for TileLayout
Auto Trait Implementations§
impl Freeze for TileLayout
impl RefUnwindSafe for TileLayout
impl Send for TileLayout
impl Sync for TileLayout
impl Unpin for TileLayout
impl UnsafeUnpin for TileLayout
impl UnwindSafe for TileLayout
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more