shame icon indicating copy to clipboard operation
shame copied to clipboard

wrong range in `WorkGroup::thread_id` docs

Open RayMarch opened this issue 9 months ago • 0 comments

the WorkGroup::thread_id docs say

    /// the 1-dimensional numeric index of a thread within its workgroup.
    ///
    /// It lies in the range `shame::zero()..self.thread_grid_size`
    ///
    /// this value is different per thread
    pub thread_id: u32x1,

it should instead say u32x1::zero()..self.thread_grid_size.comp_product()

RayMarch avatar May 04 '25 14:05 RayMarch