MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / index_2d

Function index_2d

crates/cuda_std/src/thread.rs:235–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234#[inline(always)]
235pub 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)]
242pub fn index_3d() -> Vec3<u32> {

Callers 3

renderFunction · 0.85
scale_bufferFunction · 0.85
postprocessFunction · 0.85

Calls 7

thread_idx_xFunction · 0.85
block_idx_xFunction · 0.85
block_dim_xFunction · 0.85
thread_idx_yFunction · 0.85
block_idx_yFunction · 0.85
block_dim_yFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected