GLSL: add .expected.glsl files for all tests.
Bug: tint:1301
Change-Id: Id3a591a2fa0dfdb112046d5c57defbae07483e0d
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69480
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl b/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl
new file mode 100644
index 0000000..f910844
--- /dev/null
+++ b/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl
@@ -0,0 +1,30 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer S_1 {
+ int a[];
+} G;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ uint tint_symbol_2 = 0u;
+ G.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint l1 = tint_symbol_3;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'GetDimensions' : no such field in structure
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/arrayLength/deprecated.wgsl.expected.glsl b/test/intrinsics/arrayLength/deprecated.wgsl.expected.glsl
new file mode 100644
index 0000000..b4a6064
--- /dev/null
+++ b/test/intrinsics/arrayLength/deprecated.wgsl.expected.glsl
@@ -0,0 +1,31 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer S_1 {
+ int a[];
+} G;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ uint tint_symbol_2 = 0u;
+ G.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint l1 = tint_symbol_3;
+ uint l2 = tint_symbol_3;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'GetDimensions' : no such field in structure
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/arrayLength/simple.wgsl.expected.glsl b/test/intrinsics/arrayLength/simple.wgsl.expected.glsl
new file mode 100644
index 0000000..f910844
--- /dev/null
+++ b/test/intrinsics/arrayLength/simple.wgsl.expected.glsl
@@ -0,0 +1,30 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer S_1 {
+ int a[];
+} G;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ uint tint_symbol_2 = 0u;
+ G.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint l1 = tint_symbol_3;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'GetDimensions' : no such field in structure
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/arrayLength/via_let.wgsl.expected.glsl b/test/intrinsics/arrayLength/via_let.wgsl.expected.glsl
new file mode 100644
index 0000000..f910844
--- /dev/null
+++ b/test/intrinsics/arrayLength/via_let.wgsl.expected.glsl
@@ -0,0 +1,30 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer S_1 {
+ int a[];
+} G;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ uint tint_symbol_2 = 0u;
+ G.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint l1 = tint_symbol_3;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'GetDimensions' : no such field in structure
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.glsl b/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.glsl
new file mode 100644
index 0000000..f910844
--- /dev/null
+++ b/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.glsl
@@ -0,0 +1,30 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer S_1 {
+ int a[];
+} G;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ uint tint_symbol_2 = 0u;
+ G.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint l1 = tint_symbol_3;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'GetDimensions' : no such field in structure
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/degrees.spvasm.expected.glsl b/test/intrinsics/degrees.spvasm.expected.glsl
new file mode 100644
index 0000000..29619c6
--- /dev/null
+++ b/test/intrinsics/degrees.spvasm.expected.glsl
@@ -0,0 +1,21 @@
+#version 310 es
+precision mediump float;
+
+void main_1() {
+ float a = 0.0f;
+ float b = 0.0f;
+ a = 42.0f;
+ b = (a * 57.295780182f);
+ return;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ main_1();
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
diff --git a/test/intrinsics/frexp.wgsl.expected.glsl b/test/intrinsics/frexp.wgsl.expected.glsl
new file mode 100644
index 0000000..a0d5cde
--- /dev/null
+++ b/test/intrinsics/frexp.wgsl.expected.glsl
@@ -0,0 +1,36 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result {
+ float sig;
+ int exp;
+};
+frexp_result tint_frexp(float param_0) {
+ float exp;
+ float sig = frexp(param_0, exp);
+ frexp_result result = {sig, int(exp)};
+ return result;
+}
+
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ frexp_result res = tint_frexp(1.230000019f);
+ int tint_symbol_1 = res.exp;
+ float sig = res.sig;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:10: 'frexp' : no matching overloaded function found
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/abs/002533.wgsl.expected.glsl b/test/intrinsics/gen/abs/002533.wgsl.expected.glsl
new file mode 100644
index 0000000..37efd67
--- /dev/null
+++ b/test/intrinsics/gen/abs/002533.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_002533() {
+ vec4 res = abs(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_002533();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_002533() {
+ vec4 res = abs(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_002533();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_002533() {
+ vec4 res = abs(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_002533();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/abs/005174.wgsl.expected.glsl b/test/intrinsics/gen/abs/005174.wgsl.expected.glsl
new file mode 100644
index 0000000..e538ffc
--- /dev/null
+++ b/test/intrinsics/gen/abs/005174.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_005174() {
+ vec3 res = abs(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_005174();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_005174() {
+ vec3 res = abs(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_005174();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_005174() {
+ vec3 res = abs(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_005174();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/abs/1ce782.wgsl.expected.glsl b/test/intrinsics/gen/abs/1ce782.wgsl.expected.glsl
new file mode 100644
index 0000000..f5203d9
--- /dev/null
+++ b/test/intrinsics/gen/abs/1ce782.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void abs_1ce782() {
+ uvec4 res = abs(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_1ce782();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_1ce782() {
+ uvec4 res = abs(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_1ce782();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_1ce782() {
+ uvec4 res = abs(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_1ce782();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl b/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl
new file mode 100644
index 0000000..3260ba1
--- /dev/null
+++ b/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_1e9d53() {
+ vec2 res = abs(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_1e9d53();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_1e9d53() {
+ vec2 res = abs(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_1e9d53();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_1e9d53() {
+ vec2 res = abs(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_1e9d53();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/abs/467cd1.wgsl.expected.glsl b/test/intrinsics/gen/abs/467cd1.wgsl.expected.glsl
new file mode 100644
index 0000000..f94f2f5
--- /dev/null
+++ b/test/intrinsics/gen/abs/467cd1.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void abs_467cd1() {
+ uint res = abs(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_467cd1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_467cd1() {
+ uint res = abs(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_467cd1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_467cd1() {
+ uint res = abs(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_467cd1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl b/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl
new file mode 100644
index 0000000..f7dbd20
--- /dev/null
+++ b/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_4ad288() {
+ int res = abs(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_4ad288();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_4ad288() {
+ int res = abs(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_4ad288();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_4ad288() {
+ int res = abs(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_4ad288();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/abs/5ad50a.wgsl.expected.glsl b/test/intrinsics/gen/abs/5ad50a.wgsl.expected.glsl
new file mode 100644
index 0000000..61111dd
--- /dev/null
+++ b/test/intrinsics/gen/abs/5ad50a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_5ad50a() {
+ ivec3 res = abs(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_5ad50a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_5ad50a() {
+ ivec3 res = abs(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_5ad50a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_5ad50a() {
+ ivec3 res = abs(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_5ad50a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/abs/7326de.wgsl.expected.glsl b/test/intrinsics/gen/abs/7326de.wgsl.expected.glsl
new file mode 100644
index 0000000..54c757a
--- /dev/null
+++ b/test/intrinsics/gen/abs/7326de.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void abs_7326de() {
+ uvec3 res = abs(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_7326de();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_7326de() {
+ uvec3 res = abs(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_7326de();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_7326de() {
+ uvec3 res = abs(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_7326de();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl b/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl
new file mode 100644
index 0000000..d3ce049
--- /dev/null
+++ b/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void abs_7f28e6() {
+ uvec2 res = abs(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_7f28e6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_7f28e6() {
+ uvec2 res = abs(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_7f28e6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void abs_7f28e6() {
+ uvec2 res = abs(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_7f28e6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'abs' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl b/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl
new file mode 100644
index 0000000..0bc8ce5
--- /dev/null
+++ b/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_7faa9e() {
+ ivec2 res = abs(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_7faa9e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_7faa9e() {
+ ivec2 res = abs(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_7faa9e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_7faa9e() {
+ ivec2 res = abs(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_7faa9e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/abs/9c80a6.wgsl.expected.glsl b/test/intrinsics/gen/abs/9c80a6.wgsl.expected.glsl
new file mode 100644
index 0000000..9c4029c
--- /dev/null
+++ b/test/intrinsics/gen/abs/9c80a6.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_9c80a6() {
+ ivec4 res = abs(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_9c80a6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_9c80a6() {
+ ivec4 res = abs(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_9c80a6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_9c80a6() {
+ ivec4 res = abs(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_9c80a6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/abs/b96037.wgsl.expected.glsl b/test/intrinsics/gen/abs/b96037.wgsl.expected.glsl
new file mode 100644
index 0000000..bc63419
--- /dev/null
+++ b/test/intrinsics/gen/abs/b96037.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void abs_b96037() {
+ float res = abs(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ abs_b96037();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_b96037() {
+ float res = abs(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ abs_b96037();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void abs_b96037() {
+ float res = abs(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ abs_b96037();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/acos/489247.wgsl.expected.glsl b/test/intrinsics/gen/acos/489247.wgsl.expected.glsl
new file mode 100644
index 0000000..4671881
--- /dev/null
+++ b/test/intrinsics/gen/acos/489247.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void acos_489247() {
+ float res = acos(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ acos_489247();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_489247() {
+ float res = acos(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ acos_489247();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_489247() {
+ float res = acos(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ acos_489247();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/acos/8e2acf.wgsl.expected.glsl b/test/intrinsics/gen/acos/8e2acf.wgsl.expected.glsl
new file mode 100644
index 0000000..97e9be5
--- /dev/null
+++ b/test/intrinsics/gen/acos/8e2acf.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void acos_8e2acf() {
+ vec4 res = acos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ acos_8e2acf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_8e2acf() {
+ vec4 res = acos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ acos_8e2acf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_8e2acf() {
+ vec4 res = acos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ acos_8e2acf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/acos/a610c4.wgsl.expected.glsl b/test/intrinsics/gen/acos/a610c4.wgsl.expected.glsl
new file mode 100644
index 0000000..22d013a
--- /dev/null
+++ b/test/intrinsics/gen/acos/a610c4.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void acos_a610c4() {
+ vec3 res = acos(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ acos_a610c4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_a610c4() {
+ vec3 res = acos(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ acos_a610c4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_a610c4() {
+ vec3 res = acos(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ acos_a610c4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/acos/dfc915.wgsl.expected.glsl b/test/intrinsics/gen/acos/dfc915.wgsl.expected.glsl
new file mode 100644
index 0000000..2969cd7
--- /dev/null
+++ b/test/intrinsics/gen/acos/dfc915.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void acos_dfc915() {
+ vec2 res = acos(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ acos_dfc915();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_dfc915() {
+ vec2 res = acos(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ acos_dfc915();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void acos_dfc915() {
+ vec2 res = acos(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ acos_dfc915();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/all/353d6a.wgsl.expected.glsl b/test/intrinsics/gen/all/353d6a.wgsl.expected.glsl
new file mode 100644
index 0000000..256c243
--- /dev/null
+++ b/test/intrinsics/gen/all/353d6a.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void all_353d6a() {
+ bool res = all(false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ all_353d6a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'all' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void all_353d6a() {
+ bool res = all(false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ all_353d6a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'all' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void all_353d6a() {
+ bool res = all(false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ all_353d6a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'all' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl b/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl
new file mode 100644
index 0000000..4274d15
--- /dev/null
+++ b/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void all_986c7b() {
+ bool res = all(bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ all_986c7b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void all_986c7b() {
+ bool res = all(bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ all_986c7b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void all_986c7b() {
+ bool res = all(bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ all_986c7b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/all/bd2dba.wgsl.expected.glsl b/test/intrinsics/gen/all/bd2dba.wgsl.expected.glsl
new file mode 100644
index 0000000..8cd6c93
--- /dev/null
+++ b/test/intrinsics/gen/all/bd2dba.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void all_bd2dba() {
+ bool res = all(bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ all_bd2dba();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void all_bd2dba() {
+ bool res = all(bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ all_bd2dba();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void all_bd2dba() {
+ bool res = all(bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ all_bd2dba();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/all/f46790.wgsl.expected.glsl b/test/intrinsics/gen/all/f46790.wgsl.expected.glsl
new file mode 100644
index 0000000..4ad941d
--- /dev/null
+++ b/test/intrinsics/gen/all/f46790.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void all_f46790() {
+ bool res = all(bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ all_f46790();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void all_f46790() {
+ bool res = all(bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ all_f46790();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void all_f46790() {
+ bool res = all(bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ all_f46790();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/any/083428.wgsl.expected.glsl b/test/intrinsics/gen/any/083428.wgsl.expected.glsl
new file mode 100644
index 0000000..1bc4e96
--- /dev/null
+++ b/test/intrinsics/gen/any/083428.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void any_083428() {
+ bool res = any(bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ any_083428();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void any_083428() {
+ bool res = any(bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ any_083428();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void any_083428() {
+ bool res = any(bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ any_083428();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/any/0e3e58.wgsl.expected.glsl b/test/intrinsics/gen/any/0e3e58.wgsl.expected.glsl
new file mode 100644
index 0000000..3ad92f7
--- /dev/null
+++ b/test/intrinsics/gen/any/0e3e58.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void any_0e3e58() {
+ bool res = any(bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ any_0e3e58();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void any_0e3e58() {
+ bool res = any(bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ any_0e3e58();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void any_0e3e58() {
+ bool res = any(bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ any_0e3e58();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/any/2ab91a.wgsl.expected.glsl b/test/intrinsics/gen/any/2ab91a.wgsl.expected.glsl
new file mode 100644
index 0000000..31564bc
--- /dev/null
+++ b/test/intrinsics/gen/any/2ab91a.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void any_2ab91a() {
+ bool res = any(false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ any_2ab91a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'any' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void any_2ab91a() {
+ bool res = any(false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ any_2ab91a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'any' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void any_2ab91a() {
+ bool res = any(false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ any_2ab91a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'any' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl b/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl
new file mode 100644
index 0000000..a90aa60
--- /dev/null
+++ b/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void any_e755c1() {
+ bool res = any(bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ any_e755c1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void any_e755c1() {
+ bool res = any(bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ any_e755c1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void any_e755c1() {
+ bool res = any(bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ any_e755c1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.glsl b/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.glsl
new file mode 100644
index 0000000..6e00a68
--- /dev/null
+++ b/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.glsl
@@ -0,0 +1,118 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ int arg_0[];
+} sb_ro;
+
+void arrayLength_1588cd() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ arrayLength_1588cd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ int arg_0[];
+} sb_ro;
+
+void arrayLength_1588cd() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ arrayLength_1588cd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ int arg_0[];
+} sb_ro;
+
+void arrayLength_1588cd() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ arrayLength_1588cd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.glsl b/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.glsl
new file mode 100644
index 0000000..35a6d6e
--- /dev/null
+++ b/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.glsl
@@ -0,0 +1,118 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0[];
+} sb_rw;
+
+void arrayLength_61b1c7() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ arrayLength_61b1c7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0[];
+} sb_rw;
+
+void arrayLength_61b1c7() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ arrayLength_61b1c7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0[];
+} sb_rw;
+
+void arrayLength_61b1c7() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ arrayLength_61b1c7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.glsl b/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.glsl
new file mode 100644
index 0000000..c398958
--- /dev/null
+++ b/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.glsl
@@ -0,0 +1,118 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ float arg_0[];
+} sb_ro;
+
+void arrayLength_a0f5ca() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ arrayLength_a0f5ca();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ float arg_0[];
+} sb_ro;
+
+void arrayLength_a0f5ca() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ arrayLength_a0f5ca();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ float arg_0[];
+} sb_ro;
+
+void arrayLength_a0f5ca() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ arrayLength_a0f5ca();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.glsl b/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.glsl
new file mode 100644
index 0000000..fc6d390
--- /dev/null
+++ b/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.glsl
@@ -0,0 +1,118 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ float arg_0[];
+} sb_rw;
+
+void arrayLength_cdd123() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ arrayLength_cdd123();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ float arg_0[];
+} sb_rw;
+
+void arrayLength_cdd123() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ arrayLength_cdd123();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ float arg_0[];
+} sb_rw;
+
+void arrayLength_cdd123() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ arrayLength_cdd123();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.glsl b/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.glsl
new file mode 100644
index 0000000..6a17122
--- /dev/null
+++ b/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.glsl
@@ -0,0 +1,118 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ uint arg_0[];
+} sb_ro;
+
+void arrayLength_cfca0a() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ arrayLength_cfca0a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ uint arg_0[];
+} sb_ro;
+
+void arrayLength_cfca0a() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ arrayLength_cfca0a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 1) buffer SB_RO_1 {
+ uint arg_0[];
+} sb_ro;
+
+void arrayLength_cfca0a() {
+ uint tint_symbol_2 = 0u;
+ sb_ro.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ arrayLength_cfca0a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.glsl b/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.glsl
new file mode 100644
index 0000000..b84191f
--- /dev/null
+++ b/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.glsl
@@ -0,0 +1,118 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0[];
+} sb_rw;
+
+void arrayLength_eb510f() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ arrayLength_eb510f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0[];
+} sb_rw;
+
+void arrayLength_eb510f() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ arrayLength_eb510f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0[];
+} sb_rw;
+
+void arrayLength_eb510f() {
+ uint tint_symbol_2 = 0u;
+ sb_rw.GetDimensions(tint_symbol_2);
+ uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u);
+ uint res = tint_symbol_3;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ arrayLength_eb510f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'GetDimensions' : no such field in structure
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/asin/064953.wgsl.expected.glsl b/test/intrinsics/gen/asin/064953.wgsl.expected.glsl
new file mode 100644
index 0000000..cdc9a95
--- /dev/null
+++ b/test/intrinsics/gen/asin/064953.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void asin_064953() {
+ vec4 res = asin(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ asin_064953();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_064953() {
+ vec4 res = asin(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ asin_064953();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_064953() {
+ vec4 res = asin(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ asin_064953();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/asin/7b6a44.wgsl.expected.glsl b/test/intrinsics/gen/asin/7b6a44.wgsl.expected.glsl
new file mode 100644
index 0000000..4af4bed
--- /dev/null
+++ b/test/intrinsics/gen/asin/7b6a44.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void asin_7b6a44() {
+ vec2 res = asin(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ asin_7b6a44();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_7b6a44() {
+ vec2 res = asin(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ asin_7b6a44();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_7b6a44() {
+ vec2 res = asin(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ asin_7b6a44();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.glsl b/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.glsl
new file mode 100644
index 0000000..48fdbcb
--- /dev/null
+++ b/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void asin_8cd9c9() {
+ vec3 res = asin(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ asin_8cd9c9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_8cd9c9() {
+ vec3 res = asin(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ asin_8cd9c9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_8cd9c9() {
+ vec3 res = asin(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ asin_8cd9c9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/asin/c0c272.wgsl.expected.glsl b/test/intrinsics/gen/asin/c0c272.wgsl.expected.glsl
new file mode 100644
index 0000000..1e8378e
--- /dev/null
+++ b/test/intrinsics/gen/asin/c0c272.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void asin_c0c272() {
+ float res = asin(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ asin_c0c272();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_c0c272() {
+ float res = asin(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ asin_c0c272();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void asin_c0c272() {
+ float res = asin(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ asin_c0c272();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan/02979a.wgsl.expected.glsl b/test/intrinsics/gen/atan/02979a.wgsl.expected.glsl
new file mode 100644
index 0000000..ee1eaad
--- /dev/null
+++ b/test/intrinsics/gen/atan/02979a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan_02979a() {
+ float res = atan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan_02979a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_02979a() {
+ float res = atan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan_02979a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_02979a() {
+ float res = atan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan_02979a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan/331e6d.wgsl.expected.glsl b/test/intrinsics/gen/atan/331e6d.wgsl.expected.glsl
new file mode 100644
index 0000000..84b1dfd
--- /dev/null
+++ b/test/intrinsics/gen/atan/331e6d.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan_331e6d() {
+ vec3 res = atan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan_331e6d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_331e6d() {
+ vec3 res = atan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan_331e6d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_331e6d() {
+ vec3 res = atan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan_331e6d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan/a8b696.wgsl.expected.glsl b/test/intrinsics/gen/atan/a8b696.wgsl.expected.glsl
new file mode 100644
index 0000000..0ebc406
--- /dev/null
+++ b/test/intrinsics/gen/atan/a8b696.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan_a8b696() {
+ vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan_a8b696();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_a8b696() {
+ vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan_a8b696();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_a8b696() {
+ vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan_a8b696();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan/ad96e4.wgsl.expected.glsl b/test/intrinsics/gen/atan/ad96e4.wgsl.expected.glsl
new file mode 100644
index 0000000..c07ed31
--- /dev/null
+++ b/test/intrinsics/gen/atan/ad96e4.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan_ad96e4() {
+ vec2 res = atan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan_ad96e4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_ad96e4() {
+ vec2 res = atan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan_ad96e4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan_ad96e4() {
+ vec2 res = atan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan_ad96e4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan2/57fb13.wgsl.expected.glsl b/test/intrinsics/gen/atan2/57fb13.wgsl.expected.glsl
new file mode 100644
index 0000000..9e5d0a3
--- /dev/null
+++ b/test/intrinsics/gen/atan2/57fb13.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan2_57fb13() {
+ vec2 res = atan(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan2_57fb13();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_57fb13() {
+ vec2 res = atan(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan2_57fb13();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_57fb13() {
+ vec2 res = atan(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan2_57fb13();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan2/96057c.wgsl.expected.glsl b/test/intrinsics/gen/atan2/96057c.wgsl.expected.glsl
new file mode 100644
index 0000000..b5eec8b
--- /dev/null
+++ b/test/intrinsics/gen/atan2/96057c.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan2_96057c() {
+ float res = atan(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan2_96057c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_96057c() {
+ float res = atan(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan2_96057c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_96057c() {
+ float res = atan(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan2_96057c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.glsl b/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.glsl
new file mode 100644
index 0000000..f06fcdd
--- /dev/null
+++ b/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan2_a70d0d() {
+ vec3 res = atan(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan2_a70d0d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_a70d0d() {
+ vec3 res = atan(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan2_a70d0d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_a70d0d() {
+ vec3 res = atan(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan2_a70d0d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atan2/ae713e.wgsl.expected.glsl b/test/intrinsics/gen/atan2/ae713e.wgsl.expected.glsl
new file mode 100644
index 0000000..ec9f7d0
--- /dev/null
+++ b/test/intrinsics/gen/atan2/ae713e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void atan2_ae713e() {
+ vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ atan2_ae713e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_ae713e() {
+ vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ atan2_ae713e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void atan2_ae713e() {
+ vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atan2_ae713e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.glsl b/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.glsl
new file mode 100644
index 0000000..cc143ec
--- /dev/null
+++ b/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicAdd_794055() {
+ int atomic_result = 0;
+ InterlockedAdd(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicAdd_794055();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl b/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl
new file mode 100644
index 0000000..139df57
--- /dev/null
+++ b/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicAdd_8a199a() {
+ uint atomic_result = 0u;
+ InterlockedAdd(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicAdd_8a199a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicAdd_8a199a() {
+ uint atomic_result = 0u;
+ InterlockedAdd(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicAdd_8a199a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl b/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl
new file mode 100644
index 0000000..e157ee3
--- /dev/null
+++ b/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicAdd_d32fe4() {
+ int atomic_result = 0;
+ InterlockedAdd(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicAdd_d32fe4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicAdd_d32fe4() {
+ int atomic_result = 0;
+ InterlockedAdd(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicAdd_d32fe4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl b/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl
new file mode 100644
index 0000000..1c43164
--- /dev/null
+++ b/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicAdd_d5db1d() {
+ uint atomic_result = 0u;
+ InterlockedAdd(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicAdd_d5db1d();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl
new file mode 100644
index 0000000..813e521
--- /dev/null
+++ b/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicAnd_152966() {
+ int atomic_result = 0;
+ InterlockedAnd(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicAnd_152966();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAnd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicAnd_152966() {
+ int atomic_result = 0;
+ InterlockedAnd(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicAnd_152966();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAnd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl
new file mode 100644
index 0000000..05f66bb
--- /dev/null
+++ b/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicAnd_34edd3() {
+ uint atomic_result = 0u;
+ InterlockedAnd(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicAnd_34edd3();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl
new file mode 100644
index 0000000..10635fb
--- /dev/null
+++ b/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicAnd_45a819() {
+ int atomic_result = 0;
+ InterlockedAnd(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicAnd_45a819();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl
new file mode 100644
index 0000000..50f0b04
--- /dev/null
+++ b/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicAnd_85a8d9() {
+ uint atomic_result = 0u;
+ InterlockedAnd(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicAnd_85a8d9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAnd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicAnd_85a8d9() {
+ uint atomic_result = 0u;
+ InterlockedAnd(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicAnd_85a8d9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAnd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl
new file mode 100644
index 0000000..f15fa37
--- /dev/null
+++ b/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl
@@ -0,0 +1,67 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicCompareExchangeWeak_12871c() {
+ ivec2 atomic_result = ivec2(0, 0);
+ int atomic_compare_value = 1;
+ InterlockedCompareExchange(sb_rw.arg_0, atomic_compare_value, 1, atomic_result.x);
+ atomic_result.y = atomic_result.x == atomic_compare_value;
+ ivec2 res = atomic_result;
+}
+
+void fragment_main() {
+ atomicCompareExchangeWeak_12871c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'InterlockedCompareExchange' : no matching overloaded function found
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicCompareExchangeWeak_12871c() {
+ ivec2 atomic_result = ivec2(0, 0);
+ int atomic_compare_value = 1;
+ InterlockedCompareExchange(sb_rw.arg_0, atomic_compare_value, 1, atomic_result.x);
+ atomic_result.y = atomic_result.x == atomic_compare_value;
+ ivec2 res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicCompareExchangeWeak_12871c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'InterlockedCompareExchange' : no matching overloaded function found
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl
new file mode 100644
index 0000000..f1cde24
--- /dev/null
+++ b/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl
@@ -0,0 +1,67 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicCompareExchangeWeak_6673da() {
+ uvec2 atomic_result = uvec2(0u, 0u);
+ uint atomic_compare_value = 1u;
+ InterlockedCompareExchange(sb_rw.arg_0, atomic_compare_value, 1u, atomic_result.x);
+ atomic_result.y = atomic_result.x == atomic_compare_value;
+ uvec2 res = atomic_result;
+}
+
+void fragment_main() {
+ atomicCompareExchangeWeak_6673da();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'InterlockedCompareExchange' : no matching overloaded function found
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicCompareExchangeWeak_6673da() {
+ uvec2 atomic_result = uvec2(0u, 0u);
+ uint atomic_compare_value = 1u;
+ InterlockedCompareExchange(sb_rw.arg_0, atomic_compare_value, 1u, atomic_result.x);
+ atomic_result.y = atomic_result.x == atomic_compare_value;
+ uvec2 res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicCompareExchangeWeak_6673da();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:12: 'InterlockedCompareExchange' : no matching overloaded function found
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl
new file mode 100644
index 0000000..9760452
--- /dev/null
+++ b/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl
@@ -0,0 +1,46 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicCompareExchangeWeak_89ea3b() {
+ ivec2 atomic_result = ivec2(0, 0);
+ int atomic_compare_value = 1;
+ InterlockedCompareExchange(arg_0, atomic_compare_value, 1, atomic_result.x);
+ atomic_result.y = atomic_result.x == atomic_compare_value;
+ ivec2 res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicCompareExchangeWeak_89ea3b();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl
new file mode 100644
index 0000000..be102ee
--- /dev/null
+++ b/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl
@@ -0,0 +1,46 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicCompareExchangeWeak_b2ab2c() {
+ uvec2 atomic_result = uvec2(0u, 0u);
+ uint atomic_compare_value = 1u;
+ InterlockedCompareExchange(arg_0, atomic_compare_value, 1u, atomic_result.x);
+ atomic_result.y = atomic_result.x == atomic_compare_value;
+ uvec2 res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicCompareExchangeWeak_b2ab2c();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl
new file mode 100644
index 0000000..8b09423
--- /dev/null
+++ b/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicExchange_0a5dca() {
+ uint atomic_result = 0u;
+ InterlockedExchange(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicExchange_0a5dca();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl
new file mode 100644
index 0000000..7e1913c
--- /dev/null
+++ b/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicExchange_d59712() {
+ uint atomic_result = 0u;
+ InterlockedExchange(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicExchange_d59712();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicExchange_d59712() {
+ uint atomic_result = 0u;
+ InterlockedExchange(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicExchange_d59712();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl
new file mode 100644
index 0000000..d847eaf
--- /dev/null
+++ b/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicExchange_e114ba() {
+ int atomic_result = 0;
+ InterlockedExchange(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicExchange_e114ba();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl
new file mode 100644
index 0000000..f777a17
--- /dev/null
+++ b/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicExchange_f2e22f() {
+ int atomic_result = 0;
+ InterlockedExchange(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicExchange_f2e22f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicExchange_f2e22f() {
+ int atomic_result = 0;
+ InterlockedExchange(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicExchange_f2e22f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl
new file mode 100644
index 0000000..2f8cb3d
--- /dev/null
+++ b/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicLoad_0806ad() {
+ int atomic_result = 0;
+ InterlockedOr(sb_rw.arg_0, 0, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicLoad_0806ad();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicLoad_0806ad() {
+ int atomic_result = 0;
+ InterlockedOr(sb_rw.arg_0, 0, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicLoad_0806ad();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl
new file mode 100644
index 0000000..e0c94f0
--- /dev/null
+++ b/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicLoad_361bf1() {
+ uint atomic_result = 0u;
+ InterlockedOr(arg_0, 0, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicLoad_361bf1();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl
new file mode 100644
index 0000000..74351a3
--- /dev/null
+++ b/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicLoad_afcc03() {
+ int atomic_result = 0;
+ InterlockedOr(arg_0, 0, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicLoad_afcc03();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl
new file mode 100644
index 0000000..7fc0623
--- /dev/null
+++ b/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicLoad_fe6cc3() {
+ uint atomic_result = 0u;
+ InterlockedOr(sb_rw.arg_0, 0, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicLoad_fe6cc3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicLoad_fe6cc3() {
+ uint atomic_result = 0u;
+ InterlockedOr(sb_rw.arg_0, 0, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicLoad_fe6cc3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl
new file mode 100644
index 0000000..4a35e2c
--- /dev/null
+++ b/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicMax_51b9be() {
+ uint atomic_result = 0u;
+ InterlockedMax(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicMax_51b9be();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMax' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicMax_51b9be() {
+ uint atomic_result = 0u;
+ InterlockedMax(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicMax_51b9be();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMax' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl
new file mode 100644
index 0000000..5c77b71
--- /dev/null
+++ b/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicMax_92aa72() {
+ int atomic_result = 0;
+ InterlockedMax(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicMax_92aa72();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMax' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicMax_92aa72() {
+ int atomic_result = 0;
+ InterlockedMax(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicMax_92aa72();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMax' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl
new file mode 100644
index 0000000..526868b
--- /dev/null
+++ b/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicMax_a89cc3() {
+ int atomic_result = 0;
+ InterlockedMax(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicMax_a89cc3();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl
new file mode 100644
index 0000000..e34d9e9
--- /dev/null
+++ b/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicMax_beccfc() {
+ uint atomic_result = 0u;
+ InterlockedMax(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicMax_beccfc();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl
new file mode 100644
index 0000000..cf4724c
--- /dev/null
+++ b/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicMin_278235() {
+ int atomic_result = 0;
+ InterlockedMin(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicMin_278235();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl
new file mode 100644
index 0000000..ade2280
--- /dev/null
+++ b/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicMin_69d383() {
+ uint atomic_result = 0u;
+ InterlockedMin(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicMin_69d383();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl
new file mode 100644
index 0000000..da27730
--- /dev/null
+++ b/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicMin_8e38dc() {
+ int atomic_result = 0;
+ InterlockedMin(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicMin_8e38dc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMin' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicMin_8e38dc() {
+ int atomic_result = 0;
+ InterlockedMin(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicMin_8e38dc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMin' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl
new file mode 100644
index 0000000..719cf8e
--- /dev/null
+++ b/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicMin_c67a74() {
+ uint atomic_result = 0u;
+ InterlockedMin(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicMin_c67a74();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMin' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicMin_c67a74() {
+ uint atomic_result = 0u;
+ InterlockedMin(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicMin_c67a74();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedMin' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl
new file mode 100644
index 0000000..6638375
--- /dev/null
+++ b/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicOr_5e3d61() {
+ uint atomic_result = 0u;
+ InterlockedOr(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicOr_5e3d61();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl
new file mode 100644
index 0000000..85663d2
--- /dev/null
+++ b/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicOr_5e95d4() {
+ uint atomic_result = 0u;
+ InterlockedOr(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicOr_5e95d4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicOr_5e95d4() {
+ uint atomic_result = 0u;
+ InterlockedOr(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicOr_5e95d4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl
new file mode 100644
index 0000000..9996d05
--- /dev/null
+++ b/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicOr_8d96a0() {
+ int atomic_result = 0;
+ InterlockedOr(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicOr_8d96a0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicOr_8d96a0() {
+ int atomic_result = 0;
+ InterlockedOr(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicOr_8d96a0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedOr' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl
new file mode 100644
index 0000000..239746d
--- /dev/null
+++ b/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicOr_d09248() {
+ int atomic_result = 0;
+ InterlockedOr(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicOr_d09248();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl
new file mode 100644
index 0000000..29aec50
--- /dev/null
+++ b/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl
@@ -0,0 +1,43 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicStore_726882() {
+ uint atomic_result = 0u;
+ InterlockedExchange(arg_0, 1u, atomic_result);
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicStore_726882();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl
new file mode 100644
index 0000000..cd08ad3
--- /dev/null
+++ b/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl
@@ -0,0 +1,43 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicStore_8bea94() {
+ int atomic_result = 0;
+ InterlockedExchange(arg_0, 1, atomic_result);
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicStore_8bea94();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl
new file mode 100644
index 0000000..1f768b3
--- /dev/null
+++ b/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl
@@ -0,0 +1,61 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicStore_cdc29e() {
+ uint atomic_result = 0u;
+ InterlockedExchange(sb_rw.arg_0, 1u, atomic_result);
+}
+
+void fragment_main() {
+ atomicStore_cdc29e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicStore_cdc29e() {
+ uint atomic_result = 0u;
+ InterlockedExchange(sb_rw.arg_0, 1u, atomic_result);
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicStore_cdc29e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl
new file mode 100644
index 0000000..6df74dc
--- /dev/null
+++ b/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl
@@ -0,0 +1,61 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicStore_d1e9a6() {
+ int atomic_result = 0;
+ InterlockedExchange(sb_rw.arg_0, 1, atomic_result);
+}
+
+void fragment_main() {
+ atomicStore_d1e9a6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicStore_d1e9a6() {
+ int atomic_result = 0;
+ InterlockedExchange(sb_rw.arg_0, 1, atomic_result);
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicStore_d1e9a6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedExchange' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl
new file mode 100644
index 0000000..1da7814
--- /dev/null
+++ b/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicSub_051100() {
+ int atomic_result = 0;
+ InterlockedAdd(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicSub_051100();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicSub_051100() {
+ int atomic_result = 0;
+ InterlockedAdd(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicSub_051100();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl
new file mode 100644
index 0000000..58896e8
--- /dev/null
+++ b/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicSub_0d26c2() {
+ uint atomic_result = 0u;
+ InterlockedAdd(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicSub_0d26c2();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl
new file mode 100644
index 0000000..13a73bc
--- /dev/null
+++ b/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicSub_15bfc9() {
+ uint atomic_result = 0u;
+ InterlockedAdd(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicSub_15bfc9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicSub_15bfc9() {
+ uint atomic_result = 0u;
+ InterlockedAdd(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicSub_15bfc9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedAdd' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl
new file mode 100644
index 0000000..83ef6a0
--- /dev/null
+++ b/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicSub_77883a() {
+ int atomic_result = 0;
+ InterlockedAdd(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicSub_77883a();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl
new file mode 100644
index 0000000..9e9f4ca
--- /dev/null
+++ b/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicXor_54510e() {
+ uint atomic_result = 0u;
+ InterlockedXor(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+void fragment_main() {
+ atomicXor_54510e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedXor' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ uint arg_0;
+} sb_rw;
+
+void atomicXor_54510e() {
+ uint atomic_result = 0u;
+ InterlockedXor(sb_rw.arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicXor_54510e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedXor' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl
new file mode 100644
index 0000000..62485ed
--- /dev/null
+++ b/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared int arg_0;
+
+void atomicXor_75dc95() {
+ int atomic_result = 0;
+ InterlockedXor(arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ int atomic_result_1 = 0;
+ InterlockedExchange(arg_0, 0, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicXor_75dc95();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl
new file mode 100644
index 0000000..0a43b25
--- /dev/null
+++ b/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl
@@ -0,0 +1,63 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicXor_c1b78c() {
+ int atomic_result = 0;
+ InterlockedXor(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+void fragment_main() {
+ atomicXor_c1b78c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedXor' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer SB_RW_1 {
+ int arg_0;
+} sb_rw;
+
+void atomicXor_c1b78c() {
+ int atomic_result = 0;
+ InterlockedXor(sb_rw.arg_0, 1, atomic_result);
+ int res = atomic_result;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ atomicXor_c1b78c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: 'InterlockedXor' : no matching overloaded function found
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl
new file mode 100644
index 0000000..a68b9b6
--- /dev/null
+++ b/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl
@@ -0,0 +1,44 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+groupshared uint arg_0;
+
+void atomicXor_c8e6be() {
+ uint atomic_result = 0u;
+ InterlockedXor(arg_0, 1u, atomic_result);
+ uint res = atomic_result;
+}
+
+struct tint_symbol_1 {
+ uint local_invocation_index;
+};
+
+void compute_main_inner(uint local_invocation_index) {
+ {
+ uint atomic_result_1 = 0u;
+ InterlockedExchange(arg_0, 0u, atomic_result_1);
+ }
+ GroupMemoryBarrierWithGroupSync();
+ atomicXor_c8e6be();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main(tint_symbol_1 tint_symbol) {
+ compute_main_inner(tint_symbol.local_invocation_index);
+ return;
+}
+void main() {
+ tint_symbol_1 inputs;
+ inputs.local_invocation_index = uint(gl_LocalInvocationIndex);
+ compute_main(inputs);
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
+ERROR: 1 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl b/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl
new file mode 100644
index 0000000..2a3b135
--- /dev/null
+++ b/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ceil_34064b() {
+ vec3 res = ceil(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ceil_34064b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_34064b() {
+ vec3 res = ceil(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ceil_34064b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_34064b() {
+ vec3 res = ceil(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ceil_34064b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ceil/678655.wgsl.expected.glsl b/test/intrinsics/gen/ceil/678655.wgsl.expected.glsl
new file mode 100644
index 0000000..9a9c143
--- /dev/null
+++ b/test/intrinsics/gen/ceil/678655.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ceil_678655() {
+ float res = ceil(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ceil_678655();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_678655() {
+ float res = ceil(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ceil_678655();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_678655() {
+ float res = ceil(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ceil_678655();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ceil/96f597.wgsl.expected.glsl b/test/intrinsics/gen/ceil/96f597.wgsl.expected.glsl
new file mode 100644
index 0000000..58113d5
--- /dev/null
+++ b/test/intrinsics/gen/ceil/96f597.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ceil_96f597() {
+ vec2 res = ceil(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ceil_96f597();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_96f597() {
+ vec2 res = ceil(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ceil_96f597();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_96f597() {
+ vec2 res = ceil(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ceil_96f597();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ceil/b74c16.wgsl.expected.glsl b/test/intrinsics/gen/ceil/b74c16.wgsl.expected.glsl
new file mode 100644
index 0000000..51d5751
--- /dev/null
+++ b/test/intrinsics/gen/ceil/b74c16.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ceil_b74c16() {
+ vec4 res = ceil(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ceil_b74c16();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_b74c16() {
+ vec4 res = ceil(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ceil_b74c16();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ceil_b74c16() {
+ vec4 res = ceil(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ceil_b74c16();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.glsl b/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.glsl
new file mode 100644
index 0000000..3ec47cc
--- /dev/null
+++ b/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_0acf8f() {
+ vec2 res = clamp(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_0acf8f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_0acf8f() {
+ vec2 res = clamp(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_0acf8f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_0acf8f() {
+ vec2 res = clamp(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_0acf8f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.glsl b/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.glsl
new file mode 100644
index 0000000..ed04508
--- /dev/null
+++ b/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_1a32e3() {
+ ivec4 res = clamp(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_1a32e3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_1a32e3() {
+ ivec4 res = clamp(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_1a32e3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_1a32e3() {
+ ivec4 res = clamp(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_1a32e3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/2bd567.wgsl.expected.glsl b/test/intrinsics/gen/clamp/2bd567.wgsl.expected.glsl
new file mode 100644
index 0000000..43ee8b9
--- /dev/null
+++ b/test/intrinsics/gen/clamp/2bd567.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_2bd567() {
+ float res = clamp(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_2bd567();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_2bd567() {
+ float res = clamp(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_2bd567();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_2bd567() {
+ float res = clamp(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_2bd567();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/2bde41.wgsl.expected.glsl b/test/intrinsics/gen/clamp/2bde41.wgsl.expected.glsl
new file mode 100644
index 0000000..590083d
--- /dev/null
+++ b/test/intrinsics/gen/clamp/2bde41.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_2bde41() {
+ vec4 res = clamp(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_2bde41();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_2bde41() {
+ vec4 res = clamp(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_2bde41();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_2bde41() {
+ vec4 res = clamp(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_2bde41();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/548fc7.wgsl.expected.glsl b/test/intrinsics/gen/clamp/548fc7.wgsl.expected.glsl
new file mode 100644
index 0000000..f3e3ed3
--- /dev/null
+++ b/test/intrinsics/gen/clamp/548fc7.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_548fc7() {
+ uvec3 res = clamp(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_548fc7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_548fc7() {
+ uvec3 res = clamp(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_548fc7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_548fc7() {
+ uvec3 res = clamp(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_548fc7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/5f0819.wgsl.expected.glsl b/test/intrinsics/gen/clamp/5f0819.wgsl.expected.glsl
new file mode 100644
index 0000000..e68c707
--- /dev/null
+++ b/test/intrinsics/gen/clamp/5f0819.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_5f0819() {
+ ivec3 res = clamp(ivec3(0, 0, 0), ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_5f0819();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_5f0819() {
+ ivec3 res = clamp(ivec3(0, 0, 0), ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_5f0819();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_5f0819() {
+ ivec3 res = clamp(ivec3(0, 0, 0), ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_5f0819();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/6c1749.wgsl.expected.glsl b/test/intrinsics/gen/clamp/6c1749.wgsl.expected.glsl
new file mode 100644
index 0000000..675c22f7
--- /dev/null
+++ b/test/intrinsics/gen/clamp/6c1749.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_6c1749() {
+ ivec2 res = clamp(ivec2(0, 0), ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_6c1749();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_6c1749() {
+ ivec2 res = clamp(ivec2(0, 0), ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_6c1749();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_6c1749() {
+ ivec2 res = clamp(ivec2(0, 0), ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_6c1749();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/7706d7.wgsl.expected.glsl b/test/intrinsics/gen/clamp/7706d7.wgsl.expected.glsl
new file mode 100644
index 0000000..1805a75
--- /dev/null
+++ b/test/intrinsics/gen/clamp/7706d7.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_7706d7() {
+ uvec2 res = clamp(uvec2(0u, 0u), uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_7706d7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_7706d7() {
+ uvec2 res = clamp(uvec2(0u, 0u), uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_7706d7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_7706d7() {
+ uvec2 res = clamp(uvec2(0u, 0u), uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_7706d7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/867397.wgsl.expected.glsl b/test/intrinsics/gen/clamp/867397.wgsl.expected.glsl
new file mode 100644
index 0000000..0b7c470
--- /dev/null
+++ b/test/intrinsics/gen/clamp/867397.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_867397() {
+ vec3 res = clamp(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_867397();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_867397() {
+ vec3 res = clamp(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_867397();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_867397() {
+ vec3 res = clamp(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_867397();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/a2de25.wgsl.expected.glsl b/test/intrinsics/gen/clamp/a2de25.wgsl.expected.glsl
new file mode 100644
index 0000000..23ba3e4
--- /dev/null
+++ b/test/intrinsics/gen/clamp/a2de25.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_a2de25() {
+ uint res = clamp(1u, 1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_a2de25();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_a2de25() {
+ uint res = clamp(1u, 1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_a2de25();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_a2de25() {
+ uint res = clamp(1u, 1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_a2de25();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/b07c65.wgsl.expected.glsl b/test/intrinsics/gen/clamp/b07c65.wgsl.expected.glsl
new file mode 100644
index 0000000..4337f3e
--- /dev/null
+++ b/test/intrinsics/gen/clamp/b07c65.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_b07c65() {
+ int res = clamp(1, 1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_b07c65();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_b07c65() {
+ int res = clamp(1, 1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_b07c65();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_b07c65() {
+ int res = clamp(1, 1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_b07c65();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.glsl b/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.glsl
new file mode 100644
index 0000000..476dca9
--- /dev/null
+++ b/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void clamp_bd43ce() {
+ uvec4 res = clamp(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ clamp_bd43ce();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_bd43ce() {
+ uvec4 res = clamp(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ clamp_bd43ce();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void clamp_bd43ce() {
+ uvec4 res = clamp(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ clamp_bd43ce();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cos/16dc15.wgsl.expected.glsl b/test/intrinsics/gen/cos/16dc15.wgsl.expected.glsl
new file mode 100644
index 0000000..432f4be
--- /dev/null
+++ b/test/intrinsics/gen/cos/16dc15.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cos_16dc15() {
+ vec3 res = cos(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cos_16dc15();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_16dc15() {
+ vec3 res = cos(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cos_16dc15();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_16dc15() {
+ vec3 res = cos(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cos_16dc15();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cos/29d66d.wgsl.expected.glsl b/test/intrinsics/gen/cos/29d66d.wgsl.expected.glsl
new file mode 100644
index 0000000..ea59c7e
--- /dev/null
+++ b/test/intrinsics/gen/cos/29d66d.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cos_29d66d() {
+ vec4 res = cos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cos_29d66d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_29d66d() {
+ vec4 res = cos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cos_29d66d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_29d66d() {
+ vec4 res = cos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cos_29d66d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cos/c3b486.wgsl.expected.glsl b/test/intrinsics/gen/cos/c3b486.wgsl.expected.glsl
new file mode 100644
index 0000000..ec33d96
--- /dev/null
+++ b/test/intrinsics/gen/cos/c3b486.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cos_c3b486() {
+ vec2 res = cos(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cos_c3b486();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_c3b486() {
+ vec2 res = cos(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cos_c3b486();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_c3b486() {
+ vec2 res = cos(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cos_c3b486();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cos/c5c28e.wgsl.expected.glsl b/test/intrinsics/gen/cos/c5c28e.wgsl.expected.glsl
new file mode 100644
index 0000000..82d182c
--- /dev/null
+++ b/test/intrinsics/gen/cos/c5c28e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cos_c5c28e() {
+ float res = cos(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cos_c5c28e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_c5c28e() {
+ float res = cos(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cos_c5c28e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cos_c5c28e() {
+ float res = cos(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cos_c5c28e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cosh/377652.wgsl.expected.glsl b/test/intrinsics/gen/cosh/377652.wgsl.expected.glsl
new file mode 100644
index 0000000..0e8a40a
--- /dev/null
+++ b/test/intrinsics/gen/cosh/377652.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cosh_377652() {
+ vec3 res = cosh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cosh_377652();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_377652() {
+ vec3 res = cosh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cosh_377652();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_377652() {
+ vec3 res = cosh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cosh_377652();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cosh/c13756.wgsl.expected.glsl b/test/intrinsics/gen/cosh/c13756.wgsl.expected.glsl
new file mode 100644
index 0000000..bca647c
--- /dev/null
+++ b/test/intrinsics/gen/cosh/c13756.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cosh_c13756() {
+ vec2 res = cosh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cosh_c13756();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_c13756() {
+ vec2 res = cosh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cosh_c13756();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_c13756() {
+ vec2 res = cosh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cosh_c13756();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cosh/da92dd.wgsl.expected.glsl b/test/intrinsics/gen/cosh/da92dd.wgsl.expected.glsl
new file mode 100644
index 0000000..296e122
--- /dev/null
+++ b/test/intrinsics/gen/cosh/da92dd.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cosh_da92dd() {
+ float res = cosh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cosh_da92dd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_da92dd() {
+ float res = cosh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cosh_da92dd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_da92dd() {
+ float res = cosh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cosh_da92dd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.glsl b/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.glsl
new file mode 100644
index 0000000..a15e460
--- /dev/null
+++ b/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cosh_e0c1de() {
+ vec4 res = cosh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cosh_e0c1de();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_e0c1de() {
+ vec4 res = cosh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cosh_e0c1de();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cosh_e0c1de() {
+ vec4 res = cosh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cosh_e0c1de();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.glsl
new file mode 100644
index 0000000..4c444f1
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_0d0e46() {
+ uvec4 res = countbits(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_0d0e46();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_0d0e46() {
+ uvec4 res = countbits(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_0d0e46();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_0d0e46() {
+ uvec4 res = countbits(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_0d0e46();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl
new file mode 100644
index 0000000..aaa2d24
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_0f7980() {
+ ivec4 res = countbits(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_0f7980();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_0f7980() {
+ ivec4 res = countbits(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_0f7980();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_0f7980() {
+ ivec4 res = countbits(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_0f7980();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl
new file mode 100644
index 0000000..603c17c
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_65d2ae() {
+ ivec3 res = countbits(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_65d2ae();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_65d2ae() {
+ ivec3 res = countbits(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_65d2ae();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_65d2ae() {
+ ivec3 res = countbits(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_65d2ae();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl
new file mode 100644
index 0000000..f2da622
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_690cfc() {
+ uvec3 res = countbits(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_690cfc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_690cfc() {
+ uvec3 res = countbits(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_690cfc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_690cfc() {
+ uvec3 res = countbits(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_690cfc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl
new file mode 100644
index 0000000..750e3d2
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_94fd81() {
+ uvec2 res = countbits(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_94fd81();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_94fd81() {
+ uvec2 res = countbits(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_94fd81();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_94fd81() {
+ uvec2 res = countbits(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_94fd81();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl
new file mode 100644
index 0000000..241a8d0
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_ae44f9() {
+ uint res = countbits(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_ae44f9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_ae44f9() {
+ uint res = countbits(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_ae44f9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_ae44f9() {
+ uint res = countbits(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_ae44f9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl
new file mode 100644
index 0000000..f7b71d1
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_af90e2() {
+ ivec2 res = countbits(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_af90e2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_af90e2() {
+ ivec2 res = countbits(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_af90e2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_af90e2() {
+ ivec2 res = countbits(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_af90e2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl
new file mode 100644
index 0000000..78d84a7
--- /dev/null
+++ b/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_fd88b2() {
+ int res = countbits(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ countOneBits_fd88b2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_fd88b2() {
+ int res = countbits(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ countOneBits_fd88b2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void countOneBits_fd88b2() {
+ int res = countbits(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ countOneBits_fd88b2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'countbits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl b/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl
new file mode 100644
index 0000000..dfaee60
--- /dev/null
+++ b/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void cross_041cb0() {
+ vec3 res = cross(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ cross_041cb0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cross_041cb0() {
+ vec3 res = cross(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ cross_041cb0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void cross_041cb0() {
+ vec3 res = cross(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ cross_041cb0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.glsl b/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.glsl
new file mode 100644
index 0000000..50c54d2
--- /dev/null
+++ b/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void determinant_2b62ba() {
+ float res = determinant(mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ determinant_2b62ba();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void determinant_2b62ba() {
+ float res = determinant(mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ determinant_2b62ba();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void determinant_2b62ba() {
+ float res = determinant(mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ determinant_2b62ba();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.glsl b/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.glsl
new file mode 100644
index 0000000..f2b15cf
--- /dev/null
+++ b/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void determinant_a0a87c() {
+ float res = determinant(mat4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ determinant_a0a87c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void determinant_a0a87c() {
+ float res = determinant(mat4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ determinant_a0a87c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void determinant_a0a87c() {
+ float res = determinant(mat4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ determinant_a0a87c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/determinant/e19305.wgsl.expected.glsl b/test/intrinsics/gen/determinant/e19305.wgsl.expected.glsl
new file mode 100644
index 0000000..8117d8b
--- /dev/null
+++ b/test/intrinsics/gen/determinant/e19305.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void determinant_e19305() {
+ float res = determinant(mat2(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ determinant_e19305();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void determinant_e19305() {
+ float res = determinant(mat2(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ determinant_e19305();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void determinant_e19305() {
+ float res = determinant(mat2(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ determinant_e19305();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/distance/0657d4.wgsl.expected.glsl b/test/intrinsics/gen/distance/0657d4.wgsl.expected.glsl
new file mode 100644
index 0000000..c278ef0
--- /dev/null
+++ b/test/intrinsics/gen/distance/0657d4.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void distance_0657d4() {
+ float res = distance(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ distance_0657d4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_0657d4() {
+ float res = distance(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ distance_0657d4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_0657d4() {
+ float res = distance(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ distance_0657d4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/distance/9646ea.wgsl.expected.glsl b/test/intrinsics/gen/distance/9646ea.wgsl.expected.glsl
new file mode 100644
index 0000000..39c71e5
--- /dev/null
+++ b/test/intrinsics/gen/distance/9646ea.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void distance_9646ea() {
+ float res = distance(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ distance_9646ea();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_9646ea() {
+ float res = distance(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ distance_9646ea();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_9646ea() {
+ float res = distance(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ distance_9646ea();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/distance/aa4055.wgsl.expected.glsl b/test/intrinsics/gen/distance/aa4055.wgsl.expected.glsl
new file mode 100644
index 0000000..e7dddbf
--- /dev/null
+++ b/test/intrinsics/gen/distance/aa4055.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void distance_aa4055() {
+ float res = distance(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ distance_aa4055();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_aa4055() {
+ float res = distance(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ distance_aa4055();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_aa4055() {
+ float res = distance(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ distance_aa4055();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/distance/cfed73.wgsl.expected.glsl b/test/intrinsics/gen/distance/cfed73.wgsl.expected.glsl
new file mode 100644
index 0000000..b509965
--- /dev/null
+++ b/test/intrinsics/gen/distance/cfed73.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void distance_cfed73() {
+ float res = distance(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ distance_cfed73();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_cfed73() {
+ float res = distance(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ distance_cfed73();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void distance_cfed73() {
+ float res = distance(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ distance_cfed73();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/0c577b.wgsl.expected.glsl b/test/intrinsics/gen/dot/0c577b.wgsl.expected.glsl
new file mode 100644
index 0000000..2e99625
--- /dev/null
+++ b/test/intrinsics/gen/dot/0c577b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void dot_0c577b() {
+ float res = dot(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_0c577b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void dot_0c577b() {
+ float res = dot(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_0c577b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void dot_0c577b() {
+ float res = dot(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_0c577b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/7548a0.wgsl.expected.glsl b/test/intrinsics/gen/dot/7548a0.wgsl.expected.glsl
new file mode 100644
index 0000000..7e99a55
--- /dev/null
+++ b/test/intrinsics/gen/dot/7548a0.wgsl.expected.glsl
@@ -0,0 +1,83 @@
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec3 a, uvec3 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2];
+}
+
+void dot_7548a0() {
+ uint res = tint_int_dot(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_7548a0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec3 a, uvec3 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2];
+}
+
+void dot_7548a0() {
+ uint res = tint_int_dot(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_7548a0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec3 a, uvec3 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2];
+}
+
+void dot_7548a0() {
+ uint res = tint_int_dot(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_7548a0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/883f0e.wgsl.expected.glsl b/test/intrinsics/gen/dot/883f0e.wgsl.expected.glsl
new file mode 100644
index 0000000..eec9252
--- /dev/null
+++ b/test/intrinsics/gen/dot/883f0e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void dot_883f0e() {
+ float res = dot(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_883f0e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void dot_883f0e() {
+ float res = dot(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_883f0e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void dot_883f0e() {
+ float res = dot(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_883f0e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/97c7ee.wgsl.expected.glsl b/test/intrinsics/gen/dot/97c7ee.wgsl.expected.glsl
new file mode 100644
index 0000000..c620ce6
--- /dev/null
+++ b/test/intrinsics/gen/dot/97c7ee.wgsl.expected.glsl
@@ -0,0 +1,83 @@
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec2 a, uvec2 b) {
+ return a[0]*b[0] + a[1]*b[1];
+}
+
+void dot_97c7ee() {
+ uint res = tint_int_dot(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_97c7ee();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec2 a, uvec2 b) {
+ return a[0]*b[0] + a[1]*b[1];
+}
+
+void dot_97c7ee() {
+ uint res = tint_int_dot(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_97c7ee();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec2 a, uvec2 b) {
+ return a[0]*b[0] + a[1]*b[1];
+}
+
+void dot_97c7ee() {
+ uint res = tint_int_dot(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_97c7ee();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/ba4246.wgsl.expected.glsl b/test/intrinsics/gen/dot/ba4246.wgsl.expected.glsl
new file mode 100644
index 0000000..3959bf6
--- /dev/null
+++ b/test/intrinsics/gen/dot/ba4246.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void dot_ba4246() {
+ float res = dot(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_ba4246();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void dot_ba4246() {
+ float res = dot(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_ba4246();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void dot_ba4246() {
+ float res = dot(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_ba4246();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/e994c7.wgsl.expected.glsl b/test/intrinsics/gen/dot/e994c7.wgsl.expected.glsl
new file mode 100644
index 0000000..941d081
--- /dev/null
+++ b/test/intrinsics/gen/dot/e994c7.wgsl.expected.glsl
@@ -0,0 +1,83 @@
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec4 a, uvec4 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3];
+}
+
+void dot_e994c7() {
+ uint res = tint_int_dot(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_e994c7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec4 a, uvec4 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3];
+}
+
+void dot_e994c7() {
+ uint res = tint_int_dot(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_e994c7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_int_dot(uvec4 a, uvec4 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3];
+}
+
+void dot_e994c7() {
+ uint res = tint_int_dot(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_e994c7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.glsl b/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.glsl
new file mode 100644
index 0000000..809f017
--- /dev/null
+++ b/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.glsl
@@ -0,0 +1,83 @@
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec4 a, ivec4 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3];
+}
+
+void dot_ef6b1d() {
+ int res = tint_int_dot(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_ef6b1d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec4 a, ivec4 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3];
+}
+
+void dot_ef6b1d() {
+ int res = tint_int_dot(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_ef6b1d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec4 a, ivec4 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3];
+}
+
+void dot_ef6b1d() {
+ int res = tint_int_dot(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_ef6b1d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/f1312c.wgsl.expected.glsl b/test/intrinsics/gen/dot/f1312c.wgsl.expected.glsl
new file mode 100644
index 0000000..57919d4
--- /dev/null
+++ b/test/intrinsics/gen/dot/f1312c.wgsl.expected.glsl
@@ -0,0 +1,83 @@
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec3 a, ivec3 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2];
+}
+
+void dot_f1312c() {
+ int res = tint_int_dot(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_f1312c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec3 a, ivec3 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2];
+}
+
+void dot_f1312c() {
+ int res = tint_int_dot(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_f1312c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec3 a, ivec3 b) {
+ return a[0]*b[0] + a[1]*b[1] + a[2]*b[2];
+}
+
+void dot_f1312c() {
+ int res = tint_int_dot(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_f1312c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.glsl b/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.glsl
new file mode 100644
index 0000000..29bb327
--- /dev/null
+++ b/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.glsl
@@ -0,0 +1,83 @@
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec2 a, ivec2 b) {
+ return a[0]*b[0] + a[1]*b[1];
+}
+
+void dot_fc5f7c() {
+ int res = tint_int_dot(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ dot_fc5f7c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec2 a, ivec2 b) {
+ return a[0]*b[0] + a[1]*b[1];
+}
+
+void dot_fc5f7c() {
+ int res = tint_int_dot(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ dot_fc5f7c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+int tint_int_dot(ivec2 a, ivec2 b) {
+ return a[0]*b[0] + a[1]*b[1];
+}
+
+void dot_fc5f7c() {
+ int res = tint_int_dot(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ dot_fc5f7c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.glsl b/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.glsl
new file mode 100644
index 0000000..b2c3e88
--- /dev/null
+++ b/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdx_0763f7() {
+ vec3 res = ddx(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdx_0763f7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl b/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl
new file mode 100644
index 0000000..b147755
--- /dev/null
+++ b/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdx_99edb1() {
+ vec2 res = ddx(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdx_99edb1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl b/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl
new file mode 100644
index 0000000..3201da8
--- /dev/null
+++ b/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdx_c487fa() {
+ vec4 res = ddx(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdx_c487fa();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl b/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl
new file mode 100644
index 0000000..8d27891
--- /dev/null
+++ b/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl
@@ -0,0 +1,25 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdx_e263de() {
+ float res = ddx(1.0f);
+}
+
+void fragment_main() {
+ dpdx_e263de();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl
new file mode 100644
index 0000000..712cb2e1
--- /dev/null
+++ b/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl
@@ -0,0 +1,25 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxCoarse_029152() {
+ float res = ddx_coarse(1.0f);
+}
+
+void fragment_main() {
+ dpdxCoarse_029152();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_coarse' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl
new file mode 100644
index 0000000..ca3f444
--- /dev/null
+++ b/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxCoarse_9581cf() {
+ vec2 res = ddx_coarse(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdxCoarse_9581cf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_coarse' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl
new file mode 100644
index 0000000..d748693
--- /dev/null
+++ b/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxCoarse_c28641() {
+ vec4 res = ddx_coarse(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdxCoarse_c28641();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_coarse' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl
new file mode 100644
index 0000000..568db44
--- /dev/null
+++ b/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxCoarse_f64d7b() {
+ vec3 res = ddx_coarse(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdxCoarse_f64d7b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_coarse' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl
new file mode 100644
index 0000000..1f79d0e
--- /dev/null
+++ b/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxFine_8c5069() {
+ vec4 res = ddx_fine(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdxFine_8c5069();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_fine' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl
new file mode 100644
index 0000000..5890767
--- /dev/null
+++ b/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxFine_9631de() {
+ vec2 res = ddx_fine(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdxFine_9631de();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_fine' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl
new file mode 100644
index 0000000..99c60ca
--- /dev/null
+++ b/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl
@@ -0,0 +1,25 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxFine_f401a2() {
+ float res = ddx_fine(1.0f);
+}
+
+void fragment_main() {
+ dpdxFine_f401a2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_fine' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl
new file mode 100644
index 0000000..3e8c68f
--- /dev/null
+++ b/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdxFine_f92fb6() {
+ vec3 res = ddx_fine(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdxFine_f92fb6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddx_fine' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl
new file mode 100644
index 0000000..b235c27
--- /dev/null
+++ b/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdy_699a05() {
+ vec4 res = ddy(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdy_699a05();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl
new file mode 100644
index 0000000..7c20e0f
--- /dev/null
+++ b/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl
@@ -0,0 +1,25 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdy_7f8d84() {
+ float res = ddy(1.0f);
+}
+
+void fragment_main() {
+ dpdy_7f8d84();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl
new file mode 100644
index 0000000..82667ce
--- /dev/null
+++ b/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdy_a8b56e() {
+ vec2 res = ddy(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdy_a8b56e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl
new file mode 100644
index 0000000..baf086e
--- /dev/null
+++ b/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdy_feb40f() {
+ vec3 res = ddy(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdy_feb40f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl
new file mode 100644
index 0000000..a4f7518
--- /dev/null
+++ b/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyCoarse_3e1ab4() {
+ vec2 res = ddy_coarse(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdyCoarse_3e1ab4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_coarse' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl
new file mode 100644
index 0000000..3872654
--- /dev/null
+++ b/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyCoarse_445d24() {
+ vec4 res = ddy_coarse(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdyCoarse_445d24();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_coarse' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl
new file mode 100644
index 0000000..e650118
--- /dev/null
+++ b/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl
@@ -0,0 +1,25 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyCoarse_870a7e() {
+ float res = ddy_coarse(1.0f);
+}
+
+void fragment_main() {
+ dpdyCoarse_870a7e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_coarse' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl
new file mode 100644
index 0000000..b76372c
--- /dev/null
+++ b/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyCoarse_ae1873() {
+ vec3 res = ddy_coarse(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdyCoarse_ae1873();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_coarse' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl
new file mode 100644
index 0000000..903fba0
--- /dev/null
+++ b/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyFine_1fb7ab() {
+ vec3 res = ddy_fine(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdyFine_1fb7ab();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_fine' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl
new file mode 100644
index 0000000..4aafeb0
--- /dev/null
+++ b/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl
@@ -0,0 +1,25 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyFine_6eb673() {
+ float res = ddy_fine(1.0f);
+}
+
+void fragment_main() {
+ dpdyFine_6eb673();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_fine' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl
new file mode 100644
index 0000000..532ff81
--- /dev/null
+++ b/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyFine_d0a648() {
+ vec4 res = ddy_fine(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdyFine_d0a648();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_fine' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl
new file mode 100644
index 0000000..89a7b2c
--- /dev/null
+++ b/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void dpdyFine_df33aa() {
+ vec2 res = ddy_fine(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ dpdyFine_df33aa();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'ddy_fine' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl b/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl
new file mode 100644
index 0000000..f1882e6
--- /dev/null
+++ b/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp_0f70eb() {
+ vec4 res = exp(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp_0f70eb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_0f70eb() {
+ vec4 res = exp(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp_0f70eb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_0f70eb() {
+ vec4 res = exp(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp_0f70eb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/exp/1951e7.wgsl.expected.glsl b/test/intrinsics/gen/exp/1951e7.wgsl.expected.glsl
new file mode 100644
index 0000000..dff1bfe
--- /dev/null
+++ b/test/intrinsics/gen/exp/1951e7.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp_1951e7() {
+ vec2 res = exp(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp_1951e7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_1951e7() {
+ vec2 res = exp(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp_1951e7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_1951e7() {
+ vec2 res = exp(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp_1951e7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/exp/771fd2.wgsl.expected.glsl b/test/intrinsics/gen/exp/771fd2.wgsl.expected.glsl
new file mode 100644
index 0000000..a46e266
--- /dev/null
+++ b/test/intrinsics/gen/exp/771fd2.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp_771fd2() {
+ float res = exp(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp_771fd2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_771fd2() {
+ float res = exp(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp_771fd2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_771fd2() {
+ float res = exp(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp_771fd2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/exp/d98450.wgsl.expected.glsl b/test/intrinsics/gen/exp/d98450.wgsl.expected.glsl
new file mode 100644
index 0000000..aa82fb1
--- /dev/null
+++ b/test/intrinsics/gen/exp/d98450.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp_d98450() {
+ vec3 res = exp(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp_d98450();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_d98450() {
+ vec3 res = exp(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp_d98450();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp_d98450() {
+ vec3 res = exp(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp_d98450();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/exp2/1f8680.wgsl.expected.glsl b/test/intrinsics/gen/exp2/1f8680.wgsl.expected.glsl
new file mode 100644
index 0000000..214840f
--- /dev/null
+++ b/test/intrinsics/gen/exp2/1f8680.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp2_1f8680() {
+ vec3 res = exp2(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp2_1f8680();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_1f8680() {
+ vec3 res = exp2(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp2_1f8680();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_1f8680() {
+ vec3 res = exp2(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp2_1f8680();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.glsl b/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.glsl
new file mode 100644
index 0000000..736af83
--- /dev/null
+++ b/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp2_a9d0a7() {
+ vec4 res = exp2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp2_a9d0a7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_a9d0a7() {
+ vec4 res = exp2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp2_a9d0a7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_a9d0a7() {
+ vec4 res = exp2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp2_a9d0a7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/exp2/d6777c.wgsl.expected.glsl b/test/intrinsics/gen/exp2/d6777c.wgsl.expected.glsl
new file mode 100644
index 0000000..08834d9
--- /dev/null
+++ b/test/intrinsics/gen/exp2/d6777c.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp2_d6777c() {
+ vec2 res = exp2(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp2_d6777c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_d6777c() {
+ vec2 res = exp2(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp2_d6777c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_d6777c() {
+ vec2 res = exp2(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp2_d6777c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/exp2/dea523.wgsl.expected.glsl b/test/intrinsics/gen/exp2/dea523.wgsl.expected.glsl
new file mode 100644
index 0000000..313278f
--- /dev/null
+++ b/test/intrinsics/gen/exp2/dea523.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void exp2_dea523() {
+ float res = exp2(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ exp2_dea523();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_dea523() {
+ float res = exp2(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ exp2_dea523();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void exp2_dea523() {
+ float res = exp2(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ exp2_dea523();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.glsl b/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.glsl
new file mode 100644
index 0000000..a582f90
--- /dev/null
+++ b/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void faceForward_5afbd5() {
+ vec3 res = faceforward(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ faceForward_5afbd5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void faceForward_5afbd5() {
+ vec3 res = faceforward(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ faceForward_5afbd5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void faceForward_5afbd5() {
+ vec3 res = faceforward(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ faceForward_5afbd5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.glsl b/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.glsl
new file mode 100644
index 0000000..791ba27
--- /dev/null
+++ b/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void faceForward_b316e5() {
+ vec4 res = faceforward(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ faceForward_b316e5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void faceForward_b316e5() {
+ vec4 res = faceforward(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ faceForward_b316e5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void faceForward_b316e5() {
+ vec4 res = faceforward(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ faceForward_b316e5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.glsl b/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.glsl
new file mode 100644
index 0000000..a1bd76b
--- /dev/null
+++ b/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void faceForward_e6908b() {
+ vec2 res = faceforward(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ faceForward_e6908b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void faceForward_e6908b() {
+ vec2 res = faceforward(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ faceForward_e6908b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void faceForward_e6908b() {
+ vec2 res = faceforward(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ faceForward_e6908b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/floor/3bccc4.wgsl.expected.glsl b/test/intrinsics/gen/floor/3bccc4.wgsl.expected.glsl
new file mode 100644
index 0000000..25ea844
--- /dev/null
+++ b/test/intrinsics/gen/floor/3bccc4.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void floor_3bccc4() {
+ vec4 res = floor(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ floor_3bccc4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_3bccc4() {
+ vec4 res = floor(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ floor_3bccc4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_3bccc4() {
+ vec4 res = floor(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ floor_3bccc4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.glsl b/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.glsl
new file mode 100644
index 0000000..d92b849
--- /dev/null
+++ b/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void floor_5fc9ac() {
+ vec2 res = floor(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ floor_5fc9ac();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_5fc9ac() {
+ vec2 res = floor(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ floor_5fc9ac();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_5fc9ac() {
+ vec2 res = floor(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ floor_5fc9ac();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/floor/60d7ea.wgsl.expected.glsl b/test/intrinsics/gen/floor/60d7ea.wgsl.expected.glsl
new file mode 100644
index 0000000..bae81bb
--- /dev/null
+++ b/test/intrinsics/gen/floor/60d7ea.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void floor_60d7ea() {
+ vec3 res = floor(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ floor_60d7ea();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_60d7ea() {
+ vec3 res = floor(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ floor_60d7ea();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_60d7ea() {
+ vec3 res = floor(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ floor_60d7ea();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/floor/66f154.wgsl.expected.glsl b/test/intrinsics/gen/floor/66f154.wgsl.expected.glsl
new file mode 100644
index 0000000..e26964e
--- /dev/null
+++ b/test/intrinsics/gen/floor/66f154.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void floor_66f154() {
+ float res = floor(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ floor_66f154();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_66f154() {
+ float res = floor(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ floor_66f154();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void floor_66f154() {
+ float res = floor(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ floor_66f154();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/fma/26a7a9.wgsl.expected.glsl b/test/intrinsics/gen/fma/26a7a9.wgsl.expected.glsl
new file mode 100644
index 0000000..7bcc736
--- /dev/null
+++ b/test/intrinsics/gen/fma/26a7a9.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fma_26a7a9() {
+ vec2 res = mad(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fma_26a7a9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_26a7a9() {
+ vec2 res = mad(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fma_26a7a9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_26a7a9() {
+ vec2 res = mad(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fma_26a7a9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl b/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl
new file mode 100644
index 0000000..54a7577
--- /dev/null
+++ b/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fma_6a3283() {
+ vec4 res = mad(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fma_6a3283();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_6a3283() {
+ vec4 res = mad(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fma_6a3283();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_6a3283() {
+ vec4 res = mad(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fma_6a3283();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl b/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl
new file mode 100644
index 0000000..a48ff5c
--- /dev/null
+++ b/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fma_c10ba3() {
+ float res = mad(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fma_c10ba3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_c10ba3() {
+ float res = mad(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fma_c10ba3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_c10ba3() {
+ float res = mad(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fma_c10ba3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl b/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl
new file mode 100644
index 0000000..1a0d92d
--- /dev/null
+++ b/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fma_e17c5c() {
+ vec3 res = mad(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fma_e17c5c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_e17c5c() {
+ vec3 res = mad(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fma_e17c5c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fma_e17c5c() {
+ vec3 res = mad(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fma_e17c5c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'mad' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl b/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl
new file mode 100644
index 0000000..9b128ba
--- /dev/null
+++ b/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fract_8bc1e9() {
+ vec4 res = frac(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fract_8bc1e9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_8bc1e9() {
+ vec4 res = frac(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fract_8bc1e9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_8bc1e9() {
+ vec4 res = frac(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fract_8bc1e9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl b/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl
new file mode 100644
index 0000000..8e6e966
--- /dev/null
+++ b/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fract_943cb1() {
+ vec2 res = frac(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fract_943cb1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_943cb1() {
+ vec2 res = frac(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fract_943cb1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_943cb1() {
+ vec2 res = frac(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fract_943cb1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl b/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl
new file mode 100644
index 0000000..2ea3ff8
--- /dev/null
+++ b/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fract_a49758() {
+ vec3 res = frac(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fract_a49758();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_a49758() {
+ vec3 res = frac(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fract_a49758();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_a49758() {
+ vec3 res = frac(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fract_a49758();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl b/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl
new file mode 100644
index 0000000..884ec28
--- /dev/null
+++ b/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void fract_fa5c71() {
+ float res = frac(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ fract_fa5c71();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_fa5c71() {
+ float res = frac(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ fract_fa5c71();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void fract_fa5c71() {
+ float res = frac(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ fract_fa5c71();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'frac' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/frexp/12f1da.wgsl.expected.glsl b/test/intrinsics/gen/frexp/12f1da.wgsl.expected.glsl
new file mode 100644
index 0000000..f0df205
--- /dev/null
+++ b/test/intrinsics/gen/frexp/12f1da.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result {
+ float sig;
+ int exp;
+};
+frexp_result tint_frexp(float param_0) {
+ float exp;
+ float sig = frexp(param_0, exp);
+ frexp_result result = {sig, int(exp)};
+ return result;
+}
+
+
+void frexp_12f1da() {
+ frexp_result res = tint_frexp(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ frexp_12f1da();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:10: 'frexp' : no matching overloaded function found
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result {
+ float sig;
+ int exp;
+};
+frexp_result tint_frexp(float param_0) {
+ float exp;
+ float sig = frexp(param_0, exp);
+ frexp_result result = {sig, int(exp)};
+ return result;
+}
+
+
+void frexp_12f1da() {
+ frexp_result res = tint_frexp(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ frexp_12f1da();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:10: 'frexp' : no matching overloaded function found
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result {
+ float sig;
+ int exp;
+};
+frexp_result tint_frexp(float param_0) {
+ float exp;
+ float sig = frexp(param_0, exp);
+ frexp_result result = {sig, int(exp)};
+ return result;
+}
+
+
+void frexp_12f1da() {
+ frexp_result res = tint_frexp(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ frexp_12f1da();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:10: 'frexp' : no matching overloaded function found
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/frexp/a0eb3b.wgsl.expected.glsl b/test/intrinsics/gen/frexp/a0eb3b.wgsl.expected.glsl
new file mode 100644
index 0000000..08954fc
--- /dev/null
+++ b/test/intrinsics/gen/frexp/a0eb3b.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec3 {
+ vec3 sig;
+ ivec3 exp;
+};
+frexp_result_vec3 tint_frexp(vec3 param_0) {
+ float3 exp;
+ float3 sig = frexp(param_0, exp);
+ frexp_result_vec3 result = {sig, int3(exp)};
+ return result;
+}
+
+
+void frexp_a0eb3b() {
+ frexp_result_vec3 res = tint_frexp(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ frexp_a0eb3b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float3' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec3 {
+ vec3 sig;
+ ivec3 exp;
+};
+frexp_result_vec3 tint_frexp(vec3 param_0) {
+ float3 exp;
+ float3 sig = frexp(param_0, exp);
+ frexp_result_vec3 result = {sig, int3(exp)};
+ return result;
+}
+
+
+void frexp_a0eb3b() {
+ frexp_result_vec3 res = tint_frexp(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ frexp_a0eb3b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float3' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec3 {
+ vec3 sig;
+ ivec3 exp;
+};
+frexp_result_vec3 tint_frexp(vec3 param_0) {
+ float3 exp;
+ float3 sig = frexp(param_0, exp);
+ frexp_result_vec3 result = {sig, int3(exp)};
+ return result;
+}
+
+
+void frexp_a0eb3b() {
+ frexp_result_vec3 res = tint_frexp(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ frexp_a0eb3b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float3' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/frexp/d80367.wgsl.expected.glsl b/test/intrinsics/gen/frexp/d80367.wgsl.expected.glsl
new file mode 100644
index 0000000..40a2643
--- /dev/null
+++ b/test/intrinsics/gen/frexp/d80367.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec4 {
+ vec4 sig;
+ ivec4 exp;
+};
+frexp_result_vec4 tint_frexp(vec4 param_0) {
+ float4 exp;
+ float4 sig = frexp(param_0, exp);
+ frexp_result_vec4 result = {sig, int4(exp)};
+ return result;
+}
+
+
+void frexp_d80367() {
+ frexp_result_vec4 res = tint_frexp(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ frexp_d80367();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float4' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec4 {
+ vec4 sig;
+ ivec4 exp;
+};
+frexp_result_vec4 tint_frexp(vec4 param_0) {
+ float4 exp;
+ float4 sig = frexp(param_0, exp);
+ frexp_result_vec4 result = {sig, int4(exp)};
+ return result;
+}
+
+
+void frexp_d80367() {
+ frexp_result_vec4 res = tint_frexp(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ frexp_d80367();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float4' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec4 {
+ vec4 sig;
+ ivec4 exp;
+};
+frexp_result_vec4 tint_frexp(vec4 param_0) {
+ float4 exp;
+ float4 sig = frexp(param_0, exp);
+ frexp_result_vec4 result = {sig, int4(exp)};
+ return result;
+}
+
+
+void frexp_d80367() {
+ frexp_result_vec4 res = tint_frexp(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ frexp_d80367();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float4' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/frexp/db0637.wgsl.expected.glsl b/test/intrinsics/gen/frexp/db0637.wgsl.expected.glsl
new file mode 100644
index 0000000..34e2490
--- /dev/null
+++ b/test/intrinsics/gen/frexp/db0637.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec2 {
+ vec2 sig;
+ ivec2 exp;
+};
+frexp_result_vec2 tint_frexp(vec2 param_0) {
+ float2 exp;
+ float2 sig = frexp(param_0, exp);
+ frexp_result_vec2 result = {sig, int2(exp)};
+ return result;
+}
+
+
+void frexp_db0637() {
+ frexp_result_vec2 res = tint_frexp(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ frexp_db0637();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float2' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec2 {
+ vec2 sig;
+ ivec2 exp;
+};
+frexp_result_vec2 tint_frexp(vec2 param_0) {
+ float2 exp;
+ float2 sig = frexp(param_0, exp);
+ frexp_result_vec2 result = {sig, int2(exp)};
+ return result;
+}
+
+
+void frexp_db0637() {
+ frexp_result_vec2 res = tint_frexp(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ frexp_db0637();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float2' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct frexp_result_vec2 {
+ vec2 sig;
+ ivec2 exp;
+};
+frexp_result_vec2 tint_frexp(vec2 param_0) {
+ float2 exp;
+ float2 sig = frexp(param_0, exp);
+ frexp_result_vec2 result = {sig, int2(exp)};
+ return result;
+}
+
+
+void frexp_db0637() {
+ frexp_result_vec2 res = tint_frexp(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ frexp_db0637();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float2' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.glsl b/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.glsl
new file mode 100644
index 0000000..a0affd9
--- /dev/null
+++ b/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidth_5d1b39() {
+ vec3 res = fwidth(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidth_5d1b39();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.glsl b/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.glsl
new file mode 100644
index 0000000..3a38177
--- /dev/null
+++ b/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidth_b83ebb() {
+ vec2 res = fwidth(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidth_b83ebb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.glsl b/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.glsl
new file mode 100644
index 0000000..6d23f98
--- /dev/null
+++ b/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidth_d2ab9a() {
+ vec4 res = fwidth(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidth_d2ab9a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.glsl b/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.glsl
new file mode 100644
index 0000000..fa13be7
--- /dev/null
+++ b/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidth_df38ef() {
+ float res = fwidth(1.0f);
+}
+
+void fragment_main() {
+ fwidth_df38ef();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.glsl b/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.glsl
new file mode 100644
index 0000000..0fa8940
--- /dev/null
+++ b/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthCoarse_159c8a() {
+ float res = fwidth(1.0f);
+}
+
+void fragment_main() {
+ fwidthCoarse_159c8a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl b/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl
new file mode 100644
index 0000000..13b779c
--- /dev/null
+++ b/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthCoarse_1e59d9() {
+ vec3 res = fwidth(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidthCoarse_1e59d9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl b/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl
new file mode 100644
index 0000000..6f6634b
--- /dev/null
+++ b/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthCoarse_4e4fc4() {
+ vec4 res = fwidth(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidthCoarse_4e4fc4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.glsl b/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.glsl
new file mode 100644
index 0000000..48db5ee
--- /dev/null
+++ b/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthCoarse_e653f7() {
+ vec2 res = fwidth(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidthCoarse_e653f7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.glsl b/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.glsl
new file mode 100644
index 0000000..46ed62a
--- /dev/null
+++ b/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthFine_523fdc() {
+ vec3 res = fwidth(vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidthFine_523fdc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.glsl b/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.glsl
new file mode 100644
index 0000000..ce3dbad
--- /dev/null
+++ b/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthFine_68f4ef() {
+ vec4 res = fwidth(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidthFine_68f4ef();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.glsl b/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.glsl
new file mode 100644
index 0000000..4441b46
--- /dev/null
+++ b/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthFine_f1742d() {
+ float res = fwidth(1.0f);
+}
+
+void fragment_main() {
+ fwidthFine_f1742d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.glsl b/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.glsl
new file mode 100644
index 0000000..bf921e2
--- /dev/null
+++ b/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.glsl
@@ -0,0 +1,16 @@
+#version 310 es
+precision mediump float;
+
+void fwidthFine_ff6aa0() {
+ vec2 res = fwidth(vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ fwidthFine_ff6aa0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/2a6ac2.wgsl.expected.glsl b/test/intrinsics/gen/ignore/2a6ac2.wgsl.expected.glsl
new file mode 100644
index 0000000..09337ec
--- /dev/null
+++ b/test/intrinsics/gen/ignore/2a6ac2.wgsl.expected.glsl
@@ -0,0 +1,81 @@
+intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void ignore_2a6ac2() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_2a6ac2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void ignore_2a6ac2() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_2a6ac2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void ignore_2a6ac2() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_2a6ac2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/5016e5.wgsl.expected.glsl b/test/intrinsics/gen/ignore/5016e5.wgsl.expected.glsl
new file mode 100644
index 0000000..91b05a1
--- /dev/null
+++ b/test/intrinsics/gen/ignore/5016e5.wgsl.expected.glsl
@@ -0,0 +1,104 @@
+SKIP: FAILED
+
+intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+
+
+void ignore_5016e5() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_5016e5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_0' : undeclared identifier
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+
+void ignore_5016e5() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_5016e5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_0' : undeclared identifier
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+
+void ignore_5016e5() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_5016e5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_0' : undeclared identifier
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/ignore/509355.wgsl.expected.glsl b/test/intrinsics/gen/ignore/509355.wgsl.expected.glsl
new file mode 100644
index 0000000..11d4922
--- /dev/null
+++ b/test/intrinsics/gen/ignore/509355.wgsl.expected.glsl
@@ -0,0 +1,81 @@
+intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void ignore_509355() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_509355();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void ignore_509355() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_509355();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void ignore_509355() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_509355();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/51aeb7.wgsl.expected.glsl b/test/intrinsics/gen/ignore/51aeb7.wgsl.expected.glsl
new file mode 100644
index 0000000..db87165
--- /dev/null
+++ b/test/intrinsics/gen/ignore/51aeb7.wgsl.expected.glsl
@@ -0,0 +1,75 @@
+intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
+ ignore(1);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+void ignore_51aeb7() {
+ 1;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_51aeb7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_51aeb7() {
+ 1;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_51aeb7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_51aeb7() {
+ 1;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_51aeb7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/5c9edf.wgsl.expected.glsl b/test/intrinsics/gen/ignore/5c9edf.wgsl.expected.glsl
new file mode 100644
index 0000000..8f79e31
--- /dev/null
+++ b/test/intrinsics/gen/ignore/5c9edf.wgsl.expected.glsl
@@ -0,0 +1,81 @@
+intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void ignore_5c9edf() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_5c9edf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void ignore_5c9edf() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_5c9edf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void ignore_5c9edf() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_5c9edf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/6698df.wgsl.expected.glsl b/test/intrinsics/gen/ignore/6698df.wgsl.expected.glsl
new file mode 100644
index 0000000..0ce2ba0
--- /dev/null
+++ b/test/intrinsics/gen/ignore/6698df.wgsl.expected.glsl
@@ -0,0 +1,75 @@
+intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
+ ignore(1u);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+void ignore_6698df() {
+ 1u;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_6698df();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_6698df() {
+ 1u;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_6698df();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_6698df() {
+ 1u;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_6698df();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/ad88be.wgsl.expected.glsl b/test/intrinsics/gen/ignore/ad88be.wgsl.expected.glsl
new file mode 100644
index 0000000..b8116d6
--- /dev/null
+++ b/test/intrinsics/gen/ignore/ad88be.wgsl.expected.glsl
@@ -0,0 +1,104 @@
+SKIP: FAILED
+
+intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void ignore_ad88be() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_ad88be();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void ignore_ad88be() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_ad88be();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void ignore_ad88be() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_ad88be();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/ignore/b469af.wgsl.expected.glsl b/test/intrinsics/gen/ignore/b469af.wgsl.expected.glsl
new file mode 100644
index 0000000..6c593b9
--- /dev/null
+++ b/test/intrinsics/gen/ignore/b469af.wgsl.expected.glsl
@@ -0,0 +1,104 @@
+SKIP: FAILED
+
+intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+
+
+void ignore_b469af() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_b469af();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_0' : undeclared identifier
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+
+void ignore_b469af() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_b469af();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_0' : undeclared identifier
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+
+
+void ignore_b469af() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_b469af();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_0' : undeclared identifier
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/ignore/c8a0ee.wgsl.expected.glsl b/test/intrinsics/gen/ignore/c8a0ee.wgsl.expected.glsl
new file mode 100644
index 0000000..69ecc99
--- /dev/null
+++ b/test/intrinsics/gen/ignore/c8a0ee.wgsl.expected.glsl
@@ -0,0 +1,81 @@
+intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void ignore_c8a0ee() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_c8a0ee();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void ignore_c8a0ee() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_c8a0ee();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void ignore_c8a0ee() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_c8a0ee();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/d91a2f.wgsl.expected.glsl b/test/intrinsics/gen/ignore/d91a2f.wgsl.expected.glsl
new file mode 100644
index 0000000..a64b4e1
--- /dev/null
+++ b/test/intrinsics/gen/ignore/d91a2f.wgsl.expected.glsl
@@ -0,0 +1,75 @@
+intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
+ ignore(1.0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+void ignore_d91a2f() {
+ 1.0f;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_d91a2f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_d91a2f() {
+ 1.0f;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_d91a2f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_d91a2f() {
+ 1.0f;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_d91a2f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/e0187b.wgsl.expected.glsl b/test/intrinsics/gen/ignore/e0187b.wgsl.expected.glsl
new file mode 100644
index 0000000..e209270
--- /dev/null
+++ b/test/intrinsics/gen/ignore/e0187b.wgsl.expected.glsl
@@ -0,0 +1,81 @@
+intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
+ ignore(arg_0);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void ignore_e0187b() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_e0187b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void ignore_e0187b() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_e0187b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void ignore_e0187b() {
+ arg_0;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_e0187b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ignore/f414a6.wgsl.expected.glsl b/test/intrinsics/gen/ignore/f414a6.wgsl.expected.glsl
new file mode 100644
index 0000000..91a8f8d
--- /dev/null
+++ b/test/intrinsics/gen/ignore/f414a6.wgsl.expected.glsl
@@ -0,0 +1,75 @@
+intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
+ ignore(bool());
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+void ignore_f414a6() {
+ false;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ignore_f414a6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_f414a6() {
+ false;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ignore_f414a6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ignore_f414a6() {
+ false;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ignore_f414a6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.glsl b/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.glsl
new file mode 100644
index 0000000..e73db6b
--- /dev/null
+++ b/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_84407e() {
+ float res = rsqrt(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ inverseSqrt_84407e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_84407e() {
+ float res = rsqrt(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ inverseSqrt_84407e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_84407e() {
+ float res = rsqrt(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ inverseSqrt_84407e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl b/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl
new file mode 100644
index 0000000..20a6562
--- /dev/null
+++ b/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_8f2bd2() {
+ vec2 res = rsqrt(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ inverseSqrt_8f2bd2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_8f2bd2() {
+ vec2 res = rsqrt(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ inverseSqrt_8f2bd2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_8f2bd2() {
+ vec2 res = rsqrt(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ inverseSqrt_8f2bd2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl b/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl
new file mode 100644
index 0000000..6e2818a
--- /dev/null
+++ b/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_b197b1() {
+ vec3 res = rsqrt(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ inverseSqrt_b197b1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_b197b1() {
+ vec3 res = rsqrt(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ inverseSqrt_b197b1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_b197b1() {
+ vec3 res = rsqrt(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ inverseSqrt_b197b1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl b/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl
new file mode 100644
index 0000000..ab3fead
--- /dev/null
+++ b/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_c22347() {
+ vec4 res = rsqrt(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ inverseSqrt_c22347();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_c22347() {
+ vec4 res = rsqrt(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ inverseSqrt_c22347();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void inverseSqrt_c22347() {
+ vec4 res = rsqrt(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ inverseSqrt_c22347();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'rsqrt' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl
new file mode 100644
index 0000000..74f2374
--- /dev/null
+++ b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void isFinite_34d32b() {
+ bvec2 res = isfinite(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isFinite_34d32b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_34d32b() {
+ bvec2 res = isfinite(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isFinite_34d32b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_34d32b() {
+ bvec2 res = isfinite(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isFinite_34d32b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 2-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl
new file mode 100644
index 0000000..ade322a
--- /dev/null
+++ b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void isFinite_426f9f() {
+ bool res = isfinite(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isFinite_426f9f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_426f9f() {
+ bool res = isfinite(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isFinite_426f9f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_426f9f() {
+ bool res = isfinite(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isFinite_426f9f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl
new file mode 100644
index 0000000..9fedc49
--- /dev/null
+++ b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void isFinite_8a23ad() {
+ bvec3 res = isfinite(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isFinite_8a23ad();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_8a23ad() {
+ bvec3 res = isfinite(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isFinite_8a23ad();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_8a23ad() {
+ bvec3 res = isfinite(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isFinite_8a23ad();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 3-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl
new file mode 100644
index 0000000..5629d2b
--- /dev/null
+++ b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void isFinite_f31987() {
+ bvec4 res = isfinite(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isFinite_f31987();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_f31987() {
+ bvec4 res = isfinite(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isFinite_f31987();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void isFinite_f31987() {
+ bvec4 res = isfinite(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isFinite_f31987();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'isfinite' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp 4-component vector of bool'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl
new file mode 100644
index 0000000..42c33b6
--- /dev/null
+++ b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isInf_666f2a() {
+ bvec3 res = isinf(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isInf_666f2a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_666f2a() {
+ bvec3 res = isinf(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isInf_666f2a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_666f2a() {
+ bvec3 res = isinf(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isInf_666f2a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl
new file mode 100644
index 0000000..7aee66b
--- /dev/null
+++ b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isInf_7bd98f() {
+ bool res = isinf(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isInf_7bd98f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_7bd98f() {
+ bool res = isinf(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isInf_7bd98f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_7bd98f() {
+ bool res = isinf(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isInf_7bd98f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl
new file mode 100644
index 0000000..8cc9c15
--- /dev/null
+++ b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isInf_7e81b5() {
+ bvec4 res = isinf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isInf_7e81b5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_7e81b5() {
+ bvec4 res = isinf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isInf_7e81b5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_7e81b5() {
+ bvec4 res = isinf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isInf_7e81b5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl
new file mode 100644
index 0000000..885f145
--- /dev/null
+++ b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isInf_a46d6f() {
+ bvec2 res = isinf(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isInf_a46d6f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_a46d6f() {
+ bvec2 res = isinf(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isInf_a46d6f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isInf_a46d6f() {
+ bvec2 res = isinf(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isInf_a46d6f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl
new file mode 100644
index 0000000..dc203d66
--- /dev/null
+++ b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isNan_1280ab() {
+ bvec3 res = isnan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNan_1280ab();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_1280ab() {
+ bvec3 res = isnan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNan_1280ab();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_1280ab() {
+ bvec3 res = isnan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNan_1280ab();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl
new file mode 100644
index 0000000..f8b1bb8
--- /dev/null
+++ b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isNan_4d280d() {
+ bvec4 res = isnan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNan_4d280d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_4d280d() {
+ bvec4 res = isnan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNan_4d280d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_4d280d() {
+ bvec4 res = isnan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNan_4d280d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl
new file mode 100644
index 0000000..827aee7f
--- /dev/null
+++ b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isNan_67ecd3() {
+ bvec2 res = isnan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNan_67ecd3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_67ecd3() {
+ bvec2 res = isnan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNan_67ecd3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_67ecd3() {
+ bvec2 res = isnan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNan_67ecd3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl
new file mode 100644
index 0000000..0b9f0c6
--- /dev/null
+++ b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void isNan_e4978e() {
+ bool res = isnan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNan_e4978e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_e4978e() {
+ bool res = isnan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNan_e4978e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void isNan_e4978e() {
+ bool res = isnan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNan_e4978e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl
new file mode 100644
index 0000000..0b2c4b0
--- /dev/null
+++ b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl
@@ -0,0 +1,115 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+bvec4 tint_isNormal(vec4 param_0) {
+ uint4 exponent = asuint(param_0) & 0x7f80000;
+ uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_863dcd() {
+ bvec4 res = tint_isNormal(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNormal_863dcd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bvec4 tint_isNormal(vec4 param_0) {
+ uint4 exponent = asuint(param_0) & 0x7f80000;
+ uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_863dcd() {
+ bvec4 res = tint_isNormal(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNormal_863dcd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bvec4 tint_isNormal(vec4 param_0) {
+ uint4 exponent = asuint(param_0) & 0x7f80000;
+ uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_863dcd() {
+ bvec4 res = tint_isNormal(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNormal_863dcd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl
new file mode 100644
index 0000000..31418fa
--- /dev/null
+++ b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl
@@ -0,0 +1,115 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+bvec2 tint_isNormal(vec2 param_0) {
+ uint2 exponent = asuint(param_0) & 0x7f80000;
+ uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_b00ab1() {
+ bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNormal_b00ab1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bvec2 tint_isNormal(vec2 param_0) {
+ uint2 exponent = asuint(param_0) & 0x7f80000;
+ uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_b00ab1() {
+ bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNormal_b00ab1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bvec2 tint_isNormal(vec2 param_0) {
+ uint2 exponent = asuint(param_0) & 0x7f80000;
+ uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_b00ab1() {
+ bvec2 res = tint_isNormal(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNormal_b00ab1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl
new file mode 100644
index 0000000..f631e5d
--- /dev/null
+++ b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl
@@ -0,0 +1,115 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+bvec3 tint_isNormal(vec3 param_0) {
+ uint3 exponent = asuint(param_0) & 0x7f80000;
+ uint3 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_c286b7() {
+ bvec3 res = tint_isNormal(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNormal_c286b7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint3' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bvec3 tint_isNormal(vec3 param_0) {
+ uint3 exponent = asuint(param_0) & 0x7f80000;
+ uint3 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_c286b7() {
+ bvec3 res = tint_isNormal(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNormal_c286b7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint3' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bvec3 tint_isNormal(vec3 param_0) {
+ uint3 exponent = asuint(param_0) & 0x7f80000;
+ uint3 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_c286b7() {
+ bvec3 res = tint_isNormal(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNormal_c286b7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint3' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl
new file mode 100644
index 0000000..972583a
--- /dev/null
+++ b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl
@@ -0,0 +1,118 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+bool tint_isNormal(float param_0) {
+ uint exponent = asuint(param_0) & 0x7f80000;
+ uint clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_c6e880() {
+ bool res = tint_isNormal(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ isNormal_c6e880();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'asuint' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bool tint_isNormal(float param_0) {
+ uint exponent = asuint(param_0) & 0x7f80000;
+ uint clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_c6e880() {
+ bool res = tint_isNormal(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ isNormal_c6e880();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'asuint' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+bool tint_isNormal(float param_0) {
+ uint exponent = asuint(param_0) & 0x7f80000;
+ uint clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+void isNormal_c6e880() {
+ bool res = tint_isNormal(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ isNormal_c6e880();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'asuint' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl b/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl
new file mode 100644
index 0000000..6be4130
--- /dev/null
+++ b/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ldexp_a31cdc() {
+ vec3 res = ldexp(vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ldexp_a31cdc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_a31cdc() {
+ vec3 res = ldexp(vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ldexp_a31cdc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_a31cdc() {
+ vec3 res = ldexp(vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ldexp_a31cdc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ldexp/abd718.wgsl.expected.glsl b/test/intrinsics/gen/ldexp/abd718.wgsl.expected.glsl
new file mode 100644
index 0000000..3f863c5
--- /dev/null
+++ b/test/intrinsics/gen/ldexp/abd718.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ldexp_abd718() {
+ vec2 res = ldexp(vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ldexp_abd718();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_abd718() {
+ vec2 res = ldexp(vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ldexp_abd718();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_abd718() {
+ vec2 res = ldexp(vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ldexp_abd718();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.glsl b/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.glsl
new file mode 100644
index 0000000..fa29694
--- /dev/null
+++ b/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ldexp_cc9cde() {
+ vec4 res = ldexp(vec4(0.0f, 0.0f, 0.0f, 0.0f), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ldexp_cc9cde();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_cc9cde() {
+ vec4 res = ldexp(vec4(0.0f, 0.0f, 0.0f, 0.0f), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ldexp_cc9cde();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_cc9cde() {
+ vec4 res = ldexp(vec4(0.0f, 0.0f, 0.0f, 0.0f), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ldexp_cc9cde();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.glsl b/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.glsl
new file mode 100644
index 0000000..9bb389d
--- /dev/null
+++ b/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void ldexp_db8b49() {
+ float res = ldexp(1.0f, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ ldexp_db8b49();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_db8b49() {
+ float res = ldexp(1.0f, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ ldexp_db8b49();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void ldexp_db8b49() {
+ float res = ldexp(1.0f, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ ldexp_db8b49();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/length/056071.wgsl.expected.glsl b/test/intrinsics/gen/length/056071.wgsl.expected.glsl
new file mode 100644
index 0000000..433a775
--- /dev/null
+++ b/test/intrinsics/gen/length/056071.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void length_056071() {
+ float res = length(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ length_056071();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_056071() {
+ float res = length(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ length_056071();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_056071() {
+ float res = length(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ length_056071();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/length/602a17.wgsl.expected.glsl b/test/intrinsics/gen/length/602a17.wgsl.expected.glsl
new file mode 100644
index 0000000..a5300f5
--- /dev/null
+++ b/test/intrinsics/gen/length/602a17.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void length_602a17() {
+ float res = length(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ length_602a17();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_602a17() {
+ float res = length(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ length_602a17();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_602a17() {
+ float res = length(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ length_602a17();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/length/afde8b.wgsl.expected.glsl b/test/intrinsics/gen/length/afde8b.wgsl.expected.glsl
new file mode 100644
index 0000000..6e7979e
--- /dev/null
+++ b/test/intrinsics/gen/length/afde8b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void length_afde8b() {
+ float res = length(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ length_afde8b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_afde8b() {
+ float res = length(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ length_afde8b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_afde8b() {
+ float res = length(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ length_afde8b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/length/becebf.wgsl.expected.glsl b/test/intrinsics/gen/length/becebf.wgsl.expected.glsl
new file mode 100644
index 0000000..8b74be8
--- /dev/null
+++ b/test/intrinsics/gen/length/becebf.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void length_becebf() {
+ float res = length(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ length_becebf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_becebf() {
+ float res = length(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ length_becebf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void length_becebf() {
+ float res = length(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ length_becebf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log/3da25a.wgsl.expected.glsl b/test/intrinsics/gen/log/3da25a.wgsl.expected.glsl
new file mode 100644
index 0000000..f312339
--- /dev/null
+++ b/test/intrinsics/gen/log/3da25a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log_3da25a() {
+ vec4 res = log(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log_3da25a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_3da25a() {
+ vec4 res = log(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log_3da25a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_3da25a() {
+ vec4 res = log(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log_3da25a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log/7114a6.wgsl.expected.glsl b/test/intrinsics/gen/log/7114a6.wgsl.expected.glsl
new file mode 100644
index 0000000..19b3e42
--- /dev/null
+++ b/test/intrinsics/gen/log/7114a6.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log_7114a6() {
+ float res = log(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log_7114a6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_7114a6() {
+ float res = log(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log_7114a6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_7114a6() {
+ float res = log(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log_7114a6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log/b2ce28.wgsl.expected.glsl b/test/intrinsics/gen/log/b2ce28.wgsl.expected.glsl
new file mode 100644
index 0000000..2181f22
--- /dev/null
+++ b/test/intrinsics/gen/log/b2ce28.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log_b2ce28() {
+ vec2 res = log(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log_b2ce28();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_b2ce28() {
+ vec2 res = log(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log_b2ce28();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_b2ce28() {
+ vec2 res = log(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log_b2ce28();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log/f4c570.wgsl.expected.glsl b/test/intrinsics/gen/log/f4c570.wgsl.expected.glsl
new file mode 100644
index 0000000..a75bf17
--- /dev/null
+++ b/test/intrinsics/gen/log/f4c570.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log_f4c570() {
+ vec3 res = log(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log_f4c570();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_f4c570() {
+ vec3 res = log(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log_f4c570();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log_f4c570() {
+ vec3 res = log(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log_f4c570();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log2/4036ed.wgsl.expected.glsl b/test/intrinsics/gen/log2/4036ed.wgsl.expected.glsl
new file mode 100644
index 0000000..e3a12d7
--- /dev/null
+++ b/test/intrinsics/gen/log2/4036ed.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log2_4036ed() {
+ float res = log2(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log2_4036ed();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_4036ed() {
+ float res = log2(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log2_4036ed();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_4036ed() {
+ float res = log2(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log2_4036ed();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log2/902988.wgsl.expected.glsl b/test/intrinsics/gen/log2/902988.wgsl.expected.glsl
new file mode 100644
index 0000000..f1d25b7
--- /dev/null
+++ b/test/intrinsics/gen/log2/902988.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log2_902988() {
+ vec4 res = log2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log2_902988();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_902988() {
+ vec4 res = log2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log2_902988();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_902988() {
+ vec4 res = log2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log2_902988();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log2/adb233.wgsl.expected.glsl b/test/intrinsics/gen/log2/adb233.wgsl.expected.glsl
new file mode 100644
index 0000000..2785876
--- /dev/null
+++ b/test/intrinsics/gen/log2/adb233.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log2_adb233() {
+ vec3 res = log2(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log2_adb233();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_adb233() {
+ vec3 res = log2(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log2_adb233();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_adb233() {
+ vec3 res = log2(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log2_adb233();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/log2/aea659.wgsl.expected.glsl b/test/intrinsics/gen/log2/aea659.wgsl.expected.glsl
new file mode 100644
index 0000000..105fc9e
--- /dev/null
+++ b/test/intrinsics/gen/log2/aea659.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void log2_aea659() {
+ vec2 res = log2(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ log2_aea659();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_aea659() {
+ vec2 res = log2(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ log2_aea659();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void log2_aea659() {
+ vec2 res = log2(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ log2_aea659();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/0c0aae.wgsl.expected.glsl b/test/intrinsics/gen/max/0c0aae.wgsl.expected.glsl
new file mode 100644
index 0000000..6462db5
--- /dev/null
+++ b/test/intrinsics/gen/max/0c0aae.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_0c0aae() {
+ uint res = max(1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_0c0aae();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_0c0aae() {
+ uint res = max(1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_0c0aae();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_0c0aae() {
+ uint res = max(1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_0c0aae();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/25eafe.wgsl.expected.glsl b/test/intrinsics/gen/max/25eafe.wgsl.expected.glsl
new file mode 100644
index 0000000..81b1a2c
--- /dev/null
+++ b/test/intrinsics/gen/max/25eafe.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_25eafe() {
+ ivec3 res = max(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_25eafe();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_25eafe() {
+ ivec3 res = max(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_25eafe();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_25eafe() {
+ ivec3 res = max(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_25eafe();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/320815.wgsl.expected.glsl b/test/intrinsics/gen/max/320815.wgsl.expected.glsl
new file mode 100644
index 0000000..33a176b
--- /dev/null
+++ b/test/intrinsics/gen/max/320815.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_320815() {
+ uvec2 res = max(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_320815();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_320815() {
+ uvec2 res = max(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_320815();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_320815() {
+ uvec2 res = max(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_320815();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/44a39d.wgsl.expected.glsl b/test/intrinsics/gen/max/44a39d.wgsl.expected.glsl
new file mode 100644
index 0000000..e0a701f
--- /dev/null
+++ b/test/intrinsics/gen/max/44a39d.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_44a39d() {
+ float res = max(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_44a39d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_44a39d() {
+ float res = max(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_44a39d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_44a39d() {
+ float res = max(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_44a39d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/453e04.wgsl.expected.glsl b/test/intrinsics/gen/max/453e04.wgsl.expected.glsl
new file mode 100644
index 0000000..f9ec53e
--- /dev/null
+++ b/test/intrinsics/gen/max/453e04.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_453e04() {
+ uvec4 res = max(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_453e04();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_453e04() {
+ uvec4 res = max(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_453e04();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_453e04() {
+ uvec4 res = max(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_453e04();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/462050.wgsl.expected.glsl b/test/intrinsics/gen/max/462050.wgsl.expected.glsl
new file mode 100644
index 0000000..038fa12
--- /dev/null
+++ b/test/intrinsics/gen/max/462050.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_462050() {
+ vec2 res = max(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_462050();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_462050() {
+ vec2 res = max(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_462050();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_462050() {
+ vec2 res = max(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_462050();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/4883ac.wgsl.expected.glsl b/test/intrinsics/gen/max/4883ac.wgsl.expected.glsl
new file mode 100644
index 0000000..60b9131
--- /dev/null
+++ b/test/intrinsics/gen/max/4883ac.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_4883ac() {
+ vec3 res = max(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_4883ac();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_4883ac() {
+ vec3 res = max(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_4883ac();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_4883ac() {
+ vec3 res = max(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_4883ac();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/85e6bc.wgsl.expected.glsl b/test/intrinsics/gen/max/85e6bc.wgsl.expected.glsl
new file mode 100644
index 0000000..14fb911
--- /dev/null
+++ b/test/intrinsics/gen/max/85e6bc.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_85e6bc() {
+ ivec4 res = max(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_85e6bc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_85e6bc() {
+ ivec4 res = max(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_85e6bc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_85e6bc() {
+ ivec4 res = max(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_85e6bc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/a93419.wgsl.expected.glsl b/test/intrinsics/gen/max/a93419.wgsl.expected.glsl
new file mode 100644
index 0000000..d988e4f
--- /dev/null
+++ b/test/intrinsics/gen/max/a93419.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_a93419() {
+ vec4 res = max(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_a93419();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_a93419() {
+ vec4 res = max(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_a93419();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_a93419() {
+ vec4 res = max(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_a93419();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/b1b73a.wgsl.expected.glsl b/test/intrinsics/gen/max/b1b73a.wgsl.expected.glsl
new file mode 100644
index 0000000..5ac1a04
--- /dev/null
+++ b/test/intrinsics/gen/max/b1b73a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_b1b73a() {
+ uvec3 res = max(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_b1b73a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_b1b73a() {
+ uvec3 res = max(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_b1b73a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_b1b73a() {
+ uvec3 res = max(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_b1b73a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/ce7c30.wgsl.expected.glsl b/test/intrinsics/gen/max/ce7c30.wgsl.expected.glsl
new file mode 100644
index 0000000..78a41e4
--- /dev/null
+++ b/test/intrinsics/gen/max/ce7c30.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_ce7c30() {
+ int res = max(1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_ce7c30();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_ce7c30() {
+ int res = max(1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_ce7c30();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_ce7c30() {
+ int res = max(1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_ce7c30();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/max/e8192f.wgsl.expected.glsl b/test/intrinsics/gen/max/e8192f.wgsl.expected.glsl
new file mode 100644
index 0000000..0df9fe1
--- /dev/null
+++ b/test/intrinsics/gen/max/e8192f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void max_e8192f() {
+ ivec2 res = max(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ max_e8192f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_e8192f() {
+ ivec2 res = max(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ max_e8192f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void max_e8192f() {
+ ivec2 res = max(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ max_e8192f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/03c7e3.wgsl.expected.glsl b/test/intrinsics/gen/min/03c7e3.wgsl.expected.glsl
new file mode 100644
index 0000000..3681cac
--- /dev/null
+++ b/test/intrinsics/gen/min/03c7e3.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_03c7e3() {
+ ivec2 res = min(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_03c7e3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_03c7e3() {
+ ivec2 res = min(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_03c7e3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_03c7e3() {
+ ivec2 res = min(ivec2(0, 0), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_03c7e3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/0dc614.wgsl.expected.glsl b/test/intrinsics/gen/min/0dc614.wgsl.expected.glsl
new file mode 100644
index 0000000..5f46503
--- /dev/null
+++ b/test/intrinsics/gen/min/0dc614.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_0dc614() {
+ uvec4 res = min(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_0dc614();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_0dc614() {
+ uvec4 res = min(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_0dc614();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_0dc614() {
+ uvec4 res = min(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_0dc614();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/3941e1.wgsl.expected.glsl b/test/intrinsics/gen/min/3941e1.wgsl.expected.glsl
new file mode 100644
index 0000000..4b50155
--- /dev/null
+++ b/test/intrinsics/gen/min/3941e1.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_3941e1() {
+ ivec4 res = min(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_3941e1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_3941e1() {
+ ivec4 res = min(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_3941e1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_3941e1() {
+ ivec4 res = min(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_3941e1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/46c5d3.wgsl.expected.glsl b/test/intrinsics/gen/min/46c5d3.wgsl.expected.glsl
new file mode 100644
index 0000000..6a12575
--- /dev/null
+++ b/test/intrinsics/gen/min/46c5d3.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_46c5d3() {
+ uint res = min(1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_46c5d3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_46c5d3() {
+ uint res = min(1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_46c5d3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_46c5d3() {
+ uint res = min(1u, 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_46c5d3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/82b28f.wgsl.expected.glsl b/test/intrinsics/gen/min/82b28f.wgsl.expected.glsl
new file mode 100644
index 0000000..ccc288d
--- /dev/null
+++ b/test/intrinsics/gen/min/82b28f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_82b28f() {
+ uvec2 res = min(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_82b28f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_82b28f() {
+ uvec2 res = min(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_82b28f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_82b28f() {
+ uvec2 res = min(uvec2(0u, 0u), uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_82b28f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/93cfc4.wgsl.expected.glsl b/test/intrinsics/gen/min/93cfc4.wgsl.expected.glsl
new file mode 100644
index 0000000..6c8ed16
--- /dev/null
+++ b/test/intrinsics/gen/min/93cfc4.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_93cfc4() {
+ vec3 res = min(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_93cfc4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_93cfc4() {
+ vec3 res = min(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_93cfc4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_93cfc4() {
+ vec3 res = min(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_93cfc4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/a45171.wgsl.expected.glsl b/test/intrinsics/gen/min/a45171.wgsl.expected.glsl
new file mode 100644
index 0000000..be1e651
--- /dev/null
+++ b/test/intrinsics/gen/min/a45171.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_a45171() {
+ ivec3 res = min(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_a45171();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_a45171() {
+ ivec3 res = min(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_a45171();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_a45171() {
+ ivec3 res = min(ivec3(0, 0, 0), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_a45171();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/aa28ad.wgsl.expected.glsl b/test/intrinsics/gen/min/aa28ad.wgsl.expected.glsl
new file mode 100644
index 0000000..e278388
--- /dev/null
+++ b/test/intrinsics/gen/min/aa28ad.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_aa28ad() {
+ vec2 res = min(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_aa28ad();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_aa28ad() {
+ vec2 res = min(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_aa28ad();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_aa28ad() {
+ vec2 res = min(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_aa28ad();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/af326d.wgsl.expected.glsl b/test/intrinsics/gen/min/af326d.wgsl.expected.glsl
new file mode 100644
index 0000000..fb6c905
--- /dev/null
+++ b/test/intrinsics/gen/min/af326d.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_af326d() {
+ float res = min(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_af326d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_af326d() {
+ float res = min(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_af326d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_af326d() {
+ float res = min(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_af326d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/c70bb7.wgsl.expected.glsl b/test/intrinsics/gen/min/c70bb7.wgsl.expected.glsl
new file mode 100644
index 0000000..1497821
--- /dev/null
+++ b/test/intrinsics/gen/min/c70bb7.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_c70bb7() {
+ uvec3 res = min(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_c70bb7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_c70bb7() {
+ uvec3 res = min(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_c70bb7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_c70bb7() {
+ uvec3 res = min(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_c70bb7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/c73147.wgsl.expected.glsl b/test/intrinsics/gen/min/c73147.wgsl.expected.glsl
new file mode 100644
index 0000000..33890b6
--- /dev/null
+++ b/test/intrinsics/gen/min/c73147.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_c73147() {
+ int res = min(1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_c73147();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_c73147() {
+ int res = min(1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_c73147();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_c73147() {
+ int res = min(1, 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_c73147();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/min/c76fa6.wgsl.expected.glsl b/test/intrinsics/gen/min/c76fa6.wgsl.expected.glsl
new file mode 100644
index 0000000..d592973
--- /dev/null
+++ b/test/intrinsics/gen/min/c76fa6.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void min_c76fa6() {
+ vec4 res = min(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ min_c76fa6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_c76fa6() {
+ vec4 res = min(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ min_c76fa6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void min_c76fa6() {
+ vec4 res = min(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ min_c76fa6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/mix/0c8c33.wgsl.expected.glsl b/test/intrinsics/gen/mix/0c8c33.wgsl.expected.glsl
new file mode 100644
index 0000000..7655fec
--- /dev/null
+++ b/test/intrinsics/gen/mix/0c8c33.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void mix_0c8c33() {
+ vec3 res = mix(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ mix_0c8c33();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_0c8c33() {
+ vec3 res = mix(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ mix_0c8c33();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_0c8c33() {
+ vec3 res = mix(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ mix_0c8c33();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/mix/1faeb1.wgsl.expected.glsl b/test/intrinsics/gen/mix/1faeb1.wgsl.expected.glsl
new file mode 100644
index 0000000..53f8f7e
--- /dev/null
+++ b/test/intrinsics/gen/mix/1faeb1.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void mix_1faeb1() {
+ vec4 res = mix(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ mix_1faeb1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_1faeb1() {
+ vec4 res = mix(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ mix_1faeb1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_1faeb1() {
+ vec4 res = mix(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ mix_1faeb1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/mix/2fadab.wgsl.expected.glsl b/test/intrinsics/gen/mix/2fadab.wgsl.expected.glsl
new file mode 100644
index 0000000..a51405d
--- /dev/null
+++ b/test/intrinsics/gen/mix/2fadab.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void mix_2fadab() {
+ vec2 res = mix(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ mix_2fadab();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_2fadab() {
+ vec2 res = mix(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ mix_2fadab();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_2fadab() {
+ vec2 res = mix(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ mix_2fadab();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/mix/315264.wgsl.expected.glsl b/test/intrinsics/gen/mix/315264.wgsl.expected.glsl
new file mode 100644
index 0000000..fcfcee9
--- /dev/null
+++ b/test/intrinsics/gen/mix/315264.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void mix_315264() {
+ vec3 res = mix(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ mix_315264();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_315264() {
+ vec3 res = mix(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ mix_315264();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_315264() {
+ vec3 res = mix(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ mix_315264();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.glsl b/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.glsl
new file mode 100644
index 0000000..9aadb86
--- /dev/null
+++ b/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void mix_4f0b5e() {
+ float res = mix(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ mix_4f0b5e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_4f0b5e() {
+ float res = mix(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ mix_4f0b5e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_4f0b5e() {
+ float res = mix(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ mix_4f0b5e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/mix/6f8adc.wgsl.expected.glsl b/test/intrinsics/gen/mix/6f8adc.wgsl.expected.glsl
new file mode 100644
index 0000000..a0f4d63
--- /dev/null
+++ b/test/intrinsics/gen/mix/6f8adc.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void mix_6f8adc() {
+ vec2 res = mix(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ mix_6f8adc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_6f8adc() {
+ vec2 res = mix(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ mix_6f8adc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_6f8adc() {
+ vec2 res = mix(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ mix_6f8adc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/mix/c37ede.wgsl.expected.glsl b/test/intrinsics/gen/mix/c37ede.wgsl.expected.glsl
new file mode 100644
index 0000000..440a8d8
--- /dev/null
+++ b/test/intrinsics/gen/mix/c37ede.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void mix_c37ede() {
+ vec4 res = mix(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ mix_c37ede();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_c37ede() {
+ vec4 res = mix(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ mix_c37ede();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void mix_c37ede() {
+ vec4 res = mix(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ mix_c37ede();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/modf/2199f1.wgsl.expected.glsl b/test/intrinsics/gen/modf/2199f1.wgsl.expected.glsl
new file mode 100644
index 0000000..8b170ac
--- /dev/null
+++ b/test/intrinsics/gen/modf/2199f1.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec3 {
+ vec3 fract;
+ vec3 whole;
+};
+modf_result_vec3 tint_modf(vec3 param_0) {
+ float3 whole;
+ float3 fract = modf(param_0, whole);
+ modf_result_vec3 result = {fract, whole};
+ return result;
+}
+
+
+void modf_2199f1() {
+ modf_result_vec3 res = tint_modf(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ modf_2199f1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float3' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec3 {
+ vec3 fract;
+ vec3 whole;
+};
+modf_result_vec3 tint_modf(vec3 param_0) {
+ float3 whole;
+ float3 fract = modf(param_0, whole);
+ modf_result_vec3 result = {fract, whole};
+ return result;
+}
+
+
+void modf_2199f1() {
+ modf_result_vec3 res = tint_modf(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ modf_2199f1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float3' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec3 {
+ vec3 fract;
+ vec3 whole;
+};
+modf_result_vec3 tint_modf(vec3 param_0) {
+ float3 whole;
+ float3 fract = modf(param_0, whole);
+ modf_result_vec3 result = {fract, whole};
+ return result;
+}
+
+
+void modf_2199f1() {
+ modf_result_vec3 res = tint_modf(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ modf_2199f1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float3' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/modf/684d46.wgsl.expected.glsl b/test/intrinsics/gen/modf/684d46.wgsl.expected.glsl
new file mode 100644
index 0000000..1bdfd4f
--- /dev/null
+++ b/test/intrinsics/gen/modf/684d46.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct modf_result {
+ float fract;
+ float whole;
+};
+modf_result tint_modf(float param_0) {
+ float whole;
+ float fract = modf(param_0, whole);
+ modf_result result = {fract, whole};
+ return result;
+}
+
+
+void modf_684d46() {
+ modf_result res = tint_modf(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ modf_684d46();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: '{ } style initializers' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result {
+ float fract;
+ float whole;
+};
+modf_result tint_modf(float param_0) {
+ float whole;
+ float fract = modf(param_0, whole);
+ modf_result result = {fract, whole};
+ return result;
+}
+
+
+void modf_684d46() {
+ modf_result res = tint_modf(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ modf_684d46();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: '{ } style initializers' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result {
+ float fract;
+ float whole;
+};
+modf_result tint_modf(float param_0) {
+ float whole;
+ float fract = modf(param_0, whole);
+ modf_result result = {fract, whole};
+ return result;
+}
+
+
+void modf_684d46() {
+ modf_result res = tint_modf(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ modf_684d46();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: '{ } style initializers' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/modf/9b44a9.wgsl.expected.glsl b/test/intrinsics/gen/modf/9b44a9.wgsl.expected.glsl
new file mode 100644
index 0000000..b4bfa59
--- /dev/null
+++ b/test/intrinsics/gen/modf/9b44a9.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec4 {
+ vec4 fract;
+ vec4 whole;
+};
+modf_result_vec4 tint_modf(vec4 param_0) {
+ float4 whole;
+ float4 fract = modf(param_0, whole);
+ modf_result_vec4 result = {fract, whole};
+ return result;
+}
+
+
+void modf_9b44a9() {
+ modf_result_vec4 res = tint_modf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ modf_9b44a9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float4' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec4 {
+ vec4 fract;
+ vec4 whole;
+};
+modf_result_vec4 tint_modf(vec4 param_0) {
+ float4 whole;
+ float4 fract = modf(param_0, whole);
+ modf_result_vec4 result = {fract, whole};
+ return result;
+}
+
+
+void modf_9b44a9() {
+ modf_result_vec4 res = tint_modf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ modf_9b44a9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float4' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec4 {
+ vec4 fract;
+ vec4 whole;
+};
+modf_result_vec4 tint_modf(vec4 param_0) {
+ float4 whole;
+ float4 fract = modf(param_0, whole);
+ modf_result_vec4 result = {fract, whole};
+ return result;
+}
+
+
+void modf_9b44a9() {
+ modf_result_vec4 res = tint_modf(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ modf_9b44a9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float4' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/modf/c87851.wgsl.expected.glsl b/test/intrinsics/gen/modf/c87851.wgsl.expected.glsl
new file mode 100644
index 0000000..7ac2097
--- /dev/null
+++ b/test/intrinsics/gen/modf/c87851.wgsl.expected.glsl
@@ -0,0 +1,130 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec2 {
+ vec2 fract;
+ vec2 whole;
+};
+modf_result_vec2 tint_modf(vec2 param_0) {
+ float2 whole;
+ float2 fract = modf(param_0, whole);
+ modf_result_vec2 result = {fract, whole};
+ return result;
+}
+
+
+void modf_c87851() {
+ modf_result_vec2 res = tint_modf(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ modf_c87851();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float2' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec2 {
+ vec2 fract;
+ vec2 whole;
+};
+modf_result_vec2 tint_modf(vec2 param_0) {
+ float2 whole;
+ float2 fract = modf(param_0, whole);
+ modf_result_vec2 result = {fract, whole};
+ return result;
+}
+
+
+void modf_c87851() {
+ modf_result_vec2 res = tint_modf(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ modf_c87851();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float2' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+struct modf_result_vec2 {
+ vec2 fract;
+ vec2 whole;
+};
+modf_result_vec2 tint_modf(vec2 param_0) {
+ float2 whole;
+ float2 fract = modf(param_0, whole);
+ modf_result_vec2 result = {fract, whole};
+ return result;
+}
+
+
+void modf_c87851() {
+ modf_result_vec2 res = tint_modf(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ modf_c87851();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'float2' : undeclared identifier
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.glsl b/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.glsl
new file mode 100644
index 0000000..39ea34c
--- /dev/null
+++ b/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void normalize_64d8c0() {
+ vec3 res = normalize(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ normalize_64d8c0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void normalize_64d8c0() {
+ vec3 res = normalize(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ normalize_64d8c0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void normalize_64d8c0() {
+ vec3 res = normalize(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ normalize_64d8c0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.glsl b/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.glsl
new file mode 100644
index 0000000..717b70b
--- /dev/null
+++ b/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void normalize_9a0aab() {
+ vec4 res = normalize(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ normalize_9a0aab();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void normalize_9a0aab() {
+ vec4 res = normalize(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ normalize_9a0aab();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void normalize_9a0aab() {
+ vec4 res = normalize(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ normalize_9a0aab();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.glsl b/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.glsl
new file mode 100644
index 0000000..7159f7f
--- /dev/null
+++ b/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void normalize_fc2ef1() {
+ vec2 res = normalize(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ normalize_fc2ef1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void normalize_fc2ef1() {
+ vec2 res = normalize(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ normalize_fc2ef1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void normalize_fc2ef1() {
+ vec2 res = normalize(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ normalize_fc2ef1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.glsl b/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.glsl
new file mode 100644
index 0000000..b34c723
--- /dev/null
+++ b/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.glsl
@@ -0,0 +1,112 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16float(vec2 param_0) {
+ uint2 i = f32tof16(param_0);
+ return i.x | (i.y << 16);
+}
+
+
+void pack2x16float_0e97b3() {
+ uint res = tint_pack2x16float(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pack2x16float_0e97b3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16float(vec2 param_0) {
+ uint2 i = f32tof16(param_0);
+ return i.x | (i.y << 16);
+}
+
+
+void pack2x16float_0e97b3() {
+ uint res = tint_pack2x16float(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pack2x16float_0e97b3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16float(vec2 param_0) {
+ uint2 i = f32tof16(param_0);
+ return i.x | (i.y << 16);
+}
+
+
+void pack2x16float_0e97b3() {
+ uint res = tint_pack2x16float(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pack2x16float_0e97b3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl b/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl
new file mode 100644
index 0000000..dbc5baa
--- /dev/null
+++ b/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl
@@ -0,0 +1,112 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16snorm(vec2 param_0) {
+ int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff;
+ return asuint(i.x | i.y << 16);
+}
+
+
+void pack2x16snorm_6c169b() {
+ uint res = tint_pack2x16snorm(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pack2x16snorm_6c169b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'int2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16snorm(vec2 param_0) {
+ int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff;
+ return asuint(i.x | i.y << 16);
+}
+
+
+void pack2x16snorm_6c169b() {
+ uint res = tint_pack2x16snorm(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pack2x16snorm_6c169b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'int2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16snorm(vec2 param_0) {
+ int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff;
+ return asuint(i.x | i.y << 16);
+}
+
+
+void pack2x16snorm_6c169b() {
+ uint res = tint_pack2x16snorm(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pack2x16snorm_6c169b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'int2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl b/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl
new file mode 100644
index 0000000..957c998
--- /dev/null
+++ b/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl
@@ -0,0 +1,112 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16unorm(vec2 param_0) {
+ uint2 i = uint2(round(clamp(param_0, 0.0, 1.0) * 65535.0));
+ return (i.x | i.y << 16);
+}
+
+
+void pack2x16unorm_0f08e4() {
+ uint res = tint_pack2x16unorm(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pack2x16unorm_0f08e4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16unorm(vec2 param_0) {
+ uint2 i = uint2(round(clamp(param_0, 0.0, 1.0) * 65535.0));
+ return (i.x | i.y << 16);
+}
+
+
+void pack2x16unorm_0f08e4() {
+ uint res = tint_pack2x16unorm(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pack2x16unorm_0f08e4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack2x16unorm(vec2 param_0) {
+ uint2 i = uint2(round(clamp(param_0, 0.0, 1.0) * 65535.0));
+ return (i.x | i.y << 16);
+}
+
+
+void pack2x16unorm_0f08e4() {
+ uint res = tint_pack2x16unorm(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pack2x16unorm_0f08e4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint2' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl b/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl
new file mode 100644
index 0000000..665b0da
--- /dev/null
+++ b/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl
@@ -0,0 +1,112 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack4x8snorm(vec4 param_0) {
+ int4 i = int4(round(clamp(param_0, -1.0, 1.0) * 127.0)) & 0xff;
+ return asuint(i.x | i.y << 8 | i.z << 16 | i.w << 24);
+}
+
+
+void pack4x8snorm_4d22e7() {
+ uint res = tint_pack4x8snorm(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pack4x8snorm_4d22e7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'int4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack4x8snorm(vec4 param_0) {
+ int4 i = int4(round(clamp(param_0, -1.0, 1.0) * 127.0)) & 0xff;
+ return asuint(i.x | i.y << 8 | i.z << 16 | i.w << 24);
+}
+
+
+void pack4x8snorm_4d22e7() {
+ uint res = tint_pack4x8snorm(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pack4x8snorm_4d22e7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'int4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack4x8snorm(vec4 param_0) {
+ int4 i = int4(round(clamp(param_0, -1.0, 1.0) * 127.0)) & 0xff;
+ return asuint(i.x | i.y << 8 | i.z << 16 | i.w << 24);
+}
+
+
+void pack4x8snorm_4d22e7() {
+ uint res = tint_pack4x8snorm(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pack4x8snorm_4d22e7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'int4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl b/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl
new file mode 100644
index 0000000..e2bb77f
--- /dev/null
+++ b/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl
@@ -0,0 +1,112 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack4x8unorm(vec4 param_0) {
+ uint4 i = uint4(round(clamp(param_0, 0.0, 1.0) * 255.0));
+ return (i.x | i.y << 8 | i.z << 16 | i.w << 24);
+}
+
+
+void pack4x8unorm_95c456() {
+ uint res = tint_pack4x8unorm(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pack4x8unorm_95c456();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack4x8unorm(vec4 param_0) {
+ uint4 i = uint4(round(clamp(param_0, 0.0, 1.0) * 255.0));
+ return (i.x | i.y << 8 | i.z << 16 | i.w << 24);
+}
+
+
+void pack4x8unorm_95c456() {
+ uint res = tint_pack4x8unorm(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pack4x8unorm_95c456();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uint tint_pack4x8unorm(vec4 param_0) {
+ uint4 i = uint4(round(clamp(param_0, 0.0, 1.0) * 255.0));
+ return (i.x | i.y << 8 | i.z << 16 | i.w << 24);
+}
+
+
+void pack4x8unorm_95c456() {
+ uint res = tint_pack4x8unorm(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pack4x8unorm_95c456();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl b/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl
new file mode 100644
index 0000000..c50c6af
--- /dev/null
+++ b/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void pow_04a908() {
+ vec4 res = pow(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pow_04a908();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_04a908() {
+ vec4 res = pow(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pow_04a908();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_04a908() {
+ vec4 res = pow(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pow_04a908();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/pow/46e029.wgsl.expected.glsl b/test/intrinsics/gen/pow/46e029.wgsl.expected.glsl
new file mode 100644
index 0000000..f8745f4
--- /dev/null
+++ b/test/intrinsics/gen/pow/46e029.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void pow_46e029() {
+ float res = pow(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pow_46e029();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_46e029() {
+ float res = pow(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pow_46e029();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_46e029() {
+ float res = pow(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pow_46e029();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/pow/4a46c9.wgsl.expected.glsl b/test/intrinsics/gen/pow/4a46c9.wgsl.expected.glsl
new file mode 100644
index 0000000..5d76a94
--- /dev/null
+++ b/test/intrinsics/gen/pow/4a46c9.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void pow_4a46c9() {
+ vec3 res = pow(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pow_4a46c9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_4a46c9() {
+ vec3 res = pow(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pow_4a46c9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_4a46c9() {
+ vec3 res = pow(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pow_4a46c9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/pow/e60ea5.wgsl.expected.glsl b/test/intrinsics/gen/pow/e60ea5.wgsl.expected.glsl
new file mode 100644
index 0000000..5e2fb98
--- /dev/null
+++ b/test/intrinsics/gen/pow/e60ea5.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void pow_e60ea5() {
+ vec2 res = pow(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ pow_e60ea5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_e60ea5() {
+ vec2 res = pow(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ pow_e60ea5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void pow_e60ea5() {
+ vec2 res = pow(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ pow_e60ea5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/reflect/05357e.wgsl.expected.glsl b/test/intrinsics/gen/reflect/05357e.wgsl.expected.glsl
new file mode 100644
index 0000000..50be510
--- /dev/null
+++ b/test/intrinsics/gen/reflect/05357e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void reflect_05357e() {
+ vec4 res = reflect(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reflect_05357e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void reflect_05357e() {
+ vec4 res = reflect(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reflect_05357e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void reflect_05357e() {
+ vec4 res = reflect(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reflect_05357e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/reflect/b61e10.wgsl.expected.glsl b/test/intrinsics/gen/reflect/b61e10.wgsl.expected.glsl
new file mode 100644
index 0000000..91aec93
--- /dev/null
+++ b/test/intrinsics/gen/reflect/b61e10.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void reflect_b61e10() {
+ vec2 res = reflect(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reflect_b61e10();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void reflect_b61e10() {
+ vec2 res = reflect(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reflect_b61e10();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void reflect_b61e10() {
+ vec2 res = reflect(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reflect_b61e10();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.glsl b/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.glsl
new file mode 100644
index 0000000..a9cdf93
--- /dev/null
+++ b/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void reflect_f47fdb() {
+ vec3 res = reflect(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reflect_f47fdb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void reflect_f47fdb() {
+ vec3 res = reflect(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reflect_f47fdb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void reflect_f47fdb() {
+ vec3 res = reflect(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reflect_f47fdb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/refract/7e02e6.wgsl.expected.glsl b/test/intrinsics/gen/refract/7e02e6.wgsl.expected.glsl
new file mode 100644
index 0000000..e60675e
--- /dev/null
+++ b/test/intrinsics/gen/refract/7e02e6.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void refract_7e02e6() {
+ vec4 res = refract(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ refract_7e02e6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void refract_7e02e6() {
+ vec4 res = refract(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ refract_7e02e6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void refract_7e02e6() {
+ vec4 res = refract(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ refract_7e02e6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.glsl b/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.glsl
new file mode 100644
index 0000000..2561c52
--- /dev/null
+++ b/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void refract_cbc1d2() {
+ vec3 res = refract(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ refract_cbc1d2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void refract_cbc1d2() {
+ vec3 res = refract(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ refract_cbc1d2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void refract_cbc1d2() {
+ vec3 res = refract(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ refract_cbc1d2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/refract/cd905f.wgsl.expected.glsl b/test/intrinsics/gen/refract/cd905f.wgsl.expected.glsl
new file mode 100644
index 0000000..01765ce
--- /dev/null
+++ b/test/intrinsics/gen/refract/cd905f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void refract_cd905f() {
+ vec2 res = refract(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ refract_cd905f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void refract_cd905f() {
+ vec2 res = refract(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ refract_cd905f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void refract_cd905f() {
+ vec2 res = refract(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ refract_cd905f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/reverseBits/222177.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/222177.wgsl.expected.glsl
new file mode 100644
index 0000000..d62daf3
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/222177.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_222177() {
+ ivec2 res = reversebits(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_222177();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_222177() {
+ ivec2 res = reversebits(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_222177();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_222177() {
+ ivec2 res = reversebits(ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_222177();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl
new file mode 100644
index 0000000..4beb522
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_35fea9() {
+ uvec4 res = reversebits(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_35fea9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_35fea9() {
+ uvec4 res = reversebits(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_35fea9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_35fea9() {
+ uvec4 res = reversebits(uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_35fea9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl
new file mode 100644
index 0000000..85ac5da
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_4dbd6f() {
+ ivec4 res = reversebits(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_4dbd6f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_4dbd6f() {
+ ivec4 res = reversebits(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_4dbd6f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_4dbd6f() {
+ ivec4 res = reversebits(ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_4dbd6f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl
new file mode 100644
index 0000000..7109502
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_7c4269() {
+ int res = reversebits(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_7c4269();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_7c4269() {
+ int res = reversebits(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_7c4269();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_7c4269() {
+ int res = reversebits(1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_7c4269();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl
new file mode 100644
index 0000000..67c7af8
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_a6ccd4() {
+ uvec3 res = reversebits(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_a6ccd4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_a6ccd4() {
+ uvec3 res = reversebits(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_a6ccd4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_a6ccd4() {
+ uvec3 res = reversebits(uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_a6ccd4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl
new file mode 100644
index 0000000..a25b4a4
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_c21bc1() {
+ ivec3 res = reversebits(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_c21bc1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_c21bc1() {
+ ivec3 res = reversebits(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_c21bc1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_c21bc1() {
+ ivec3 res = reversebits(ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_c21bc1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl
new file mode 100644
index 0000000..e314fbb
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_e1f4c1() {
+ uvec2 res = reversebits(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_e1f4c1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_e1f4c1() {
+ uvec2 res = reversebits(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_e1f4c1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_e1f4c1() {
+ uvec2 res = reversebits(uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_e1f4c1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl
new file mode 100644
index 0000000..35ab11c
--- /dev/null
+++ b/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl
@@ -0,0 +1,97 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_e31adf() {
+ uint res = reversebits(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ reverseBits_e31adf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_e31adf() {
+ uint res = reversebits(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ reverseBits_e31adf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp mediump uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void reverseBits_e31adf() {
+ uint res = reversebits(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ reverseBits_e31adf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'reversebits' : no matching overloaded function found
+ERROR: 0:5: '=' : cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:5: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl b/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl
new file mode 100644
index 0000000..bd1e3cc
--- /dev/null
+++ b/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void round_106c0b() {
+ vec4 res = round(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ round_106c0b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_106c0b() {
+ vec4 res = round(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ round_106c0b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_106c0b() {
+ vec4 res = round(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ round_106c0b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/round/1c7897.wgsl.expected.glsl b/test/intrinsics/gen/round/1c7897.wgsl.expected.glsl
new file mode 100644
index 0000000..28eb74c
--- /dev/null
+++ b/test/intrinsics/gen/round/1c7897.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void round_1c7897() {
+ vec3 res = round(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ round_1c7897();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_1c7897() {
+ vec3 res = round(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ round_1c7897();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_1c7897() {
+ vec3 res = round(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ round_1c7897();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/round/52c84d.wgsl.expected.glsl b/test/intrinsics/gen/round/52c84d.wgsl.expected.glsl
new file mode 100644
index 0000000..d9b15b5
--- /dev/null
+++ b/test/intrinsics/gen/round/52c84d.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void round_52c84d() {
+ vec2 res = round(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ round_52c84d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_52c84d() {
+ vec2 res = round(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ round_52c84d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_52c84d() {
+ vec2 res = round(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ round_52c84d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/round/9edc38.wgsl.expected.glsl b/test/intrinsics/gen/round/9edc38.wgsl.expected.glsl
new file mode 100644
index 0000000..df807da
--- /dev/null
+++ b/test/intrinsics/gen/round/9edc38.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void round_9edc38() {
+ float res = round(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ round_9edc38();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_9edc38() {
+ float res = round(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ round_9edc38();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void round_9edc38() {
+ float res = round(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ round_9edc38();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/00b848.wgsl.expected.glsl b/test/intrinsics/gen/select/00b848.wgsl.expected.glsl
new file mode 100644
index 0000000..347a0b7
--- /dev/null
+++ b/test/intrinsics/gen/select/00b848.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_00b848() {
+ ivec2 res = (bvec2(false, false) ? ivec2(0, 0) : ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_00b848();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_00b848() {
+ ivec2 res = (bvec2(false, false) ? ivec2(0, 0) : ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_00b848();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_00b848() {
+ ivec2 res = (bvec2(false, false) ? ivec2(0, 0) : ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_00b848();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl b/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl
new file mode 100644
index 0000000..f31d541
--- /dev/null
+++ b/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_01e2cd() {
+ ivec3 res = (bvec3(false, false, false) ? ivec3(0, 0, 0) : ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_01e2cd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_01e2cd() {
+ ivec3 res = (bvec3(false, false, false) ? ivec3(0, 0, 0) : ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_01e2cd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_01e2cd() {
+ ivec3 res = (bvec3(false, false, false) ? ivec3(0, 0, 0) : ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_01e2cd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl b/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl
new file mode 100644
index 0000000..0179924
--- /dev/null
+++ b/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_087ea4() {
+ uvec4 res = (false ? uvec4(0u, 0u, 0u, 0u) : uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_087ea4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_087ea4() {
+ uvec4 res = (false ? uvec4(0u, 0u, 0u, 0u) : uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_087ea4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_087ea4() {
+ uvec4 res = (false ? uvec4(0u, 0u, 0u, 0u) : uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_087ea4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/1e960b.wgsl.expected.glsl b/test/intrinsics/gen/select/1e960b.wgsl.expected.glsl
new file mode 100644
index 0000000..00238d3
--- /dev/null
+++ b/test/intrinsics/gen/select/1e960b.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_1e960b() {
+ uvec2 res = (bvec2(false, false) ? uvec2(0u, 0u) : uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_1e960b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_1e960b() {
+ uvec2 res = (bvec2(false, false) ? uvec2(0u, 0u) : uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_1e960b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_1e960b() {
+ uvec2 res = (bvec2(false, false) ? uvec2(0u, 0u) : uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_1e960b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/266aff.wgsl.expected.glsl b/test/intrinsics/gen/select/266aff.wgsl.expected.glsl
new file mode 100644
index 0000000..fce4b89
--- /dev/null
+++ b/test/intrinsics/gen/select/266aff.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_266aff() {
+ vec2 res = (bvec2(false, false) ? vec2(0.0f, 0.0f) : vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_266aff();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_266aff() {
+ vec2 res = (bvec2(false, false) ? vec2(0.0f, 0.0f) : vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_266aff();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_266aff() {
+ vec2 res = (bvec2(false, false) ? vec2(0.0f, 0.0f) : vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_266aff();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl b/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl
new file mode 100644
index 0000000..09ac5f0
--- /dev/null
+++ b/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_28a27e() {
+ uvec3 res = (bvec3(false, false, false) ? uvec3(0u, 0u, 0u) : uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_28a27e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_28a27e() {
+ uvec3 res = (bvec3(false, false, false) ? uvec3(0u, 0u, 0u) : uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_28a27e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_28a27e() {
+ uvec3 res = (bvec3(false, false, false) ? uvec3(0u, 0u, 0u) : uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_28a27e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl b/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl
new file mode 100644
index 0000000..c1be4f7
--- /dev/null
+++ b/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_3c25ce() {
+ bvec3 res = (false ? bvec3(false, false, false) : bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_3c25ce();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_3c25ce() {
+ bvec3 res = (false ? bvec3(false, false, false) : bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_3c25ce();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_3c25ce() {
+ bvec3 res = (false ? bvec3(false, false, false) : bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_3c25ce();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/416e14.wgsl.expected.glsl b/test/intrinsics/gen/select/416e14.wgsl.expected.glsl
new file mode 100644
index 0000000..e1fdb29
--- /dev/null
+++ b/test/intrinsics/gen/select/416e14.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_416e14() {
+ float res = (false ? 1.0f : 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_416e14();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_416e14() {
+ float res = (false ? 1.0f : 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_416e14();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_416e14() {
+ float res = (false ? 1.0f : 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_416e14();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/51b047.wgsl.expected.glsl b/test/intrinsics/gen/select/51b047.wgsl.expected.glsl
new file mode 100644
index 0000000..3004e29
--- /dev/null
+++ b/test/intrinsics/gen/select/51b047.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_51b047() {
+ uvec2 res = (false ? uvec2(0u, 0u) : uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_51b047();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_51b047() {
+ uvec2 res = (false ? uvec2(0u, 0u) : uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_51b047();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_51b047() {
+ uvec2 res = (false ? uvec2(0u, 0u) : uvec2(0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_51b047();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/713567.wgsl.expected.glsl b/test/intrinsics/gen/select/713567.wgsl.expected.glsl
new file mode 100644
index 0000000..2d7eb6d
--- /dev/null
+++ b/test/intrinsics/gen/select/713567.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_713567() {
+ vec4 res = (false ? vec4(0.0f, 0.0f, 0.0f, 0.0f) : vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_713567();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_713567() {
+ vec4 res = (false ? vec4(0.0f, 0.0f, 0.0f, 0.0f) : vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_713567();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_713567() {
+ vec4 res = (false ? vec4(0.0f, 0.0f, 0.0f, 0.0f) : vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_713567();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/78be5f.wgsl.expected.glsl b/test/intrinsics/gen/select/78be5f.wgsl.expected.glsl
new file mode 100644
index 0000000..df6fbf4
--- /dev/null
+++ b/test/intrinsics/gen/select/78be5f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_78be5f() {
+ vec3 res = (false ? vec3(0.0f, 0.0f, 0.0f) : vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_78be5f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_78be5f() {
+ vec3 res = (false ? vec3(0.0f, 0.0f, 0.0f) : vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_78be5f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_78be5f() {
+ vec3 res = (false ? vec3(0.0f, 0.0f, 0.0f) : vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_78be5f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/80a9a9.wgsl.expected.glsl b/test/intrinsics/gen/select/80a9a9.wgsl.expected.glsl
new file mode 100644
index 0000000..9c5e012
--- /dev/null
+++ b/test/intrinsics/gen/select/80a9a9.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_80a9a9() {
+ bvec3 res = (bvec3(false, false, false) ? bvec3(false, false, false) : bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_80a9a9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_80a9a9() {
+ bvec3 res = (bvec3(false, false, false) ? bvec3(false, false, false) : bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_80a9a9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_80a9a9() {
+ bvec3 res = (bvec3(false, false, false) ? bvec3(false, false, false) : bvec3(false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_80a9a9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl b/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl
new file mode 100644
index 0000000..1821b3a
--- /dev/null
+++ b/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_8fa62c() {
+ ivec3 res = (false ? ivec3(0, 0, 0) : ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_8fa62c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_8fa62c() {
+ ivec3 res = (false ? ivec3(0, 0, 0) : ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_8fa62c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_8fa62c() {
+ ivec3 res = (false ? ivec3(0, 0, 0) : ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_8fa62c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/99f883.wgsl.expected.glsl b/test/intrinsics/gen/select/99f883.wgsl.expected.glsl
new file mode 100644
index 0000000..8125ab2
--- /dev/null
+++ b/test/intrinsics/gen/select/99f883.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_99f883() {
+ uint res = (false ? 1u : 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_99f883();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_99f883() {
+ uint res = (false ? 1u : 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_99f883();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_99f883() {
+ uint res = (false ? 1u : 1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_99f883();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/a2860e.wgsl.expected.glsl b/test/intrinsics/gen/select/a2860e.wgsl.expected.glsl
new file mode 100644
index 0000000..52b9848
--- /dev/null
+++ b/test/intrinsics/gen/select/a2860e.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_a2860e() {
+ ivec4 res = (bvec4(false, false, false, false) ? ivec4(0, 0, 0, 0) : ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_a2860e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_a2860e() {
+ ivec4 res = (bvec4(false, false, false, false) ? ivec4(0, 0, 0, 0) : ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_a2860e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_a2860e() {
+ ivec4 res = (bvec4(false, false, false, false) ? ivec4(0, 0, 0, 0) : ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_a2860e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl b/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl
new file mode 100644
index 0000000..6e3aa0e
--- /dev/null
+++ b/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_ab069f() {
+ ivec4 res = (false ? ivec4(0, 0, 0, 0) : ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_ab069f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_ab069f() {
+ ivec4 res = (false ? ivec4(0, 0, 0, 0) : ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_ab069f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_ab069f() {
+ ivec4 res = (false ? ivec4(0, 0, 0, 0) : ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_ab069f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/b04721.wgsl.expected.glsl b/test/intrinsics/gen/select/b04721.wgsl.expected.glsl
new file mode 100644
index 0000000..6d577be
--- /dev/null
+++ b/test/intrinsics/gen/select/b04721.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_b04721() {
+ uvec3 res = (false ? uvec3(0u, 0u, 0u) : uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_b04721();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_b04721() {
+ uvec3 res = (false ? uvec3(0u, 0u, 0u) : uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_b04721();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_b04721() {
+ uvec3 res = (false ? uvec3(0u, 0u, 0u) : uvec3(0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_b04721();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/bb447f.wgsl.expected.glsl b/test/intrinsics/gen/select/bb447f.wgsl.expected.glsl
new file mode 100644
index 0000000..c8d1747
--- /dev/null
+++ b/test/intrinsics/gen/select/bb447f.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_bb447f() {
+ ivec2 res = (false ? ivec2(0, 0) : ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_bb447f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_bb447f() {
+ ivec2 res = (false ? ivec2(0, 0) : ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_bb447f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_bb447f() {
+ ivec2 res = (false ? ivec2(0, 0) : ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_bb447f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/bb8aae.wgsl.expected.glsl b/test/intrinsics/gen/select/bb8aae.wgsl.expected.glsl
new file mode 100644
index 0000000..1723d39
--- /dev/null
+++ b/test/intrinsics/gen/select/bb8aae.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_bb8aae() {
+ vec4 res = (bvec4(false, false, false, false) ? vec4(0.0f, 0.0f, 0.0f, 0.0f) : vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_bb8aae();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_bb8aae() {
+ vec4 res = (bvec4(false, false, false, false) ? vec4(0.0f, 0.0f, 0.0f, 0.0f) : vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_bb8aae();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_bb8aae() {
+ vec4 res = (bvec4(false, false, false, false) ? vec4(0.0f, 0.0f, 0.0f, 0.0f) : vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_bb8aae();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl b/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl
new file mode 100644
index 0000000..5d30a5d
--- /dev/null
+++ b/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_bf3d29() {
+ vec2 res = (false ? vec2(0.0f, 0.0f) : vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_bf3d29();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_bf3d29() {
+ vec2 res = (false ? vec2(0.0f, 0.0f) : vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_bf3d29();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_bf3d29() {
+ vec2 res = (false ? vec2(0.0f, 0.0f) : vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_bf3d29();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/c31f9e.wgsl.expected.glsl b/test/intrinsics/gen/select/c31f9e.wgsl.expected.glsl
new file mode 100644
index 0000000..b95f6ab
--- /dev/null
+++ b/test/intrinsics/gen/select/c31f9e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_c31f9e() {
+ bool res = (false ? false : false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_c31f9e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_c31f9e() {
+ bool res = (false ? false : false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_c31f9e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_c31f9e() {
+ bool res = (false ? false : false);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_c31f9e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/c41bd1.wgsl.expected.glsl b/test/intrinsics/gen/select/c41bd1.wgsl.expected.glsl
new file mode 100644
index 0000000..1275c19
--- /dev/null
+++ b/test/intrinsics/gen/select/c41bd1.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_c41bd1() {
+ bvec4 res = (false ? bvec4(false, false, false, false) : bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_c41bd1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_c41bd1() {
+ bvec4 res = (false ? bvec4(false, false, false, false) : bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_c41bd1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_c41bd1() {
+ bvec4 res = (false ? bvec4(false, false, false, false) : bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_c41bd1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/c4a4ef.wgsl.expected.glsl b/test/intrinsics/gen/select/c4a4ef.wgsl.expected.glsl
new file mode 100644
index 0000000..926264c
--- /dev/null
+++ b/test/intrinsics/gen/select/c4a4ef.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_c4a4ef() {
+ uvec4 res = (bvec4(false, false, false, false) ? uvec4(0u, 0u, 0u, 0u) : uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_c4a4ef();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_c4a4ef() {
+ uvec4 res = (bvec4(false, false, false, false) ? uvec4(0u, 0u, 0u, 0u) : uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_c4a4ef();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_c4a4ef() {
+ uvec4 res = (bvec4(false, false, false, false) ? uvec4(0u, 0u, 0u, 0u) : uvec4(0u, 0u, 0u, 0u));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_c4a4ef();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl b/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl
new file mode 100644
index 0000000..2149581
--- /dev/null
+++ b/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_cb9301() {
+ bvec2 res = (bvec2(false, false) ? bvec2(false, false) : bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_cb9301();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_cb9301() {
+ bvec2 res = (bvec2(false, false) ? bvec2(false, false) : bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_cb9301();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_cb9301() {
+ bvec2 res = (bvec2(false, false) ? bvec2(false, false) : bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_cb9301();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl b/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl
new file mode 100644
index 0000000..9a62a71
--- /dev/null
+++ b/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_e3e028() {
+ bvec4 res = (bvec4(false, false, false, false) ? bvec4(false, false, false, false) : bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_e3e028();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_e3e028() {
+ bvec4 res = (bvec4(false, false, false, false) ? bvec4(false, false, false, false) : bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_e3e028();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_e3e028() {
+ bvec4 res = (bvec4(false, false, false, false) ? bvec4(false, false, false, false) : bvec4(false, false, false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_e3e028();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl b/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl
new file mode 100644
index 0000000..3843641
--- /dev/null
+++ b/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl
@@ -0,0 +1,94 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void select_ebfea2() {
+ vec3 res = (bvec3(false, false, false) ? vec3(0.0f, 0.0f, 0.0f) : vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_ebfea2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_ebfea2() {
+ vec3 res = (bvec3(false, false, false) ? vec3(0.0f, 0.0f, 0.0f) : vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_ebfea2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+void select_ebfea2() {
+ vec3 res = (bvec3(false, false, false) ? vec3(0.0f, 0.0f, 0.0f) : vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_ebfea2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: '' : boolean expression expected
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl b/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl
new file mode 100644
index 0000000..1145b1e
--- /dev/null
+++ b/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_ed8a15() {
+ int res = (false ? 1 : 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_ed8a15();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_ed8a15() {
+ int res = (false ? 1 : 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_ed8a15();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_ed8a15() {
+ int res = (false ? 1 : 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_ed8a15();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/select/fb7e53.wgsl.expected.glsl b/test/intrinsics/gen/select/fb7e53.wgsl.expected.glsl
new file mode 100644
index 0000000..4fcd1db
--- /dev/null
+++ b/test/intrinsics/gen/select/fb7e53.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void select_fb7e53() {
+ bvec2 res = (false ? bvec2(false, false) : bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ select_fb7e53();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_fb7e53() {
+ bvec2 res = (false ? bvec2(false, false) : bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ select_fb7e53();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void select_fb7e53() {
+ bvec2 res = (false ? bvec2(false, false) : bvec2(false, false));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ select_fb7e53();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sign/159665.wgsl.expected.glsl b/test/intrinsics/gen/sign/159665.wgsl.expected.glsl
new file mode 100644
index 0000000..a226002
--- /dev/null
+++ b/test/intrinsics/gen/sign/159665.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sign_159665() {
+ vec3 res = sign(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sign_159665();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_159665() {
+ vec3 res = sign(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sign_159665();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_159665() {
+ vec3 res = sign(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sign_159665();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sign/b8f634.wgsl.expected.glsl b/test/intrinsics/gen/sign/b8f634.wgsl.expected.glsl
new file mode 100644
index 0000000..a2b8a3c
--- /dev/null
+++ b/test/intrinsics/gen/sign/b8f634.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sign_b8f634() {
+ vec4 res = sign(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sign_b8f634();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_b8f634() {
+ vec4 res = sign(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sign_b8f634();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_b8f634() {
+ vec4 res = sign(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sign_b8f634();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sign/d065d8.wgsl.expected.glsl b/test/intrinsics/gen/sign/d065d8.wgsl.expected.glsl
new file mode 100644
index 0000000..2085558
--- /dev/null
+++ b/test/intrinsics/gen/sign/d065d8.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sign_d065d8() {
+ vec2 res = sign(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sign_d065d8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_d065d8() {
+ vec2 res = sign(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sign_d065d8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_d065d8() {
+ vec2 res = sign(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sign_d065d8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sign/dd790e.wgsl.expected.glsl b/test/intrinsics/gen/sign/dd790e.wgsl.expected.glsl
new file mode 100644
index 0000000..9a999ef
--- /dev/null
+++ b/test/intrinsics/gen/sign/dd790e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sign_dd790e() {
+ float res = sign(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sign_dd790e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_dd790e() {
+ float res = sign(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sign_dd790e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sign_dd790e() {
+ float res = sign(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sign_dd790e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sin/01f241.wgsl.expected.glsl b/test/intrinsics/gen/sin/01f241.wgsl.expected.glsl
new file mode 100644
index 0000000..0ab76db
--- /dev/null
+++ b/test/intrinsics/gen/sin/01f241.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sin_01f241() {
+ vec3 res = sin(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sin_01f241();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_01f241() {
+ vec3 res = sin(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sin_01f241();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_01f241() {
+ vec3 res = sin(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sin_01f241();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sin/4e3979.wgsl.expected.glsl b/test/intrinsics/gen/sin/4e3979.wgsl.expected.glsl
new file mode 100644
index 0000000..0f3d911
--- /dev/null
+++ b/test/intrinsics/gen/sin/4e3979.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sin_4e3979() {
+ vec4 res = sin(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sin_4e3979();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_4e3979() {
+ vec4 res = sin(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sin_4e3979();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_4e3979() {
+ vec4 res = sin(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sin_4e3979();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sin/b78c91.wgsl.expected.glsl b/test/intrinsics/gen/sin/b78c91.wgsl.expected.glsl
new file mode 100644
index 0000000..2b77b75
--- /dev/null
+++ b/test/intrinsics/gen/sin/b78c91.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sin_b78c91() {
+ float res = sin(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sin_b78c91();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_b78c91() {
+ float res = sin(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sin_b78c91();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_b78c91() {
+ float res = sin(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sin_b78c91();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.glsl b/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.glsl
new file mode 100644
index 0000000..2a71109
--- /dev/null
+++ b/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sin_fc8bc4() {
+ vec2 res = sin(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sin_fc8bc4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_fc8bc4() {
+ vec2 res = sin(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sin_fc8bc4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sin_fc8bc4() {
+ vec2 res = sin(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sin_fc8bc4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sinh/445e33.wgsl.expected.glsl b/test/intrinsics/gen/sinh/445e33.wgsl.expected.glsl
new file mode 100644
index 0000000..daa07fb
--- /dev/null
+++ b/test/intrinsics/gen/sinh/445e33.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sinh_445e33() {
+ vec4 res = sinh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sinh_445e33();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_445e33() {
+ vec4 res = sinh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sinh_445e33();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_445e33() {
+ vec4 res = sinh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sinh_445e33();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sinh/7bb598.wgsl.expected.glsl b/test/intrinsics/gen/sinh/7bb598.wgsl.expected.glsl
new file mode 100644
index 0000000..5788072
--- /dev/null
+++ b/test/intrinsics/gen/sinh/7bb598.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sinh_7bb598() {
+ float res = sinh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sinh_7bb598();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_7bb598() {
+ float res = sinh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sinh_7bb598();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_7bb598() {
+ float res = sinh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sinh_7bb598();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sinh/b9860e.wgsl.expected.glsl b/test/intrinsics/gen/sinh/b9860e.wgsl.expected.glsl
new file mode 100644
index 0000000..4662041
--- /dev/null
+++ b/test/intrinsics/gen/sinh/b9860e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sinh_b9860e() {
+ vec2 res = sinh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sinh_b9860e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_b9860e() {
+ vec2 res = sinh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sinh_b9860e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_b9860e() {
+ vec2 res = sinh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sinh_b9860e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.glsl b/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.glsl
new file mode 100644
index 0000000..d586f6d
--- /dev/null
+++ b/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sinh_c9a5eb() {
+ vec3 res = sinh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sinh_c9a5eb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_c9a5eb() {
+ vec3 res = sinh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sinh_c9a5eb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sinh_c9a5eb() {
+ vec3 res = sinh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sinh_c9a5eb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.glsl b/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.glsl
new file mode 100644
index 0000000..718da19
--- /dev/null
+++ b/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void smoothStep_5f615b() {
+ vec4 res = smoothstep(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ smoothStep_5f615b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_5f615b() {
+ vec4 res = smoothstep(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ smoothStep_5f615b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_5f615b() {
+ vec4 res = smoothstep(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ smoothStep_5f615b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.glsl b/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.glsl
new file mode 100644
index 0000000..c207bfc
--- /dev/null
+++ b/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void smoothStep_658be3() {
+ vec3 res = smoothstep(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ smoothStep_658be3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_658be3() {
+ vec3 res = smoothstep(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ smoothStep_658be3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_658be3() {
+ vec3 res = smoothstep(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ smoothStep_658be3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.glsl b/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.glsl
new file mode 100644
index 0000000..84956b6
--- /dev/null
+++ b/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void smoothStep_c11eef() {
+ vec2 res = smoothstep(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ smoothStep_c11eef();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_c11eef() {
+ vec2 res = smoothstep(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ smoothStep_c11eef();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_c11eef() {
+ vec2 res = smoothstep(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ smoothStep_c11eef();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.glsl b/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.glsl
new file mode 100644
index 0000000..e5652e2
--- /dev/null
+++ b/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void smoothStep_cb0bfb() {
+ float res = smoothstep(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ smoothStep_cb0bfb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_cb0bfb() {
+ float res = smoothstep(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ smoothStep_cb0bfb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void smoothStep_cb0bfb() {
+ float res = smoothstep(1.0f, 1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ smoothStep_cb0bfb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.glsl b/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.glsl
new file mode 100644
index 0000000..fda2fe3
--- /dev/null
+++ b/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sqrt_20c74e() {
+ float res = sqrt(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sqrt_20c74e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_20c74e() {
+ float res = sqrt(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sqrt_20c74e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_20c74e() {
+ float res = sqrt(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sqrt_20c74e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.glsl b/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.glsl
new file mode 100644
index 0000000..6139c83
--- /dev/null
+++ b/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sqrt_8c7024() {
+ vec2 res = sqrt(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sqrt_8c7024();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_8c7024() {
+ vec2 res = sqrt(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sqrt_8c7024();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_8c7024() {
+ vec2 res = sqrt(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sqrt_8c7024();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.glsl b/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.glsl
new file mode 100644
index 0000000..4ff825a
--- /dev/null
+++ b/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sqrt_aa0d7a() {
+ vec4 res = sqrt(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sqrt_aa0d7a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_aa0d7a() {
+ vec4 res = sqrt(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sqrt_aa0d7a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_aa0d7a() {
+ vec4 res = sqrt(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sqrt_aa0d7a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.glsl b/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.glsl
new file mode 100644
index 0000000..3108670
--- /dev/null
+++ b/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void sqrt_f8c59a() {
+ vec3 res = sqrt(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ sqrt_f8c59a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_f8c59a() {
+ vec3 res = sqrt(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ sqrt_f8c59a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void sqrt_f8c59a() {
+ vec3 res = sqrt(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ sqrt_f8c59a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/step/0b073b.wgsl.expected.glsl b/test/intrinsics/gen/step/0b073b.wgsl.expected.glsl
new file mode 100644
index 0000000..4d68bbe
--- /dev/null
+++ b/test/intrinsics/gen/step/0b073b.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void step_0b073b() {
+ float res = step(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ step_0b073b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_0b073b() {
+ float res = step(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ step_0b073b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_0b073b() {
+ float res = step(1.0f, 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ step_0b073b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/step/19accd.wgsl.expected.glsl b/test/intrinsics/gen/step/19accd.wgsl.expected.glsl
new file mode 100644
index 0000000..8ffb095
--- /dev/null
+++ b/test/intrinsics/gen/step/19accd.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void step_19accd() {
+ vec2 res = step(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ step_19accd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_19accd() {
+ vec2 res = step(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ step_19accd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_19accd() {
+ vec2 res = step(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ step_19accd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/step/334303.wgsl.expected.glsl b/test/intrinsics/gen/step/334303.wgsl.expected.glsl
new file mode 100644
index 0000000..341d813
--- /dev/null
+++ b/test/intrinsics/gen/step/334303.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void step_334303() {
+ vec3 res = step(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ step_334303();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_334303() {
+ vec3 res = step(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ step_334303();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_334303() {
+ vec3 res = step(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ step_334303();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/step/e2b337.wgsl.expected.glsl b/test/intrinsics/gen/step/e2b337.wgsl.expected.glsl
new file mode 100644
index 0000000..a195908
--- /dev/null
+++ b/test/intrinsics/gen/step/e2b337.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void step_e2b337() {
+ vec4 res = step(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ step_e2b337();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_e2b337() {
+ vec4 res = step(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ step_e2b337();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void step_e2b337() {
+ vec4 res = step(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ step_e2b337();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.glsl b/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.glsl
new file mode 100644
index 0000000..2d34b7e
--- /dev/null
+++ b/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void storageBarrier_d87211() {
+ DeviceMemoryBarrierWithGroupSync();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ storageBarrier_d87211();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'DeviceMemoryBarrierWithGroupSync' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl b/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl
new file mode 100644
index 0000000..6b22fc9
--- /dev/null
+++ b/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tan_244e2a() {
+ vec4 res = tan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tan_244e2a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_244e2a() {
+ vec4 res = tan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tan_244e2a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_244e2a() {
+ vec4 res = tan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tan_244e2a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/tan/2f030e.wgsl.expected.glsl b/test/intrinsics/gen/tan/2f030e.wgsl.expected.glsl
new file mode 100644
index 0000000..434c308
--- /dev/null
+++ b/test/intrinsics/gen/tan/2f030e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tan_2f030e() {
+ float res = tan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tan_2f030e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_2f030e() {
+ float res = tan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tan_2f030e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_2f030e() {
+ float res = tan(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tan_2f030e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/tan/7ea104.wgsl.expected.glsl b/test/intrinsics/gen/tan/7ea104.wgsl.expected.glsl
new file mode 100644
index 0000000..069bc3f
--- /dev/null
+++ b/test/intrinsics/gen/tan/7ea104.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tan_7ea104() {
+ vec3 res = tan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tan_7ea104();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_7ea104() {
+ vec3 res = tan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tan_7ea104();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_7ea104() {
+ vec3 res = tan(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tan_7ea104();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.glsl b/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.glsl
new file mode 100644
index 0000000..aa809f2
--- /dev/null
+++ b/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tan_8ce3e9() {
+ vec2 res = tan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tan_8ce3e9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_8ce3e9() {
+ vec2 res = tan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tan_8ce3e9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tan_8ce3e9() {
+ vec2 res = tan(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tan_8ce3e9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/tanh/5663c5.wgsl.expected.glsl b/test/intrinsics/gen/tanh/5663c5.wgsl.expected.glsl
new file mode 100644
index 0000000..3b932c9
--- /dev/null
+++ b/test/intrinsics/gen/tanh/5663c5.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tanh_5663c5() {
+ vec4 res = tanh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tanh_5663c5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_5663c5() {
+ vec4 res = tanh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tanh_5663c5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_5663c5() {
+ vec4 res = tanh(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tanh_5663c5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/tanh/5724b3.wgsl.expected.glsl b/test/intrinsics/gen/tanh/5724b3.wgsl.expected.glsl
new file mode 100644
index 0000000..bec23d5
--- /dev/null
+++ b/test/intrinsics/gen/tanh/5724b3.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tanh_5724b3() {
+ vec2 res = tanh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tanh_5724b3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_5724b3() {
+ vec2 res = tanh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tanh_5724b3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_5724b3() {
+ vec2 res = tanh(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tanh_5724b3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.glsl b/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.glsl
new file mode 100644
index 0000000..bd763b2
--- /dev/null
+++ b/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tanh_9f9fb9() {
+ vec3 res = tanh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tanh_9f9fb9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_9f9fb9() {
+ vec3 res = tanh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tanh_9f9fb9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_9f9fb9() {
+ vec3 res = tanh(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tanh_9f9fb9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.glsl b/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.glsl
new file mode 100644
index 0000000..59b0f13
--- /dev/null
+++ b/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void tanh_c15fdb() {
+ float res = tanh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ tanh_c15fdb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_c15fdb() {
+ float res = tanh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ tanh_c15fdb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void tanh_c15fdb() {
+ float res = tanh(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ tanh_c15fdb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.glsl
new file mode 100644
index 0000000..ee559be
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureDimensions_002b2a() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_002b2a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureDimensions_002b2a() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_002b2a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureDimensions_002b2a() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_002b2a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl
new file mode 100644
index 0000000..8068e3b
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_012b82() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_012b82();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_012b82() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_012b82();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_012b82() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_012b82();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl
new file mode 100644
index 0000000..2edf754
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_08753d() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_08753d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_08753d() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_08753d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_08753d() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_08753d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl
new file mode 100644
index 0000000..4e3e717
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_0c4772() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_0c4772();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_0c4772() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_0c4772();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_0c4772() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_0c4772();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl
new file mode 100644
index 0000000..869d6e8
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_0cce40() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_0cce40();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_0cce40() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_0cce40();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_0cce40() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_0cce40();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl
new file mode 100644
index 0000000..24f9d89
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_0cf2ff() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_0cf2ff();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_0cf2ff() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_0cf2ff();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_0cf2ff() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_0cf2ff();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl
new file mode 100644
index 0000000..6623d1f
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_0d8b7e() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_0d8b7e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_0d8b7e() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_0d8b7e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_0d8b7e() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_0d8b7e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl
new file mode 100644
index 0000000..4e14a83
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_0e32ee() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_0e32ee();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_0e32ee() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_0e32ee();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_0e32ee() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_0e32ee();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl
new file mode 100644
index 0000000..5f5c12a
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureDimensions_0f3c50() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_0f3c50();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureDimensions_0f3c50() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_0f3c50();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureDimensions_0f3c50() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_0f3c50();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl
new file mode 100644
index 0000000..8f13b80
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureDimensions_1191a5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_1191a5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureDimensions_1191a5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_1191a5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureDimensions_1191a5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_1191a5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl
new file mode 100644
index 0000000..ad5149f
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_12c9bb() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_12c9bb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_12c9bb() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_12c9bb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_12c9bb() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_12c9bb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl
new file mode 100644
index 0000000..2d56955
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_147998() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_147998();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_147998() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_147998();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_147998() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_147998();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl
new file mode 100644
index 0000000..3533374
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_16036c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_16036c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_16036c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_16036c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_16036c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_16036c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl
new file mode 100644
index 0000000..0d31f7f
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_1b71f0() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_1b71f0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_1b71f0() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_1b71f0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_1b71f0() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_1b71f0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl
new file mode 100644
index 0000000..907b5f6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_1d6c26() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_1d6c26();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_1d6c26() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_1d6c26();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_1d6c26() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_1d6c26();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl
new file mode 100644
index 0000000..e216b95
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_1e9e39() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_1e9e39();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_1e9e39() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_1e9e39();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_1e9e39() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_1e9e39();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl
new file mode 100644
index 0000000..de62918
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureDimensions_1f20c5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_1f20c5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureDimensions_1f20c5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_1f20c5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureDimensions_1f20c5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_1f20c5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl
new file mode 100644
index 0000000..65f32a7
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_214dd4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_214dd4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_214dd4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_214dd4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_214dd4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_214dd4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl
new file mode 100644
index 0000000..46c553b
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureDimensions_221f22() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_221f22();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureDimensions_221f22() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_221f22();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureDimensions_221f22() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_221f22();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl
new file mode 100644
index 0000000..e3167c3
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureDimensions_267788() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_267788();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureDimensions_267788() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_267788();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureDimensions_267788() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_267788();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl
new file mode 100644
index 0000000..36fc485
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureDimensions_26bdfa() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_26bdfa();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureDimensions_26bdfa() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_26bdfa();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureDimensions_26bdfa() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_26bdfa();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl
new file mode 100644
index 0000000..791209e
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_26ef6c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_26ef6c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_26ef6c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_26ef6c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_26ef6c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_26ef6c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl
new file mode 100644
index 0000000..ec36824
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_2ad087() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_2ad087();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_2ad087() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_2ad087();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_2ad087() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_2ad087();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl
new file mode 100644
index 0000000..9e0d6f6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureDimensions_2efa05() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_2efa05();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureDimensions_2efa05() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_2efa05();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureDimensions_2efa05() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_2efa05();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl
new file mode 100644
index 0000000..05e1aa2
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_2f289f() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_2f289f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_2f289f() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_2f289f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_2f289f() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_2f289f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl
new file mode 100644
index 0000000..a301213
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_2fe1cc() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_2fe1cc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_2fe1cc() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_2fe1cc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_2fe1cc() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_2fe1cc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl
new file mode 100644
index 0000000..1f687b5
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_318ecc() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_318ecc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_318ecc() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_318ecc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_318ecc() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_318ecc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl
new file mode 100644
index 0000000..b36a064
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_340d06() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_340d06();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_340d06() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_340d06();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_340d06() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_340d06();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl
new file mode 100644
index 0000000..68168cc
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_398e30() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_398e30();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_398e30() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_398e30();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_398e30() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_398e30();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl
new file mode 100644
index 0000000..c2e5d0a
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_3a94ea() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_3a94ea();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_3a94ea() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_3a94ea();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_3a94ea() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_3a94ea();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl
new file mode 100644
index 0000000..d3b50a3
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_3aca08() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_3aca08();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_3aca08() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_3aca08();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_3aca08() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_3aca08();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl
new file mode 100644
index 0000000..d0e6937
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_3c5ad8() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_3c5ad8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_3c5ad8() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_3c5ad8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_3c5ad8() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_3c5ad8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl
new file mode 100644
index 0000000..f327cfc
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureDimensions_4152a6() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_4152a6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureDimensions_4152a6() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_4152a6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureDimensions_4152a6() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_4152a6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl
new file mode 100644
index 0000000..b3ffbf6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureDimensions_423f99() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_423f99();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureDimensions_423f99() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_423f99();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureDimensions_423f99() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_423f99();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl
new file mode 100644
index 0000000..54574e4
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_4267ee() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_4267ee();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_4267ee() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_4267ee();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_4267ee() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_4267ee();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl
new file mode 100644
index 0000000..a55a931
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_42d4e6() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_42d4e6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_42d4e6() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_42d4e6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_42d4e6() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_42d4e6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl
new file mode 100644
index 0000000..51d3620
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_48cb89() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_48cb89();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_48cb89() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_48cb89();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_48cb89() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_48cb89();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl
new file mode 100644
index 0000000..fa2ffd6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_49d274() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_49d274();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_49d274() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_49d274();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_49d274() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_49d274();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl
new file mode 100644
index 0000000..1f940ca
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_4df9a8() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_4df9a8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_4df9a8() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_4df9a8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_4df9a8() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_4df9a8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl
new file mode 100644
index 0000000..3abdb03
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_50a9ee() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_50a9ee();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_50a9ee() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_50a9ee();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_50a9ee() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_50a9ee();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl
new file mode 100644
index 0000000..b104509
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureDimensions_52045c() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_52045c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureDimensions_52045c() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_52045c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureDimensions_52045c() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_52045c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl
new file mode 100644
index 0000000..2709ff7
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_55b23e() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_55b23e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_55b23e() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_55b23e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_55b23e() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_55b23e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl
new file mode 100644
index 0000000..e708085
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl
@@ -0,0 +1,77 @@
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureDimensions_579629() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_579629();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureDimensions_579629() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_579629();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureDimensions_579629() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_579629();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.glsl
new file mode 100644
index 0000000..99c6588
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_57da0b() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_57da0b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_57da0b() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_57da0b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_57da0b() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_57da0b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl
new file mode 100644
index 0000000..03bc16c
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_57e28f() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_57e28f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_57e28f() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_57e28f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_57e28f() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_57e28f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl
new file mode 100644
index 0000000..99db49e
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_58a515() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_58a515();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_58a515() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_58a515();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_58a515() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_58a515();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl
new file mode 100644
index 0000000..5bfcbd3
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_5985f3() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_5985f3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_5985f3() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_5985f3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_5985f3() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_5985f3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl
new file mode 100644
index 0000000..408ee5e
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_5caa5e() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_5caa5e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_5caa5e() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_5caa5e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_5caa5e() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_5caa5e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl
new file mode 100644
index 0000000..427787e
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_5e295d() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_5e295d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_5e295d() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_5e295d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_5e295d() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_5e295d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl
new file mode 100644
index 0000000..dc58a7f
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_60bf54() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_60bf54();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_60bf54() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_60bf54();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_60bf54() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_60bf54();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl
new file mode 100644
index 0000000..c595ee6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_63f3cf() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_63f3cf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_63f3cf() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_63f3cf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_63f3cf() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_63f3cf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl
new file mode 100644
index 0000000..154f8a4
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_68105c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_68105c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_68105c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_68105c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_68105c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_68105c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl
new file mode 100644
index 0000000..c4caae2
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureDimensions_686ef2() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_686ef2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureDimensions_686ef2() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_686ef2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureDimensions_686ef2() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_686ef2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl
new file mode 100644
index 0000000..9bc3aa7
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_6adac6() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_6adac6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_6adac6() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_6adac6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_6adac6() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_6adac6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl
new file mode 100644
index 0000000..5361211
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureDimensions_6ec1b4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_6ec1b4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureDimensions_6ec1b4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_6ec1b4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureDimensions_6ec1b4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_6ec1b4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl
new file mode 100644
index 0000000..131696b
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_6f0d79() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_6f0d79();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_6f0d79() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_6f0d79();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_6f0d79() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_6f0d79();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl
new file mode 100644
index 0000000..d7f503c
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_702c53() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_702c53();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_702c53() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_702c53();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_702c53() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_702c53();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl
new file mode 100644
index 0000000..afdd8ae
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_72e5d6() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_72e5d6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_72e5d6() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_72e5d6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_72e5d6() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_72e5d6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl
new file mode 100644
index 0000000..df167b6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureDimensions_79df87() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_79df87();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureDimensions_79df87() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_79df87();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureDimensions_79df87() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_79df87();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl
new file mode 100644
index 0000000..690ed87
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_7bf826() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_7bf826();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_7bf826() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_7bf826();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_7bf826() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_7bf826();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl
new file mode 100644
index 0000000..9671c94
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_7f5c2e() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_7f5c2e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_7f5c2e() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_7f5c2e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_7f5c2e() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_7f5c2e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl
new file mode 100644
index 0000000..5ff0573
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_8028f3() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_8028f3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_8028f3() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_8028f3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_8028f3() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_8028f3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl
new file mode 100644
index 0000000..dc17343
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_811679() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_811679();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_811679() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_811679();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_811679() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_811679();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl
new file mode 100644
index 0000000..6086ba8
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_820596() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_820596();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_820596() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_820596();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_820596() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_820596();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl
new file mode 100644
index 0000000..c4c26c6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_83ee5a() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_83ee5a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_83ee5a() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_83ee5a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_83ee5a() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_83ee5a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl
new file mode 100644
index 0000000..2a19a18
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_85d556() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_85d556();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_85d556() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_85d556();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_85d556() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_85d556();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl
new file mode 100644
index 0000000..85a5517
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureDimensions_88ad17() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_88ad17();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureDimensions_88ad17() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_88ad17();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureDimensions_88ad17() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_88ad17();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl
new file mode 100644
index 0000000..347f303
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureDimensions_8aa4c4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_8aa4c4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureDimensions_8aa4c4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_8aa4c4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureDimensions_8aa4c4() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_8aa4c4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl
new file mode 100644
index 0000000..4ca8327
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureDimensions_8deb5e() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_8deb5e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureDimensions_8deb5e() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_8deb5e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureDimensions_8deb5e() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_8deb5e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl
new file mode 100644
index 0000000..016ccda
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_8f20bf() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_8f20bf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_8f20bf() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_8f20bf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_8f20bf() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_8f20bf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl
new file mode 100644
index 0000000..3758493
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_8fca0f() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_8fca0f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_8fca0f() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_8fca0f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_8fca0f() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_8fca0f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl
new file mode 100644
index 0000000..ccaa63d
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_90340b() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_90340b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_90340b() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_90340b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_90340b() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_90340b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl
new file mode 100644
index 0000000..714716a
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_9042ab() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_9042ab();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_9042ab() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_9042ab();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_9042ab() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_9042ab();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl
new file mode 100644
index 0000000..7b3bca8
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_9393b0() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_9393b0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_9393b0() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_9393b0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_9393b0() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_9393b0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl
new file mode 100644
index 0000000..89bbc24
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_939fdb() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_939fdb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_939fdb() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_939fdb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_939fdb() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_939fdb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl
new file mode 100644
index 0000000..bccfcb4
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureDimensions_962dcd() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_962dcd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureDimensions_962dcd() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_962dcd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureDimensions_962dcd() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_962dcd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl
new file mode 100644
index 0000000..02efa44
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_9abfe5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_9abfe5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_9abfe5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_9abfe5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_9abfe5() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_9abfe5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl
new file mode 100644
index 0000000..ef9b87b
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureDimensions_9c9c57() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_9c9c57();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureDimensions_9c9c57() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_9c9c57();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureDimensions_9c9c57() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_9c9c57();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl
new file mode 100644
index 0000000..c174102
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_9da9e2() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_9da9e2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_9da9e2() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_9da9e2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_9da9e2() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_9da9e2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl
new file mode 100644
index 0000000..eb33753
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_9eb8d8() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_9eb8d8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_9eb8d8() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_9eb8d8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_9eb8d8() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_9eb8d8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl
new file mode 100644
index 0000000..758f819
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_9f8e46() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_9f8e46();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_9f8e46() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_9f8e46();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_9f8e46() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_9f8e46();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl
new file mode 100644
index 0000000..e18ab70
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_a01845() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_a01845();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_a01845() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_a01845();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureDimensions_a01845() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_a01845();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl
new file mode 100644
index 0000000..b5050a6
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureDimensions_a7d565() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_a7d565();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureDimensions_a7d565() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_a7d565();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureDimensions_a7d565() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_a7d565();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl
new file mode 100644
index 0000000..bd6a78d
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_a863f2() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_a863f2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_a863f2() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_a863f2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_a863f2() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_a863f2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl
new file mode 100644
index 0000000..a5c5f7e
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_a9c9c1() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_a9c9c1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_a9c9c1() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_a9c9c1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_a9c9c1() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_a9c9c1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl
new file mode 100644
index 0000000..f8b587b
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureDimensions_b0e16d() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_b0e16d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureDimensions_b0e16d() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_b0e16d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureDimensions_b0e16d() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_b0e16d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl
new file mode 100644
index 0000000..a73bfc2
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureDimensions_b3c954() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_b3c954();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureDimensions_b3c954() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_b3c954();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureDimensions_b3c954() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_b3c954();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl
new file mode 100644
index 0000000..ab2710f
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureDimensions_b3e407() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_b3e407();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureDimensions_b3e407() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_b3e407();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureDimensions_b3e407() {
+ int res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_b3e407();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl
new file mode 100644
index 0000000..d955600
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_b91240() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_b91240();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_b91240() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_b91240();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_b91240() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_b91240();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl
new file mode 100644
index 0000000..e4c4b67
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_ba1481() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_ba1481();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_ba1481() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_ba1481();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureDimensions_ba1481() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_ba1481();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl
new file mode 100644
index 0000000..f536b88
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_bb3dde() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_bb3dde();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_bb3dde() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_bb3dde();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_bb3dde() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_bb3dde();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl
new file mode 100644
index 0000000..b6962ff
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_c30e75() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_c30e75();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_c30e75() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_c30e75();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_c30e75() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_c30e75();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl
new file mode 100644
index 0000000..a0c743e
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_c7943d() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_c7943d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_c7943d() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_c7943d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_c7943d() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_c7943d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl
new file mode 100644
index 0000000..611fe64
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_cc968c() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_cc968c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_cc968c() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_cc968c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_cc968c() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_cc968c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl
new file mode 100644
index 0000000..9eeb727
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_cccc8f() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_cccc8f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_cccc8f() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_cccc8f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_cccc8f() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_cccc8f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl
new file mode 100644
index 0000000..6b1c12f
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_cd76a7() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_cd76a7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_cd76a7() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_cd76a7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_cd76a7() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_cd76a7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl
new file mode 100644
index 0000000..900eefd
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_cdf473() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_cdf473();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_cdf473() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_cdf473();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_cdf473() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_cdf473();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl
new file mode 100644
index 0000000..74ad431
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_cec841() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_cec841();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_cec841() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_cec841();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureDimensions_cec841() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_cec841();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl
new file mode 100644
index 0000000..9b046a7
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_cf7e43() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_cf7e43();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_cf7e43() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_cf7e43();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_cf7e43() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_cf7e43();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl
new file mode 100644
index 0000000..dd0e425
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_d125bc() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_d125bc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_d125bc() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_d125bc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureDimensions_d125bc() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_d125bc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl
new file mode 100644
index 0000000..281157b
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureDimensions_d83c45() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_d83c45();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureDimensions_d83c45() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_d83c45();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureDimensions_d83c45() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_d83c45();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl
new file mode 100644
index 0000000..9a6fa2a
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl
@@ -0,0 +1,77 @@
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureDimensions_daf7c0() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_daf7c0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureDimensions_daf7c0() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_daf7c0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureDimensions_daf7c0() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_daf7c0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.glsl
new file mode 100644
index 0000000..f2186e9
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_dc2dd0() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_dc2dd0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_dc2dd0() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_dc2dd0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureDimensions_dc2dd0() {
+ int res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_dc2dd0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl
new file mode 100644
index 0000000..3def416
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureDimensions_e927be() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_e927be();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureDimensions_e927be() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_e927be();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureDimensions_e927be() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_e927be();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl
new file mode 100644
index 0000000..01990ce
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_e9e96c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_e9e96c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_e9e96c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_e9e96c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_e9e96c() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_e9e96c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl
new file mode 100644
index 0000000..1e0aa55
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl
@@ -0,0 +1,77 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_ef5b89() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_ef5b89();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_ef5b89() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_ef5b89();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_ef5b89() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_ef5b89();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.glsl
new file mode 100644
index 0000000..c302cd1
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureDimensions_efc8a4() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_efc8a4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureDimensions_efc8a4() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_efc8a4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureDimensions_efc8a4() {
+ ivec3 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_efc8a4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl
new file mode 100644
index 0000000..c354540
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl
@@ -0,0 +1,77 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_f60bdb() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_f60bdb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_f60bdb() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_f60bdb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_f60bdb() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_f60bdb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.glsl
new file mode 100644
index 0000000..107c023
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureDimensions_f7145b() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_f7145b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureDimensions_f7145b() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_f7145b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureDimensions_f7145b() {
+ ivec2 res = textureSize(arg_00);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_f7145b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'arg_00' : undeclared identifier
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 4 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl
new file mode 100644
index 0000000..f822402
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_f931c7() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_f931c7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_f931c7() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_f931c7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureDimensions_f931c7() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_f931c7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl
new file mode 100644
index 0000000..ff07154
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureDimensions_fa9859() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_fa9859();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureDimensions_fa9859() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_fa9859();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureDimensions_fa9859() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_fa9859();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl
new file mode 100644
index 0000000..7cf68ce
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_fb5670() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_fb5670();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_fb5670() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_fb5670();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureDimensions_fb5670() {
+ ivec2 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_fb5670();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl
new file mode 100644
index 0000000..aff41d7
--- /dev/null
+++ b/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_fcac78() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureDimensions_fcac78();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_fcac78() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureDimensions_fcac78();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureDimensions_fcac78() {
+ ivec3 res = textureSize(arg_0);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureDimensions_fcac78();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSize' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 3-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl
new file mode 100644
index 0000000..c0c1d75
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_19cf87() {
+ float res = texelFetch(arg_0, ivec3(0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_19cf87();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_19cf87() {
+ float res = texelFetch(arg_0, ivec3(0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_19cf87();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_19cf87() {
+ float res = texelFetch(arg_0, ivec3(0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_19cf87();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl
new file mode 100644
index 0000000..c4b25b1
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureLoad_1b8588() {
+ uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_1b8588();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureLoad_1b8588() {
+ uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_1b8588();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureLoad_1b8588() {
+ uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_1b8588();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl
new file mode 100644
index 0000000..a3e04c8
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureLoad_1f2016() {
+ vec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_1f2016();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureLoad_1f2016() {
+ vec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_1f2016();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureLoad_1f2016() {
+ vec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_1f2016();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl
new file mode 100644
index 0000000..7a08dfc
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_484344() {
+ vec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_484344();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_484344() {
+ vec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_484344();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_484344() {
+ vec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_484344();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl
new file mode 100644
index 0000000..e3ac256
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureLoad_4fd803() {
+ ivec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_4fd803();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureLoad_4fd803() {
+ ivec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_4fd803();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureLoad_4fd803() {
+ ivec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_4fd803();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl
new file mode 100644
index 0000000..54c2afa
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureLoad_5a2f9d() {
+ ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_5a2f9d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureLoad_5a2f9d() {
+ ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_5a2f9d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureLoad_5a2f9d() {
+ ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_5a2f9d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl
new file mode 100644
index 0000000..7bc6f13
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureLoad_6154d4() {
+ uvec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_6154d4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureLoad_6154d4() {
+ uvec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_6154d4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureLoad_6154d4() {
+ uvec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_6154d4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl
new file mode 100644
index 0000000..d4c7d9f
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_6273b1() {
+ float res = texelFetch(arg_0, ivec3(0, 0, 0), 1).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_6273b1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_6273b1() {
+ float res = texelFetch(arg_0, ivec3(0, 0, 0), 1).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_6273b1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_6273b1() {
+ float res = texelFetch(arg_0, ivec3(0, 0, 0), 1).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_6273b1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl
new file mode 100644
index 0000000..c54cfab
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureLoad_79e697() {
+ ivec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_79e697();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureLoad_79e697() {
+ ivec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_79e697();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureLoad_79e697() {
+ ivec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_79e697();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl
new file mode 100644
index 0000000..185420d
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureLoad_7c90e5() {
+ uvec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_7c90e5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureLoad_7c90e5() {
+ uvec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_7c90e5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureLoad_7c90e5() {
+ uvec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_7c90e5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl
new file mode 100644
index 0000000..a4dd2b3
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureLoad_81c381() {
+ vec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_81c381();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureLoad_81c381() {
+ vec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_81c381();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureLoad_81c381() {
+ vec4 res = texelFetch(arg_0, ivec2(1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_81c381();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl
new file mode 100644
index 0000000..a9273cc
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureLoad_87be85() {
+ vec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_87be85();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureLoad_87be85() {
+ vec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_87be85();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureLoad_87be85() {
+ vec4 res = texelFetch(arg_0, ivec4(0, 0, 1, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_87be85();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl
new file mode 100644
index 0000000..67f63fc
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_8acf41() {
+ vec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_8acf41();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_8acf41() {
+ vec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_8acf41();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureLoad_8acf41() {
+ vec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_8acf41();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl
new file mode 100644
index 0000000..ac1488f
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureLoad_9b2667() {
+ float res = texelFetch(arg_0, ivec4(0, 0, 1, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_9b2667();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureLoad_9b2667() {
+ float res = texelFetch(arg_0, ivec4(0, 0, 1, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_9b2667();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureLoad_9b2667() {
+ float res = texelFetch(arg_0, ivec4(0, 0, 1, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_9b2667();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl
new file mode 100644
index 0000000..cb434f5
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl
@@ -0,0 +1,77 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_a583c9() {
+ vec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_a583c9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_a583c9() {
+ vec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_a583c9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_a583c9() {
+ vec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_a583c9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.glsl
new file mode 100644
index 0000000..44c93d1
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureLoad_a9a9f5() {
+ uvec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_a9a9f5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureLoad_a9a9f5() {
+ uvec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_a9a9f5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureLoad_a9a9f5() {
+ uvec4 res = texelFetch(arg_0, ivec4(0, 0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_a9a9f5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl
new file mode 100644
index 0000000..a15bef5
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureLoad_c2a480() {
+ ivec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_c2a480();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureLoad_c2a480() {
+ ivec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_c2a480();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureLoad_c2a480() {
+ ivec4 res = texelFetch(arg_0, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_c2a480();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'texelFetch' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl
new file mode 100644
index 0000000..57511b1
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl
@@ -0,0 +1,77 @@
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureLoad_c378ee() {
+ uvec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_c378ee();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureLoad_c378ee() {
+ uvec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_c378ee();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureLoad_c378ee() {
+ uvec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_c378ee();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.glsl
new file mode 100644
index 0000000..e5c4ee8
--- /dev/null
+++ b/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.glsl
@@ -0,0 +1,77 @@
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureLoad_e3d2cc() {
+ ivec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureLoad_e3d2cc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureLoad_e3d2cc() {
+ ivec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureLoad_e3d2cc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureLoad_e3d2cc() {
+ ivec4 res = texelFetch(arg_0, ivec2(0, 0), 1);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureLoad_e3d2cc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.glsl
new file mode 100644
index 0000000..b513151
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLayers_024820() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_024820();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLayers_024820() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_024820();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLayers_024820() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_024820();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.glsl
new file mode 100644
index 0000000..2319625
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureNumLayers_053df7() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_053df7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureNumLayers_053df7() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_053df7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureNumLayers_053df7() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_053df7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl
new file mode 100644
index 0000000..cdbae00
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_058cc3() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_058cc3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_058cc3() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_058cc3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_058cc3() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_058cc3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl
new file mode 100644
index 0000000..2cff982
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_09d05d() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_09d05d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_09d05d() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_09d05d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_09d05d() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_09d05d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.glsl
new file mode 100644
index 0000000..6f2e095
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_13b4ce() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_13b4ce();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_13b4ce() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_13b4ce();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_13b4ce() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_13b4ce();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.glsl
new file mode 100644
index 0000000..5ef0fee
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_22e53b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_22e53b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_22e53b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_22e53b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_22e53b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_22e53b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.glsl
new file mode 100644
index 0000000..9fcdb8c
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_562013() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_562013();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_562013() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_562013();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_562013() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_562013();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.glsl
new file mode 100644
index 0000000..b7fff6a
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLayers_5d59cd() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_5d59cd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLayers_5d59cd() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_5d59cd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLayers_5d59cd() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_5d59cd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl
new file mode 100644
index 0000000..e62b6d7
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_68a65b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_68a65b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_68a65b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_68a65b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_68a65b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_68a65b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.glsl
new file mode 100644
index 0000000..0fdca03
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLayers_778bd1() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_778bd1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLayers_778bd1() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_778bd1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLayers_778bd1() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_778bd1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl
new file mode 100644
index 0000000..fe25334
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_7f1937() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_7f1937();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_7f1937() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_7f1937();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_7f1937() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_7f1937();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl
new file mode 100644
index 0000000..c7f5e15
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureNumLayers_85f980() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_85f980();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureNumLayers_85f980() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_85f980();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureNumLayers_85f980() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_85f980();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl
new file mode 100644
index 0000000..a8374fd
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureNumLayers_87953e() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_87953e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureNumLayers_87953e() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_87953e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureNumLayers_87953e() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_87953e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.glsl
new file mode 100644
index 0000000..56a5821
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureNumLayers_893e7c() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_893e7c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureNumLayers_893e7c() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_893e7c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureNumLayers_893e7c() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_893e7c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.glsl
new file mode 100644
index 0000000..d873766
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_9700fb() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_9700fb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_9700fb() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_9700fb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_9700fb() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_9700fb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.glsl
new file mode 100644
index 0000000..b71292e
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_a216d2() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_a216d2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_a216d2() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_a216d2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_a216d2() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_a216d2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl
new file mode 100644
index 0000000..3279102
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_cd5dc8() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_cd5dc8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_cd5dc8() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_cd5dc8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_cd5dc8() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_cd5dc8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.glsl
new file mode 100644
index 0000000..a0123fd
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_d5b228() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_d5b228();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_d5b228() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_d5b228();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_d5b228() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_d5b228();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.glsl
new file mode 100644
index 0000000..3cc2e8a
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_e31be1() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_e31be1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_e31be1() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_e31be1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_e31be1() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_e31be1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.glsl
new file mode 100644
index 0000000..9f60963
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLayers_e653c0() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_e653c0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLayers_e653c0() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_e653c0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLayers_e653c0() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_e653c0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.glsl
new file mode 100644
index 0000000..7b38eb6
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_ee942f() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_ee942f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_ee942f() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_ee942f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_ee942f() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_ee942f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.glsl
new file mode 100644
index 0000000..6a077c9
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_f33005() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_f33005();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_f33005() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_f33005();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_f33005() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_f33005();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.glsl
new file mode 100644
index 0000000..320f8e931
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_fcec98() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_fcec98();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_fcec98() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_fcec98();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_fcec98() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_fcec98();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl
new file mode 100644
index 0000000..4d595be
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_ff5e89() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLayers_ff5e89();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_ff5e89() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLayers_ff5e89();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureNumLayers_ff5e89() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLayers_ff5e89();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.glsl
new file mode 100644
index 0000000..60570af
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureNumLevels_076cb5() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_076cb5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureNumLevels_076cb5() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_076cb5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureNumLevels_076cb5() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_076cb5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.glsl
new file mode 100644
index 0000000..d5825e7
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureNumLevels_080d95() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_080d95();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureNumLevels_080d95() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_080d95();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCube arg_0;
+
+void textureNumLevels_080d95() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_080d95();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.glsl
new file mode 100644
index 0000000..176fbde
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureNumLevels_09ddd0() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_09ddd0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureNumLevels_09ddd0() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_09ddd0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2D arg_0;
+
+void textureNumLevels_09ddd0() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_09ddd0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.glsl
new file mode 100644
index 0000000..53a5318
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLevels_105988() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_105988();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLevels_105988() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_105988();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLevels_105988() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_105988();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl
new file mode 100644
index 0000000..2ffe003
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureNumLevels_1e6f3b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_1e6f3b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureNumLevels_1e6f3b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_1e6f3b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler1D arg_0;
+
+void textureNumLevels_1e6f3b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_1e6f3b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl
new file mode 100644
index 0000000..1430293
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureNumLevels_23f750() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_23f750();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureNumLevels_23f750() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_23f750();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2D arg_0;
+
+void textureNumLevels_23f750() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_23f750();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.glsl
new file mode 100644
index 0000000..2076d2e
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLevels_2c3575() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_2c3575();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLevels_2c3575() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_2c3575();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLevels_2c3575() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_2c3575();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl
new file mode 100644
index 0000000..d990da4
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureNumLevels_32a0ae() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_32a0ae();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureNumLevels_32a0ae() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_32a0ae();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler1D arg_0;
+
+void textureNumLevels_32a0ae() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_32a0ae();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl
new file mode 100644
index 0000000..2b4d3e7
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureNumLevels_5101cf() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_5101cf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureNumLevels_5101cf() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_5101cf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DArray arg_0;
+
+void textureNumLevels_5101cf() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_5101cf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.glsl
new file mode 100644
index 0000000..d5ad1f5
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureNumLevels_51b5bb() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_51b5bb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureNumLevels_51b5bb() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_51b5bb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+void textureNumLevels_51b5bb() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_51b5bb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl
new file mode 100644
index 0000000..30e557a
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureNumLevels_897aaf() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_897aaf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureNumLevels_897aaf() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_897aaf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+void textureNumLevels_897aaf() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_897aaf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.glsl
new file mode 100644
index 0000000..7acaec0
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureNumLevels_9da7a5() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_9da7a5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureNumLevels_9da7a5() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_9da7a5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler3D arg_0;
+
+void textureNumLevels_9da7a5() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_9da7a5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.glsl
new file mode 100644
index 0000000..c1d0c7c
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureNumLevels_a91c03() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_a91c03();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureNumLevels_a91c03() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_a91c03();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isamplerCubeArray arg_0;
+
+void textureNumLevels_a91c03() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_a91c03();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl
new file mode 100644
index 0000000..415c35d
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLevels_aee7c8() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_aee7c8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLevels_aee7c8() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_aee7c8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+void textureNumLevels_aee7c8() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_aee7c8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl
new file mode 100644
index 0000000..6579ed0
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureNumLevels_b1b12b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_b1b12b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureNumLevels_b1b12b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_b1b12b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureNumLevels_b1b12b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_b1b12b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl
new file mode 100644
index 0000000..f3319ec
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureNumLevels_b4f5ea() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_b4f5ea();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureNumLevels_b4f5ea() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_b4f5ea();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler3D arg_0;
+
+void textureNumLevels_b4f5ea() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_b4f5ea();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.glsl
new file mode 100644
index 0000000..b5b0626
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureNumLevels_d004a9() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_d004a9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureNumLevels_d004a9() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_d004a9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DArray arg_0;
+
+void textureNumLevels_d004a9() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_d004a9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.glsl
new file mode 100644
index 0000000..3ec191d
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureNumLevels_dca09e() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_dca09e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureNumLevels_dca09e() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_dca09e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+void textureNumLevels_dca09e() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_dca09e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.glsl
new file mode 100644
index 0000000..e11a569
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureNumLevels_e67231() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_e67231();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureNumLevels_e67231() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_e67231();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+void textureNumLevels_e67231() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_e67231();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.glsl
new file mode 100644
index 0000000..6dd5ced
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureNumLevels_ed078b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_ed078b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureNumLevels_ed078b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_ed078b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCube arg_0;
+
+void textureNumLevels_ed078b() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_ed078b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.glsl
new file mode 100644
index 0000000..fb2037c
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureNumLevels_f46ec6() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_f46ec6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureNumLevels_f46ec6() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_f46ec6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usamplerCubeArray arg_0;
+
+void textureNumLevels_f46ec6() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_f46ec6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl
new file mode 100644
index 0000000..73f917c
--- /dev/null
+++ b/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLevels_f5828d() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumLevels_f5828d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLevels_f5828d() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumLevels_f5828d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+void textureNumLevels_f5828d() {
+ int res = textureQueryLevels(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumLevels_f5828d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.glsl b/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.glsl
new file mode 100644
index 0000000..d21f842
--- /dev/null
+++ b/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_2c6f14() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumSamples_2c6f14();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_2c6f14() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumSamples_2c6f14();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_2c6f14() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumSamples_2c6f14();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.glsl b/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.glsl
new file mode 100644
index 0000000..fa23cef
--- /dev/null
+++ b/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureNumSamples_42f8bb() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumSamples_42f8bb();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureNumSamples_42f8bb() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumSamples_42f8bb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp usampler2DMS arg_0;
+
+void textureNumSamples_42f8bb() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumSamples_42f8bb();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.glsl b/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.glsl
new file mode 100644
index 0000000..8b37690
--- /dev/null
+++ b/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureNumSamples_449d23() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumSamples_449d23();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureNumSamples_449d23() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumSamples_449d23();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp isampler2DMS arg_0;
+
+void textureNumSamples_449d23() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumSamples_449d23();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl b/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl
new file mode 100644
index 0000000..2bc017d
--- /dev/null
+++ b/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_a3c8a0() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureNumSamples_a3c8a0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_a3c8a0() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureNumSamples_a3c8a0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_a3c8a0() {
+ int res = textureSamples(arg_0);;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureNumSamples_a3c8a0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'textureSamples' : no matching overloaded function found
+ERROR: 0:7: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:7: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.glsl
new file mode 100644
index 0000000..9c76023
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.glsl
@@ -0,0 +1,29 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSample_02aa9b() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0));
+}
+
+void fragment_main() {
+ textureSample_02aa9b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl
new file mode 100644
index 0000000..db28188
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl
@@ -0,0 +1,29 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSample_100dc0() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
+}
+
+void fragment_main() {
+ textureSample_100dc0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl
new file mode 100644
index 0000000..dda133e
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSample_38bbb9() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f)).x;
+}
+
+void fragment_main() {
+ textureSample_38bbb9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.glsl
new file mode 100644
index 0000000..838a5d9
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSample_3b50bd() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ textureSample_3b50bd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.glsl
new file mode 100644
index 0000000..38057f3
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSample_4dd1bf() {
+ vec4 res = texture(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)));
+}
+
+void fragment_main() {
+ textureSample_4dd1bf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl
new file mode 100644
index 0000000..1251a2c
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSample_51b514() {
+ vec4 res = texture(arg_0, vec2(0.0f, 0.0f));
+}
+
+void fragment_main() {
+ textureSample_51b514();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSample/667d76.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/667d76.wgsl.expected.glsl
new file mode 100644
index 0000000..50c9125
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/667d76.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSample_667d76() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), ivec2(0, 0)).x;
+}
+
+void fragment_main() {
+ textureSample_667d76();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl
new file mode 100644
index 0000000..e73c688
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSample_6717ca() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, float(1)));
+}
+
+void fragment_main() {
+ textureSample_6717ca();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.glsl
new file mode 100644
index 0000000..9205cfd
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler1D arg_0;
+
+
+void textureSample_6e64fb() {
+ vec4 res = texture(arg_0, 1.0f);
+}
+
+void fragment_main() {
+ textureSample_6e64fb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'sampler1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl
new file mode 100644
index 0000000..de9813f
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl
@@ -0,0 +1,29 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSample_7c3baa() {
+ vec4 res = texture(arg_0, vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+void fragment_main() {
+ textureSample_7c3baa();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl
new file mode 100644
index 0000000..95f9c54
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSample_7e9ffd() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1))).x;
+}
+
+void fragment_main() {
+ textureSample_7e9ffd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl
new file mode 100644
index 0000000..4770a5f
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSample_8522e7() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0)).x;
+}
+
+void fragment_main() {
+ textureSample_8522e7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl
new file mode 100644
index 0000000..44ec2af
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSample_c2f4e8() {
+ float res = texture(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1))).x;
+}
+
+void fragment_main() {
+ textureSample_c2f4e8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl
new file mode 100644
index 0000000..5eaee03
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSample_e53267() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f));
+}
+
+void fragment_main() {
+ textureSample_e53267();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.glsl
new file mode 100644
index 0000000..e8c1b8a
--- /dev/null
+++ b/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSample_ea7030() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f)).x;
+}
+
+void fragment_main() {
+ textureSample_ea7030();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.glsl
new file mode 100644
index 0000000..2a26fea
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleBias_53b9f7() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleBias_53b9f7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.glsl
new file mode 100644
index 0000000..0bec9b8
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.glsl
@@ -0,0 +1,29 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleBias_65ac50() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+void fragment_main() {
+ textureSampleBias_65ac50();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl
new file mode 100644
index 0000000..dfcb3df
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleBias_6a9113() {
+ vec4 res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleBias_6a9113();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.glsl
new file mode 100644
index 0000000..77d67e6
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleBias_80e579() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleBias_80e579();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.glsl
new file mode 100644
index 0000000..41a4646
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.glsl
@@ -0,0 +1,29 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleBias_81c19a() {
+ vec4 res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+void fragment_main() {
+ textureSampleBias_81c19a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl
new file mode 100644
index 0000000..df9819b
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl
@@ -0,0 +1,19 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleBias_d3fa1b() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleBias_d3fa1b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.glsl
new file mode 100644
index 0000000..d774879
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.glsl
@@ -0,0 +1,29 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleBias_df91bb() {
+ vec4 res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f, ivec3(0, 0, 0));
+}
+
+void fragment_main() {
+ textureSampleBias_df91bb();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl
new file mode 100644
index 0000000..0cc5ca2
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleBias_eed7c4() {
+ vec4 res = texture(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleBias_eed7c4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl
new file mode 100644
index 0000000..33a587d
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompare_25fcd1() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+void fragment_main() {
+ textureSampleCompare_25fcd1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.glsl
new file mode 100644
index 0000000..ac44077
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompare_3a5923() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleCompare_3a5923();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.glsl
new file mode 100644
index 0000000..65767b4
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleCompare_63fb83() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleCompare_63fb83();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.glsl
new file mode 100644
index 0000000..890afeb
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompare_98b85c() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+void fragment_main() {
+ textureSampleCompare_98b85c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl
new file mode 100644
index 0000000..19e6bfd
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleCompare_a3ca7e() {
+ float res = texture(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleCompare_a3ca7e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl
new file mode 100644
index 0000000..d613258
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl
@@ -0,0 +1,28 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompare_dd431d() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+void fragment_main() {
+ textureSampleCompare_dd431d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl
new file mode 100644
index 0000000..a95a718
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompareLevel_011a8f() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleCompareLevel_011a8f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompareLevel_011a8f() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleCompareLevel_011a8f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompareLevel_011a8f() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleCompareLevel_011a8f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl
new file mode 100644
index 0000000..8a64730
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompareLevel_1116ed() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleCompareLevel_1116ed();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompareLevel_1116ed() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleCompareLevel_1116ed();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleCompareLevel_1116ed() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleCompareLevel_1116ed();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl
new file mode 100644
index 0000000..d8e177c
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleCompareLevel_1568e3() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleCompareLevel_1568e3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleCompareLevel_1568e3() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleCompareLevel_1568e3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleCompareLevel_1568e3() {
+ float res = texture(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleCompareLevel_1568e3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl
new file mode 100644
index 0000000..faaa290
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompareLevel_2ad2b1() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleCompareLevel_2ad2b1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompareLevel_2ad2b1() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleCompareLevel_2ad2b1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompareLevel_2ad2b1() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleCompareLevel_2ad2b1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl
new file mode 100644
index 0000000..9ce58c5
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleCompareLevel_4cf3a2() {
+ float res = texture(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleCompareLevel_4cf3a2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleCompareLevel_4cf3a2() {
+ float res = texture(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleCompareLevel_4cf3a2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleCompareLevel_4cf3a2() {
+ float res = texture(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleCompareLevel_4cf3a2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl
new file mode 100644
index 0000000..b2d5096
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompareLevel_f8121c() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleCompareLevel_f8121c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompareLevel_f8121c() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleCompareLevel_f8121c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleCompareLevel_f8121c() {
+ float res = texture(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleCompareLevel_f8121c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texture' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.glsl
new file mode 100644
index 0000000..de4d084
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleGrad_21402b() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_21402b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleGrad_21402b() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_21402b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleGrad_21402b() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_21402b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl
new file mode 100644
index 0000000..5193326
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleGrad_2ecd8f() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_2ecd8f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleGrad_2ecd8f() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_2ecd8f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleGrad_2ecd8f() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_2ecd8f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.glsl
new file mode 100644
index 0000000..97fc7d7
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleGrad_468f88() {
+ vec4 res = textureGrad(arg_0, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_468f88();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleGrad_468f88() {
+ vec4 res = textureGrad(arg_0, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_468f88();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleGrad_468f88() {
+ vec4 res = textureGrad(arg_0, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_468f88();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl
new file mode 100644
index 0000000..9f76b21
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleGrad_521263() {
+ vec4 res = textureGrad(arg_0, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_521263();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleGrad_521263() {
+ vec4 res = textureGrad(arg_0, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_521263();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleGrad_521263() {
+ vec4 res = textureGrad(arg_0, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_521263();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.glsl
new file mode 100644
index 0000000..e25e7db
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleGrad_5312f4() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_5312f4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleGrad_5312f4() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_5312f4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleGrad_5312f4() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_5312f4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.glsl
new file mode 100644
index 0000000..68389a9
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleGrad_872f00() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_872f00();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleGrad_872f00() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_872f00();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleGrad_872f00() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_872f00();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl
new file mode 100644
index 0000000..1f9fd0e
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleGrad_e383db() {
+ vec4 res = textureGrad(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_e383db();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleGrad_e383db() {
+ vec4 res = textureGrad(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_e383db();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleGrad_e383db() {
+ vec4 res = textureGrad(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_e383db();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl
new file mode 100644
index 0000000..e2bad29
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleGrad_e9a2f7() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleGrad_e9a2f7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleGrad_e9a2f7() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleGrad_e9a2f7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleGrad_e9a2f7() {
+ vec4 res = textureGrad(arg_0, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleGrad_e9a2f7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureGrad' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl
new file mode 100644
index 0000000..2f99e42
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_02be59() {
+ float res = textureLod(arg_0, vec2(0.0f, 0.0f), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_02be59();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_02be59() {
+ float res = textureLod(arg_0, vec2(0.0f, 0.0f), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_02be59();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_02be59() {
+ float res = textureLod(arg_0, vec2(0.0f, 0.0f), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_02be59();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl
new file mode 100644
index 0000000..e386347
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleLevel_0bdd9a() {
+ vec4 res = textureLod(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_0bdd9a();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleLevel_0bdd9a() {
+ vec4 res = textureLod(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_0bdd9a();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleLevel_0bdd9a() {
+ vec4 res = textureLod(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_0bdd9a();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl
new file mode 100644
index 0000000..47b1c7a
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleLevel_1b0291() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_1b0291();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleLevel_1b0291() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_1b0291();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleLevel_1b0291() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_1b0291();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl
new file mode 100644
index 0000000..a7334dc
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_1bf73e() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_1bf73e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_1bf73e() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_1bf73e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_1bf73e() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_1bf73e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.glsl
new file mode 100644
index 0000000..ed4cb3f
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_302be4() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_302be4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_302be4() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_302be4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_302be4() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_302be4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.glsl
new file mode 100644
index 0000000..1862a92
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_47daa4() {
+ float res = textureLod(arg_0, vec2(0.0f, 0.0f), 0, ivec2(0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_47daa4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_47daa4() {
+ float res = textureLod(arg_0, vec2(0.0f, 0.0f), 0, ivec2(0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_47daa4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_47daa4() {
+ float res = textureLod(arg_0, vec2(0.0f, 0.0f), 0, ivec2(0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_47daa4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.glsl
new file mode 100644
index 0000000..a6d8d40
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_690d95() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_690d95();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_690d95() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_690d95();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_690d95() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_690d95();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl
new file mode 100644
index 0000000..606f345
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_979816() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 0.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_979816();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_979816() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 0.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_979816();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_979816() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 0.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_979816();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl
new file mode 100644
index 0000000..f35b44f
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleLevel_9bd37b() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_9bd37b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleLevel_9bd37b() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_9bd37b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleLevel_9bd37b() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f, ivec3(0, 0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_9bd37b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl
new file mode 100644
index 0000000..7e5d37e
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl
@@ -0,0 +1,106 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_a4af26() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_a4af26();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_a4af26() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_a4af26();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_a4af26() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_a4af26();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of float'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl
new file mode 100644
index 0000000..446ff45
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleLevel_abfcc0() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_abfcc0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleLevel_abfcc0() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_abfcc0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler3D arg_0;
+
+
+void textureSampleLevel_abfcc0() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_abfcc0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl
new file mode 100644
index 0000000..ed66944
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleLevel_ae5e39() {
+ float res = textureLod(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_ae5e39();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleLevel_ae5e39() {
+ float res = textureLod(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_ae5e39();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCubeArray arg_0;
+
+
+void textureSampleLevel_ae5e39() {
+ float res = textureLod(arg_0, vec4(0.0f, 0.0f, 0.0f, float(1)), 0).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_ae5e39();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'samplerCubeArray' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl
new file mode 100644
index 0000000..4940678
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl
@@ -0,0 +1,103 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_ba93b3() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 0, ivec2(0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_ba93b3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_ba93b3() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 0, ivec2(0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_ba93b3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DArray arg_0;
+
+
+void textureSampleLevel_ba93b3() {
+ float res = textureLod(arg_0, vec3(0.0f, 0.0f, float(1)), 0, ivec2(0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_ba93b3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureLod' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.glsl
new file mode 100644
index 0000000..538222d
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleLevel_c32df7() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_c32df7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleLevel_c32df7() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_c32df7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp samplerCube arg_0;
+
+
+void textureSampleLevel_c32df7() {
+ vec4 res = textureLod(arg_0, vec3(0.0f, 0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_c32df7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl
new file mode 100644
index 0000000..7f18f4d
--- /dev/null
+++ b/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl
@@ -0,0 +1,80 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_c6aca6() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureSampleLevel_c6aca6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_c6aca6() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureSampleLevel_c6aca6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2D arg_0;
+
+
+void textureSampleLevel_c6aca6() {
+ vec4 res = textureLod(arg_0, vec2(0.0f, 0.0f), 1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureSampleLevel_c6aca6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.glsl
new file mode 100644
index 0000000..4ba2dce
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_05ce15() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_05ce15();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_05ce15() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_05ce15();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_05ce15() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_05ce15();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl
new file mode 100644
index 0000000..5cd1fc8
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_064c7f() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_064c7f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_064c7f() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_064c7f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_064c7f() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_064c7f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl
new file mode 100644
index 0000000..8178bbf
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_068641() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_068641();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_068641() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_068641();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_068641() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_068641();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl
new file mode 100644
index 0000000..e2680e9
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_0af6b5() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_0af6b5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_0af6b5() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_0af6b5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_0af6b5() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_0af6b5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl
new file mode 100644
index 0000000..a28d08e
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_0c3dff() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_0c3dff();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_0c3dff() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_0c3dff();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_0c3dff() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_0c3dff();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl
new file mode 100644
index 0000000..d43d1e1
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_102722() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_102722();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_102722() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_102722();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_102722() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_102722();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl
new file mode 100644
index 0000000..9ad8bb9
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_1bbd08() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_1bbd08();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_1bbd08() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_1bbd08();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_1bbd08() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_1bbd08();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl
new file mode 100644
index 0000000..26e7eb8
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_1c02e7() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_1c02e7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_1c02e7() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_1c02e7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_1c02e7() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_1c02e7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl
new file mode 100644
index 0000000..5993ef4
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_22d955() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_22d955();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_22d955() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_22d955();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_22d955() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_22d955();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl
new file mode 100644
index 0000000..6d3a252
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_26bf70() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_26bf70();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_26bf70() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_26bf70();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_26bf70() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_26bf70();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl
new file mode 100644
index 0000000..f44fdf0
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_2796b4() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_2796b4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_2796b4() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_2796b4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_2796b4() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_2796b4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl
new file mode 100644
index 0000000..62095fd
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2ac6c7() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_2ac6c7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2ac6c7() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_2ac6c7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2ac6c7() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_2ac6c7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl
new file mode 100644
index 0000000..39e2f5f
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2eb2a4() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_2eb2a4();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2eb2a4() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_2eb2a4();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2eb2a4() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_2eb2a4();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl
new file mode 100644
index 0000000..3a9e59e
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2ed2a3() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_2ed2a3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2ed2a3() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_2ed2a3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_2ed2a3() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_2ed2a3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl
new file mode 100644
index 0000000..3757584
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_31745b() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_31745b();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_31745b() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_31745b();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_31745b() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_31745b();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl
new file mode 100644
index 0000000..5f404a8
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_32f368() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_32f368();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_32f368() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_32f368();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_32f368() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_32f368();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl
new file mode 100644
index 0000000..e3ebdab
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_331aee() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_331aee();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_331aee() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_331aee();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_331aee() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_331aee();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl
new file mode 100644
index 0000000..75832fe
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_38e8d7() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_38e8d7();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_38e8d7() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_38e8d7();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_38e8d7() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_38e8d7();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl
new file mode 100644
index 0000000..6ee011b
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_3a52ac() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_3a52ac();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_3a52ac() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_3a52ac();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_3a52ac() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_3a52ac();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl
new file mode 100644
index 0000000..f3fdbe6
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_3bb7a1() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_3bb7a1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_3bb7a1() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_3bb7a1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_3bb7a1() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_3bb7a1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl
new file mode 100644
index 0000000..343d087
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_3bec15() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_3bec15();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_3bec15() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_3bec15();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_3bec15() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_3bec15();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl
new file mode 100644
index 0000000..f54d419
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_441ba8() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_441ba8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_441ba8() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_441ba8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_441ba8() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_441ba8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl
new file mode 100644
index 0000000..a13a1aa
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_4fc057() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_4fc057();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_4fc057() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_4fc057();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_4fc057() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_4fc057();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl
new file mode 100644
index 0000000..facb619
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_5a2f8f() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_5a2f8f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_5a2f8f() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_5a2f8f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_5a2f8f() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_5a2f8f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl
new file mode 100644
index 0000000..4c82be7
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_60975f() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_60975f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_60975f() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_60975f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_60975f() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_60975f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl
new file mode 100644
index 0000000..2e03766
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_682fd6() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_682fd6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_682fd6() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_682fd6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_682fd6() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_682fd6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl
new file mode 100644
index 0000000..1908674
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_6b75c3() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_6b75c3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_6b75c3() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_6b75c3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_6b75c3() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_6b75c3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl
new file mode 100644
index 0000000..35dbe8f
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_6b80d2() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_6b80d2();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_6b80d2() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_6b80d2();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_6b80d2() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_6b80d2();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl
new file mode 100644
index 0000000..c6e0183
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_6cff2e() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_6cff2e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_6cff2e() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_6cff2e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_6cff2e() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_6cff2e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl
new file mode 100644
index 0000000..173ab8b
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_6da692() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_6da692();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_6da692() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_6da692();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_6da692() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_6da692();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl
new file mode 100644
index 0000000..97d4a2c
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_731349() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_731349();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_731349() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_731349();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_731349() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_731349();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl
new file mode 100644
index 0000000..7456a69
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_752da6() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_752da6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_752da6() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_752da6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_752da6() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_752da6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl
new file mode 100644
index 0000000..cfd2c34
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_77c0ae() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_77c0ae();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_77c0ae() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_77c0ae();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_77c0ae() {
+ imageStore(arg_0, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_77c0ae();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl
new file mode 100644
index 0000000..cad1e7b
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_7cec8d() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_7cec8d();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_7cec8d() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_7cec8d();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_7cec8d() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_7cec8d();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl
new file mode 100644
index 0000000..f11342c
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_7f7fae() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_7f7fae();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_7f7fae() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_7f7fae();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_7f7fae() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_7f7fae();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl
new file mode 100644
index 0000000..4cde48c
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_804942() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_804942();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_804942() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_804942();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_804942() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_804942();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl
new file mode 100644
index 0000000..2c886bc
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_805dae() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_805dae();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_805dae() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_805dae();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_805dae() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_805dae();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl
new file mode 100644
index 0000000..a637a68
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_83bcc1() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_83bcc1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_83bcc1() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_83bcc1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_83bcc1() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_83bcc1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl
new file mode 100644
index 0000000..d134a09
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_872747() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_872747();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_872747() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_872747();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_872747() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_872747();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl
new file mode 100644
index 0000000..983cf26
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_8e0479() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_8e0479();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_8e0479() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_8e0479();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_8e0479() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_8e0479();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl
new file mode 100644
index 0000000..1b2ac3f
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_8f71a1() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_8f71a1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_8f71a1() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_8f71a1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_8f71a1() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_8f71a1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl
new file mode 100644
index 0000000..c2885e6
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_969534() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_969534();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_969534() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_969534();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_969534() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_969534();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl
new file mode 100644
index 0000000..b926142
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_9a3ecc() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_9a3ecc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_9a3ecc() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_9a3ecc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_9a3ecc() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_9a3ecc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl
new file mode 100644
index 0000000..81b5fd3
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_9d9cd5() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_9d9cd5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_9d9cd5() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_9d9cd5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_9d9cd5() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_9d9cd5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl
new file mode 100644
index 0000000..535d561
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_9e3ec5() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_9e3ec5();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_9e3ec5() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_9e3ec5();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_9e3ec5() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_9e3ec5();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl
new file mode 100644
index 0000000..675296b
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ac67aa() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_ac67aa();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ac67aa() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_ac67aa();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ac67aa() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_ac67aa();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl
new file mode 100644
index 0000000..3acec7e
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_b706b1() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_b706b1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_b706b1() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_b706b1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_b706b1() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_b706b1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl
new file mode 100644
index 0000000..20c0646
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_bbcb7f() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_bbcb7f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_bbcb7f() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_bbcb7f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_bbcb7f() {
+ imageStore(arg_0, ivec2(0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_bbcb7f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl
new file mode 100644
index 0000000..e7ea527
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_be6e30() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_be6e30();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_be6e30() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_be6e30();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2D arg_0;
+
+void textureStore_be6e30() {
+ imageStore(arg_0, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_be6e30();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl
new file mode 100644
index 0000000..7623f03
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_bf775c() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_bf775c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_bf775c() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_bf775c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_bf775c() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_bf775c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl
new file mode 100644
index 0000000..8a3f3c8
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_c5af1e() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_c5af1e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_c5af1e() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_c5af1e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_c5af1e() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_c5af1e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl
new file mode 100644
index 0000000..385f01f
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_c863be() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_c863be();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_c863be() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_c863be();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_c863be() {
+ imageStore(arg_0, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_c863be();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl
new file mode 100644
index 0000000..4273b57
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_d73b5c() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_d73b5c();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_d73b5c() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_d73b5c();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_d73b5c() {
+ imageStore(arg_0, 1, ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_d73b5c();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl
new file mode 100644
index 0000000..7e56ff4
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_dd7d81() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_dd7d81();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_dd7d81() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_dd7d81();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_dd7d81() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_dd7d81();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl
new file mode 100644
index 0000000..bc857ff
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_dde364() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_dde364();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_dde364() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_dde364();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_dde364() {
+ imageStore(arg_0, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_dde364();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl
new file mode 100644
index 0000000..8b379de
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_e885e8() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_e885e8();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_e885e8() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_e885e8();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_e885e8() {
+ imageStore(arg_0, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_e885e8();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl
new file mode 100644
index 0000000..1108c67
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_eb702f() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_eb702f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_eb702f() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_eb702f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_eb702f() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_eb702f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl
new file mode 100644
index 0000000..c009898
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_eb78b9() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_eb78b9();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_eb78b9() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_eb78b9();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_eb78b9() {
+ imageStore(arg_0, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_eb78b9();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl
new file mode 100644
index 0000000..fe34058
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ee6acc() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_ee6acc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ee6acc() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_ee6acc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ee6acc() {
+ imageStore(arg_0, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_ee6acc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'x' : does not apply to this type: global highp void
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl
new file mode 100644
index 0000000..363aad9
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ef9f2f() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_ef9f2f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ef9f2f() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_ef9f2f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_ef9f2f() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_ef9f2f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl
new file mode 100644
index 0000000..6ca19cd
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_f8dead() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_f8dead();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_f8dead() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_f8dead();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image3D arg_0;
+
+void textureStore_f8dead() {
+ imageStore(arg_0, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_f8dead();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl
new file mode 100644
index 0000000..5bbfedc
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_f9be83() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_f9be83();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_f9be83() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_f9be83();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_f9be83() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_f9be83();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl
new file mode 100644
index 0000000..a85cf19
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_fb9a8f() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_fb9a8f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_fb9a8f() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_fb9a8f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image1D arg_0;
+
+void textureStore_fb9a8f() {
+ imageStore(arg_0, 1, uvec4(0u, 0u, 0u, 0u)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_fb9a8f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:4: 'image1D' : Reserved word.
+ERROR: 0:4: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl
new file mode 100644
index 0000000..9f27edc
--- /dev/null
+++ b/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl
@@ -0,0 +1,100 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_fbf53f() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ textureStore_fbf53f();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_fbf53f() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ textureStore_fbf53f();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp writeonly image2DArray arg_0;
+
+void textureStore_fbf53f() {
+ imageStore(arg_0, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)).x;
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ textureStore_fbf53f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:7: 'imageStore' : no matching overloaded function found
+ERROR: 0:7: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl b/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl
new file mode 100644
index 0000000..e53ed26
--- /dev/null
+++ b/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_2585cd() {
+ mat3x4 res = transpose(mat4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_2585cd();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_2585cd() {
+ mat3x4 res = transpose(mat4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_2585cd();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_2585cd() {
+ mat3x4 res = transpose(mat4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_2585cd();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/31d679.wgsl.expected.glsl b/test/intrinsics/gen/transpose/31d679.wgsl.expected.glsl
new file mode 100644
index 0000000..94c6b80
--- /dev/null
+++ b/test/intrinsics/gen/transpose/31d679.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_31d679() {
+ mat2 res = transpose(mat2(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_31d679();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_31d679() {
+ mat2 res = transpose(mat2(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_31d679();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_31d679() {
+ mat2 res = transpose(mat2(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_31d679();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/31e37e.wgsl.expected.glsl b/test/intrinsics/gen/transpose/31e37e.wgsl.expected.glsl
new file mode 100644
index 0000000..84e5407
--- /dev/null
+++ b/test/intrinsics/gen/transpose/31e37e.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_31e37e() {
+ mat2x4 res = transpose(mat4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_31e37e();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_31e37e() {
+ mat2x4 res = transpose(mat4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_31e37e();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_31e37e() {
+ mat2x4 res = transpose(mat4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_31e37e();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/4ce359.wgsl.expected.glsl b/test/intrinsics/gen/transpose/4ce359.wgsl.expected.glsl
new file mode 100644
index 0000000..a03fa51
--- /dev/null
+++ b/test/intrinsics/gen/transpose/4ce359.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_4ce359() {
+ mat4x2 res = transpose(mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_4ce359();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_4ce359() {
+ mat4x2 res = transpose(mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_4ce359();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_4ce359() {
+ mat4x2 res = transpose(mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_4ce359();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.glsl b/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.glsl
new file mode 100644
index 0000000..1597888
--- /dev/null
+++ b/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_4dc9a1() {
+ mat3x2 res = transpose(mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_4dc9a1();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_4dc9a1() {
+ mat3x2 res = transpose(mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_4dc9a1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_4dc9a1() {
+ mat3x2 res = transpose(mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_4dc9a1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/854336.wgsl.expected.glsl b/test/intrinsics/gen/transpose/854336.wgsl.expected.glsl
new file mode 100644
index 0000000..155bd35
--- /dev/null
+++ b/test/intrinsics/gen/transpose/854336.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_854336() {
+ mat3 res = transpose(mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_854336();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_854336() {
+ mat3 res = transpose(mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_854336();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_854336() {
+ mat3 res = transpose(mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_854336();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/c1b600.wgsl.expected.glsl b/test/intrinsics/gen/transpose/c1b600.wgsl.expected.glsl
new file mode 100644
index 0000000..682578a
--- /dev/null
+++ b/test/intrinsics/gen/transpose/c1b600.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_c1b600() {
+ mat4 res = transpose(mat4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_c1b600();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_c1b600() {
+ mat4 res = transpose(mat4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_c1b600();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_c1b600() {
+ mat4 res = transpose(mat4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_c1b600();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.glsl b/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.glsl
new file mode 100644
index 0000000..86e5480
--- /dev/null
+++ b/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_d8f8ba() {
+ mat4x3 res = transpose(mat3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_d8f8ba();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_d8f8ba() {
+ mat4x3 res = transpose(mat3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_d8f8ba();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_d8f8ba() {
+ mat4x3 res = transpose(mat3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_d8f8ba();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.glsl b/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.glsl
new file mode 100644
index 0000000..ae64003
--- /dev/null
+++ b/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void transpose_ed4bdc() {
+ mat2x3 res = transpose(mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ transpose_ed4bdc();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_ed4bdc() {
+ mat2x3 res = transpose(mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ transpose_ed4bdc();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void transpose_ed4bdc() {
+ mat2x3 res = transpose(mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ transpose_ed4bdc();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/trunc/562d05.wgsl.expected.glsl b/test/intrinsics/gen/trunc/562d05.wgsl.expected.glsl
new file mode 100644
index 0000000..ff3f6b2
--- /dev/null
+++ b/test/intrinsics/gen/trunc/562d05.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void trunc_562d05() {
+ vec3 res = trunc(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ trunc_562d05();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_562d05() {
+ vec3 res = trunc(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ trunc_562d05();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_562d05() {
+ vec3 res = trunc(vec3(0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ trunc_562d05();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/trunc/e183aa.wgsl.expected.glsl b/test/intrinsics/gen/trunc/e183aa.wgsl.expected.glsl
new file mode 100644
index 0000000..cd8db12
--- /dev/null
+++ b/test/intrinsics/gen/trunc/e183aa.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void trunc_e183aa() {
+ vec4 res = trunc(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ trunc_e183aa();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_e183aa() {
+ vec4 res = trunc(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ trunc_e183aa();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_e183aa() {
+ vec4 res = trunc(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ trunc_e183aa();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/trunc/eb83df.wgsl.expected.glsl b/test/intrinsics/gen/trunc/eb83df.wgsl.expected.glsl
new file mode 100644
index 0000000..d809fe8
--- /dev/null
+++ b/test/intrinsics/gen/trunc/eb83df.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void trunc_eb83df() {
+ float res = trunc(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ trunc_eb83df();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_eb83df() {
+ float res = trunc(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ trunc_eb83df();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_eb83df() {
+ float res = trunc(1.0f);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ trunc_eb83df();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/trunc/f370d3.wgsl.expected.glsl b/test/intrinsics/gen/trunc/f370d3.wgsl.expected.glsl
new file mode 100644
index 0000000..32ce843
--- /dev/null
+++ b/test/intrinsics/gen/trunc/f370d3.wgsl.expected.glsl
@@ -0,0 +1,71 @@
+#version 310 es
+precision mediump float;
+
+void trunc_f370d3() {
+ vec2 res = trunc(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ trunc_f370d3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_f370d3() {
+ vec2 res = trunc(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ trunc_f370d3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+void trunc_f370d3() {
+ vec2 res = trunc(vec2(0.0f, 0.0f));
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ trunc_f370d3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.glsl b/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.glsl
new file mode 100644
index 0000000..76beac1
--- /dev/null
+++ b/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.glsl
@@ -0,0 +1,112 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16float(uint param_0) {
+ uint i = param_0;
+ return f16tof32(uint2(i & 0xffff, i >> 16));
+}
+
+
+void unpack2x16float_32a5cf() {
+ vec2 res = tint_unpack2x16float(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ unpack2x16float_32a5cf();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp highp uint' and a right operand of type ' const int' (or there is no acceptable conversion)
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16float(uint param_0) {
+ uint i = param_0;
+ return f16tof32(uint2(i & 0xffff, i >> 16));
+}
+
+
+void unpack2x16float_32a5cf() {
+ vec2 res = tint_unpack2x16float(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ unpack2x16float_32a5cf();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp mediump uint' and a right operand of type ' const int' (or there is no acceptable conversion)
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16float(uint param_0) {
+ uint i = param_0;
+ return f16tof32(uint2(i & 0xffff, i >> 16));
+}
+
+
+void unpack2x16float_32a5cf() {
+ vec2 res = tint_unpack2x16float(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ unpack2x16float_32a5cf();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp highp uint' and a right operand of type ' const int' (or there is no acceptable conversion)
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl b/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl
new file mode 100644
index 0000000..babc3da
--- /dev/null
+++ b/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl
@@ -0,0 +1,115 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16snorm(uint param_0) {
+ int j = int(param_0);
+ int2 i = int2(j << 16, j) >> 16;
+ return clamp(float2(i) / 32767.0, -1.0, 1.0);
+}
+
+
+void unpack2x16snorm_b4aea6() {
+ vec2 res = tint_unpack2x16snorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ unpack2x16snorm_b4aea6();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'int2' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16snorm(uint param_0) {
+ int j = int(param_0);
+ int2 i = int2(j << 16, j) >> 16;
+ return clamp(float2(i) / 32767.0, -1.0, 1.0);
+}
+
+
+void unpack2x16snorm_b4aea6() {
+ vec2 res = tint_unpack2x16snorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ unpack2x16snorm_b4aea6();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'int2' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16snorm(uint param_0) {
+ int j = int(param_0);
+ int2 i = int2(j << 16, j) >> 16;
+ return clamp(float2(i) / 32767.0, -1.0, 1.0);
+}
+
+
+void unpack2x16snorm_b4aea6() {
+ vec2 res = tint_unpack2x16snorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ unpack2x16snorm_b4aea6();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'int2' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl b/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl
new file mode 100644
index 0000000..7fe0e54
--- /dev/null
+++ b/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl
@@ -0,0 +1,115 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16unorm(uint param_0) {
+ uint j = param_0;
+ uint2 i = uint2(j & 0xffff, j >> 16);
+ return float2(i) / 65535.0;
+}
+
+
+void unpack2x16unorm_7699c0() {
+ vec2 res = tint_unpack2x16unorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ unpack2x16unorm_7699c0();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'uint2' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16unorm(uint param_0) {
+ uint j = param_0;
+ uint2 i = uint2(j & 0xffff, j >> 16);
+ return float2(i) / 65535.0;
+}
+
+
+void unpack2x16unorm_7699c0() {
+ vec2 res = tint_unpack2x16unorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ unpack2x16unorm_7699c0();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'uint2' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec2 tint_unpack2x16unorm(uint param_0) {
+ uint j = param_0;
+ uint2 i = uint2(j & 0xffff, j >> 16);
+ return float2(i) / 65535.0;
+}
+
+
+void unpack2x16unorm_7699c0() {
+ vec2 res = tint_unpack2x16unorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ unpack2x16unorm_7699c0();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'uint2' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl b/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl
new file mode 100644
index 0000000..b27d4c7
--- /dev/null
+++ b/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl
@@ -0,0 +1,115 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+vec4 tint_unpack4x8snorm(uint param_0) {
+ int j = int(param_0);
+ int4 i = int4(j << 24, j << 16, j << 8, j) >> 24;
+ return clamp(float4(i) / 127.0, -1.0, 1.0);
+}
+
+
+void unpack4x8snorm_523fb3() {
+ vec4 res = tint_unpack4x8snorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ unpack4x8snorm_523fb3();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'int4' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec4 tint_unpack4x8snorm(uint param_0) {
+ int j = int(param_0);
+ int4 i = int4(j << 24, j << 16, j << 8, j) >> 24;
+ return clamp(float4(i) / 127.0, -1.0, 1.0);
+}
+
+
+void unpack4x8snorm_523fb3() {
+ vec4 res = tint_unpack4x8snorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ unpack4x8snorm_523fb3();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'int4' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec4 tint_unpack4x8snorm(uint param_0) {
+ int j = int(param_0);
+ int4 i = int4(j << 24, j << 16, j << 8, j) >> 24;
+ return clamp(float4(i) / 127.0, -1.0, 1.0);
+}
+
+
+void unpack4x8snorm_523fb3() {
+ vec4 res = tint_unpack4x8snorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ unpack4x8snorm_523fb3();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'int4' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl b/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl
new file mode 100644
index 0000000..cb08c88
--- /dev/null
+++ b/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl
@@ -0,0 +1,115 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+vec4 tint_unpack4x8unorm(uint param_0) {
+ uint j = param_0;
+ uint4 i = uint4(j & 0xff, (j >> 8) & 0xff, (j >> 16) & 0xff, j >> 24);
+ return float4(i) / 255.0;
+}
+
+
+void unpack4x8unorm_750c74() {
+ vec4 res = tint_unpack4x8unorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+vec4 vertex_main_inner() {
+ unpack4x8unorm_750c74();
+ return vec4(0.0f, 0.0f, 0.0f, 0.0f);
+}
+
+tint_symbol vertex_main() {
+ vec4 inner_result = vertex_main_inner();
+ tint_symbol wrapper_result = tint_symbol(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.value = inner_result;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.value;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'uint4' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec4 tint_unpack4x8unorm(uint param_0) {
+ uint j = param_0;
+ uint4 i = uint4(j & 0xff, (j >> 8) & 0xff, (j >> 16) & 0xff, j >> 24);
+ return float4(i) / 255.0;
+}
+
+
+void unpack4x8unorm_750c74() {
+ vec4 res = tint_unpack4x8unorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+void fragment_main() {
+ unpack4x8unorm_750c74();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'uint4' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+vec4 tint_unpack4x8unorm(uint param_0) {
+ uint j = param_0;
+ uint4 i = uint4(j & 0xff, (j >> 8) & 0xff, (j >> 16) & 0xff, j >> 24);
+ return float4(i) / 255.0;
+}
+
+
+void unpack4x8unorm_750c74() {
+ vec4 res = tint_unpack4x8unorm(1u);
+}
+
+struct tint_symbol {
+ vec4 value;
+};
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ unpack4x8unorm_750c74();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:6: 'uint4' : undeclared identifier
+ERROR: 0:6: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl b/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl
new file mode 100644
index 0000000..d923b6d
--- /dev/null
+++ b/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl
@@ -0,0 +1,26 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+void workgroupBarrier_a17f7f() {
+ GroupMemoryBarrierWithGroupSync();
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ workgroupBarrier_a17f7f();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'GroupMemoryBarrierWithGroupSync' : no matching overloaded function found
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/ignore/call.wgsl.expected.glsl b/test/intrinsics/ignore/call.wgsl.expected.glsl
new file mode 100644
index 0000000..ce8e2b7
--- /dev/null
+++ b/test/intrinsics/ignore/call.wgsl.expected.glsl
@@ -0,0 +1,21 @@
+intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
+ ignore(f(1, 2, 3));
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+int f(int a, int b, int c) {
+ return ((a * b) + c);
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ f(1, 2, 3);
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
diff --git a/test/intrinsics/ignore/runtime_array.wgsl.expected.glsl b/test/intrinsics/ignore/runtime_array.wgsl.expected.glsl
new file mode 100644
index 0000000..1848860
--- /dev/null
+++ b/test/intrinsics/ignore/runtime_array.wgsl.expected.glsl
@@ -0,0 +1,22 @@
+intrinsics/ignore/runtime_array.wgsl:10:5 warning: use of deprecated intrinsic
+ ignore(s.arr);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer S_1 {
+ int arr[];
+} s;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ s.arr;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
diff --git a/test/intrinsics/ignore/storage_buffer.wgsl.expected.glsl b/test/intrinsics/ignore/storage_buffer.wgsl.expected.glsl
new file mode 100644
index 0000000..2571ad5
--- /dev/null
+++ b/test/intrinsics/ignore/storage_buffer.wgsl.expected.glsl
@@ -0,0 +1,27 @@
+intrinsics/ignore/storage_buffer.wgsl:10:5 warning: use of deprecated intrinsic
+ ignore(s);
+ ^^^^^^
+
+intrinsics/ignore/storage_buffer.wgsl:11:5 warning: use of deprecated intrinsic
+ ignore(s.i);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) buffer S_1 {
+ int i;
+} s;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ s;
+ s.i;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
diff --git a/test/intrinsics/ignore/uniform_buffer.wgsl.expected.glsl b/test/intrinsics/ignore/uniform_buffer.wgsl.expected.glsl
new file mode 100644
index 0000000..9ed6461
--- /dev/null
+++ b/test/intrinsics/ignore/uniform_buffer.wgsl.expected.glsl
@@ -0,0 +1,27 @@
+intrinsics/ignore/uniform_buffer.wgsl:10:5 warning: use of deprecated intrinsic
+ ignore(u);
+ ^^^^^^
+
+intrinsics/ignore/uniform_buffer.wgsl:11:5 warning: use of deprecated intrinsic
+ ignore(u.i);
+ ^^^^^^
+
+#version 310 es
+precision mediump float;
+
+
+layout (binding = 0) uniform S_1 {
+ int i;
+} u;
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ u;
+ u.i;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
diff --git a/test/intrinsics/modf.wgsl.expected.glsl b/test/intrinsics/modf.wgsl.expected.glsl
new file mode 100644
index 0000000..82a4213
--- /dev/null
+++ b/test/intrinsics/modf.wgsl.expected.glsl
@@ -0,0 +1,36 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+struct modf_result {
+ float fract;
+ float whole;
+};
+modf_result tint_modf(float param_0) {
+ float whole;
+ float fract = modf(param_0, whole);
+ modf_result result = {fract, whole};
+ return result;
+}
+
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ modf_result res = tint_modf(1.230000019f);
+ float tint_symbol_1 = res.fract;
+ float whole = res.whole;
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:11: '{ } style initializers' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/radians.spvasm.expected.glsl b/test/intrinsics/radians.spvasm.expected.glsl
new file mode 100644
index 0000000..b96f0c4
--- /dev/null
+++ b/test/intrinsics/radians.spvasm.expected.glsl
@@ -0,0 +1,21 @@
+#version 310 es
+precision mediump float;
+
+void main_1() {
+ float a = 0.0f;
+ float b = 0.0f;
+ a = 42.0f;
+ b = (a * 0.017453292f);
+ return;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ main_1();
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
diff --git a/test/intrinsics/repeated_use.wgsl.expected.glsl b/test/intrinsics/repeated_use.wgsl.expected.glsl
new file mode 100644
index 0000000..51cea44
--- /dev/null
+++ b/test/intrinsics/repeated_use.wgsl.expected.glsl
@@ -0,0 +1,58 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+bvec4 tint_isNormal(vec4 param_0) {
+ uint4 exponent = asuint(param_0) & 0x7f80000;
+ uint4 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+bvec3 tint_isNormal_1(vec3 param_0) {
+ uint3 exponent = asuint(param_0) & 0x7f80000;
+ uint3 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+bvec2 tint_isNormal_2(vec2 param_0) {
+ uint2 exponent = asuint(param_0) & 0x7f80000;
+ uint2 clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+bool tint_isNormal_3(float param_0) {
+ uint exponent = asuint(param_0) & 0x7f80000;
+ uint clamped = clamp(exponent, 0x0080000, 0x7f00000);
+ return clamped == exponent;
+}
+
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void tint_symbol() {
+ tint_isNormal(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ tint_isNormal(vec4((1.0f).xxxx));
+ tint_isNormal(vec4(1.0f, 2.0f, 3.0f, 4.0f));
+ tint_isNormal_1(vec3(0.0f, 0.0f, 0.0f));
+ tint_isNormal_1(vec3((1.0f).xxx));
+ tint_isNormal_1(vec3(1.0f, 2.0f, 3.0f));
+ tint_isNormal_2(vec2(0.0f, 0.0f));
+ tint_isNormal_2(vec2((1.0f).xx));
+ tint_isNormal_2(vec2(1.0f, 2.0f));
+ tint_isNormal_3(1.0f);
+ tint_isNormal_3(2.0f);
+ tint_isNormal_3(3.0f);
+ return;
+}
+void main() {
+ tint_symbol();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:5: 'uint4' : undeclared identifier
+ERROR: 0:5: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl b/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl
new file mode 100644
index 0000000..490cd99
--- /dev/null
+++ b/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl
@@ -0,0 +1,118 @@
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+vec4 tint_symbol_1 = vec4(0.0f, 0.0f, 0.0f, 0.0f);
+
+void textureDimensions_f60bdb() {
+ ivec2 res = ivec2(0, 0);
+ ivec2 x_16 = ivec2(textureSize(arg_0));
+ res = x_16;
+ return;
+}
+
+void tint_symbol_2(vec4 tint_symbol) {
+ tint_symbol_1 = tint_symbol;
+ return;
+}
+
+void vertex_main_1() {
+ textureDimensions_f60bdb();
+ tint_symbol_2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+vertex_main_out vertex_main_inner() {
+ vertex_main_1();
+ vertex_main_out tint_symbol_4 = vertex_main_out(tint_symbol_1);
+ return tint_symbol_4;
+}
+
+tint_symbol_3 vertex_main() {
+ vertex_main_out inner_result = vertex_main_inner();
+ tint_symbol_3 wrapper_result = tint_symbol_3(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol_3 outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.tint_symbol_1_1;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_f60bdb() {
+ ivec2 res = ivec2(0, 0);
+ ivec2 x_16 = ivec2(textureSize(arg_0));
+ res = x_16;
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+void fragment_main_1() {
+ textureDimensions_f60bdb();
+ return;
+}
+
+void fragment_main() {
+ fragment_main_1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureDimensions_f60bdb() {
+ ivec2 res = ivec2(0, 0);
+ ivec2 x_16 = ivec2(textureSize(arg_0));
+ res = x_16;
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+void compute_main_1() {
+ textureDimensions_f60bdb();
+ return;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ compute_main_1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl b/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl
new file mode 100644
index 0000000..0634d3f
--- /dev/null
+++ b/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl
@@ -0,0 +1,141 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+vec4 tint_symbol_1 = vec4(0.0f, 0.0f, 0.0f, 0.0f);
+
+void textureLoad_6273b1() {
+ float res = 0.0f;
+ vec4 x_17 = vec4(texelFetch(arg_0, ivec3(0, 0, 0), 1).x, 0.0f, 0.0f, 0.0f);
+ res = x_17.x;
+ return;
+}
+
+void tint_symbol_2(vec4 tint_symbol) {
+ tint_symbol_1 = tint_symbol;
+ return;
+}
+
+void vertex_main_1() {
+ textureLoad_6273b1();
+ tint_symbol_2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+vertex_main_out vertex_main_inner() {
+ vertex_main_1();
+ vertex_main_out tint_symbol_4 = vertex_main_out(tint_symbol_1);
+ return tint_symbol_4;
+}
+
+tint_symbol_3 vertex_main() {
+ vertex_main_out inner_result = vertex_main_inner();
+ tint_symbol_3 wrapper_result = tint_symbol_3(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol_3 outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.tint_symbol_1_1;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'texelFetch' : no matching overloaded function found
+ERROR: 0:9: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_6273b1() {
+ float res = 0.0f;
+ vec4 x_17 = vec4(texelFetch(arg_0, ivec3(0, 0, 0), 1).x, 0.0f, 0.0f, 0.0f);
+ res = x_17.x;
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+void fragment_main_1() {
+ textureLoad_6273b1();
+ return;
+}
+
+void fragment_main() {
+ fragment_main_1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texelFetch' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureLoad_6273b1() {
+ float res = 0.0f;
+ vec4 x_17 = vec4(texelFetch(arg_0, ivec3(0, 0, 0), 1).x, 0.0f, 0.0f, 0.0f);
+ res = x_17.x;
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+void compute_main_1() {
+ textureLoad_6273b1();
+ return;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ compute_main_1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'texelFetch' : no matching overloaded function found
+ERROR: 0:8: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
+
+
+
diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl b/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl
new file mode 100644
index 0000000..dab32c8
--- /dev/null
+++ b/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl
@@ -0,0 +1,144 @@
+SKIP: FAILED
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+vec4 tint_symbol_1 = vec4(0.0f, 0.0f, 0.0f, 0.0f);
+
+void textureNumSamples_a3c8a0() {
+ int res = 0;
+ int x_16 = textureSamples(arg_0);;
+ res = x_16;
+ return;
+}
+
+void tint_symbol_2(vec4 tint_symbol) {
+ tint_symbol_1 = tint_symbol;
+ return;
+}
+
+void vertex_main_1() {
+ textureNumSamples_a3c8a0();
+ tint_symbol_2(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+vertex_main_out vertex_main_inner() {
+ vertex_main_1();
+ vertex_main_out tint_symbol_4 = vertex_main_out(tint_symbol_1);
+ return tint_symbol_4;
+}
+
+tint_symbol_3 vertex_main() {
+ vertex_main_out inner_result = vertex_main_inner();
+ tint_symbol_3 wrapper_result = tint_symbol_3(vec4(0.0f, 0.0f, 0.0f, 0.0f));
+ wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1;
+ return wrapper_result;
+}
+void main() {
+ tint_symbol_3 outputs;
+ outputs = vertex_main();
+ gl_Position = outputs.tint_symbol_1_1;
+ gl_Position.y = -gl_Position.y;
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:9: 'textureSamples' : no matching overloaded function found
+ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:9: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_a3c8a0() {
+ int res = 0;
+ int x_16 = textureSamples(arg_0);;
+ res = x_16;
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+void fragment_main_1() {
+ textureNumSamples_a3c8a0();
+ return;
+}
+
+void fragment_main() {
+ fragment_main_1();
+ return;
+}
+void main() {
+ fragment_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureSamples' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp mediump int'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+
+#version 310 es
+precision mediump float;
+
+uniform highp sampler2DMS arg_0;
+
+void textureNumSamples_a3c8a0() {
+ int res = 0;
+ int x_16 = textureSamples(arg_0);;
+ res = x_16;
+ return;
+}
+
+struct vertex_main_out {
+ vec4 tint_symbol_1_1;
+};
+struct tint_symbol_3 {
+ vec4 tint_symbol_1_1;
+};
+
+void compute_main_1() {
+ textureNumSamples_a3c8a0();
+ return;
+}
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void compute_main() {
+ compute_main_1();
+ return;
+}
+void main() {
+ compute_main();
+}
+
+
+Error parsing GLSL shader:
+ERROR: 0:8: 'textureSamples' : no matching overloaded function found
+ERROR: 0:8: '=' : cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:8: '' : compilation terminated
+ERROR: 3 compilation errors. No code generated.
+
+
+