mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
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>
This commit is contained in:
committed by
Commit Bot service account
parent
ee449e2625
commit
09d53d5ed1
@@ -1,4 +1,4 @@
|
||||
int I = 0;
|
||||
static int I = 0;
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
int I;
|
||||
static int I;
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
|
||||
@@ -1 +1,12 @@
|
||||
SKIP: error: pointers not supported in HLSL
|
||||
struct S {
|
||||
int i;
|
||||
};
|
||||
|
||||
static S V;
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
V.i = 5;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
SKIP: error: pointers not supported in HLSL
|
||||
SKIP: Failed to generate: error: pointers not supported in HLSL
|
||||
|
||||
Reference in New Issue
Block a user