dawn-cmake/test/ptr_ref/load/global/i32.spvasm.expected.hlsl
Ben Clayton 09d53d5ed1 writer/hlsl: Emit static for private global variables
Fixed: tint:812
Change-Id: I822eb6b13f07a74eb47c4c8e18d1f75dcc4818bf
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51366
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-05-19 09:03:48 +00:00

10 lines
119 B
HLSL

static int I = 0;
[numthreads(1, 1, 1)]
void main() {
const int x_9 = I;
const int x_11 = (x_9 + 1);
return;
}