From 5a3b2230aeedc91f2fbb6208526a8acdfd136718 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 18 Aug 2026 00:17:03 +0200 Subject: [PATCH] style: reformat `hello_workgroups`' `README` with `prettier` (#10071) --- examples/features/src/hello_workgroups/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/features/src/hello_workgroups/README.md b/examples/features/src/hello_workgroups/README.md index 584b71a96..edfc83565 100644 --- a/examples/features/src/hello_workgroups/README.md +++ b/examples/features/src/hello_workgroups/README.md @@ -31,10 +31,11 @@ cargo run --bin wgpu-examples hello_workgroups ### Introduction When you call `ComputePass::dispatch_workgroups`, the function dispatches multiple workgroups in a 3d grid defined by the `x`, `y`, and `z` parameters you pass to the function. For example, `dispatch_workgroups(5, 2, 1)` would create a dispatch grid like -|||||| -|---|---|---|---|---| -| W | W | W | W | W | -| W | W | W | W | W | + +| | | | | | +| --- | --- | --- | --- | --- | +| W | W | W | W | W | +| W | W | W | W | W | Where each W is a workgroup. If you want your shader to consider what workgroup within the dispatch the current invocation is in, add a function argument with type `vec3` and with the attribute `@builtin(workgroup_id)`.