pub enum TileConfig {
Auto,
Custom(u32, u32, u32),
}Expand description
Configuration strategy for partitioning execution domains into spatial tiles.
Variants§
Auto
Automatic tile sizing derived dynamically from device hardware specifications.
Custom(u32, u32, u32)
Explicit tile dimensions along the X, Y, and Z axes: (tile_x, tile_y, tile_z).
Implementations§
Source§impl TileConfig
impl TileConfig
Sourcepub const fn custom_x(x: u32) -> Self
pub const fn custom_x(x: u32) -> Self
Creates an explicit 1D tile configuration along the X axis.
Sourcepub const fn custom_xy(x: u32, y: u32) -> Self
pub const fn custom_xy(x: u32, y: u32) -> Self
Creates an explicit 2D tile configuration along the X and Y axes.
Sourcepub const fn custom_xyz(x: u32, y: u32, z: u32) -> Self
pub const fn custom_xyz(x: u32, y: u32, z: u32) -> Self
Creates an explicit 3D volumetric tile configuration along the X, Y, and Z axes.
Sourcepub const fn custom_1d(x: u32) -> Self
pub const fn custom_1d(x: u32) -> Self
Alias for Self::custom_x.
Sourcepub const fn custom_2d(x: u32, y: u32) -> Self
pub const fn custom_2d(x: u32, y: u32) -> Self
Alias for Self::custom_xy.
Trait Implementations§
Source§impl Clone for TileConfig
impl Clone for TileConfig
impl Copy for TileConfig
Source§impl Debug for TileConfig
impl Debug for TileConfig
Source§impl Default for TileConfig
impl Default for TileConfig
impl Eq for TileConfig
Source§impl Hash for TileConfig
impl Hash for TileConfig
Source§impl IntoTile for TileConfig
impl IntoTile for TileConfig
Source§fn into_tile(self) -> TileConfig
fn into_tile(self) -> TileConfig
Converts this value into a concrete
TileConfig.Source§impl PartialEq for TileConfig
impl PartialEq for TileConfig
impl StructuralPartialEq for TileConfig
Auto Trait Implementations§
impl Freeze for TileConfig
impl RefUnwindSafe for TileConfig
impl Send for TileConfig
impl Sync for TileConfig
impl Unpin for TileConfig
impl UnsafeUnpin for TileConfig
impl UnwindSafe for TileConfig
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