mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 02:35:55 +00:00
I got the rules around this wrong. This should be allowed, but the array types cannot compare equal if they are unnamed override-expressions. Fixed tint:1737 Change-Id: I83dc49703eed015e9c183e804474886da5dad7b9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107685 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
11 lines
210 B
WebGPU Shading Language
11 lines
210 B
WebGPU Shading Language
// flags: --overrides wgsize=10
|
|
|
|
override wgsize : u32;
|
|
var<workgroup> a : array<f32, wgsize>; // Accepted
|
|
var<workgroup> b : array<f32, wgsize * 2>; // Rejected
|
|
|
|
fn f() {
|
|
let x = a[0];
|
|
let y = b[0];
|
|
}
|