dawn-cmake/test/ptr_ref/store/global/struct_field.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

13 lines
97 B
HLSL

struct S {
int i;
};
static S V;
[numthreads(1, 1, 1)]
void main() {
V.i = 5;
return;
}