pub fn thread_idx_x() -> i32
Get the thread index within a block/workgroup (x dimension).
threadIdx.x
local_invocation_id.x