mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
tint: Resolve @builtin() args as expressions
This CL makes the builtin argument resolve as a shadowable enumerator expression. Bug: tint:1841 Bug: tint:1845 Change-Id: I2aaa2c63025752f25c113cf2fb38f4d91c2c16c2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/120680 Kokoro: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
21571709a2
commit
4d3ff9711e
@@ -22,11 +22,11 @@ var<private> local_invocation_index_1 : u32;
|
||||
|
||||
var<workgroup> wg : S_atomic;
|
||||
|
||||
fn compute_main_inner(local_invocation_index : u32) {
|
||||
fn compute_main_inner(local_invocation_index_2 : u32) {
|
||||
var idx : u32 = 0u;
|
||||
wg.x = 0i;
|
||||
wg.y = 0u;
|
||||
idx = local_invocation_index;
|
||||
idx = local_invocation_index_2;
|
||||
loop {
|
||||
let x_30 : u32 = idx;
|
||||
if (!((x_30 < 10u))) {
|
||||
|
||||
Reference in New Issue
Block a user