mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 08:57:26 +00:00
tint->dawn: Shuffle source tree in preperation of merging repos
docs/ -> docs/tint/ fuzzers/ -> src/tint/fuzzers/ samples/ -> src/tint/cmd/ src/ -> src/tint/ test/ -> test/tint/ BUG=tint:1418,tint:1433 Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
38f1e9c75c
commit
dbc13af287
17
test/tint/bug/fxc/dyn_array_idx/read/function.wgsl
Normal file
17
test/tint/bug/fxc/dyn_array_idx/read/function.wgsl
Normal file
@@ -0,0 +1,17 @@
|
||||
struct UBO {
|
||||
dynamic_idx: i32;
|
||||
};
|
||||
@group(0) @binding(0) var<uniform> ubo: UBO;
|
||||
struct S {
|
||||
data: array<i32, 64>;
|
||||
};
|
||||
struct Result {
|
||||
out: i32;
|
||||
};
|
||||
@group(0) @binding(1) var<storage, read_write> result: Result;
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn f() {
|
||||
var s : S;
|
||||
result.out = s.data[ubo.dynamic_idx];
|
||||
}
|
||||
Reference in New Issue
Block a user