Returns the work-items 1-dimensional global ID.

size_t get_local_linear_id(uint)

Description

Returns the work-items 1-dimensional global ID. For 1D work-groups, it is the same value as get_local_id(0).

For 2D work-groups, it is computed as get_local_id(1) * get_local_size (0) + get_local_id(0).

For 3D work-groups, it is computed as (get_local_id(2) * get_local_size(1) * get_local_size(0)) + (get_local_id(1) * get_local_size(0)) + get_local_id(0).

Also see

Specification