dawn-cmake/test/tint/bug/tint/1737.wgsl.expected.dxc.hlsl
Ben Clayton 22c4850b06 tint/resolver: Allow array sizes to be unnamed override-expressions
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>
2022-10-31 17:26:10 +00:00

13 lines
175 B
HLSL

[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
groupshared float a[10];
groupshared float b[20];
void f() {
const float x = a[0];
const float y = b[0];
}