#[repr(C)]pub struct TileDescriptor {
pub seg_mask: u32,
pub first_row: u32,
}Expand description
Tile descriptor: bit-packed row boundary information for one tile.
The descriptor encodes:
y_offset: the starting row offset (local within the tile’s first row)seg_offset: bitmask indicating which lanes in the warp start a new rowempty_offset: number of empty (padding) elements at the end of the tile
This allows each warp to determine which rows its non-zero elements belong to and how to reduce partial sums correctly.
Fields§
§seg_mask: u32Bitmask: bit i is set if lane i starts a new row segment.
first_row: u32Index of the first row that this tile contributes to.
Trait Implementations§
Source§impl Clone for TileDescriptor
impl Clone for TileDescriptor
Source§fn clone(&self) -> TileDescriptor
fn clone(&self) -> TileDescriptor
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 moreimpl Copy for TileDescriptor
Source§impl Debug for TileDescriptor
impl Debug for TileDescriptor
Source§impl Default for TileDescriptor
impl Default for TileDescriptor
Source§fn default() -> TileDescriptor
fn default() -> TileDescriptor
Returns the “default value” for a type. Read more
impl Eq for TileDescriptor
Source§impl PartialEq for TileDescriptor
impl PartialEq for TileDescriptor
Source§fn eq(&self, other: &TileDescriptor) -> bool
fn eq(&self, other: &TileDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Send for TileDescriptor
impl StructuralPartialEq for TileDescriptor
impl Sync for TileDescriptor
Auto Trait Implementations§
impl Freeze for TileDescriptor
impl RefUnwindSafe for TileDescriptor
impl Unpin for TileDescriptor
impl UnsafeUnpin for TileDescriptor
impl UnwindSafe for TileDescriptor
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