()
| 233 | |
| 234 | #[inline(always)] |
| 235 | pub fn index_2d() -> Vec2<u32> { |
| 236 | let i = thread_idx_x() + block_idx_x() * block_dim_x(); |
| 237 | let j = thread_idx_y() + block_idx_y() * block_dim_y(); |
| 238 | Vec2::new(i, j) |
| 239 | } |
| 240 | |
| 241 | #[inline(always)] |
| 242 | pub fn index_3d() -> Vec3<u32> { |
no test coverage detected