mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 11:45:54 +00:00
Update CreateASTTypeFor() to handle a potential edge-case described in tint:1764. We haven't seen this issue happen in production, nor can I find a way to trigger this with the tint executable, but try to handle this before we encounter a nasty bug. Fixed: tint:1764 Change-Id: I496932955a6fdcbe26eacef8dcd04988f92545a1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111040 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
12 lines
166 B
WebGPU Shading Language
12 lines
166 B
WebGPU Shading Language
const O = 123;
|
|
|
|
type A = array<i32, (O * 2)>;
|
|
|
|
var<workgroup> W : A;
|
|
|
|
@compute @workgroup_size(1)
|
|
fn main() {
|
|
let p : ptr<workgroup, A> = &(W);
|
|
(*(p))[0] = 42;
|
|
}
|