pub struct StageTile<E: Numeric> {
pub smem: Box<[E]>,
pub swizzle: Swizzle,
pub config: StageMemoryConfig,
pub tiling_layout: TilingLayoutEnum,
}Expand description
Payload of TileKind::Stage: non-owning view of a
StridedStageMemory buffer, with vector size and tiling layout erased
from the type and held as comptime metadata.
Fields§
§smem: Box<[E]>§swizzle: Swizzle§config: StageMemoryConfig§tiling_layout: TilingLayoutEnumImplementations§
Source§impl<E: Numeric> StageTile<E>
impl<E: Numeric> StageTile<E>
pub fn wrap<NS: Size, T: TilingLayout>( stage: &StridedStageMemory<E, NS, T>, ) -> StageTile<E>
pub fn __expand_wrap<NS: Size, T: TilingLayout>( scope: &Scope, stage: &<StridedStageMemory<E, NS, T> as CubeType>::ExpandType, ) -> <StageTile<E> as CubeType>::ExpandType
Source§impl<E: Numeric> StageTile<E>
impl<E: Numeric> StageTile<E>
pub fn wrap_mut<NS: Size, T: TilingLayout>( stage: &mut StridedStageMemory<E, NS, T>, ) -> StageTile<E>
pub fn __expand_wrap_mut<NS: Size, T: TilingLayout>( scope: &Scope, stage: &mut <StridedStageMemory<E, NS, T> as CubeType>::ExpandType, ) -> <StageTile<E> as CubeType>::ExpandType
Source§impl<E: Numeric> StageTile<E>
impl<E: Numeric> StageTile<E>
Sourcepub fn get_tile(&self, coord: Coords2d) -> SharedTile<E>
pub fn get_tile(&self, coord: Coords2d) -> SharedTile<E>
SharedTile view of the tile at coord. Dispatches on the
comptime TilingLayoutEnum.
Sourcepub fn __expand_get_tile(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
coord: <Coords2d as CubeType>::ExpandType,
) -> <SharedTile<E> as CubeType>::ExpandType
pub fn __expand_get_tile( scope: &Scope, this: &<Self as CubeType>::ExpandType, coord: <Coords2d as CubeType>::ExpandType, ) -> <SharedTile<E> as CubeType>::ExpandType
SharedTile view of the tile at coord. Dispatches on the
comptime TilingLayoutEnum.
Trait Implementations§
Source§impl<E: Numeric> CubeType for StageTile<E>
impl<E: Numeric> CubeType for StageTile<E>
type ExpandType = StageTileExpand<E>
Auto Trait Implementations§
impl<E> Freeze for StageTile<E>
impl<E> RefUnwindSafe for StageTile<E>where
E: RefUnwindSafe,
impl<E> Send for StageTile<E>
impl<E> Sync for StageTile<E>
impl<E> Unpin for StageTile<E>
impl<E> UnsafeUnpin for StageTile<E>
impl<E> UnwindSafe for StageTile<E>where
E: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
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