dawn-cmake/test/bug/tint/1385.wgsl.expected.hlsl
James Price b28c5ad3c6 msl: Fix non-struct runtime-sized array codegen
When these are used inside a function, we were not unwrapping the
array from the struct that we wrapped it in.

Fixed: tint:1385
Change-Id: Ide7bbd802394bf09819265be48d978ec9346adfe
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77180
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: James Price <jrprice@google.com>
2022-01-19 19:36:17 +00:00

12 lines
165 B
HLSL

ByteAddressBuffer data : register(t1, space0);
int foo() {
return asint(data.Load((4u * uint(0))));
}
[numthreads(16, 16, 1)]
void main() {
foo();
return;
}