Skip to content

Commit d9df5a9

Browse files
committed
builtin: remove code links to workgroup_size, to be reverted later
1 parent e5e4d23 commit d9df5a9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/spirv-std/src/compute.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use glam::UVec3;
77
/// In the compute language, [`local_invocation_id`] is an input variable containing the n-dimensional index of the
88
/// local work invocation within the work group that the current shader is executing in. The possible values for this
99
/// variable range across the local work group size, i.e., `(0,0,0)` to
10-
/// `(`[`workgroup_size`]`.x - 1, `[`workgroup_size`]`.y - 1, `[`workgroup_size`]`.z - 1)`.
10+
/// `(workgroup_size.x - 1, workgroup_size.y - 1, workgroup_size.z - 1)`.
1111
///
1212
/// * GLSL: [`gl_LocalInvocationID`](https://registry.khronos.org/OpenGL-Refpages/gl4/html/gl_LocalInvocationID.xhtml)
1313
/// * WGSL: [`local_invocation_id`](https://www.w3.org/TR/WGSL/#local-invocation-id-builtin-value)
@@ -24,8 +24,8 @@ pub fn local_invocation_id() -> UVec3 {
2424
///
2525
/// In the compute language, [`local_invocation_index`] is a derived input variable containing the 1-dimensional
2626
/// linearized index of the work invocation within the work group that the current shader is executing on. The value of
27-
/// [`local_invocation_index`] is equal to [`local_invocation_id`]`.z * `[`workgroup_size`]`.x * `[`workgroup_size`]`.y`
28-
/// `+ `[`local_invocation_id`]`.y * `[`workgroup_size`]`.x + `[`local_invocation_id`]`.x`.
27+
/// [`local_invocation_index`] is equal to [`local_invocation_id`]`.z * workgroup_size.x * workgroup_size.y`
28+
/// `+ `[`local_invocation_id`]`.y * workgroup_size.x + `[`local_invocation_id`]`.x`.
2929
///
3030
/// * GLSL: [`gl_LocalInvocationIndex`](https://registry.khronos.org/OpenGL-Refpages/gl4/html/gl_LocalInvocationIndex.xhtml)
3131
/// * WGSL: [`local_invocation_index`](https://www.w3.org/TR/WGSL/#local-invocation-index-builtin-value)
@@ -42,7 +42,7 @@ pub fn local_invocation_index() -> u32 {
4242
///
4343
/// In the compute language, [`global_invocation_id`] is a derived input variable containing the n-dimensional index of
4444
/// the work invocation within the global work group that the current shader is executing on. The value of
45-
/// [`global_invocation_id`] is equal to [`workgroup_id`]` * `[`workgroup_size`]` + `[`local_invocation_id`].
45+
/// [`global_invocation_id`] is equal to [`workgroup_id`]` * workgroup_size + `[`local_invocation_id`].
4646
///
4747
/// * GLSL: [`gl_GlobalInvocationID`](https://registry.khronos.org/OpenGL-Refpages/gl4/html/gl_GlobalInvocationID.xhtml)
4848
/// * WGSL: [`global_invocation_id`](https://www.w3.org/TR/WGSL/#global-invocation-index-builtin-value)

0 commit comments

Comments
 (0)