mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
Also remove the unreachanble constructor logic in EmitHandleVariable. Variables of the handle storage class cannot have initializers. Fixed: tint:173 Change-Id: I7c997a8b6a70308ff9b5c42fa1198810ee365bac Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55258 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
19 lines
181 B
HLSL
19 lines
181 B
HLSL
struct S {
|
|
int i;
|
|
};
|
|
|
|
static S V = {0};
|
|
|
|
void main_1() {
|
|
int i = 0;
|
|
const int x_15 = V.i;
|
|
i = x_15;
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
main_1();
|
|
return;
|
|
}
|