mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-17 12:51:28 +00:00
This CL updates the `workgroup_size` attribute to use `expression` values instead of `primary_expression`. Bug: tint:1633 Change-Id: I0afbabd8ee61943469f04a55d56f85920563e2da Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99960 Reviewed-by: Ben Clayton <bclayton@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
8 lines
108 B
WebGPU Shading Language
8 lines
108 B
WebGPU Shading Language
@id(0) override x_dim = 2;
|
|
|
|
@compute
|
|
@workgroup_size(1 + 2, x_dim, clamp((1 - 2) + 4, 0, 5))
|
|
fn main() {
|
|
}
|
|
|