From e2f35ba8e0a4f8f234660c980a1917f5504482a3 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Wed, 26 Jan 2022 16:48:55 +0000 Subject: [PATCH] GLSL: clean up GLSL output whitespace generation. More line() and less std::endl. More automated indents and less manual spacing. Put a single newline after every struct and function declaration. Note that this does touch every test result, but only affects whitespace. Change-Id: I7506b9029b79b91fb335911dba44369b36f09bbe Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78300 Kokoro: Kokoro Reviewed-by: Ben Clayton Commit-Queue: Stephen White --- src/writer/glsl/generator_impl.cc | 229 +++++++++--------- .../glsl/generator_impl_function_test.cc | 61 ++--- .../glsl/generator_impl_intrinsic_test.cc | 14 +- .../generator_impl_member_accessor_test.cc | 42 ++-- .../glsl/generator_impl_sanitizer_test.cc | 20 +- src/writer/glsl/generator_impl_test.cc | 1 + src/writer/glsl/generator_impl_type_test.cc | 2 + test/access/let/matrix.spvasm.expected.glsl | 2 +- test/access/let/matrix.wgsl.expected.glsl | 2 +- test/access/let/vector.spvasm.expected.glsl | 2 +- test/access/let/vector.wgsl.expected.glsl | 2 +- test/access/var/matrix.spvasm.expected.glsl | 2 +- test/access/var/matrix.wgsl.expected.glsl | 2 +- test/access/var/vector.spvasm.expected.glsl | 2 +- test/access/var/vector.wgsl.expected.glsl | 2 +- .../assign_to_function_var.wgsl.expected.glsl | 6 +- .../assign_to_private_var.wgsl.expected.glsl | 6 +- .../assign_to_storage_var.wgsl.expected.glsl | 7 +- .../assign_to_subexpr.wgsl.expected.glsl | 4 +- ...assign_to_workgroup_var.wgsl.expected.glsl | 6 +- .../function_parameter.wgsl.expected.glsl | 2 +- .../function_return_type.wgsl.expected.glsl | 2 +- test/array/size.wgsl.expected.glsl | 3 +- .../array/type_constructor.wgsl.expected.glsl | 2 +- test/benchmark/animometer.wgsl.expected.glsl | 20 +- test/benchmark/particles.wgsl.expected.glsl | 83 +++++-- .../shadow-fragment.wgsl.expected.glsl | 10 +- .../simple-fragment.wgsl.expected.glsl | 7 +- ...d-shadowed-pbr-fragment.wgsl.expected.glsl | 19 +- ...ned-shadowed-pbr-vertex.wgsl.expected.glsl | 9 +- .../dynamic_index/read.wgsl.expected.glsl | 4 +- .../dynamic_index/write.wgsl.expected.glsl | 4 +- .../static_index/read.wgsl.expected.glsl | 4 +- .../static_index/write.wgsl.expected.glsl | 4 +- .../storage/types/array.wgsl.expected.glsl | 3 +- .../storage/types/f32.wgsl.expected.glsl | 3 +- .../storage/types/i32.wgsl.expected.glsl | 3 +- .../storage/types/mat2x2.wgsl.expected.glsl | 3 +- .../storage/types/mat2x3.wgsl.expected.glsl | 3 +- .../storage/types/mat3x2.wgsl.expected.glsl | 3 +- .../storage/types/mat4x4.wgsl.expected.glsl | 3 +- .../types/runtime_array.wgsl.expected.glsl | 3 +- .../storage/types/struct.wgsl.expected.glsl | 4 +- .../storage/types/u32.wgsl.expected.glsl | 3 +- .../storage/types/vec2.wgsl.expected.glsl | 3 +- .../storage/types/vec3.wgsl.expected.glsl | 3 +- .../storage/types/vec4.wgsl.expected.glsl | 3 +- .../dynamic_index/read.wgsl.expected.glsl | 4 +- .../static_index/read.wgsl.expected.glsl | 3 +- .../uniform/types/array.wgsl.expected.glsl | 2 +- .../uniform/types/f32.wgsl.expected.glsl | 2 +- .../uniform/types/i32.wgsl.expected.glsl | 2 +- .../uniform/types/mat2x2.wgsl.expected.glsl | 2 +- .../uniform/types/mat2x3.wgsl.expected.glsl | 2 +- .../uniform/types/mat3x2.wgsl.expected.glsl | 2 +- .../uniform/types/mat4x4.wgsl.expected.glsl | 2 +- .../uniform/types/struct.wgsl.expected.glsl | 7 +- .../uniform/types/u32.wgsl.expected.glsl | 2 +- .../uniform/types/vec2.wgsl.expected.glsl | 2 +- .../uniform/types/vec3.wgsl.expected.glsl | 2 +- .../uniform/types/vec4.wgsl.expected.glsl | 2 +- test/bug/chromium/1221120.wgsl.expected.glsl | 3 +- test/bug/chromium/1236161.wgsl.expected.glsl | 9 +- test/bug/chromium/1251009.wgsl.expected.glsl | 8 +- test/bug/chromium/1273230.wgsl.expected.glsl | 6 +- test/bug/chromium/1273451.wgsl.expected.glsl | 5 +- test/bug/dawn/947.wgsl.expected.glsl | 15 +- .../read/function.wgsl.expected.glsl | 4 +- .../read/private.wgsl.expected.glsl | 4 +- .../read/storage.wgsl.expected.glsl | 4 +- .../read/uniform.wgsl.expected.glsl | 3 +- .../read/workgroup.wgsl.expected.glsl | 5 +- .../write/function.wgsl.expected.glsl | 4 +- .../function_via_param.wgsl.expected.glsl | 4 +- .../write/private.wgsl.expected.glsl | 4 +- .../private_via_param.wgsl.expected.glsl | 4 +- .../write/storage.wgsl.expected.glsl | 4 +- .../write/workgroup.wgsl.expected.glsl | 5 +- .../1112.wgsl.expected.glsl | 4 +- .../1206.wgsl.expected.glsl | 3 +- .../local_assign_scalar_x.wgsl.expected.glsl | 2 +- .../local_assign_scalar_xy.wgsl.expected.glsl | 2 +- .../local_assign_scalar_y.wgsl.expected.glsl | 4 +- .../local_assign_vector.wgsl.expected.glsl | 2 +- .../module_assign_scalar_x.wgsl.expected.glsl | 4 +- ...module_assign_scalar_xy.wgsl.expected.glsl | 4 +- .../module_assign_scalar_y.wgsl.expected.glsl | 4 +- .../module_assign_vector.wgsl.expected.glsl | 4 +- .../loop_call_with_loop.wgsl.expected.glsl | 3 +- .../loop_call_with_no_loop.wgsl.expected.glsl | 3 +- .../loop_types_all.wgsl.expected.glsl | 2 +- .../loop_types_repeated.wgsl.expected.glsl | 2 +- .../loop_types_some.wgsl.expected.glsl | 2 +- .../no_loop.wgsl.expected.glsl | 2 +- test/bug/tint/1046.wgsl.expected.glsl | 11 +- test/bug/tint/1064.wgsl.expected.glsl | 2 +- test/bug/tint/1076.wgsl.expected.glsl | 8 +- test/bug/tint/1081.wgsl.expected.glsl | 3 +- test/bug/tint/1083.wgsl.expected.glsl | 2 +- test/bug/tint/1086.wgsl.expected.glsl | 3 +- test/bug/tint/1088.spvasm.expected.glsl | 8 +- test/bug/tint/1113.wgsl.expected.glsl | 22 +- test/bug/tint/1121.wgsl.expected.glsl | 6 +- test/bug/tint/1136.wgsl.expected.glsl | 5 +- test/bug/tint/1321.wgsl.expected.glsl | 2 +- test/bug/tint/1369.wgsl.expected.glsl | 2 +- test/bug/tint/1385.wgsl.expected.glsl | 4 +- test/bug/tint/219.spvasm.expected.glsl | 2 +- test/bug/tint/221.wgsl.expected.glsl | 3 +- test/bug/tint/292.wgsl.expected.glsl | 3 +- test/bug/tint/294.wgsl.expected.glsl | 3 +- test/bug/tint/369.wgsl.expected.glsl | 4 +- test/bug/tint/403.wgsl.expected.glsl | 7 +- test/bug/tint/413.spvasm.expected.glsl | 3 +- test/bug/tint/453.wgsl.expected.glsl | 3 +- test/bug/tint/492.wgsl.expected.glsl | 3 +- test/bug/tint/534.wgsl.expected.glsl | 4 +- test/bug/tint/744.wgsl.expected.glsl | 3 +- test/bug/tint/749.spvasm.expected.glsl | 8 +- test/bug/tint/757.wgsl.expected.glsl | 5 +- test/bug/tint/764.wgsl.expected.glsl | 4 +- test/bug/tint/782.wgsl.expected.glsl | 4 +- test/bug/tint/824.wgsl.expected.glsl | 7 +- test/bug/tint/825.wgsl.expected.glsl | 4 +- test/bug/tint/827.wgsl.expected.glsl | 6 +- test/bug/tint/870.spvasm.expected.glsl | 4 +- test/bug/tint/913.wgsl.expected.glsl | 4 +- test/bug/tint/914.wgsl.expected.glsl | 6 +- test/bug/tint/922.wgsl.expected.glsl | 16 +- test/bug/tint/926.wgsl.expected.glsl | 4 +- test/bug/tint/942.wgsl.expected.glsl | 8 +- test/bug/tint/943.spvasm.expected.glsl | 14 +- test/bug/tint/948.wgsl.expected.glsl | 13 +- test/bug/tint/949.wgsl.expected.glsl | 17 +- test/bug/tint/951.spvasm.expected.glsl | 5 +- test/bug/tint/959.wgsl.expected.glsl | 9 +- test/bug/tint/977.spvasm.expected.glsl | 7 +- test/bug/tint/978.wgsl.expected.glsl | 6 +- test/bug/tint/980.wgsl.expected.glsl | 4 +- test/bug/tint/990.wgsl.expected.glsl | 4 +- test/bug/tint/992.wgsl.expected.glsl | 2 +- test/bug/tint/993.wgsl.expected.glsl | 4 +- test/bug/tint/998.wgsl.expected.glsl | 4 +- .../add/mat3x3-mat3x3/f32.wgsl.expected.glsl | 2 +- .../add/scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../add/scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../add/scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../add/scalar-vec3/f32.wgsl.expected.glsl | 2 +- .../add/scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../add/scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../add/vec3-scalar/f32.wgsl.expected.glsl | 2 +- .../add/vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../add/vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../add/vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../add/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../add/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../bit-and/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../bit-and/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../bit-or/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../bit-or/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../bit-xor/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../bit-xor/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../div/scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../div/scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../div/scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../div/scalar-vec3/f32.wgsl.expected.glsl | 2 +- .../div/scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../div/scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../div/vec3-scalar/f32.wgsl.expected.glsl | 2 +- .../div/vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../div/vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../div/vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../div/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../div/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../scalar-vec3/f32.wgsl.expected.glsl | 2 +- .../scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../vec3-scalar/f32.wgsl.expected.glsl | 2 +- .../vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../scalar-vec3/f32.wgsl.expected.glsl | 2 +- .../scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../vec3-scalar/f32.wgsl.expected.glsl | 2 +- .../vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../scalar-vec3/f32.wgsl.expected.glsl | 2 +- .../scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../vec3-scalar/f32.wgsl.expected.glsl | 2 +- .../vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../vector-vector/i32.wgsl.expected.glsl | 2 +- .../vector-vector/u32.wgsl.expected.glsl | 2 +- .../mod/scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../mod/scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../mod/scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../mod/vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../mod/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../mod/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../mul/mat2x4-mat4x2/f32.wgsl.expected.glsl | 2 +- .../mul/mat3x2-vec3/f32.wgsl.expected.glsl | 2 +- .../mul/mat3x3-mat3x3/f32.wgsl.expected.glsl | 2 +- .../mul/mat3x3-vec3/f32.wgsl.expected.glsl | 2 +- .../mul/mat4x2-mat2x4/f32.wgsl.expected.glsl | 2 +- .../mul/scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../mul/scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../mul/scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../mul/scalar-vec3/f32.wgsl.expected.glsl | 2 +- .../mul/scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../mul/scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../mul/vec3-mat3x3/f32.wgsl.expected.glsl | 2 +- .../mul/vec3-mat4x3/f32.wgsl.expected.glsl | 2 +- .../mul/vec3-scalar/f32.wgsl.expected.glsl | 2 +- .../mul/vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../mul/vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../mul/vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../mul/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../mul/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../vector-vector/i32.wgsl.expected.glsl | 2 +- .../vector-vector/u32.wgsl.expected.glsl | 2 +- .../sub/mat3x3-mat3x3/f32.wgsl.expected.glsl | 2 +- .../sub/scalar-scalar/f32.wgsl.expected.glsl | 2 +- .../sub/scalar-scalar/i32.wgsl.expected.glsl | 2 +- .../sub/scalar-scalar/u32.wgsl.expected.glsl | 2 +- .../sub/scalar-vec3/f32.wgsl.expected.glsl | 2 +- .../sub/scalar-vec3/i32.wgsl.expected.glsl | 2 +- .../sub/scalar-vec3/u32.wgsl.expected.glsl | 2 +- .../sub/vec3-scalar/f32.wgsl.expected.glsl | 2 +- .../sub/vec3-scalar/i32.wgsl.expected.glsl | 2 +- .../sub/vec3-scalar/u32.wgsl.expected.glsl | 2 +- .../sub/vec3-vec3/f32.wgsl.expected.glsl | 2 +- .../sub/vec3-vec3/i32.wgsl.expected.glsl | 2 +- .../sub/vec3-vec3/u32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/f32-f32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/f32-i32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/f32-u32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/i32-f32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/i32-i32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/i32-u32.wgsl.expected.glsl | 2 +- .../scalar/i32min-u32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/u32-f32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/u32-i32.wgsl.expected.glsl | 2 +- .../bitcast/scalar/u32-u32.wgsl.expected.glsl | 2 +- .../bitcast/vector/f32-f32.wgsl.expected.glsl | 2 +- .../bitcast/vector/f32-i32.wgsl.expected.glsl | 2 +- .../bitcast/vector/f32-u32.wgsl.expected.glsl | 2 +- .../bitcast/vector/i32-f32.wgsl.expected.glsl | 2 +- .../bitcast/vector/i32-i32.wgsl.expected.glsl | 2 +- .../bitcast/vector/i32-u32.wgsl.expected.glsl | 2 +- .../bitcast/vector/u32-f32.wgsl.expected.glsl | 2 +- .../bitcast/vector/u32-i32.wgsl.expected.glsl | 2 +- .../bitcast/vector/u32-u32.wgsl.expected.glsl | 2 +- .../let/let/literal/array.wgsl.expected.glsl | 4 +- .../let/let/literal/matrix.wgsl.expected.glsl | 4 +- .../let/let/literal/vector.wgsl.expected.glsl | 4 +- .../let/let/param/array.wgsl.expected.glsl | 4 +- .../let/let/param/matrix.wgsl.expected.glsl | 4 +- .../let/let/param/vector.wgsl.expected.glsl | 4 +- .../let/literal/array.wgsl.expected.glsl | 4 +- .../let/literal/matrix.wgsl.expected.glsl | 4 +- .../let/literal/vector.wgsl.expected.glsl | 4 +- .../index/let/param/array.wgsl.expected.glsl | 4 +- .../index/let/param/matrix.wgsl.expected.glsl | 4 +- .../index/let/param/vector.wgsl.expected.glsl | 4 +- .../let/var/literal/array.wgsl.expected.glsl | 4 +- .../let/var/literal/matrix.wgsl.expected.glsl | 4 +- .../let/var/literal/vector.wgsl.expected.glsl | 4 +- .../var/let/literal/array.wgsl.expected.glsl | 4 +- .../var/let/literal/matrix.wgsl.expected.glsl | 4 +- .../var/let/literal/vector.wgsl.expected.glsl | 4 +- .../var/let/param/array.wgsl.expected.glsl | 4 +- .../var/let/param/matrix.wgsl.expected.glsl | 4 +- .../var/let/param/vector.wgsl.expected.glsl | 4 +- .../var/literal/array.wgsl.expected.glsl | 4 +- .../var/literal/matrix.wgsl.expected.glsl | 4 +- .../var/literal/vector.wgsl.expected.glsl | 4 +- .../index/var/param/array.wgsl.expected.glsl | 4 +- .../index/var/param/matrix.wgsl.expected.glsl | 4 +- .../index/var/param/vector.wgsl.expected.glsl | 4 +- .../literals/-inf.spvasm.expected.glsl | 4 +- .../literals/inf.spvasm.expected.glsl | 4 +- .../literals/intmin.wgsl.expected.glsl | 4 +- .../literals/nan.spvasm.expected.glsl | 4 +- .../splat/call/bool.wgsl.expected.glsl | 4 +- .../splat/call/f32.wgsl.expected.glsl | 4 +- .../splat/call/i32.wgsl.expected.glsl | 4 +- .../splat/call/u32.wgsl.expected.glsl | 4 +- .../splat/expression/bool.wgsl.expected.glsl | 4 +- .../splat/expression/f32.wgsl.expected.glsl | 4 +- .../splat/expression/i32.wgsl.expected.glsl | 4 +- .../splat/expression/u32.wgsl.expected.glsl | 4 +- .../splat/immediate/bool.wgsl.expected.glsl | 4 +- .../splat/immediate/f32.wgsl.expected.glsl | 4 +- .../splat/immediate/i32.wgsl.expected.glsl | 4 +- .../splat/immediate/u32.wgsl.expected.glsl | 4 +- .../splat/var/bool.wgsl.expected.glsl | 4 +- .../splat/var/f32.wgsl.expected.glsl | 4 +- .../splat/var/i32.wgsl.expected.glsl | 4 +- .../splat/var/u32.wgsl.expected.glsl | 4 +- .../splat/with_swizzle/f32.wgsl.expected.glsl | 4 +- .../read/packed_vec3/f32.wgsl.expected.glsl | 4 +- .../read/packed_vec3/i32.wgsl.expected.glsl | 4 +- .../read/packed_vec3/u32.wgsl.expected.glsl | 4 +- .../swizzle/read/vec3/f32.wgsl.expected.glsl | 5 +- .../swizzle/read/vec3/i32.wgsl.expected.glsl | 5 +- .../swizzle/read/vec3/u32.wgsl.expected.glsl | 5 +- .../write/packed_vec3/f32.wgsl.expected.glsl | 5 +- .../write/packed_vec3/i32.wgsl.expected.glsl | 5 +- .../write/packed_vec3/u32.wgsl.expected.glsl | 5 +- .../swizzle/write/vec3/f32.wgsl.expected.glsl | 5 +- .../swizzle/write/vec3/i32.wgsl.expected.glsl | 5 +- .../swizzle/write/vec3/u32.wgsl.expected.glsl | 5 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../explicit/scalars/f32.wgsl.expected.glsl | 3 +- .../explicit/vectors/f32.wgsl.expected.glsl | 3 +- .../inferred/scalars/f32.wgsl.expected.glsl | 3 +- .../inferred/vectors/f32.wgsl.expected.glsl | 3 +- .../vec2/explicit/bool.wgsl.expected.glsl | 3 +- .../vec2/explicit/f32.wgsl.expected.glsl | 3 +- .../vec2/explicit/i32.wgsl.expected.glsl | 3 +- .../vec2/explicit/u32.wgsl.expected.glsl | 3 +- .../vec2/inferred/bool.wgsl.expected.glsl | 3 +- .../vec2/inferred/f32.wgsl.expected.glsl | 3 +- .../vec2/inferred/i32.wgsl.expected.glsl | 3 +- .../vec2/inferred/u32.wgsl.expected.glsl | 3 +- .../vec3/explicit/bool.wgsl.expected.glsl | 3 +- .../vec3/explicit/f32.wgsl.expected.glsl | 3 +- .../vec3/explicit/i32.wgsl.expected.glsl | 3 +- .../vec3/explicit/u32.wgsl.expected.glsl | 3 +- .../vec4/explicit/bool.wgsl.expected.glsl | 3 +- .../vec4/explicit/f32.wgsl.expected.glsl | 3 +- .../vec4/explicit/i32.wgsl.expected.glsl | 3 +- .../vec4/explicit/u32.wgsl.expected.glsl | 3 +- .../complement/complement.wgsl.expected.glsl | 4 +- .../unary/negate/negate.wgsl.expected.glsl | 4 +- .../zero_init/array/bool.wgsl.expected.glsl | 4 +- .../zero_init/array/f32.wgsl.expected.glsl | 4 +- .../zero_init/array/i32.wgsl.expected.glsl | 4 +- .../zero_init/array/struct.wgsl.expected.glsl | 4 +- .../zero_init/array/u32.wgsl.expected.glsl | 4 +- .../zero_init/mat2x2/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat2x3/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat2x4/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat3x2/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat3x3/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat3x4/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat4x2/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat4x3/f32.wgsl.expected.glsl | 4 +- .../zero_init/mat4x4/f32.wgsl.expected.glsl | 4 +- .../zero_init/scalar/bool.wgsl.expected.glsl | 4 +- .../zero_init/scalar/f32.wgsl.expected.glsl | 4 +- .../zero_init/scalar/i32.wgsl.expected.glsl | 4 +- .../zero_init/scalar/u32.wgsl.expected.glsl | 4 +- .../zero_init/struct/array.wgsl.expected.glsl | 4 +- .../struct/scalar.wgsl.expected.glsl | 4 +- .../zero_init/vec2/bool.wgsl.expected.glsl | 4 +- .../zero_init/vec2/f32.wgsl.expected.glsl | 4 +- .../zero_init/vec2/i32.wgsl.expected.glsl | 4 +- .../zero_init/vec2/u32.wgsl.expected.glsl | 4 +- .../zero_init/vec3/bool.wgsl.expected.glsl | 4 +- .../zero_init/vec3/f32.wgsl.expected.glsl | 4 +- .../zero_init/vec3/i32.wgsl.expected.glsl | 4 +- .../zero_init/vec3/u32.wgsl.expected.glsl | 4 +- .../zero_init/vec4/bool.wgsl.expected.glsl | 4 +- .../zero_init/vec4/f32.wgsl.expected.glsl | 4 +- .../zero_init/vec4/i32.wgsl.expected.glsl | 4 +- .../zero_init/vec4/u32.wgsl.expected.glsl | 4 +- .../double/alias.wgsl.expected.glsl | 4 +- .../underscore/double/fn.wgsl.expected.glsl | 4 +- .../underscore/double/let.wgsl.expected.glsl | 5 +- .../double/parameter.wgsl.expected.glsl | 4 +- .../double/struct.wgsl.expected.glsl | 5 +- .../underscore/double/var.wgsl.expected.glsl | 5 +- .../prefix/lower/alias.wgsl.expected.glsl | 4 +- .../prefix/lower/fn.wgsl.expected.glsl | 4 +- .../prefix/lower/let.wgsl.expected.glsl | 5 +- .../prefix/lower/parameter.wgsl.expected.glsl | 4 +- .../prefix/lower/struct.wgsl.expected.glsl | 5 +- .../prefix/lower/var.wgsl.expected.glsl | 5 +- .../prefix/upper/alias.wgsl.expected.glsl | 4 +- .../prefix/upper/fn.wgsl.expected.glsl | 4 +- .../prefix/upper/let.wgsl.expected.glsl | 5 +- .../prefix/upper/parameter.wgsl.expected.glsl | 4 +- .../prefix/upper/struct.wgsl.expected.glsl | 5 +- .../prefix/upper/var.wgsl.expected.glsl | 5 +- .../complex_via_let.wgsl.expected.glsl | 8 +- ...mplex_via_let_no_struct.wgsl.expected.glsl | 8 +- .../arrayLength/deprecated.wgsl.expected.glsl | 8 +- .../arrayLength/simple.wgsl.expected.glsl | 8 +- .../simple_no_struct.wgsl.expected.glsl | 8 +- .../arrayLength/via_let.wgsl.expected.glsl | 8 +- .../via_let_complex.wgsl.expected.glsl | 8 +- ...a_let_complex_no_struct.wgsl.expected.glsl | 8 +- .../via_let_no_struct.wgsl.expected.glsl | 8 +- test/intrinsics/degrees.spvasm.expected.glsl | 2 +- test/intrinsics/frexp.wgsl.expected.glsl | 7 +- .../gen/abs/002533.wgsl.expected.glsl | 7 +- .../gen/abs/005174.wgsl.expected.glsl | 7 +- .../gen/abs/1ce782.wgsl.expected.glsl | 7 +- .../gen/abs/1e9d53.wgsl.expected.glsl | 7 +- .../gen/abs/467cd1.wgsl.expected.glsl | 7 +- .../gen/abs/4ad288.wgsl.expected.glsl | 7 +- .../gen/abs/5ad50a.wgsl.expected.glsl | 7 +- .../gen/abs/7326de.wgsl.expected.glsl | 7 +- .../gen/abs/7f28e6.wgsl.expected.glsl | 7 +- .../gen/abs/7faa9e.wgsl.expected.glsl | 7 +- .../gen/abs/9c80a6.wgsl.expected.glsl | 7 +- .../gen/abs/b96037.wgsl.expected.glsl | 7 +- .../gen/acos/489247.wgsl.expected.glsl | 7 +- .../gen/acos/8e2acf.wgsl.expected.glsl | 7 +- .../gen/acos/a610c4.wgsl.expected.glsl | 7 +- .../gen/acos/dfc915.wgsl.expected.glsl | 7 +- .../gen/all/353d6a.wgsl.expected.glsl | 7 +- .../gen/all/986c7b.wgsl.expected.glsl | 7 +- .../gen/all/bd2dba.wgsl.expected.glsl | 7 +- .../gen/all/f46790.wgsl.expected.glsl | 7 +- .../gen/any/083428.wgsl.expected.glsl | 7 +- .../gen/any/0e3e58.wgsl.expected.glsl | 7 +- .../gen/any/2ab91a.wgsl.expected.glsl | 7 +- .../gen/any/e755c1.wgsl.expected.glsl | 7 +- .../gen/arrayLength/1588cd.wgsl.expected.glsl | 25 +- .../gen/arrayLength/61b1c7.wgsl.expected.glsl | 25 +- .../gen/arrayLength/a0f5ca.wgsl.expected.glsl | 25 +- .../gen/arrayLength/cdd123.wgsl.expected.glsl | 25 +- .../gen/arrayLength/cfca0a.wgsl.expected.glsl | 25 +- .../gen/arrayLength/eb510f.wgsl.expected.glsl | 25 +- .../gen/asin/064953.wgsl.expected.glsl | 7 +- .../gen/asin/7b6a44.wgsl.expected.glsl | 7 +- .../gen/asin/8cd9c9.wgsl.expected.glsl | 7 +- .../gen/asin/c0c272.wgsl.expected.glsl | 7 +- .../gen/atan/02979a.wgsl.expected.glsl | 7 +- .../gen/atan/331e6d.wgsl.expected.glsl | 7 +- .../gen/atan/a8b696.wgsl.expected.glsl | 7 +- .../gen/atan/ad96e4.wgsl.expected.glsl | 7 +- .../gen/atan2/57fb13.wgsl.expected.glsl | 7 +- .../gen/atan2/96057c.wgsl.expected.glsl | 7 +- .../gen/atan2/a70d0d.wgsl.expected.glsl | 7 +- .../gen/atan2/ae713e.wgsl.expected.glsl | 7 +- .../gen/atomicAdd/794055.wgsl.expected.glsl | 4 +- .../gen/atomicAdd/8a199a.wgsl.expected.glsl | 6 +- .../gen/atomicAdd/d32fe4.wgsl.expected.glsl | 6 +- .../gen/atomicAdd/d5db1d.wgsl.expected.glsl | 4 +- .../gen/atomicAnd/152966.wgsl.expected.glsl | 6 +- .../gen/atomicAnd/34edd3.wgsl.expected.glsl | 4 +- .../gen/atomicAnd/45a819.wgsl.expected.glsl | 4 +- .../gen/atomicAnd/85a8d9.wgsl.expected.glsl | 6 +- .../12871c.wgsl.expected.glsl | 6 +- .../6673da.wgsl.expected.glsl | 6 +- .../89ea3b.wgsl.expected.glsl | 4 +- .../b2ab2c.wgsl.expected.glsl | 4 +- .../atomicExchange/0a5dca.wgsl.expected.glsl | 4 +- .../atomicExchange/d59712.wgsl.expected.glsl | 6 +- .../atomicExchange/e114ba.wgsl.expected.glsl | 4 +- .../atomicExchange/f2e22f.wgsl.expected.glsl | 6 +- .../gen/atomicLoad/0806ad.wgsl.expected.glsl | 6 +- .../gen/atomicLoad/361bf1.wgsl.expected.glsl | 4 +- .../gen/atomicLoad/afcc03.wgsl.expected.glsl | 4 +- .../gen/atomicLoad/fe6cc3.wgsl.expected.glsl | 6 +- .../gen/atomicMax/51b9be.wgsl.expected.glsl | 6 +- .../gen/atomicMax/92aa72.wgsl.expected.glsl | 6 +- .../gen/atomicMax/a89cc3.wgsl.expected.glsl | 4 +- .../gen/atomicMax/beccfc.wgsl.expected.glsl | 4 +- .../gen/atomicMin/278235.wgsl.expected.glsl | 4 +- .../gen/atomicMin/69d383.wgsl.expected.glsl | 4 +- .../gen/atomicMin/8e38dc.wgsl.expected.glsl | 6 +- .../gen/atomicMin/c67a74.wgsl.expected.glsl | 6 +- .../gen/atomicOr/5e3d61.wgsl.expected.glsl | 4 +- .../gen/atomicOr/5e95d4.wgsl.expected.glsl | 6 +- .../gen/atomicOr/8d96a0.wgsl.expected.glsl | 6 +- .../gen/atomicOr/d09248.wgsl.expected.glsl | 4 +- .../gen/atomicStore/726882.wgsl.expected.glsl | 4 +- .../gen/atomicStore/8bea94.wgsl.expected.glsl | 4 +- .../gen/atomicStore/cdc29e.wgsl.expected.glsl | 6 +- .../gen/atomicStore/d1e9a6.wgsl.expected.glsl | 6 +- .../gen/atomicSub/051100.wgsl.expected.glsl | 6 +- .../gen/atomicSub/0d26c2.wgsl.expected.glsl | 4 +- .../gen/atomicSub/15bfc9.wgsl.expected.glsl | 6 +- .../gen/atomicSub/77883a.wgsl.expected.glsl | 4 +- .../gen/atomicXor/54510e.wgsl.expected.glsl | 6 +- .../gen/atomicXor/75dc95.wgsl.expected.glsl | 4 +- .../gen/atomicXor/c1b78c.wgsl.expected.glsl | 6 +- .../gen/atomicXor/c8e6be.wgsl.expected.glsl | 4 +- .../gen/ceil/34064b.wgsl.expected.glsl | 7 +- .../gen/ceil/678655.wgsl.expected.glsl | 7 +- .../gen/ceil/96f597.wgsl.expected.glsl | 7 +- .../gen/ceil/b74c16.wgsl.expected.glsl | 7 +- .../gen/clamp/0acf8f.wgsl.expected.glsl | 7 +- .../gen/clamp/1a32e3.wgsl.expected.glsl | 7 +- .../gen/clamp/2bd567.wgsl.expected.glsl | 7 +- .../gen/clamp/2bde41.wgsl.expected.glsl | 7 +- .../gen/clamp/548fc7.wgsl.expected.glsl | 7 +- .../gen/clamp/5f0819.wgsl.expected.glsl | 7 +- .../gen/clamp/6c1749.wgsl.expected.glsl | 7 +- .../gen/clamp/7706d7.wgsl.expected.glsl | 7 +- .../gen/clamp/867397.wgsl.expected.glsl | 7 +- .../gen/clamp/a2de25.wgsl.expected.glsl | 7 +- .../gen/clamp/b07c65.wgsl.expected.glsl | 7 +- .../gen/clamp/bd43ce.wgsl.expected.glsl | 7 +- .../gen/cos/16dc15.wgsl.expected.glsl | 7 +- .../gen/cos/29d66d.wgsl.expected.glsl | 7 +- .../gen/cos/c3b486.wgsl.expected.glsl | 7 +- .../gen/cos/c5c28e.wgsl.expected.glsl | 7 +- .../gen/cosh/377652.wgsl.expected.glsl | 7 +- .../gen/cosh/c13756.wgsl.expected.glsl | 7 +- .../gen/cosh/da92dd.wgsl.expected.glsl | 7 +- .../gen/cosh/e0c1de.wgsl.expected.glsl | 7 +- .../countOneBits/0d0e46.wgsl.expected.glsl | 7 +- .../countOneBits/0f7980.wgsl.expected.glsl | 7 +- .../countOneBits/65d2ae.wgsl.expected.glsl | 7 +- .../countOneBits/690cfc.wgsl.expected.glsl | 7 +- .../countOneBits/94fd81.wgsl.expected.glsl | 7 +- .../countOneBits/ae44f9.wgsl.expected.glsl | 7 +- .../countOneBits/af90e2.wgsl.expected.glsl | 7 +- .../countOneBits/fd88b2.wgsl.expected.glsl | 7 +- .../gen/cross/041cb0.wgsl.expected.glsl | 7 +- .../gen/degrees/0d170c.wgsl.expected.glsl | 7 +- .../gen/degrees/1ad5df.wgsl.expected.glsl | 7 +- .../gen/degrees/2af623.wgsl.expected.glsl | 7 +- .../gen/degrees/51f705.wgsl.expected.glsl | 7 +- .../gen/determinant/2b62ba.wgsl.expected.glsl | 7 +- .../gen/determinant/a0a87c.wgsl.expected.glsl | 7 +- .../gen/determinant/e19305.wgsl.expected.glsl | 7 +- .../gen/distance/0657d4.wgsl.expected.glsl | 7 +- .../gen/distance/9646ea.wgsl.expected.glsl | 7 +- .../gen/distance/aa4055.wgsl.expected.glsl | 7 +- .../gen/distance/cfed73.wgsl.expected.glsl | 7 +- .../gen/dot/0c577b.wgsl.expected.glsl | 7 +- .../gen/dot/7548a0.wgsl.expected.glsl | 7 +- .../gen/dot/883f0e.wgsl.expected.glsl | 7 +- .../gen/dot/97c7ee.wgsl.expected.glsl | 7 +- .../gen/dot/ba4246.wgsl.expected.glsl | 7 +- .../gen/dot/e994c7.wgsl.expected.glsl | 7 +- .../gen/dot/ef6b1d.wgsl.expected.glsl | 7 +- .../gen/dot/f1312c.wgsl.expected.glsl | 7 +- .../gen/dot/fc5f7c.wgsl.expected.glsl | 7 +- .../gen/dpdx/0763f7.wgsl.expected.glsl | 2 +- .../gen/dpdx/99edb1.wgsl.expected.glsl | 2 +- .../gen/dpdx/c487fa.wgsl.expected.glsl | 2 +- .../gen/dpdx/e263de.wgsl.expected.glsl | 2 +- .../gen/dpdxCoarse/029152.wgsl.expected.glsl | 2 +- .../gen/dpdxCoarse/9581cf.wgsl.expected.glsl | 2 +- .../gen/dpdxCoarse/c28641.wgsl.expected.glsl | 2 +- .../gen/dpdxCoarse/f64d7b.wgsl.expected.glsl | 2 +- .../gen/dpdxFine/8c5069.wgsl.expected.glsl | 2 +- .../gen/dpdxFine/9631de.wgsl.expected.glsl | 2 +- .../gen/dpdxFine/f401a2.wgsl.expected.glsl | 2 +- .../gen/dpdxFine/f92fb6.wgsl.expected.glsl | 2 +- .../gen/dpdy/699a05.wgsl.expected.glsl | 2 +- .../gen/dpdy/7f8d84.wgsl.expected.glsl | 2 +- .../gen/dpdy/a8b56e.wgsl.expected.glsl | 2 +- .../gen/dpdy/feb40f.wgsl.expected.glsl | 2 +- .../gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl | 2 +- .../gen/dpdyCoarse/445d24.wgsl.expected.glsl | 2 +- .../gen/dpdyCoarse/870a7e.wgsl.expected.glsl | 2 +- .../gen/dpdyCoarse/ae1873.wgsl.expected.glsl | 2 +- .../gen/dpdyFine/1fb7ab.wgsl.expected.glsl | 2 +- .../gen/dpdyFine/6eb673.wgsl.expected.glsl | 2 +- .../gen/dpdyFine/d0a648.wgsl.expected.glsl | 2 +- .../gen/dpdyFine/df33aa.wgsl.expected.glsl | 2 +- .../gen/exp/0f70eb.wgsl.expected.glsl | 7 +- .../gen/exp/1951e7.wgsl.expected.glsl | 7 +- .../gen/exp/771fd2.wgsl.expected.glsl | 7 +- .../gen/exp/d98450.wgsl.expected.glsl | 7 +- .../gen/exp2/1f8680.wgsl.expected.glsl | 7 +- .../gen/exp2/a9d0a7.wgsl.expected.glsl | 7 +- .../gen/exp2/d6777c.wgsl.expected.glsl | 7 +- .../gen/exp2/dea523.wgsl.expected.glsl | 7 +- .../gen/faceForward/5afbd5.wgsl.expected.glsl | 7 +- .../gen/faceForward/b316e5.wgsl.expected.glsl | 7 +- .../gen/faceForward/e6908b.wgsl.expected.glsl | 7 +- .../gen/floor/3bccc4.wgsl.expected.glsl | 7 +- .../gen/floor/5fc9ac.wgsl.expected.glsl | 7 +- .../gen/floor/60d7ea.wgsl.expected.glsl | 7 +- .../gen/floor/66f154.wgsl.expected.glsl | 7 +- .../gen/fma/26a7a9.wgsl.expected.glsl | 7 +- .../gen/fma/6a3283.wgsl.expected.glsl | 7 +- .../gen/fma/c10ba3.wgsl.expected.glsl | 7 +- .../gen/fma/e17c5c.wgsl.expected.glsl | 7 +- .../gen/fract/8bc1e9.wgsl.expected.glsl | 7 +- .../gen/fract/943cb1.wgsl.expected.glsl | 7 +- .../gen/fract/a49758.wgsl.expected.glsl | 7 +- .../gen/fract/fa5c71.wgsl.expected.glsl | 7 +- .../gen/frexp/368997.wgsl.expected.glsl | 22 +- .../gen/frexp/3c4f48.wgsl.expected.glsl | 22 +- .../gen/frexp/4bdfc7.wgsl.expected.glsl | 22 +- .../gen/frexp/eabd40.wgsl.expected.glsl | 22 +- .../gen/fwidth/5d1b39.wgsl.expected.glsl | 2 +- .../gen/fwidth/b83ebb.wgsl.expected.glsl | 2 +- .../gen/fwidth/d2ab9a.wgsl.expected.glsl | 2 +- .../gen/fwidth/df38ef.wgsl.expected.glsl | 2 +- .../fwidthCoarse/159c8a.wgsl.expected.glsl | 2 +- .../fwidthCoarse/1e59d9.wgsl.expected.glsl | 2 +- .../fwidthCoarse/4e4fc4.wgsl.expected.glsl | 2 +- .../fwidthCoarse/e653f7.wgsl.expected.glsl | 2 +- .../gen/fwidthFine/523fdc.wgsl.expected.glsl | 2 +- .../gen/fwidthFine/68f4ef.wgsl.expected.glsl | 2 +- .../gen/fwidthFine/f1742d.wgsl.expected.glsl | 2 +- .../gen/fwidthFine/ff6aa0.wgsl.expected.glsl | 2 +- .../gen/ignore/51aeb7.wgsl.expected.glsl | 7 +- .../gen/ignore/6698df.wgsl.expected.glsl | 7 +- .../gen/ignore/d91a2f.wgsl.expected.glsl | 7 +- .../gen/ignore/f414a6.wgsl.expected.glsl | 7 +- .../gen/inverseSqrt/84407e.wgsl.expected.glsl | 7 +- .../gen/inverseSqrt/8f2bd2.wgsl.expected.glsl | 7 +- .../gen/inverseSqrt/b197b1.wgsl.expected.glsl | 7 +- .../gen/inverseSqrt/c22347.wgsl.expected.glsl | 7 +- .../gen/isFinite/34d32b.wgsl.expected.glsl | 7 +- .../gen/isFinite/426f9f.wgsl.expected.glsl | 7 +- .../gen/isFinite/8a23ad.wgsl.expected.glsl | 7 +- .../gen/isFinite/f31987.wgsl.expected.glsl | 7 +- .../gen/isInf/666f2a.wgsl.expected.glsl | 7 +- .../gen/isInf/7bd98f.wgsl.expected.glsl | 7 +- .../gen/isInf/7e81b5.wgsl.expected.glsl | 7 +- .../gen/isInf/a46d6f.wgsl.expected.glsl | 7 +- .../gen/isNan/1280ab.wgsl.expected.glsl | 7 +- .../gen/isNan/4d280d.wgsl.expected.glsl | 7 +- .../gen/isNan/67ecd3.wgsl.expected.glsl | 7 +- .../gen/isNan/e4978e.wgsl.expected.glsl | 7 +- .../gen/isNormal/863dcd.wgsl.expected.glsl | 7 +- .../gen/isNormal/b00ab1.wgsl.expected.glsl | 7 +- .../gen/isNormal/c286b7.wgsl.expected.glsl | 7 +- .../gen/isNormal/c6e880.wgsl.expected.glsl | 7 +- .../gen/ldexp/a31cdc.wgsl.expected.glsl | 7 +- .../gen/ldexp/abd718.wgsl.expected.glsl | 7 +- .../gen/ldexp/cc9cde.wgsl.expected.glsl | 7 +- .../gen/ldexp/db8b49.wgsl.expected.glsl | 7 +- .../gen/length/056071.wgsl.expected.glsl | 7 +- .../gen/length/602a17.wgsl.expected.glsl | 7 +- .../gen/length/afde8b.wgsl.expected.glsl | 7 +- .../gen/length/becebf.wgsl.expected.glsl | 7 +- .../gen/log/3da25a.wgsl.expected.glsl | 7 +- .../gen/log/7114a6.wgsl.expected.glsl | 7 +- .../gen/log/b2ce28.wgsl.expected.glsl | 7 +- .../gen/log/f4c570.wgsl.expected.glsl | 7 +- .../gen/log2/4036ed.wgsl.expected.glsl | 7 +- .../gen/log2/902988.wgsl.expected.glsl | 7 +- .../gen/log2/adb233.wgsl.expected.glsl | 7 +- .../gen/log2/aea659.wgsl.expected.glsl | 7 +- .../gen/max/0c0aae.wgsl.expected.glsl | 7 +- .../gen/max/25eafe.wgsl.expected.glsl | 7 +- .../gen/max/320815.wgsl.expected.glsl | 7 +- .../gen/max/44a39d.wgsl.expected.glsl | 7 +- .../gen/max/453e04.wgsl.expected.glsl | 7 +- .../gen/max/462050.wgsl.expected.glsl | 7 +- .../gen/max/4883ac.wgsl.expected.glsl | 7 +- .../gen/max/85e6bc.wgsl.expected.glsl | 7 +- .../gen/max/a93419.wgsl.expected.glsl | 7 +- .../gen/max/b1b73a.wgsl.expected.glsl | 7 +- .../gen/max/ce7c30.wgsl.expected.glsl | 7 +- .../gen/max/e8192f.wgsl.expected.glsl | 7 +- .../gen/min/03c7e3.wgsl.expected.glsl | 7 +- .../gen/min/0dc614.wgsl.expected.glsl | 7 +- .../gen/min/3941e1.wgsl.expected.glsl | 7 +- .../gen/min/46c5d3.wgsl.expected.glsl | 7 +- .../gen/min/82b28f.wgsl.expected.glsl | 7 +- .../gen/min/93cfc4.wgsl.expected.glsl | 7 +- .../gen/min/a45171.wgsl.expected.glsl | 7 +- .../gen/min/aa28ad.wgsl.expected.glsl | 7 +- .../gen/min/af326d.wgsl.expected.glsl | 7 +- .../gen/min/c70bb7.wgsl.expected.glsl | 7 +- .../gen/min/c73147.wgsl.expected.glsl | 7 +- .../gen/min/c76fa6.wgsl.expected.glsl | 7 +- .../gen/mix/0c8c33.wgsl.expected.glsl | 7 +- .../gen/mix/1faeb1.wgsl.expected.glsl | 7 +- .../gen/mix/2fadab.wgsl.expected.glsl | 7 +- .../gen/mix/315264.wgsl.expected.glsl | 7 +- .../gen/mix/4f0b5e.wgsl.expected.glsl | 7 +- .../gen/mix/6f8adc.wgsl.expected.glsl | 7 +- .../gen/mix/c37ede.wgsl.expected.glsl | 7 +- .../gen/modf/180fed.wgsl.expected.glsl | 22 +- .../gen/modf/9b75f7.wgsl.expected.glsl | 22 +- .../gen/modf/ec2dbc.wgsl.expected.glsl | 22 +- .../gen/modf/f5f20d.wgsl.expected.glsl | 22 +- .../gen/normalize/64d8c0.wgsl.expected.glsl | 7 +- .../gen/normalize/9a0aab.wgsl.expected.glsl | 7 +- .../gen/normalize/fc2ef1.wgsl.expected.glsl | 7 +- .../pack2x16float/0e97b3.wgsl.expected.glsl | 7 +- .../pack2x16snorm/6c169b.wgsl.expected.glsl | 7 +- .../pack2x16unorm/0f08e4.wgsl.expected.glsl | 7 +- .../pack4x8snorm/4d22e7.wgsl.expected.glsl | 7 +- .../pack4x8unorm/95c456.wgsl.expected.glsl | 7 +- .../gen/pow/04a908.wgsl.expected.glsl | 7 +- .../gen/pow/46e029.wgsl.expected.glsl | 7 +- .../gen/pow/4a46c9.wgsl.expected.glsl | 7 +- .../gen/pow/e60ea5.wgsl.expected.glsl | 7 +- .../gen/radians/09b7fc.wgsl.expected.glsl | 7 +- .../gen/radians/61687a.wgsl.expected.glsl | 7 +- .../gen/radians/6b0ff2.wgsl.expected.glsl | 7 +- .../gen/radians/f96258.wgsl.expected.glsl | 7 +- .../gen/reflect/05357e.wgsl.expected.glsl | 7 +- .../gen/reflect/b61e10.wgsl.expected.glsl | 7 +- .../gen/reflect/f47fdb.wgsl.expected.glsl | 7 +- .../gen/refract/7e02e6.wgsl.expected.glsl | 7 +- .../gen/refract/cbc1d2.wgsl.expected.glsl | 7 +- .../gen/refract/cd905f.wgsl.expected.glsl | 7 +- .../gen/reverseBits/222177.wgsl.expected.glsl | 7 +- .../gen/reverseBits/35fea9.wgsl.expected.glsl | 7 +- .../gen/reverseBits/4dbd6f.wgsl.expected.glsl | 7 +- .../gen/reverseBits/7c4269.wgsl.expected.glsl | 7 +- .../gen/reverseBits/a6ccd4.wgsl.expected.glsl | 7 +- .../gen/reverseBits/c21bc1.wgsl.expected.glsl | 7 +- .../gen/reverseBits/e1f4c1.wgsl.expected.glsl | 7 +- .../gen/reverseBits/e31adf.wgsl.expected.glsl | 7 +- .../gen/round/106c0b.wgsl.expected.glsl | 7 +- .../gen/round/1c7897.wgsl.expected.glsl | 7 +- .../gen/round/52c84d.wgsl.expected.glsl | 7 +- .../gen/round/9edc38.wgsl.expected.glsl | 7 +- .../gen/select/00b848.wgsl.expected.glsl | 7 +- .../gen/select/01e2cd.wgsl.expected.glsl | 7 +- .../gen/select/087ea4.wgsl.expected.glsl | 7 +- .../gen/select/1e960b.wgsl.expected.glsl | 7 +- .../gen/select/266aff.wgsl.expected.glsl | 7 +- .../gen/select/28a27e.wgsl.expected.glsl | 7 +- .../gen/select/3c25ce.wgsl.expected.glsl | 7 +- .../gen/select/416e14.wgsl.expected.glsl | 7 +- .../gen/select/51b047.wgsl.expected.glsl | 7 +- .../gen/select/713567.wgsl.expected.glsl | 7 +- .../gen/select/78be5f.wgsl.expected.glsl | 7 +- .../gen/select/80a9a9.wgsl.expected.glsl | 7 +- .../gen/select/8fa62c.wgsl.expected.glsl | 7 +- .../gen/select/99f883.wgsl.expected.glsl | 7 +- .../gen/select/a2860e.wgsl.expected.glsl | 7 +- .../gen/select/ab069f.wgsl.expected.glsl | 7 +- .../gen/select/b04721.wgsl.expected.glsl | 7 +- .../gen/select/bb447f.wgsl.expected.glsl | 7 +- .../gen/select/bb8aae.wgsl.expected.glsl | 7 +- .../gen/select/bf3d29.wgsl.expected.glsl | 7 +- .../gen/select/c31f9e.wgsl.expected.glsl | 7 +- .../gen/select/c41bd1.wgsl.expected.glsl | 7 +- .../gen/select/c4a4ef.wgsl.expected.glsl | 7 +- .../gen/select/cb9301.wgsl.expected.glsl | 7 +- .../gen/select/e3e028.wgsl.expected.glsl | 7 +- .../gen/select/ebfea2.wgsl.expected.glsl | 7 +- .../gen/select/ed8a15.wgsl.expected.glsl | 7 +- .../gen/select/fb7e53.wgsl.expected.glsl | 7 +- .../gen/sign/159665.wgsl.expected.glsl | 7 +- .../gen/sign/b8f634.wgsl.expected.glsl | 7 +- .../gen/sign/d065d8.wgsl.expected.glsl | 7 +- .../gen/sign/dd790e.wgsl.expected.glsl | 7 +- .../gen/sin/01f241.wgsl.expected.glsl | 7 +- .../gen/sin/4e3979.wgsl.expected.glsl | 7 +- .../gen/sin/b78c91.wgsl.expected.glsl | 7 +- .../gen/sin/fc8bc4.wgsl.expected.glsl | 7 +- .../gen/sinh/445e33.wgsl.expected.glsl | 7 +- .../gen/sinh/7bb598.wgsl.expected.glsl | 7 +- .../gen/sinh/b9860e.wgsl.expected.glsl | 7 +- .../gen/sinh/c9a5eb.wgsl.expected.glsl | 7 +- .../gen/smoothStep/5f615b.wgsl.expected.glsl | 7 +- .../gen/smoothStep/658be3.wgsl.expected.glsl | 7 +- .../gen/smoothStep/c11eef.wgsl.expected.glsl | 7 +- .../gen/smoothStep/cb0bfb.wgsl.expected.glsl | 7 +- .../gen/sqrt/20c74e.wgsl.expected.glsl | 7 +- .../gen/sqrt/8c7024.wgsl.expected.glsl | 7 +- .../gen/sqrt/aa0d7a.wgsl.expected.glsl | 7 +- .../gen/sqrt/f8c59a.wgsl.expected.glsl | 7 +- .../gen/step/0b073b.wgsl.expected.glsl | 7 +- .../gen/step/19accd.wgsl.expected.glsl | 7 +- .../gen/step/334303.wgsl.expected.glsl | 7 +- .../gen/step/e2b337.wgsl.expected.glsl | 7 +- .../storageBarrier/d87211.wgsl.expected.glsl | 2 +- .../gen/tan/244e2a.wgsl.expected.glsl | 7 +- .../gen/tan/2f030e.wgsl.expected.glsl | 7 +- .../gen/tan/7ea104.wgsl.expected.glsl | 7 +- .../gen/tan/8ce3e9.wgsl.expected.glsl | 7 +- .../gen/tanh/5663c5.wgsl.expected.glsl | 7 +- .../gen/tanh/5724b3.wgsl.expected.glsl | 7 +- .../gen/tanh/9f9fb9.wgsl.expected.glsl | 7 +- .../gen/tanh/c15fdb.wgsl.expected.glsl | 7 +- .../002b2a.wgsl.expected.glsl | 10 +- .../012b82.wgsl.expected.glsl | 10 +- .../08753d.wgsl.expected.glsl | 10 +- .../0c4772.wgsl.expected.glsl | 10 +- .../0cce40.wgsl.expected.glsl | 10 +- .../0cf2ff.wgsl.expected.glsl | 10 +- .../0d8b7e.wgsl.expected.glsl | 10 +- .../0e32ee.wgsl.expected.glsl | 10 +- .../0f3c50.wgsl.expected.glsl | 10 +- .../1191a5.wgsl.expected.glsl | 10 +- .../12c9bb.wgsl.expected.glsl | 10 +- .../147998.wgsl.expected.glsl | 10 +- .../16036c.wgsl.expected.glsl | 10 +- .../1b71f0.wgsl.expected.glsl | 10 +- .../1d6c26.wgsl.expected.glsl | 10 +- .../1e9e39.wgsl.expected.glsl | 10 +- .../1f20c5.wgsl.expected.glsl | 10 +- .../214dd4.wgsl.expected.glsl | 10 +- .../221f22.wgsl.expected.glsl | 10 +- .../267788.wgsl.expected.glsl | 10 +- .../26bdfa.wgsl.expected.glsl | 10 +- .../26ef6c.wgsl.expected.glsl | 10 +- .../2ad087.wgsl.expected.glsl | 10 +- .../2efa05.wgsl.expected.glsl | 10 +- .../2f289f.wgsl.expected.glsl | 10 +- .../2fe1cc.wgsl.expected.glsl | 10 +- .../318ecc.wgsl.expected.glsl | 10 +- .../340d06.wgsl.expected.glsl | 10 +- .../398e30.wgsl.expected.glsl | 10 +- .../3a94ea.wgsl.expected.glsl | 10 +- .../3aca08.wgsl.expected.glsl | 10 +- .../3c5ad8.wgsl.expected.glsl | 10 +- .../4152a6.wgsl.expected.glsl | 10 +- .../423f99.wgsl.expected.glsl | 10 +- .../4267ee.wgsl.expected.glsl | 10 +- .../42d4e6.wgsl.expected.glsl | 10 +- .../48cb89.wgsl.expected.glsl | 10 +- .../49d274.wgsl.expected.glsl | 10 +- .../4df9a8.wgsl.expected.glsl | 10 +- .../50a9ee.wgsl.expected.glsl | 10 +- .../52045c.wgsl.expected.glsl | 10 +- .../55b23e.wgsl.expected.glsl | 10 +- .../579629.wgsl.expected.glsl | 10 +- .../57da0b.wgsl.expected.glsl | 10 +- .../57e28f.wgsl.expected.glsl | 10 +- .../58a515.wgsl.expected.glsl | 10 +- .../5985f3.wgsl.expected.glsl | 10 +- .../5caa5e.wgsl.expected.glsl | 10 +- .../5e295d.wgsl.expected.glsl | 10 +- .../60bf54.wgsl.expected.glsl | 10 +- .../63f3cf.wgsl.expected.glsl | 10 +- .../68105c.wgsl.expected.glsl | 10 +- .../686ef2.wgsl.expected.glsl | 10 +- .../6adac6.wgsl.expected.glsl | 10 +- .../6ec1b4.wgsl.expected.glsl | 10 +- .../6f0d79.wgsl.expected.glsl | 10 +- .../702c53.wgsl.expected.glsl | 10 +- .../72e5d6.wgsl.expected.glsl | 10 +- .../79df87.wgsl.expected.glsl | 10 +- .../7bf826.wgsl.expected.glsl | 10 +- .../7f5c2e.wgsl.expected.glsl | 10 +- .../8028f3.wgsl.expected.glsl | 10 +- .../811679.wgsl.expected.glsl | 10 +- .../820596.wgsl.expected.glsl | 10 +- .../83ee5a.wgsl.expected.glsl | 10 +- .../85d556.wgsl.expected.glsl | 10 +- .../88ad17.wgsl.expected.glsl | 10 +- .../8aa4c4.wgsl.expected.glsl | 10 +- .../8deb5e.wgsl.expected.glsl | 10 +- .../8f20bf.wgsl.expected.glsl | 10 +- .../8fca0f.wgsl.expected.glsl | 10 +- .../90340b.wgsl.expected.glsl | 10 +- .../9042ab.wgsl.expected.glsl | 10 +- .../9393b0.wgsl.expected.glsl | 10 +- .../939fdb.wgsl.expected.glsl | 10 +- .../962dcd.wgsl.expected.glsl | 10 +- .../9abfe5.wgsl.expected.glsl | 10 +- .../9c9c57.wgsl.expected.glsl | 10 +- .../9da9e2.wgsl.expected.glsl | 10 +- .../9eb8d8.wgsl.expected.glsl | 10 +- .../9f8e46.wgsl.expected.glsl | 10 +- .../a01845.wgsl.expected.glsl | 10 +- .../a7d565.wgsl.expected.glsl | 10 +- .../a863f2.wgsl.expected.glsl | 10 +- .../a9c9c1.wgsl.expected.glsl | 10 +- .../b0e16d.wgsl.expected.glsl | 10 +- .../b3c954.wgsl.expected.glsl | 10 +- .../b3e407.wgsl.expected.glsl | 10 +- .../b91240.wgsl.expected.glsl | 10 +- .../ba1481.wgsl.expected.glsl | 10 +- .../bb3dde.wgsl.expected.glsl | 10 +- .../c30e75.wgsl.expected.glsl | 10 +- .../c7943d.wgsl.expected.glsl | 10 +- .../cc968c.wgsl.expected.glsl | 10 +- .../cccc8f.wgsl.expected.glsl | 10 +- .../cd76a7.wgsl.expected.glsl | 10 +- .../cdf473.wgsl.expected.glsl | 10 +- .../cec841.wgsl.expected.glsl | 10 +- .../cf7e43.wgsl.expected.glsl | 10 +- .../d125bc.wgsl.expected.glsl | 10 +- .../d83c45.wgsl.expected.glsl | 10 +- .../daf7c0.wgsl.expected.glsl | 10 +- .../dc2dd0.wgsl.expected.glsl | 10 +- .../e927be.wgsl.expected.glsl | 10 +- .../e9e96c.wgsl.expected.glsl | 10 +- .../ef5b89.wgsl.expected.glsl | 10 +- .../efc8a4.wgsl.expected.glsl | 10 +- .../f60bdb.wgsl.expected.glsl | 10 +- .../f7145b.wgsl.expected.glsl | 10 +- .../f931c7.wgsl.expected.glsl | 10 +- .../fa9859.wgsl.expected.glsl | 10 +- .../fb5670.wgsl.expected.glsl | 10 +- .../fcac78.wgsl.expected.glsl | 10 +- .../textureGather/01305f.wgsl.expected.glsl | 10 +- .../textureGather/06030a.wgsl.expected.glsl | 10 +- .../textureGather/10c554.wgsl.expected.glsl | 10 +- .../textureGather/15d79c.wgsl.expected.glsl | 10 +- .../textureGather/2e0ed5.wgsl.expected.glsl | 10 +- .../textureGather/3112e8.wgsl.expected.glsl | 10 +- .../textureGather/3c527e.wgsl.expected.glsl | 10 +- .../textureGather/43025d.wgsl.expected.glsl | 10 +- .../textureGather/4f2350.wgsl.expected.glsl | 10 +- .../textureGather/51cf0b.wgsl.expected.glsl | 10 +- .../textureGather/53ece6.wgsl.expected.glsl | 10 +- .../textureGather/57bfc6.wgsl.expected.glsl | 10 +- .../textureGather/587ba3.wgsl.expected.glsl | 10 +- .../textureGather/69e0fb.wgsl.expected.glsl | 10 +- .../textureGather/93003d.wgsl.expected.glsl | 10 +- .../textureGather/9a6358.wgsl.expected.glsl | 10 +- .../textureGather/9efca2.wgsl.expected.glsl | 10 +- .../textureGather/bd0b1e.wgsl.expected.glsl | 10 +- .../textureGather/c409ae.wgsl.expected.glsl | 10 +- .../textureGather/c55822.wgsl.expected.glsl | 10 +- .../textureGather/e1b67d.wgsl.expected.glsl | 10 +- .../textureGather/e9eff6.wgsl.expected.glsl | 10 +- .../textureGather/f5f3ba.wgsl.expected.glsl | 10 +- .../textureGather/f7995a.wgsl.expected.glsl | 10 +- .../182fd4.wgsl.expected.glsl | 28 +-- .../60d2d1.wgsl.expected.glsl | 10 +- .../6d9352.wgsl.expected.glsl | 28 +-- .../6f1267.wgsl.expected.glsl | 28 +-- .../783e65.wgsl.expected.glsl | 28 +-- .../a5f587.wgsl.expected.glsl | 28 +-- .../gen/textureLoad/19cf87.wgsl.expected.glsl | 10 +- .../gen/textureLoad/1b8588.wgsl.expected.glsl | 10 +- .../gen/textureLoad/1f2016.wgsl.expected.glsl | 10 +- .../gen/textureLoad/484344.wgsl.expected.glsl | 10 +- .../gen/textureLoad/4fd803.wgsl.expected.glsl | 10 +- .../gen/textureLoad/5a2f9d.wgsl.expected.glsl | 10 +- .../gen/textureLoad/6154d4.wgsl.expected.glsl | 10 +- .../gen/textureLoad/6273b1.wgsl.expected.glsl | 10 +- .../gen/textureLoad/79e697.wgsl.expected.glsl | 10 +- .../gen/textureLoad/7c90e5.wgsl.expected.glsl | 10 +- .../gen/textureLoad/81c381.wgsl.expected.glsl | 10 +- .../gen/textureLoad/87be85.wgsl.expected.glsl | 10 +- .../gen/textureLoad/8acf41.wgsl.expected.glsl | 10 +- .../gen/textureLoad/9b2667.wgsl.expected.glsl | 10 +- .../gen/textureLoad/a583c9.wgsl.expected.glsl | 10 +- .../gen/textureLoad/a9a9f5.wgsl.expected.glsl | 10 +- .../gen/textureLoad/c2a480.wgsl.expected.glsl | 10 +- .../gen/textureLoad/c378ee.wgsl.expected.glsl | 10 +- .../gen/textureLoad/e3d2cc.wgsl.expected.glsl | 10 +- .../024820.wgsl.expected.glsl | 28 +-- .../053df7.wgsl.expected.glsl | 10 +- .../058cc3.wgsl.expected.glsl | 10 +- .../09d05d.wgsl.expected.glsl | 28 +-- .../13b4ce.wgsl.expected.glsl | 28 +-- .../22e53b.wgsl.expected.glsl | 28 +-- .../562013.wgsl.expected.glsl | 28 +-- .../5d59cd.wgsl.expected.glsl | 10 +- .../68a65b.wgsl.expected.glsl | 28 +-- .../778bd1.wgsl.expected.glsl | 10 +- .../7f1937.wgsl.expected.glsl | 10 +- .../85f980.wgsl.expected.glsl | 10 +- .../87953e.wgsl.expected.glsl | 28 +-- .../893e7c.wgsl.expected.glsl | 28 +-- .../9700fb.wgsl.expected.glsl | 28 +-- .../a216d2.wgsl.expected.glsl | 28 +-- .../cd5dc8.wgsl.expected.glsl | 28 +-- .../d5b228.wgsl.expected.glsl | 28 +-- .../e31be1.wgsl.expected.glsl | 28 +-- .../e653c0.wgsl.expected.glsl | 28 +-- .../ee942f.wgsl.expected.glsl | 28 +-- .../f33005.wgsl.expected.glsl | 28 +-- .../fcec98.wgsl.expected.glsl | 10 +- .../ff5e89.wgsl.expected.glsl | 28 +-- .../076cb5.wgsl.expected.glsl | 28 +-- .../080d95.wgsl.expected.glsl | 28 +-- .../09ddd0.wgsl.expected.glsl | 28 +-- .../105988.wgsl.expected.glsl | 28 +-- .../1e6f3b.wgsl.expected.glsl | 10 +- .../23f750.wgsl.expected.glsl | 28 +-- .../2c3575.wgsl.expected.glsl | 10 +- .../32a0ae.wgsl.expected.glsl | 10 +- .../5101cf.wgsl.expected.glsl | 28 +-- .../51b5bb.wgsl.expected.glsl | 10 +- .../897aaf.wgsl.expected.glsl | 28 +-- .../9da7a5.wgsl.expected.glsl | 28 +-- .../a91c03.wgsl.expected.glsl | 10 +- .../aee7c8.wgsl.expected.glsl | 10 +- .../b1b12b.wgsl.expected.glsl | 28 +-- .../b4f5ea.wgsl.expected.glsl | 28 +-- .../d004a9.wgsl.expected.glsl | 28 +-- .../dca09e.wgsl.expected.glsl | 28 +-- .../e67231.wgsl.expected.glsl | 28 +-- .../ed078b.wgsl.expected.glsl | 28 +-- .../f46ec6.wgsl.expected.glsl | 10 +- .../f5828d.wgsl.expected.glsl | 28 +-- .../2c6f14.wgsl.expected.glsl | 28 +-- .../42f8bb.wgsl.expected.glsl | 28 +-- .../449d23.wgsl.expected.glsl | 28 +-- .../a3c8a0.wgsl.expected.glsl | 28 +-- .../textureSample/02aa9b.wgsl.expected.glsl | 3 +- .../textureSample/100dc0.wgsl.expected.glsl | 3 +- .../textureSample/38bbb9.wgsl.expected.glsl | 3 +- .../textureSample/3b50bd.wgsl.expected.glsl | 3 +- .../textureSample/4dd1bf.wgsl.expected.glsl | 3 +- .../textureSample/51b514.wgsl.expected.glsl | 3 +- .../textureSample/667d76.wgsl.expected.glsl | 3 +- .../textureSample/6717ca.wgsl.expected.glsl | 3 +- .../textureSample/6e64fb.wgsl.expected.glsl | 3 +- .../textureSample/7c3baa.wgsl.expected.glsl | 3 +- .../textureSample/7e9ffd.wgsl.expected.glsl | 3 +- .../textureSample/8522e7.wgsl.expected.glsl | 3 +- .../textureSample/c2f4e8.wgsl.expected.glsl | 3 +- .../textureSample/e53267.wgsl.expected.glsl | 3 +- .../textureSample/ea7030.wgsl.expected.glsl | 3 +- .../53b9f7.wgsl.expected.glsl | 3 +- .../65ac50.wgsl.expected.glsl | 3 +- .../6a9113.wgsl.expected.glsl | 3 +- .../80e579.wgsl.expected.glsl | 3 +- .../81c19a.wgsl.expected.glsl | 3 +- .../d3fa1b.wgsl.expected.glsl | 3 +- .../df91bb.wgsl.expected.glsl | 3 +- .../eed7c4.wgsl.expected.glsl | 3 +- .../25fcd1.wgsl.expected.glsl | 7 +- .../3a5923.wgsl.expected.glsl | 7 +- .../63fb83.wgsl.expected.glsl | 7 +- .../98b85c.wgsl.expected.glsl | 7 +- .../a3ca7e.wgsl.expected.glsl | 3 +- .../dd431d.wgsl.expected.glsl | 7 +- .../011a8f.wgsl.expected.glsl | 22 +- .../1116ed.wgsl.expected.glsl | 22 +- .../1568e3.wgsl.expected.glsl | 22 +- .../2ad2b1.wgsl.expected.glsl | 22 +- .../4cf3a2.wgsl.expected.glsl | 10 +- .../f8121c.wgsl.expected.glsl | 22 +- .../21402b.wgsl.expected.glsl | 10 +- .../2ecd8f.wgsl.expected.glsl | 10 +- .../468f88.wgsl.expected.glsl | 10 +- .../521263.wgsl.expected.glsl | 10 +- .../5312f4.wgsl.expected.glsl | 10 +- .../872f00.wgsl.expected.glsl | 10 +- .../e383db.wgsl.expected.glsl | 10 +- .../e9a2f7.wgsl.expected.glsl | 10 +- .../02be59.wgsl.expected.glsl | 22 +- .../0bdd9a.wgsl.expected.glsl | 10 +- .../1b0291.wgsl.expected.glsl | 22 +- .../1bf73e.wgsl.expected.glsl | 22 +- .../302be4.wgsl.expected.glsl | 10 +- .../47daa4.wgsl.expected.glsl | 22 +- .../690d95.wgsl.expected.glsl | 10 +- .../979816.wgsl.expected.glsl | 10 +- .../9bd37b.wgsl.expected.glsl | 10 +- .../a4af26.wgsl.expected.glsl | 10 +- .../abfcc0.wgsl.expected.glsl | 10 +- .../ae5e39.wgsl.expected.glsl | 10 +- .../ba93b3.wgsl.expected.glsl | 22 +- .../c32df7.wgsl.expected.glsl | 10 +- .../c6aca6.wgsl.expected.glsl | 10 +- .../textureStore/05ce15.wgsl.expected.glsl | 10 +- .../textureStore/064c7f.wgsl.expected.glsl | 10 +- .../textureStore/068641.wgsl.expected.glsl | 10 +- .../textureStore/0af6b5.wgsl.expected.glsl | 10 +- .../textureStore/0c3dff.wgsl.expected.glsl | 10 +- .../textureStore/102722.wgsl.expected.glsl | 10 +- .../textureStore/1bbd08.wgsl.expected.glsl | 10 +- .../textureStore/1c02e7.wgsl.expected.glsl | 10 +- .../textureStore/22d955.wgsl.expected.glsl | 10 +- .../textureStore/26bf70.wgsl.expected.glsl | 10 +- .../textureStore/2796b4.wgsl.expected.glsl | 10 +- .../textureStore/2ac6c7.wgsl.expected.glsl | 10 +- .../textureStore/2eb2a4.wgsl.expected.glsl | 10 +- .../textureStore/2ed2a3.wgsl.expected.glsl | 10 +- .../textureStore/31745b.wgsl.expected.glsl | 10 +- .../textureStore/32f368.wgsl.expected.glsl | 10 +- .../textureStore/331aee.wgsl.expected.glsl | 10 +- .../textureStore/38e8d7.wgsl.expected.glsl | 10 +- .../textureStore/3a52ac.wgsl.expected.glsl | 10 +- .../textureStore/3bb7a1.wgsl.expected.glsl | 10 +- .../textureStore/3bec15.wgsl.expected.glsl | 10 +- .../textureStore/441ba8.wgsl.expected.glsl | 10 +- .../textureStore/4fc057.wgsl.expected.glsl | 10 +- .../textureStore/5a2f8f.wgsl.expected.glsl | 10 +- .../textureStore/60975f.wgsl.expected.glsl | 10 +- .../textureStore/682fd6.wgsl.expected.glsl | 10 +- .../textureStore/6b75c3.wgsl.expected.glsl | 10 +- .../textureStore/6b80d2.wgsl.expected.glsl | 10 +- .../textureStore/6cff2e.wgsl.expected.glsl | 10 +- .../textureStore/6da692.wgsl.expected.glsl | 10 +- .../textureStore/731349.wgsl.expected.glsl | 10 +- .../textureStore/752da6.wgsl.expected.glsl | 10 +- .../textureStore/77c0ae.wgsl.expected.glsl | 10 +- .../textureStore/7cec8d.wgsl.expected.glsl | 10 +- .../textureStore/7f7fae.wgsl.expected.glsl | 10 +- .../textureStore/804942.wgsl.expected.glsl | 10 +- .../textureStore/805dae.wgsl.expected.glsl | 10 +- .../textureStore/83bcc1.wgsl.expected.glsl | 10 +- .../textureStore/872747.wgsl.expected.glsl | 10 +- .../textureStore/8e0479.wgsl.expected.glsl | 10 +- .../textureStore/8f71a1.wgsl.expected.glsl | 10 +- .../textureStore/969534.wgsl.expected.glsl | 10 +- .../textureStore/9a3ecc.wgsl.expected.glsl | 10 +- .../textureStore/9d9cd5.wgsl.expected.glsl | 10 +- .../textureStore/9e3ec5.wgsl.expected.glsl | 10 +- .../textureStore/ac67aa.wgsl.expected.glsl | 10 +- .../textureStore/b706b1.wgsl.expected.glsl | 10 +- .../textureStore/bbcb7f.wgsl.expected.glsl | 10 +- .../textureStore/be6e30.wgsl.expected.glsl | 10 +- .../textureStore/bf775c.wgsl.expected.glsl | 10 +- .../textureStore/c5af1e.wgsl.expected.glsl | 10 +- .../textureStore/c863be.wgsl.expected.glsl | 10 +- .../textureStore/d73b5c.wgsl.expected.glsl | 10 +- .../textureStore/dd7d81.wgsl.expected.glsl | 10 +- .../textureStore/dde364.wgsl.expected.glsl | 10 +- .../textureStore/e885e8.wgsl.expected.glsl | 10 +- .../textureStore/eb702f.wgsl.expected.glsl | 10 +- .../textureStore/eb78b9.wgsl.expected.glsl | 10 +- .../textureStore/ee6acc.wgsl.expected.glsl | 10 +- .../textureStore/ef9f2f.wgsl.expected.glsl | 10 +- .../textureStore/f8dead.wgsl.expected.glsl | 10 +- .../textureStore/f9be83.wgsl.expected.glsl | 10 +- .../textureStore/fb9a8f.wgsl.expected.glsl | 10 +- .../textureStore/fbf53f.wgsl.expected.glsl | 10 +- .../gen/transpose/2585cd.wgsl.expected.glsl | 7 +- .../gen/transpose/31d679.wgsl.expected.glsl | 7 +- .../gen/transpose/31e37e.wgsl.expected.glsl | 7 +- .../gen/transpose/4ce359.wgsl.expected.glsl | 7 +- .../gen/transpose/4dc9a1.wgsl.expected.glsl | 7 +- .../gen/transpose/854336.wgsl.expected.glsl | 7 +- .../gen/transpose/c1b600.wgsl.expected.glsl | 7 +- .../gen/transpose/d8f8ba.wgsl.expected.glsl | 7 +- .../gen/transpose/ed4bdc.wgsl.expected.glsl | 7 +- .../gen/trunc/562d05.wgsl.expected.glsl | 7 +- .../gen/trunc/e183aa.wgsl.expected.glsl | 7 +- .../gen/trunc/eb83df.wgsl.expected.glsl | 7 +- .../gen/trunc/f370d3.wgsl.expected.glsl | 7 +- .../unpack2x16float/32a5cf.wgsl.expected.glsl | 7 +- .../unpack2x16snorm/b4aea6.wgsl.expected.glsl | 7 +- .../unpack2x16unorm/7699c0.wgsl.expected.glsl | 7 +- .../unpack4x8snorm/523fb3.wgsl.expected.glsl | 7 +- .../unpack4x8unorm/750c74.wgsl.expected.glsl | 7 +- .../a17f7f.wgsl.expected.glsl | 2 +- .../intrinsics/ignore/call.wgsl.expected.glsl | 2 +- .../ignore/runtime_array.wgsl.expected.glsl | 4 +- .../ignore/storage_buffer.wgsl.expected.glsl | 3 +- .../ignore/uniform_buffer.wgsl.expected.glsl | 2 +- test/intrinsics/modf.wgsl.expected.glsl | 7 +- test/intrinsics/radians.spvasm.expected.glsl | 2 +- .../repeated_use.wgsl.expected.glsl | 2 +- .../depth_ms.spvasm.expected.glsl | 13 +- .../f32/alpha.wgsl.expected.glsl | 3 +- .../textureGather/f32/blue.wgsl.expected.glsl | 3 +- .../f32/green.wgsl.expected.glsl | 3 +- .../textureGather/f32/red.wgsl.expected.glsl | 3 +- .../i32/alpha.wgsl.expected.glsl | 3 +- .../textureGather/i32/blue.wgsl.expected.glsl | 3 +- .../i32/green.wgsl.expected.glsl | 3 +- .../textureGather/i32/red.wgsl.expected.glsl | 3 +- .../u32/alpha.wgsl.expected.glsl | 3 +- .../textureGather/u32/blue.wgsl.expected.glsl | 3 +- .../u32/green.wgsl.expected.glsl | 3 +- .../textureGather/u32/red.wgsl.expected.glsl | 3 +- .../textureLoad/depth_ms.spvasm.expected.glsl | 13 +- .../depth_ms.spvasm.expected.glsl | 31 +-- .../storage/mat2x2/f32.wgsl.expected.glsl | 3 +- .../mat2x2/stride/16.spvasm.expected.glsl | 4 +- test/let/global/global.wgsl.expected.glsl | 3 +- test/let/inferred/function.wgsl.expected.glsl | 3 +- .../continue_in_switch.wgsl.expected.glsl | 2 +- test/loops/loop.wgsl.expected.glsl | 4 +- .../loop_with_continuing.wgsl.expected.glsl | 4 +- test/loops/nested_loops.wgsl.expected.glsl | 4 +- ...d_loops_with_continuing.wgsl.expected.glsl | 4 +- .../access/matrix.spvasm.expected.glsl | 2 +- test/ptr_ref/access/matrix.wgsl.expected.glsl | 2 +- .../copy/ptr_copy.spvasm.expected.glsl | 2 +- .../load/global/i32.spvasm.expected.glsl | 3 +- .../load/global/i32.wgsl.expected.glsl | 3 +- .../global/struct_field.spvasm.expected.glsl | 3 +- .../global/struct_field.wgsl.expected.glsl | 3 +- .../load/local/i32.spvasm.expected.glsl | 2 +- .../ptr_ref/load/local/i32.wgsl.expected.glsl | 2 +- .../local/ptr_function.wgsl.expected.glsl | 2 +- .../load/local/ptr_private.wgsl.expected.glsl | 3 +- .../load/local/ptr_storage.wgsl.expected.glsl | 3 +- .../load/local/ptr_uniform.wgsl.expected.glsl | 2 +- .../local/ptr_workgroup.wgsl.expected.glsl | 4 +- .../local/struct_field.spvasm.expected.glsl | 2 +- .../local/struct_field.wgsl.expected.glsl | 2 +- .../load/param/ptr.spvasm.expected.glsl | 2 +- .../ptr_ref/load/param/ptr.wgsl.expected.glsl | 2 +- .../store/global/i32.spvasm.expected.glsl | 3 +- .../store/global/i32.wgsl.expected.glsl | 3 +- .../global/struct_field.spvasm.expected.glsl | 3 +- .../store/local/i32.spvasm.expected.glsl | 2 +- .../store/local/i32.wgsl.expected.glsl | 2 +- .../local/struct_field.spvasm.expected.glsl | 2 +- .../store/param/ptr.spvasm.expected.glsl | 2 +- .../store/param/ptr.wgsl.expected.glsl | 2 +- test/samples/compute_boids.wgsl.expected.glsl | 25 +- test/samples/cube.wgsl.expected.glsl | 15 +- test/samples/function.wgsl.expected.glsl | 2 +- test/samples/simple.wgsl.expected.glsl | 2 +- .../simple_vertex.spvasm.expected.glsl | 5 +- test/samples/triangle.wgsl.expected.glsl | 10 +- .../compute_input_builtins.wgsl.expected.glsl | 7 +- ...e_input_builtins_struct.wgsl.expected.glsl | 8 +- .../compute_input_mixed.wgsl.expected.glsl | 8 +- ...fragment_input_builtins.wgsl.expected.glsl | 10 +- ...t_input_builtins_struct.wgsl.expected.glsl | 11 +- ...ragment_input_locations.wgsl.expected.glsl | 2 +- ..._input_locations_struct.wgsl.expected.glsl | 3 +- .../fragment_input_mixed.wgsl.expected.glsl | 12 +- ...ragment_output_builtins.wgsl.expected.glsl | 11 +- ..._output_builtins_struct.wgsl.expected.glsl | 9 +- ...agment_output_locations.wgsl.expected.glsl | 17 +- ...output_locations_struct.wgsl.expected.glsl | 3 +- .../fragment_output_mixed.wgsl.expected.glsl | 9 +- ...polate_input_parameters.wgsl.expected.glsl | 2 +- ...nterpolate_input_struct.wgsl.expected.glsl | 3 +- .../interpolate_integers.wgsl.expected.glsl | 11 +- ...terpolate_return_struct.wgsl.expected.glsl | 4 +- test/shader_io/invariant.wgsl.expected.glsl | 3 +- ...invariant_struct_member.wgsl.expected.glsl | 4 +- ...struct_different_stages.wgsl.expected.glsl | 9 +- ..._struct_helper_function.wgsl.expected.glsl | 7 +- ...d_struct_storage_buffer.wgsl.expected.glsl | 8 +- .../vertex_input_builtins.wgsl.expected.glsl | 6 +- ...x_input_builtins_struct.wgsl.expected.glsl | 7 +- .../vertex_input_locations.wgsl.expected.glsl | 4 +- ..._input_locations_struct.wgsl.expected.glsl | 5 +- .../vertex_input_mixed.wgsl.expected.glsl | 8 +- .../vertex_output_builtins.wgsl.expected.glsl | 3 +- ..._output_builtins_struct.wgsl.expected.glsl | 4 +- ...output_locations_struct.wgsl.expected.glsl | 4 +- test/shadowing/alias/let.wgsl.expected.glsl | 4 +- test/shadowing/alias/param.wgsl.expected.glsl | 4 +- test/shadowing/alias/var.wgsl.expected.glsl | 4 +- .../shadowing/function/let.wgsl.expected.glsl | 4 +- .../function/param.wgsl.expected.glsl | 4 +- .../shadowing/function/var.wgsl.expected.glsl | 4 +- .../param/function.wgsl.expected.glsl | 4 +- test/shadowing/param/let.wgsl.expected.glsl | 4 +- test/shadowing/param/var.wgsl.expected.glsl | 4 +- test/shadowing/struct/let.wgsl.expected.glsl | 4 +- .../shadowing/struct/param.wgsl.expected.glsl | 4 +- test/shadowing/struct/var.wgsl.expected.glsl | 4 +- .../in_for_loop_body.wgsl.expected.glsl | 4 +- .../in_for_loop_continuing.wgsl.expected.glsl | 4 +- .../in_for_loop_init.wgsl.expected.glsl | 4 +- ...g_with_side_effect_func.wgsl.expected.glsl | 6 +- .../struct_array.wgsl.expected.glsl | 4 +- .../struct_array_array.wgsl.expected.glsl | 4 +- .../struct_array_struct.wgsl.expected.glsl | 5 +- ...ruct_array_struct_array.wgsl.expected.glsl | 5 +- .../struct_dynamic_array.wgsl.expected.glsl | 5 +- ...amic_array_struct_array.wgsl.expected.glsl | 6 +- .../struct_matrix.wgsl.expected.glsl | 3 +- .../struct_multiple_arrays.wgsl.expected.glsl | 4 +- .../struct_struct_array.wgsl.expected.glsl | 5 +- .../struct_vector.wgsl.expected.glsl | 3 +- .../vector_assign.wgsl.expected.glsl | 3 +- .../via_pointer.wgsl.expected.glsl | 4 +- .../via_pointer_arg.wgsl.expected.glsl | 4 +- ...dr_of_non_constructable.wgsl.expected.glsl | 4 +- .../addr_of_runtime_array.wgsl.expected.glsl | 4 +- .../assign/phony/call.wgsl.expected.glsl | 2 +- .../multiple_side_effects.wgsl.expected.glsl | 2 +- .../phony/storage_buffer.wgsl.expected.glsl | 3 +- .../phony/uniform_buffer.wgsl.expected.glsl | 2 +- test/statements/for/basic.wgsl.expected.glsl | 4 +- .../statements/for/complex.wgsl.expected.glsl | 4 +- .../condition/array_ctor.wgsl.expected.glsl | 4 +- .../for/condition/basic.wgsl.expected.glsl | 4 +- .../condition/struct_ctor.wgsl.expected.glsl | 4 +- .../continuing/array_ctor.wgsl.expected.glsl | 4 +- .../for/continuing/basic.wgsl.expected.glsl | 4 +- .../continuing/struct_ctor.wgsl.expected.glsl | 4 +- test/statements/for/empty.wgsl.expected.glsl | 4 +- .../initializer/array_ctor.wgsl.expected.glsl | 4 +- .../for/initializer/basic.wgsl.expected.glsl | 4 +- .../struct_ctor.wgsl.expected.glsl | 4 +- .../statements/for/scoping.wgsl.expected.glsl | 4 +- .../switch/common.wgsl.expected.glsl | 2 +- .../switch/fallthrough.wgsl.expected.glsl | 2 +- .../only_default_case.wgsl.expected.glsl | 2 +- .../type_constructor.wgsl.expected.glsl | 5 +- ...tion_scope_declarations.wgsl.expected.glsl | 2 +- ...n_scope_var_conversions.wgsl.expected.glsl | 2 +- .../types/module_scope_let.wgsl.expected.glsl | 2 +- .../types/module_scope_var.wgsl.expected.glsl | 3 +- ...e_scope_var_conversions.wgsl.expected.glsl | 3 +- ..._scope_var_initializers.wgsl.expected.glsl | 3 +- test/types/parameters.wgsl.expected.glsl | 2 +- test/types/return_types.wgsl.expected.glsl | 2 +- test/types/sampler.wgsl.expected.glsl | 2 +- test/types/struct_members.wgsl.expected.glsl | 3 +- .../types/texture/depth/2d.wgsl.expected.glsl | 2 +- .../texture/depth/2d_array.wgsl.expected.glsl | 2 +- .../texture/depth/cube.wgsl.expected.glsl | 2 +- .../depth/cube_array.wgsl.expected.glsl | 2 +- .../multisampled/2d.wgsl.expected.glsl | 2 +- .../texture/sampled/1d.wgsl.expected.glsl | 2 +- .../texture/sampled/2d.wgsl.expected.glsl | 2 +- .../sampled/2d_array.wgsl.expected.glsl | 2 +- .../texture/sampled/3d.wgsl.expected.glsl | 2 +- .../texture/sampled/cube.wgsl.expected.glsl | 2 +- .../sampled/cube_array.wgsl.expected.glsl | 2 +- .../texture/storage/1d.wgsl.expected.glsl | 2 +- .../texture/storage/2d.wgsl.expected.glsl | 2 +- .../storage/2d_array.wgsl.expected.glsl | 2 +- .../texture/storage/3d.wgsl.expected.glsl | 2 +- ...randsForImageAccess_0.spvasm.expected.glsl | 3 +- ...randsForImageAccess_1.spvasm.expected.glsl | 3 +- ...randsForImageAccess_2.spvasm.expected.glsl | 3 +- ...randsForImageAccess_0.spvasm.expected.glsl | 3 +- ...randsForImageAccess_1.spvasm.expected.glsl | 3 +- ...randsForImageAccess_2.spvasm.expected.glsl | 3 +- ...randsForImageAccess_3.spvasm.expected.glsl | 3 +- ...randsForImageAccess_0.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_1.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_2.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_3.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_4.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_5.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_6.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_7.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_8.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 9 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_1.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_2.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_3.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_1.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_2.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_3.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_4.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_5.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_1.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_2.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_3.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_1.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...randsForImageAccess_0.spvasm.expected.glsl | 7 +- ...randsForImageAccess_1.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_1.spvasm.expected.glsl | 7 +- ...AccessTest_Variable_0.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_4.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_5.spvasm.expected.glsl | 3 +- ...AccessTest_Variable_6.spvasm.expected.glsl | 3 +- ...DeclareAndUseHandle_2.spvasm.expected.glsl | 7 +- ...randsForImageAccess_2.spvasm.expected.glsl | 7 +- ...randsForImageAccess_0.spvasm.expected.glsl | 3 +- ...randsForImageAccess_4.spvasm.expected.glsl | 7 +- ...randsForImageAccess_0.spvasm.expected.glsl | 3 +- ...randsForImageAccess_1.spvasm.expected.glsl | 3 +- ...randsForImageAccess_2.spvasm.expected.glsl | 3 +- ...e_RawImage_Variable_0.spvasm.expected.glsl | 3 +- ...e_RawImage_Variable_1.spvasm.expected.glsl | 3 +- ...e_RawImage_Variable_2.spvasm.expected.glsl | 3 +- ...e_RawImage_Variable_5.spvasm.expected.glsl | 7 +- ...e_RawImage_Variable_6.spvasm.expected.glsl | 7 +- ...mpledImage_Variable_4.spvasm.expected.glsl | 7 +- ...mpledImage_Variable_8.spvasm.expected.glsl | 7 +- ...mpledImage_Variable_9.spvasm.expected.glsl | 7 +- ...0_DataPacking_Valid_0.spvasm.expected.glsl | 2 +- ...0_DataPacking_Valid_1.spvasm.expected.glsl | 2 +- ...0_DataPacking_Valid_2.spvasm.expected.glsl | 2 +- ...0_DataPacking_Valid_3.spvasm.expected.glsl | 2 +- ...0_DataPacking_Valid_4.spvasm.expected.glsl | 2 +- ...DataUnpacking_Valid_0.spvasm.expected.glsl | 2 +- ...DataUnpacking_Valid_1.spvasm.expected.glsl | 2 +- ...DataUnpacking_Valid_2.spvasm.expected.glsl | 2 +- ...DataUnpacking_Valid_3.spvasm.expected.glsl | 2 +- ...DataUnpacking_Valid_4.spvasm.expected.glsl | 2 +- ...tingFloating_Scalar_2.spvasm.expected.glsl | 2 +- ...tingFloating_Vector_2.spvasm.expected.glsl | 2 +- ...ng_Floating_Scalar_11.spvasm.expected.glsl | 2 +- ...ng_Floating_Scalar_12.spvasm.expected.glsl | 2 +- ...ng_Floating_Vector_11.spvasm.expected.glsl | 2 +- ...ng_Floating_Vector_12.spvasm.expected.glsl | 2 +- ...iveTest_Derivatives_0.spvasm.expected.glsl | 2 +- ...iveTest_Derivatives_1.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_10.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_11.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_12.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_13.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_14.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_18.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_19.spvasm.expected.glsl | 2 +- ...iveTest_Derivatives_2.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_20.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_21.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_22.spvasm.expected.glsl | 2 +- ...veTest_Derivatives_23.spvasm.expected.glsl | 2 +- ...iveTest_Derivatives_3.spvasm.expected.glsl | 2 +- ...iveTest_Derivatives_4.spvasm.expected.glsl | 2 +- ...iveTest_Derivatives_5.spvasm.expected.glsl | 2 +- ...iveTest_Derivatives_9.spvasm.expected.glsl | 2 +- ...st_FUnordEqual_Vector.spvasm.expected.glsl | 2 +- ...eaterThanEqual_Vector.spvasm.expected.glsl | 2 +- ...ordGreaterThan_Vector.spvasm.expected.glsl | 2 +- ...dLessThanEqual_Vector.spvasm.expected.glsl | 2 +- ...FUnordLessThan_Vector.spvasm.expected.glsl | 2 +- ...FUnordNotEqual_Vector.spvasm.expected.glsl | 2 +- ...BoolCond_VectorParams.spvasm.expected.glsl | 2 +- ..._SampleMask_In_Signed.spvasm.expected.glsl | 8 +- ...ampleMask_In_Unsigned.spvasm.expected.glsl | 8 +- ...ut_Signed_Initializer.spvasm.expected.glsl | 9 +- ..._Unsigned_Initializer.spvasm.expected.glsl | 9 +- ..._I32_Load_AccessChain.spvasm.expected.glsl | 8 +- ...d_I32_Load_CopyObject.spvasm.expected.glsl | 8 +- ...pleId_I32_Load_Direct.spvasm.expected.glsl | 8 +- ..._U32_Load_AccessChain.spvasm.expected.glsl | 8 +- ...d_U32_Load_CopyObject.spvasm.expected.glsl | 8 +- ...pleId_U32_Load_Direct.spvasm.expected.glsl | 8 +- ...sk_In_I32_AccessChain.spvasm.expected.glsl | 8 +- ...ask_In_I32_CopyObject.spvasm.expected.glsl | 8 +- ...pleMask_In_I32_Direct.spvasm.expected.glsl | 8 +- ...sk_In_U32_AccessChain.spvasm.expected.glsl | 8 +- ...ask_In_U32_CopyObject.spvasm.expected.glsl | 8 +- ...pleMask_In_U32_Direct.spvasm.expected.glsl | 8 +- ...pleMask_In_WithStride.spvasm.expected.glsl | 8 +- ...k_Out_I32_AccessChain.spvasm.expected.glsl | 9 +- ...sk_Out_I32_CopyObject.spvasm.expected.glsl | 9 +- ...leMask_Out_I32_Direct.spvasm.expected.glsl | 9 +- ...k_Out_U32_AccessChain.spvasm.expected.glsl | 9 +- ...sk_Out_U32_CopyObject.spvasm.expected.glsl | 9 +- ...leMask_Out_U32_Direct.spvasm.expected.glsl | 9 +- ...leMask_Out_WithStride.spvasm.expected.glsl | 9 +- ...t_UseInPhiCountsAsUse.spvasm.expected.glsl | 2 +- ...ength_FromAccessChain.spvasm.expected.glsl | 3 +- ...t_ArrayLength_FromVar.spvasm.expected.glsl | 3 +- ...n_Struct_RuntimeArray.spvasm.expected.glsl | 3 +- ...hAccessChain_Cascaded.spvasm.expected.glsl | 3 +- ...cessChain_NonCascaded.spvasm.expected.glsl | 3 +- ...d_InBoundsAccessChain.spvasm.expected.glsl | 3 +- ...pesAndVarDeclarations.spvasm.expected.glsl | 2 +- ...Test_EmitExpression_0.spvasm.expected.glsl | 2 +- ...Test_EmitExpression_1.spvasm.expected.glsl | 2 +- ...Test_EmitExpression_0.spvasm.expected.glsl | 2 +- ...Test_EmitExpression_1.spvasm.expected.glsl | 2 +- ...Test_EmitExpression_0.spvasm.expected.glsl | 2 +- ...Test_EmitExpression_1.spvasm.expected.glsl | 2 +- ...t_IntVector_IntVector.spvasm.expected.glsl | 2 +- ..._IntVector_UintVector.spvasm.expected.glsl | 2 +- ...Test_BitCount_Int_Int.spvasm.expected.glsl | 2 +- ...est_BitCount_Int_Uint.spvasm.expected.glsl | 2 +- ..._UintVector_IntVector.spvasm.expected.glsl | 2 +- ...UintVector_UintVector.spvasm.expected.glsl | 2 +- ...est_BitCount_Uint_Int.spvasm.expected.glsl | 2 +- ...st_BitCount_Uint_Uint.spvasm.expected.glsl | 2 +- ...e_IntVector_IntVector.spvasm.expected.glsl | 2 +- ...st_BitReverse_Int_Int.spvasm.expected.glsl | 2 +- ...UintVector_UintVector.spvasm.expected.glsl | 2 +- ..._BitReverse_Uint_Uint.spvasm.expected.glsl | 2 +- ...est_LogicalNot_Vector.spvasm.expected.glsl | 2 +- test/var/inferred/function.wgsl.expected.glsl | 3 +- .../function/array.wgsl.expected.glsl | 2 +- .../function/matrix.wgsl.expected.glsl | 2 +- .../function/scalar.wgsl.expected.glsl | 2 +- .../function/struct.wgsl.expected.glsl | 2 +- .../function/vector.wgsl.expected.glsl | 2 +- .../private/array.wgsl.expected.glsl | 3 +- .../private/matrix.wgsl.expected.glsl | 3 +- .../private/scalar.wgsl.expected.glsl | 3 +- .../private/struct.wgsl.expected.glsl | 3 +- .../private/vector.wgsl.expected.glsl | 3 +- .../workgroup/array.wgsl.expected.glsl | 4 +- .../workgroup/matrix.wgsl.expected.glsl | 4 +- .../workgroup/scalar.wgsl.expected.glsl | 4 +- .../workgroup/struct.wgsl.expected.glsl | 4 +- .../workgroup/vector.wgsl.expected.glsl | 4 +- .../named/no_init/bool.wgsl.expected.glsl | 3 +- .../named/no_init/f32.wgsl.expected.glsl | 3 +- .../named/no_init/i32.wgsl.expected.glsl | 3 +- .../named/no_init/u32.wgsl.expected.glsl | 3 +- .../named/val_init/bool.wgsl.expected.glsl | 3 +- .../named/val_init/f32.wgsl.expected.glsl | 3 +- .../named/val_init/i32.wgsl.expected.glsl | 3 +- .../named/val_init/u32.wgsl.expected.glsl | 3 +- .../named/zero_init/bool.wgsl.expected.glsl | 3 +- .../named/zero_init/f32.wgsl.expected.glsl | 3 +- .../named/zero_init/i32.wgsl.expected.glsl | 3 +- .../named/zero_init/u32.wgsl.expected.glsl | 3 +- .../numbered/no_init/bool.wgsl.expected.glsl | 3 +- .../numbered/no_init/f32.wgsl.expected.glsl | 3 +- .../numbered/no_init/i32.wgsl.expected.glsl | 3 +- .../numbered/no_init/u32.wgsl.expected.glsl | 3 +- .../numbered/val_init/bool.wgsl.expected.glsl | 3 +- .../numbered/val_init/f32.wgsl.expected.glsl | 3 +- .../numbered/val_init/i32.wgsl.expected.glsl | 3 +- .../numbered/val_init/u32.wgsl.expected.glsl | 3 +- .../zero_init/bool.wgsl.expected.glsl | 3 +- .../numbered/zero_init/f32.wgsl.expected.glsl | 3 +- .../numbered/zero_init/i32.wgsl.expected.glsl | 3 +- .../numbered/zero_init/u32.wgsl.expected.glsl | 3 +- .../many_workgroup_vars.wgsl.expected.glsl | 4 +- test/var/uses/private.wgsl.expected.glsl | 11 +- test/var/uses/workgroup.wgsl.expected.glsl | 20 +- .../0-opt.spvasm.expected.glsl | 4 +- .../0-opt.wgsl.expected.glsl | 4 +- .../0-opt.spvasm.expected.glsl | 7 +- .../0-opt.wgsl.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.wgsl.expected.glsl | 10 +- .../0-opt.spvasm.expected.glsl | 8 +- .../0-opt.spvasm.expected.glsl | 6 +- .../0-opt.wgsl.expected.glsl | 6 +- .../cov-bitcount/0-opt.spvasm.expected.glsl | 17 +- .../cov-bitcount/0-opt.wgsl.expected.glsl | 17 +- .../0.spvasm.expected.glsl | 10 +- .../0.wgsl.expected.glsl | 10 +- .../0-opt.spvasm.expected.glsl | 14 +- .../0-opt.wgsl.expected.glsl | 14 +- .../0-opt.spvasm.expected.glsl | 8 +- .../0-opt.wgsl.expected.glsl | 8 +- .../0-opt.spvasm.expected.glsl | 8 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.wgsl.expected.glsl | 10 +- .../0-opt.spvasm.expected.glsl | 15 +- .../0-opt.wgsl.expected.glsl | 15 +- .../0-opt.spvasm.expected.glsl | 8 +- .../0.spvasm.expected.glsl | 8 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0.spvasm.expected.glsl | 10 +- .../0.spvasm.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 5 +- .../0-opt.wgsl.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 5 +- .../0-opt.wgsl.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 13 +- .../0-opt.wgsl.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 12 +- .../0-opt.wgsl.expected.glsl | 12 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.spvasm.expected.glsl | 9 +- .../0-opt.wgsl.expected.glsl | 9 +- .../0-opt.spvasm.expected.glsl | 13 +- .../0-opt.wgsl.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 9 +- .../0-opt.wgsl.expected.glsl | 9 +- .../0-opt.spvasm.expected.glsl | 13 +- .../0-opt.wgsl.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 9 +- .../0-opt.wgsl.expected.glsl | 9 +- .../0-opt.spvasm.expected.glsl | 9 +- .../0-opt.wgsl.expected.glsl | 9 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.wgsl.expected.glsl | 10 +- .../0-opt.wgsl.expected.glsl | 11 +- .../0-opt.wgsl.expected.glsl | 11 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.spvasm.expected.glsl | 13 +- .../0-opt.wgsl.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 15 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.spvasm.expected.glsl | 8 +- .../0-opt.wgsl.expected.glsl | 8 +- .../0-opt.wgsl.expected.glsl | 8 +- .../0-opt.spvasm.expected.glsl | 17 +- .../0-opt.spvasm.expected.glsl | 9 +- .../0-opt.wgsl.expected.glsl | 9 +- .../0-opt.spvasm.expected.glsl | 8 +- .../0.spvasm.expected.glsl | 3 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.wgsl.expected.glsl | 11 +- .../0-opt.spvasm.expected.glsl | 7 +- .../0-opt.wgsl.expected.glsl | 7 +- .../0-opt.spvasm.expected.glsl | 8 +- .../0-opt.spvasm.expected.glsl | 13 +- .../0-opt.wgsl.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 12 +- .../0-opt.wgsl.expected.glsl | 12 +- .../0-opt.spvasm.expected.glsl | 15 +- .../0-opt.wgsl.expected.glsl | 15 +- .../0-opt.spvasm.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 10 +- .../0-opt.wgsl.expected.glsl | 10 +- .../0.spvasm.expected.glsl | 13 +- .../0.wgsl.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 5 +- .../0.spvasm.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 12 +- .../1.spvasm.expected.glsl | 12 +- .../1.spvasm.expected.glsl | 12 +- .../1.spvasm.expected.glsl | 7 +- .../2.spvasm.expected.glsl | 7 +- .../0.spvasm.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 7 +- .../2-opt.spvasm.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 7 +- .../2.spvasm.expected.glsl | 7 +- .../0.wgsl.expected.glsl | 7 +- .../1.wgsl.expected.glsl | 11 +- .../1.wgsl.expected.glsl | 13 +- .../1.wgsl.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 7 +- .../0-opt.spvasm.expected.glsl | 7 +- .../0-opt.wgsl.expected.glsl | 7 +- .../0.spvasm.expected.glsl | 7 +- .../0.wgsl.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 7 +- .../1.wgsl.expected.glsl | 7 +- .../0.spvasm.expected.glsl | 7 +- .../0.spvasm.expected.glsl | 7 +- .../0.wgsl.expected.glsl | 7 +- .../1.spvasm.expected.glsl | 11 +- .../1.wgsl.expected.glsl | 11 +- .../0-opt.spvasm.expected.glsl | 9 +- .../0-opt.wgsl.expected.glsl | 9 +- .../0-opt.spvasm.expected.glsl | 3 +- .../0-opt.wgsl.expected.glsl | 3 +- .../0-opt.spvasm.expected.glsl | 12 +- .../0-opt.wgsl.expected.glsl | 12 +- .../0-opt.spvasm.expected.glsl | 5 +- .../0-opt.spvasm.expected.glsl | 13 +- .../0-opt.spvasm.expected.glsl | 8 +- .../1.spvasm.expected.glsl | 8 +- .../1.wgsl.expected.glsl | 8 +- .../uint_sgreaterthan/0.spvasm.expected.glsl | 4 +- .../uint_sgreaterthan/0.wgsl.expected.glsl | 4 +- .../0.spvasm.expected.glsl | 4 +- .../0.wgsl.expected.glsl | 4 +- .../uint_slessthan/0.spvasm.expected.glsl | 4 +- .../uint_slessthan/0.wgsl.expected.glsl | 4 +- .../0.spvasm.expected.glsl | 4 +- .../uint_slessthanequal/0.wgsl.expected.glsl | 4 +- .../0-opt.spvasm.expected.glsl | 4 +- .../glsl_int_uclamp/0-opt.wgsl.expected.glsl | 4 +- .../glsl_uint_sabs/0-opt.spvasm.expected.glsl | 4 +- .../glsl_uint_sabs/0-opt.wgsl.expected.glsl | 4 +- .../0-opt.spvasm.expected.glsl | 4 +- .../glsl_uint_sclamp/0-opt.wgsl.expected.glsl | 4 +- .../glsl_uint_smax/0-opt.spvasm.expected.glsl | 4 +- .../glsl_uint_smax/0-opt.wgsl.expected.glsl | 4 +- .../glsl_uint_smin/0-opt.spvasm.expected.glsl | 4 +- .../glsl_uint_smin/0-opt.wgsl.expected.glsl | 4 +- .../uint_sdiv/0-opt.spvasm.expected.glsl | 4 +- .../uint_sdiv/0-opt.wgsl.expected.glsl | 4 +- .../uint_snegate/0-opt.spvasm.expected.glsl | 4 +- .../uint_snegate/0-opt.wgsl.expected.glsl | 4 +- .../2-opt.spvasm.expected.glsl | 10 +- .../no_ssbo_store/1.spvasm.expected.glsl | 6 +- .../no_ssbo_store/1.wgsl.expected.glsl | 6 +- .../1.spvasm.expected.glsl | 6 +- .../1.wgsl.expected.glsl | 6 +- 1730 files changed, 5934 insertions(+), 5763 deletions(-) diff --git a/src/writer/glsl/generator_impl.cc b/src/writer/glsl/generator_impl.cc index c5a8253357..f1e726b314 100644 --- a/src/writer/glsl/generator_impl.cc +++ b/src/writer/glsl/generator_impl.cc @@ -124,9 +124,6 @@ GeneratorImpl::GeneratorImpl(const Program* program) : TextGenerator(program) {} GeneratorImpl::~GeneratorImpl() = default; bool GeneratorImpl::Generate() { - const TypeInfo* last_kind = nullptr; - size_t last_padding_line = 0; - line() << "#version 310 es"; line() << "precision mediump float;"; @@ -139,17 +136,6 @@ bool GeneratorImpl::Generate() { continue; // Ignore aliases. } - // Emit a new line between declarations if the type of declaration has - // changed, or we're about to emit a function - auto* kind = &decl->TypeInfo(); - if (current_buffer_->lines.size() != last_padding_line) { - if (last_kind && (last_kind != kind || decl->Is())) { - line(); - last_padding_line = current_buffer_->lines.size(); - } - } - last_kind = kind; - if (auto* global = decl->As()) { if (!EmitGlobalVariable(global)) { return false; @@ -1632,6 +1618,7 @@ bool GeneratorImpl::EmitFunction(const ast::Function* func) { } line() << "}"; + line(); return true; } @@ -1677,6 +1664,7 @@ bool GeneratorImpl::EmitUniformVariable(const sem::Variable* var) { EmitStructMembers(current_buffer_, str); auto name = builder_.Symbols().NameFor(decl->symbol); line() << "} " << name << ";"; + line(); return true; } @@ -1891,36 +1879,37 @@ bool GeneratorImpl::EmitDecorations(std::ostream& out, bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) { auto* func_sem = builder_.Sem().Get(func); + if (func->PipelineStage() == ast::PipelineStage::kCompute) { + auto out = line(); + // Emit the layout(local_size) attributes. + auto wgsize = func_sem->WorkgroupSize(); + out << "layout("; + for (int i = 0; i < 3; i++) { + if (i > 0) { + out << ", "; + } + out << "local_size_" << (i == 0 ? "x" : i == 1 ? "y" : "z") << " = "; + + if (wgsize[i].overridable_const) { + auto* global = builder_.Sem().Get( + wgsize[i].overridable_const); + if (!global->IsOverridable()) { + TINT_ICE(Writer, builder_.Diagnostics()) + << "expected a pipeline-overridable constant"; + } + out << kSpecConstantPrefix << global->ConstantId(); + } else { + out << std::to_string(wgsize[i].value); + } + } + out << ") in;"; + } + + // Emit original entry point signature { auto out = line(); - if (func->PipelineStage() == ast::PipelineStage::kCompute) { - // Emit the layout(local_size) attributes. - auto wgsize = func_sem->WorkgroupSize(); - out << "layout("; - for (int i = 0; i < 3; i++) { - if (i > 0) { - out << ", "; - } - out << "local_size_" << (i == 0 ? "x" : i == 1 ? "y" : "z") << " = "; - - if (wgsize[i].overridable_const) { - auto* global = builder_.Sem().Get( - wgsize[i].overridable_const); - if (!global->IsOverridable()) { - TINT_ICE(Writer, builder_.Diagnostics()) - << "expected a pipeline-overridable constant"; - } - out << kSpecConstantPrefix << global->ConstantId(); - } else { - out << std::to_string(wgsize[i].value); - } - } - out << ") in;" << std::endl; - } - - out << func->return_type->FriendlyName(builder_.Symbols()); - - out << " " << builder_.Symbols().NameFor(func->symbol) << "("; + out << func->return_type->FriendlyName(builder_.Symbols()) << " " + << builder_.Symbols().NameFor(func->symbol) << "("; bool first = true; @@ -1949,6 +1938,7 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) { out << ") {"; } + // Emit original entry point function body { ScopedIndent si(this); @@ -1966,13 +1956,13 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) { line() << "}"; - auto out = line(); - // Declare entry point input variables for (auto* var : func->params) { auto* sem = builder_.Sem().Get(var); auto* str = sem->Type()->As(); for (auto* member : str->Members()) { + auto out = line(); + auto decorations = member->Declaration()->decorations; if (ast::HasDecoration(decorations)) { continue; @@ -1990,7 +1980,7 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) { builder_.Symbols().NameFor(member->Declaration()->symbol))) { return false; } - out << ";" << std::endl; + out << ";"; } } @@ -1998,6 +1988,7 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) { auto* return_type = func_sem->ReturnType()->As(); if (return_type) { for (auto* member : return_type->Members()) { + auto out = line(); auto decorations = member->Declaration()->decorations; if (ast::HasDecoration(decorations)) { continue; @@ -2015,82 +2006,93 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) { builder_.Symbols().NameFor(member->Declaration()->symbol))) { return false; } - out << ";" << std::endl; + out << ";"; } } + line(); // Create a main() function which calls the entry point. - out << "void main() {" << std::endl; - std::string printed_name; - for (auto* var : func->params) { - out << " "; - auto* sem = builder_.Sem().Get(var); - if (!EmitTypeAndName(out, sem->Type(), sem->StorageClass(), sem->Access(), - "inputs")) { - return false; - } - out << ";" << std::endl; - auto* type = sem->Type(); - auto* str = type->As(); - for (auto* member : str->Members()) { - std::string name = - builder_.Symbols().NameFor(member->Declaration()->symbol); - out << " inputs." << name << " = "; - if (auto* builtin = ast::GetDecoration( - member->Declaration()->decorations)) { - if (builtin_type(builtin->builtin) != member->Type()) { - if (!EmitType(out, member->Type(), ast::StorageClass::kNone, - ast::Access::kReadWrite, "")) { - return false; - } - out << "("; - out << builtin_to_string(builtin->builtin, func->PipelineStage()); - out << ")"; - } else { - out << builtin_to_string(builtin->builtin, func->PipelineStage()); + line() << "void main() {"; + + // Emit main function body + { + ScopedIndent si(this); + for (auto* var : func->params) { + auto* sem = builder_.Sem().Get(var); + auto* type = sem->Type(); + { + auto out = line(); + if (!EmitTypeAndName(out, type, sem->StorageClass(), sem->Access(), + "inputs")) { + return false; } - } else { - out << name; + out << ";"; } - out << ";" << std::endl; + auto* str = type->As(); + for (auto* member : str->Members()) { + auto out = line(); + std::string name = + builder_.Symbols().NameFor(member->Declaration()->symbol); + out << "inputs." << name << " = "; + if (auto* builtin = ast::GetDecoration( + member->Declaration()->decorations)) { + if (builtin_type(builtin->builtin) != member->Type()) { + if (!EmitType(out, member->Type(), ast::StorageClass::kNone, + ast::Access::kReadWrite, "")) { + return false; + } + out << "("; + out << builtin_to_string(builtin->builtin, func->PipelineStage()); + out << ")"; + } else { + out << builtin_to_string(builtin->builtin, func->PipelineStage()); + } + } else { + out << name; + } + out << ";"; + } + } + + if (return_type) { + line() << return_type->FriendlyName(builder_.Symbols()) << " outputs;"; + } + { + auto out = line(); + if (return_type) { + out << "outputs = "; + } + out << builder_.Symbols().NameFor(func->symbol); + if (func->params.empty()) { + out << "()"; + } else { + out << "(inputs)"; + } + out << ";"; + } + + auto* str = func_sem->ReturnType()->As(); + if (str) { + for (auto* member : str->Members()) { + auto out = line(); + std::string name = + builder_.Symbols().NameFor(member->Declaration()->symbol); + if (auto* builtin = ast::GetDecoration( + member->Declaration()->decorations)) { + out << builtin_to_string(builtin->builtin, func->PipelineStage()); + } else { + out << name; + } + out << " = outputs." << name << ";"; + } + } + if (func->PipelineStage() == ast::PipelineStage::kVertex) { + line() << "gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;"; + line() << "gl_Position.y = -gl_Position.y;"; } } - out << " "; - if (return_type) { - out << return_type->FriendlyName(builder_.Symbols()) << " " - << "outputs;" << std::endl; - out << " outputs = "; - } - out << builder_.Symbols().NameFor(func->symbol); - if (func->params.empty()) { - out << "()"; - } else { - out << "(inputs)"; - } - out << ";" << std::endl; - - auto* str = func_sem->ReturnType()->As(); - if (str) { - for (auto* member : str->Members()) { - std::string name = - builder_.Symbols().NameFor(member->Declaration()->symbol); - out << " "; - if (auto* builtin = ast::GetDecoration( - member->Declaration()->decorations)) { - out << builtin_to_string(builtin->builtin, func->PipelineStage()); - } else { - out << name; - } - out << " = outputs." << name << ";" << std::endl; - } - } - if (func->PipelineStage() == ast::PipelineStage::kVertex) { - out << " gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;" - << std::endl; - out << " gl_Position.y = -gl_Position.y;" << std::endl; - } - - out << "}" << std::endl << std::endl; + line() << "}"; + line(); return true; } @@ -2611,6 +2613,7 @@ bool GeneratorImpl::EmitStructType(TextBuffer* b, const sem::Struct* str) { line(b) << "struct " << StructName(str) << " {"; EmitStructMembers(b, str); line(b) << "};"; + line(b); return true; } diff --git a/src/writer/glsl/generator_impl_function_test.cc b/src/writer/glsl/generator_impl_function_test.cc index b6e9fe7b6d..c4bc9bbf75 100644 --- a/src/writer/glsl/generator_impl_function_test.cc +++ b/src/writer/glsl/generator_impl_function_test.cc @@ -45,6 +45,7 @@ TEST_F(GlslGeneratorImplTest_Function, Emit_Function) { void my_func() { return; } + )"); } @@ -82,6 +83,7 @@ TEST_F(GlslGeneratorImplTest_Function, Emit_Function_WithParams) { void my_func(float a, int b) { return; } + )"); } @@ -101,11 +103,11 @@ precision mediump float; void func() { return; } + void main() { func(); } - )"); } @@ -143,6 +145,7 @@ precision mediump float; struct tint_symbol_1 { float foo; }; + struct tint_symbol_2 { float value; }; @@ -159,6 +162,7 @@ tint_symbol_2 frag_main(tint_symbol_1 tint_symbol) { } layout(location = 0) in float foo; layout(location = 1) out float value; + void main() { tint_symbol_1 inputs; inputs.foo = foo; @@ -167,7 +171,6 @@ void main() { value = outputs.value; } - )"); } @@ -192,6 +195,7 @@ precision mediump float; struct tint_symbol_1 { vec4 coord; }; + struct tint_symbol_2 { float value; }; @@ -206,6 +210,9 @@ tint_symbol_2 frag_main(tint_symbol_1 tint_symbol) { wrapper_result.value = inner_result; return wrapper_result; } + + + void main() { tint_symbol_1 inputs; inputs.coord = gl_FragCoord; @@ -214,7 +221,6 @@ void main() { gl_FragDepth = outputs.value; } - )"); } @@ -265,6 +271,7 @@ struct Interface { float col1; float col2; }; + struct tint_symbol { float col1; float col2; @@ -286,6 +293,8 @@ tint_symbol vert_main() { } layout(location = 1) out float col1; layout(location = 2) out float col2; + + void main() { tint_symbol outputs; outputs = vert_main(); @@ -296,8 +305,6 @@ void main() { gl_Position.y = -gl_Position.y; } - - struct tint_symbol_2 { float col1; float col2; @@ -317,6 +324,8 @@ void frag_main(tint_symbol_2 tint_symbol_1) { } layout(location = 1) in float col1; layout(location = 2) in float col2; + + void main() { tint_symbol_2 inputs; inputs.col1 = col1; @@ -325,7 +334,6 @@ void main() { frag_main(inputs); } - )"); } @@ -451,11 +459,11 @@ void frag_main() { float v = sub_func(1.0f); return; } + void main() { frag_main(); } - )"); } @@ -500,11 +508,11 @@ void frag_main() { float v = uniforms.coord.x; return; } + void main() { frag_main(); } - )"); } @@ -551,16 +559,15 @@ layout(binding = 0) buffer Data_1 { int a; float b; } coord; - void frag_main() { float v = coord.b; return; } + void main() { frag_main(); } - )"); } @@ -607,16 +614,15 @@ layout(binding = 0) buffer Data_1 { int a; float b; } coord; - void frag_main() { float v = coord.b; return; } + void main() { frag_main(); } - )"); } @@ -659,16 +665,15 @@ layout(binding = 0) buffer Data_1 { int a; float b; } coord; - void frag_main() { coord.b = 2.0f; return; } + void main() { frag_main(); } - )"); } @@ -712,16 +717,15 @@ layout(binding = 0) buffer Data_1 { int a; float b; } coord; - void frag_main() { coord.b = 2.0f; return; } + void main() { frag_main(); } - )"); } @@ -774,11 +778,11 @@ void frag_main() { float v = sub_func(1.0f); return; } + void main() { frag_main(); } - )"); } @@ -824,7 +828,6 @@ struct S { layout(binding = 0) buffer S_1 { float x; } coord; - float sub_func(float param) { return coord.x; } @@ -833,11 +836,11 @@ void frag_main() { float v = sub_func(1.0f); return; } + void main() { frag_main(); } - )"); } @@ -857,11 +860,11 @@ precision mediump float; void tint_symbol() { return; } + void main() { tint_symbol(); } - )"); } @@ -882,11 +885,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void main() { return; } + void main() { main(); } - )"); } @@ -908,11 +911,11 @@ layout(local_size_x = 2, local_size_y = 4, local_size_z = 6) in; void main() { return; } + void main() { main(); } - )"); } @@ -936,16 +939,15 @@ precision mediump float; const int width = int(2); const int height = int(3); const int depth = int(4); - layout(local_size_x = 2, local_size_y = 3, local_size_z = 4) in; void main() { return; } + void main() { main(); } - )"); } @@ -978,16 +980,15 @@ const int height = WGSL_SPEC_CONSTANT_8; #define WGSL_SPEC_CONSTANT_9 int(4) #endif const int depth = WGSL_SPEC_CONSTANT_9; - layout(local_size_x = WGSL_SPEC_CONSTANT_7, local_size_y = WGSL_SPEC_CONSTANT_8, local_size_z = WGSL_SPEC_CONSTANT_9) in; void main() { return; } + void main() { main(); } - )"); } @@ -1006,6 +1007,7 @@ precision mediump float; void my_func(float a[5]) { return; } + )"); } @@ -1024,6 +1026,7 @@ precision mediump float; float[5] my_func() { return float[5](0.0f, 0.0f, 0.0f, 0.0f, 0.0f); } + )"); } @@ -1093,28 +1096,26 @@ struct Data { layout(binding = 0) buffer Data_1 { float d; } data; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void a() { float v = data.d; return; } + void main() { a(); } - - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void b() { float v = data.d; return; } + void main() { b(); } - )"); } diff --git a/src/writer/glsl/generator_impl_intrinsic_test.cc b/src/writer/glsl/generator_impl_intrinsic_test.cc index 102f7c378b..6a14bf9dd3 100644 --- a/src/writer/glsl/generator_impl_intrinsic_test.cc +++ b/src/writer/glsl/generator_impl_intrinsic_test.cc @@ -405,11 +405,11 @@ void test_function() { float tint_symbol = tint_degrees(val); return; } + void main() { test_function(); } - )"); } @@ -435,11 +435,11 @@ void test_function() { vec3 tint_symbol = tint_degrees(val); return; } + void main() { test_function(); } - )"); } @@ -465,11 +465,11 @@ void test_function() { float tint_symbol = tint_radians(val); return; } + void main() { test_function(); } - )"); } @@ -495,11 +495,11 @@ void test_function() { vec3 tint_symbol = tint_radians(val); return; } + void main() { test_function(); } - )"); } @@ -736,17 +736,16 @@ int tint_int_dot(ivec3 a, ivec3 b) { } ivec3 v = ivec3(0, 0, 0); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void test_function() { tint_int_dot(v, v); return; } + void main() { test_function(); } - )"); } @@ -765,17 +764,16 @@ uint tint_int_dot(uvec3 a, uvec3 b) { } uvec3 v = uvec3(0u, 0u, 0u); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void test_function() { tint_int_dot(v, v); return; } + void main() { test_function(); } - )"); } diff --git a/src/writer/glsl/generator_impl_member_accessor_test.cc b/src/writer/glsl/generator_impl_member_accessor_test.cc index cef3da6149..6a5f5a8b11 100644 --- a/src/writer/glsl/generator_impl_member_accessor_test.cc +++ b/src/writer/glsl/generator_impl_member_accessor_test.cc @@ -140,17 +140,16 @@ struct Data { }; Data str = Data(0.0f); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void test_function() { float expr = str.mem; return; } + void main() { test_function(); } - )"); } @@ -305,16 +304,15 @@ layout(binding = 0) buffer Data_1 { int a; mat2x3 b; } data; - void tint_symbol() { data.b = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -355,16 +353,15 @@ layout(binding = 0) buffer Data_1 { float z; mat4x3 a; } data; - void tint_symbol() { float x = data.a[2][1]; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -403,16 +400,15 @@ layout(binding = 0) buffer Data_1 { float z; int a[5]; } data; - void tint_symbol() { int x = data.a[2]; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -452,16 +448,15 @@ layout(binding = 0) buffer Data_1 { float z; int a[5]; } data; - void tint_symbol() { int x = data.a[((2 + 4) - 3)]; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -498,16 +493,15 @@ layout(binding = 0) buffer Data_1 { float z; int a[5]; } data; - void tint_symbol() { data.a[2] = 2; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -550,6 +544,7 @@ struct Inner { vec3 a; vec3 b; }; + struct Data { Inner c[4]; }; @@ -557,16 +552,15 @@ struct Data { layout(binding = 0) buffer Data_1 { Inner c[4]; } data; - void tint_symbol() { vec3 x = data.c[2].b; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -612,6 +606,7 @@ struct Inner { vec3 a; vec3 b; }; + struct Data { Inner c[4]; }; @@ -619,16 +614,15 @@ struct Data { layout(binding = 0) buffer Data_1 { Inner c[4]; } data; - void tint_symbol() { vec2 x = data.c[2].b.xy; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -674,6 +668,7 @@ struct Inner { vec3 a; vec3 b; }; + struct Data { Inner c[4]; }; @@ -681,16 +676,15 @@ struct Data { layout(binding = 0) buffer Data_1 { Inner c[4]; } data; - void tint_symbol() { float x = data.c[2].b.g; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -736,6 +730,7 @@ struct Inner { vec3 a; vec3 b; }; + struct Data { Inner c[4]; }; @@ -743,16 +738,15 @@ struct Data { layout(binding = 0) buffer Data_1 { Inner c[4]; } data; - void tint_symbol() { float x = data.c[2].b[1]; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -794,6 +788,7 @@ struct Inner { vec3 a; vec3 b; }; + struct Data { Inner c[4]; }; @@ -801,16 +796,15 @@ struct Data { layout(binding = 0) buffer Data_1 { Inner c[4]; } data; - void tint_symbol() { data.c[2].b = vec3(1.0f, 2.0f, 3.0f); return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } @@ -856,6 +850,7 @@ struct Inner { ivec3 a; vec3 b; }; + struct Data { Inner c[4]; }; @@ -863,16 +858,15 @@ struct Data { layout(binding = 0) buffer Data_1 { Inner c[4]; } data; - void tint_symbol() { data.c[2].b.y = 1.0f; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(gen.result(), expected); } diff --git a/src/writer/glsl/generator_impl_sanitizer_test.cc b/src/writer/glsl/generator_impl_sanitizer_test.cc index a3e272d31a..abf7783c00 100644 --- a/src/writer/glsl/generator_impl_sanitizer_test.cc +++ b/src/writer/glsl/generator_impl_sanitizer_test.cc @@ -51,11 +51,9 @@ TEST_F(GlslSanitizerTest, Call_ArrayLength) { auto* expect = R"(#version 310 es precision mediump float; - layout(binding = 1) buffer my_struct_1 { float a[]; } b; - void a_func() { uint tint_symbol_1 = 0u; b.GetDimensions(tint_symbol_1); @@ -63,11 +61,11 @@ void a_func() { uint len = tint_symbol_2; return; } + void main() { a_func(); } - )"; EXPECT_EQ(expect, got); } @@ -102,12 +100,10 @@ TEST_F(GlslSanitizerTest, Call_ArrayLength_OtherMembersInStruct) { auto* expect = R"(#version 310 es precision mediump float; - layout(binding = 1) buffer my_struct_1 { float z; float a[]; } b; - void a_func() { uint tint_symbol_1 = 0u; b.GetDimensions(tint_symbol_1); @@ -115,11 +111,11 @@ void a_func() { uint len = tint_symbol_2; return; } + void main() { a_func(); } - )"; EXPECT_EQ(expect, got); @@ -156,11 +152,9 @@ TEST_F(GlslSanitizerTest, Call_ArrayLength_ViaLets) { auto* expect = R"(#version 310 es precision mediump float; - layout(binding = 1) buffer my_struct_1 { float a[]; } b; - void a_func() { uint tint_symbol_1 = 0u; b.GetDimensions(tint_symbol_1); @@ -168,11 +162,11 @@ void a_func() { uint len = tint_symbol_2; return; } + void main() { a_func(); } - )"; EXPECT_EQ(expect, got); @@ -204,11 +198,11 @@ void tint_symbol() { int pos = tint_symbol_1[3]; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(expect, got); } @@ -251,11 +245,11 @@ void tint_symbol() { vec3 pos = tint_symbol_1.b; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(expect, got); } @@ -292,11 +286,11 @@ void tint_symbol() { int x = v; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(expect, got); } @@ -345,11 +339,11 @@ void tint_symbol() { vec4 v = a[3][2]; return; } + void main() { tint_symbol(); } - )"; EXPECT_EQ(expect, got); } diff --git a/src/writer/glsl/generator_impl_test.cc b/src/writer/glsl/generator_impl_test.cc index 1f9db55849..d264afb105 100644 --- a/src/writer/glsl/generator_impl_test.cc +++ b/src/writer/glsl/generator_impl_test.cc @@ -33,6 +33,7 @@ precision mediump float; void my_func() { } + )"); } diff --git a/src/writer/glsl/generator_impl_type_test.cc b/src/writer/glsl/generator_impl_type_test.cc index 2a042cd8ad..9ab92a2caf 100644 --- a/src/writer/glsl/generator_impl_type_test.cc +++ b/src/writer/glsl/generator_impl_type_test.cc @@ -180,6 +180,7 @@ TEST_F(GlslGeneratorImplTest_Type, EmitType_StructDecl) { int a; float b; }; + )"); } @@ -235,6 +236,7 @@ TEST_F(GlslGeneratorImplTest_Type, EmitType_Struct_WithOffsetAttributes) { int a; float b; }; + )"); } diff --git a/test/access/let/matrix.spvasm.expected.glsl b/test/access/let/matrix.spvasm.expected.glsl index cde810ea76..09bbe7deb2 100644 --- a/test/access/let/matrix.spvasm.expected.glsl +++ b/test/access/let/matrix.spvasm.expected.glsl @@ -11,8 +11,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/access/let/matrix.wgsl.expected.glsl b/test/access/let/matrix.wgsl.expected.glsl index 69e59d1d76..e1c125da92 100644 --- a/test/access/let/matrix.wgsl.expected.glsl +++ b/test/access/let/matrix.wgsl.expected.glsl @@ -8,8 +8,8 @@ void tint_symbol() { float f = v[1]; return; } + void main() { tint_symbol(); } - diff --git a/test/access/let/vector.spvasm.expected.glsl b/test/access/let/vector.spvasm.expected.glsl index 9f6a0840ad..8d9f092830 100644 --- a/test/access/let/vector.spvasm.expected.glsl +++ b/test/access/let/vector.spvasm.expected.glsl @@ -13,8 +13,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/access/let/vector.wgsl.expected.glsl b/test/access/let/vector.wgsl.expected.glsl index fe1e88c63f..31cc9c0338 100644 --- a/test/access/let/vector.wgsl.expected.glsl +++ b/test/access/let/vector.wgsl.expected.glsl @@ -9,8 +9,8 @@ void tint_symbol() { vec3 swizzle3 = v.xzy; return; } + void main() { tint_symbol(); } - diff --git a/test/access/var/matrix.spvasm.expected.glsl b/test/access/var/matrix.spvasm.expected.glsl index de758b01db..b906e9af1e 100644 --- a/test/access/var/matrix.spvasm.expected.glsl +++ b/test/access/var/matrix.spvasm.expected.glsl @@ -13,8 +13,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/access/var/matrix.wgsl.expected.glsl b/test/access/var/matrix.wgsl.expected.glsl index 8416591d25..42db3ddbc1 100644 --- a/test/access/var/matrix.wgsl.expected.glsl +++ b/test/access/var/matrix.wgsl.expected.glsl @@ -8,8 +8,8 @@ void tint_symbol() { float f = v[1]; return; } + void main() { tint_symbol(); } - diff --git a/test/access/var/vector.spvasm.expected.glsl b/test/access/var/vector.spvasm.expected.glsl index 076fbefa69..05991e5421 100644 --- a/test/access/var/vector.spvasm.expected.glsl +++ b/test/access/var/vector.spvasm.expected.glsl @@ -16,8 +16,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/access/var/vector.wgsl.expected.glsl b/test/access/var/vector.wgsl.expected.glsl index 545f67362f..0d3c2334d4 100644 --- a/test/access/var/vector.wgsl.expected.glsl +++ b/test/access/var/vector.wgsl.expected.glsl @@ -9,8 +9,8 @@ void tint_symbol() { vec3 swizzle3 = v.xzy; return; } + void main() { tint_symbol(); } - diff --git a/test/array/assign_to_function_var.wgsl.expected.glsl b/test/array/assign_to_function_var.wgsl.expected.glsl index 18b10ddb4e..54f1d2147b 100644 --- a/test/array/assign_to_function_var.wgsl.expected.glsl +++ b/test/array/assign_to_function_var.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec4 arr[4]; }; @@ -20,10 +19,10 @@ shared ivec4 src_workgroup[4]; layout(binding = 0) uniform S_1 { ivec4 arr[4]; } src_uniform; + layout(binding = 1) buffer S_2 { ivec4 arr[4]; } src_storage; - ivec4[4] ret_arr() { ivec4 tint_symbol[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0)); return tint_symbol; @@ -53,3 +52,4 @@ void foo(ivec4 src_param[4]) { int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0))); dst_nested = src_nested; } + diff --git a/test/array/assign_to_private_var.wgsl.expected.glsl b/test/array/assign_to_private_var.wgsl.expected.glsl index bbda26a1ab..f3898a9369 100644 --- a/test/array/assign_to_private_var.wgsl.expected.glsl +++ b/test/array/assign_to_private_var.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec4 arr[4]; }; @@ -20,12 +19,12 @@ shared ivec4 src_workgroup[4]; layout(binding = 0) uniform S_1 { ivec4 arr[4]; } src_uniform; + layout(binding = 1) buffer S_2 { ivec4 arr[4]; } src_storage; ivec4 dst[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0)); int dst_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0))); - ivec4[4] ret_arr() { ivec4 tint_symbol[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0)); return tint_symbol; @@ -53,3 +52,4 @@ void foo(ivec4 src_param[4]) { int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0))); dst_nested = src_nested; } + diff --git a/test/array/assign_to_storage_var.wgsl.expected.glsl b/test/array/assign_to_storage_var.wgsl.expected.glsl index 3cb45d2123..3ef6d59418 100644 --- a/test/array/assign_to_storage_var.wgsl.expected.glsl +++ b/test/array/assign_to_storage_var.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec4 arr[4]; }; + struct S_nested { int arr[4][3][2]; }; @@ -23,6 +23,7 @@ shared ivec4 src_workgroup[4]; layout(binding = 0) uniform S_1 { ivec4 arr[4]; } src_uniform; + layout(binding = 1) buffer S_2 { ivec4 arr[4]; } src_storage; @@ -32,7 +33,6 @@ layout(binding = 2) buffer S_3 { layout(binding = 3) buffer S_nested_1 { int arr[4][3][2]; } dst_nested; - ivec4[4] ret_arr() { ivec4 tint_symbol[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0)); return tint_symbol; @@ -60,3 +60,4 @@ void foo(ivec4 src_param[4]) { int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0))); dst_nested.arr = src_nested; } + diff --git a/test/array/assign_to_subexpr.wgsl.expected.glsl b/test/array/assign_to_subexpr.wgsl.expected.glsl index 13e169007d..0bec2421b3 100644 --- a/test/array/assign_to_subexpr.wgsl.expected.glsl +++ b/test/array/assign_to_subexpr.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { int arr[4]; }; @@ -26,3 +25,4 @@ void foo() { dst_struct.arr = src; dst_array[0] = src; } + diff --git a/test/array/assign_to_workgroup_var.wgsl.expected.glsl b/test/array/assign_to_workgroup_var.wgsl.expected.glsl index 3f88a39229..9cc8828ba4 100644 --- a/test/array/assign_to_workgroup_var.wgsl.expected.glsl +++ b/test/array/assign_to_workgroup_var.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec4 arr[4]; }; @@ -20,12 +19,12 @@ shared ivec4 src_workgroup[4]; layout(binding = 0) uniform S_1 { ivec4 arr[4]; } src_uniform; + layout(binding = 1) buffer S_2 { ivec4 arr[4]; } src_storage; shared ivec4 dst[4]; shared int dst_nested[4][3][2]; - ivec4[4] ret_arr() { ivec4 tint_symbol[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0)); return tint_symbol; @@ -53,3 +52,4 @@ void foo(ivec4 src_param[4]) { int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0))); dst_nested = src_nested; } + diff --git a/test/array/function_parameter.wgsl.expected.glsl b/test/array/function_parameter.wgsl.expected.glsl index 9164984c86..20052981f0 100644 --- a/test/array/function_parameter.wgsl.expected.glsl +++ b/test/array/function_parameter.wgsl.expected.glsl @@ -23,8 +23,8 @@ void tint_symbol() { float v3 = f3(a3); return; } + void main() { tint_symbol(); } - diff --git a/test/array/function_return_type.wgsl.expected.glsl b/test/array/function_return_type.wgsl.expected.glsl index 1a9b8b138b..565b3ce69b 100644 --- a/test/array/function_return_type.wgsl.expected.glsl +++ b/test/array/function_return_type.wgsl.expected.glsl @@ -23,8 +23,8 @@ void tint_symbol() { float a3[2][3][4] = f3(); return; } + void main() { tint_symbol(); } - diff --git a/test/array/size.wgsl.expected.glsl b/test/array/size.wgsl.expected.glsl index 3f284484c2..080117c0ae 100644 --- a/test/array/size.wgsl.expected.glsl +++ b/test/array/size.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; const int slen = 4; const uint ulen = 4u; - void tint_symbol() { float signed_literal[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f); float unsigned_literal[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f); @@ -13,8 +12,8 @@ void tint_symbol() { signed_constant = unsigned_literal; return; } + void main() { tint_symbol(); } - diff --git a/test/array/type_constructor.wgsl.expected.glsl b/test/array/type_constructor.wgsl.expected.glsl index 25c35d3370..7f3f884d57 100644 --- a/test/array/type_constructor.wgsl.expected.glsl +++ b/test/array/type_constructor.wgsl.expected.glsl @@ -38,8 +38,8 @@ void tint_symbol() { int subexpr_nested_nonempty_with_expr[4] = tint_symbol_20[1]; return; } + void main() { tint_symbol(); } - diff --git a/test/benchmark/animometer.wgsl.expected.glsl b/test/benchmark/animometer.wgsl.expected.glsl index 976115fb36..3a6d303b05 100644 --- a/test/benchmark/animometer.wgsl.expected.glsl +++ b/test/benchmark/animometer.wgsl.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct Time { float value; }; + struct Uniforms { float scale; float offsetX; @@ -17,6 +18,7 @@ struct Uniforms { layout(binding = 0) uniform Time_1 { float value; } time; + layout(binding = 1) uniform Uniforms_1 { float scale; float offsetX; @@ -29,10 +31,12 @@ struct VertexOutput { vec4 Position; vec4 v_color; }; + struct tint_symbol_2 { vec4 position; vec4 color; }; + struct tint_symbol_3 { vec4 v_color; vec4 Position; @@ -61,6 +65,7 @@ VertexOutput vert_main_inner(vec4 position, vec4 color) { struct tint_symbol_5 { vec4 v_color; }; + struct tint_symbol_6 { vec4 value; }; @@ -75,6 +80,8 @@ tint_symbol_3 vert_main(tint_symbol_2 tint_symbol_1) { layout(location = 0) in vec4 position; layout(location = 1) in vec4 color; layout(location = 0) out vec4 v_color; + + void main() { tint_symbol_2 inputs; inputs.position = position; @@ -87,10 +94,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:40: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' const float' (or there is no acceptable conversion) -ERROR: 0:40: '' : compilation terminated +ERROR: 0:44: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' const float' (or there is no acceptable conversion) +ERROR: 0:44: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -101,6 +107,7 @@ precision mediump float; struct Time { float value; }; + struct Uniforms { float scale; float offsetX; @@ -108,21 +115,26 @@ struct Uniforms { float scalar; float scalarOffset; }; + struct VertexOutput { vec4 Position; vec4 v_color; }; + struct tint_symbol_2 { vec4 position; vec4 color; }; + struct tint_symbol_3 { vec4 v_color; vec4 Position; }; + struct tint_symbol_5 { vec4 v_color; }; + struct tint_symbol_6 { vec4 value; }; @@ -139,6 +151,7 @@ tint_symbol_6 frag_main(tint_symbol_5 tint_symbol_4) { } layout(location = 0) in vec4 v_color; layout(location = 0) out vec4 value; + void main() { tint_symbol_5 inputs; inputs.v_color = v_color; @@ -147,4 +160,3 @@ void main() { value = outputs.value; } - diff --git a/test/benchmark/particles.wgsl.expected.glsl b/test/benchmark/particles.wgsl.expected.glsl index 8319db1a4e..1491dca128 100644 --- a/test/benchmark/particles.wgsl.expected.glsl +++ b/test/benchmark/particles.wgsl.expected.glsl @@ -20,16 +20,19 @@ struct VertexInput { vec4 color; vec2 quad_pos; }; + struct VertexOutput { vec4 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_4 { vec3 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_5 { vec4 color; vec2 quad_pos; @@ -51,28 +54,35 @@ struct tint_symbol_7 { vec2 quad_pos; vec4 position; }; + struct tint_symbol_8 { vec4 value; }; + struct SimulationParams { float deltaTime; vec4 seed; }; + struct Particle { vec3 position; float lifetime; vec4 color; vec3 velocity; }; + struct tint_symbol_10 { uvec3 GlobalInvocationID; }; + struct UBO { uint width; }; + struct tint_symbol_12 { uvec3 coord; }; + struct tint_symbol_14 { uvec3 coord; }; @@ -91,6 +101,8 @@ layout(location = 1) in vec4 color; layout(location = 2) in vec2 quad_pos; layout(location = 0) out vec4 color; layout(location = 1) out vec2 quad_pos; + + void main() { tint_symbol_4 inputs; inputs.position = position; @@ -105,9 +117,8 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:90: 'color' : redefinition +ERROR: 0:100: 'color' : redefinition ERROR: 1 compilation errors. No code generated. @@ -120,31 +131,37 @@ struct RenderParams { vec3 right; vec3 up; }; + struct VertexInput { vec3 position; vec4 color; vec2 quad_pos; }; + struct VertexOutput { vec4 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_4 { vec3 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_5 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_7 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_8 { vec4 value; }; @@ -159,21 +176,26 @@ struct SimulationParams { float deltaTime; vec4 seed; }; + struct Particle { vec3 position; float lifetime; vec4 color; vec3 velocity; }; + struct tint_symbol_10 { uvec3 GlobalInvocationID; }; + struct UBO { uint width; }; + struct tint_symbol_12 { uvec3 coord; }; + struct tint_symbol_14 { uvec3 coord; }; @@ -187,7 +209,9 @@ tint_symbol_8 fs_main(tint_symbol_7 tint_symbol_6) { } layout(location = 0) in vec4 color; layout(location = 1) in vec2 quad_pos; + layout(location = 0) out vec4 value; + void main() { tint_symbol_7 inputs; inputs.color = color; @@ -198,12 +222,10 @@ void main() { value = outputs.value; } - #version 310 es precision mediump float; vec2 rand_seed = vec2(0.0f, 0.0f); - float rand() { rand_seed.x = frac((cos(dot(rand_seed, vec2(23.140779495f, 232.616897583f))) * 136.816802979f)); rand_seed.y = frac((cos(dot(rand_seed, vec2(54.478565216f, 345.841522217f))) * 534.764526367f)); @@ -215,38 +237,46 @@ struct RenderParams { vec3 right; vec3 up; }; + struct VertexInput { vec3 position; vec4 color; vec2 quad_pos; }; + struct VertexOutput { vec4 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_4 { vec3 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_5 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_7 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_8 { vec4 value; }; + struct SimulationParams { float deltaTime; vec4 seed; }; + struct Particle { vec3 position; float lifetime; @@ -258,16 +288,15 @@ layout(binding = 0) uniform SimulationParams_1 { float deltaTime; vec4 seed; } sim_params; + layout(binding = 1) buffer Particles_1 { Particle particles[]; } data; - struct tint_symbol_10 { uvec3 GlobalInvocationID; }; uniform highp sampler2D tint_symbol_2_1; - void simulate_inner(uvec3 GlobalInvocationID) { rand_seed = ((sim_params.seed.xy + vec2(GlobalInvocationID.xy)) * sim_params.seed.zw); uint idx = GlobalInvocationID.x; @@ -302,9 +331,11 @@ void simulate_inner(uvec3 GlobalInvocationID) { struct UBO { uint width; }; + struct tint_symbol_12 { uvec3 coord; }; + struct tint_symbol_14 { uvec3 coord; }; @@ -314,16 +345,17 @@ void simulate(tint_symbol_10 tint_symbol_9) { simulate_inner(tint_symbol_9.GlobalInvocationID); return; } + + void main() { tint_symbol_10 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; simulate(inputs); } - Error parsing GLSL shader: -ERROR: 0:7: 'frac' : no matching overloaded function found -ERROR: 0:7: '' : compilation terminated +ERROR: 0:6: 'frac' : no matching overloaded function found +ERROR: 0:6: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -336,47 +368,57 @@ struct RenderParams { vec3 right; vec3 up; }; + struct VertexInput { vec3 position; vec4 color; vec2 quad_pos; }; + struct VertexOutput { vec4 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_4 { vec3 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_5 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_7 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_8 { vec4 value; }; + struct SimulationParams { float deltaTime; vec4 seed; }; + struct Particle { vec3 position; float lifetime; vec4 color; vec3 velocity; }; + struct tint_symbol_10 { uvec3 GlobalInvocationID; }; + struct UBO { uint width; }; @@ -384,19 +426,18 @@ struct UBO { layout(binding = 3) uniform UBO_1 { uint width; } ubo; + layout(binding = 4) buffer Buffer_1 { float weights[]; } buf_in; layout(binding = 5) buffer Buffer_2 { float weights[]; } buf_out; - struct tint_symbol_12 { uvec3 coord; }; uniform highp sampler2D tex_in_1; - void import_level_inner(uvec3 coord) { uint offset = (coord.x + (coord.y * ubo.width)); buf_out.weights[offset] = texelFetch(tex_in_1, ivec2(coord.xy), 0).w; @@ -411,13 +452,14 @@ void import_level(tint_symbol_12 tint_symbol_11) { import_level_inner(tint_symbol_11.coord); return; } + + void main() { tint_symbol_12 inputs; inputs.coord = gl_GlobalInvocationID; import_level(inputs); } - #version 310 es precision mediump float; @@ -426,47 +468,57 @@ struct RenderParams { vec3 right; vec3 up; }; + struct VertexInput { vec3 position; vec4 color; vec2 quad_pos; }; + struct VertexOutput { vec4 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_4 { vec3 position; vec4 color; vec2 quad_pos; }; + struct tint_symbol_5 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_7 { vec4 color; vec2 quad_pos; vec4 position; }; + struct tint_symbol_8 { vec4 value; }; + struct SimulationParams { float deltaTime; vec4 seed; }; + struct Particle { vec3 position; float lifetime; vec4 color; vec3 velocity; }; + struct tint_symbol_10 { uvec3 GlobalInvocationID; }; + struct UBO { uint width; }; @@ -474,22 +526,22 @@ struct UBO { layout(binding = 3) uniform UBO_1 { uint width; } ubo; + layout(binding = 4) buffer Buffer_1 { float weights[]; } buf_in; layout(binding = 5) buffer Buffer_2 { float weights[]; } buf_out; - struct tint_symbol_12 { uvec3 coord; }; + struct tint_symbol_14 { uvec3 coord; }; layout(rgba8) uniform highp writeonly image2D tex_out_1; - void export_level_inner(uvec3 coord) { if (all(lessThan(coord.xy, uvec2(imageSize(tex_out_1))))) { uint dst_offset = (coord.x + (coord.y * ubo.width)); @@ -510,10 +562,11 @@ void export_level(tint_symbol_14 tint_symbol_13) { export_level_inner(tint_symbol_13.coord); return; } + + void main() { tint_symbol_14 inputs; inputs.coord = gl_GlobalInvocationID; export_level(inputs); } - diff --git a/test/benchmark/shadow-fragment.wgsl.expected.glsl b/test/benchmark/shadow-fragment.wgsl.expected.glsl index 2e9b3f4c5a..42f8da0465 100644 --- a/test/benchmark/shadow-fragment.wgsl.expected.glsl +++ b/test/benchmark/shadow-fragment.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; const float shadowDepthTextureSize = 1024.0f; - struct Scene { mat4 lightViewProjMatrix; mat4 cameraViewProjMatrix; @@ -25,19 +24,18 @@ struct FragmentInput { const vec3 albedo = vec3(0.899999976f, 0.899999976f, 0.899999976f); const float ambientFactor = 0.200000003f; - struct tint_symbol_3 { vec3 shadowPos; vec3 fragPos; vec3 fragNorm; }; + struct tint_symbol_4 { vec4 value; }; uniform highp sampler2D shadowMap_shadowSampler; - vec4 tint_symbol_inner(FragmentInput tint_symbol_1) { float visibility = 0.0f; float oneOverShadowDepthTextureSize = (1.0f / shadowDepthTextureSize); @@ -68,6 +66,7 @@ layout(location = 0) in vec3 shadowPos; layout(location = 1) in vec3 fragPos; layout(location = 2) in vec3 fragNorm; layout(location = 0) out vec4 value; + void main() { tint_symbol_3 inputs; inputs.shadowPos = shadowPos; @@ -78,10 +77,9 @@ void main() { value = outputs.value; } - Error parsing GLSL shader: -ERROR: 0:47: 'assign' : cannot convert from ' temp highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:47: '' : compilation terminated +ERROR: 0:45: 'assign' : cannot convert from ' temp highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:45: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/benchmark/simple-fragment.wgsl.expected.glsl b/test/benchmark/simple-fragment.wgsl.expected.glsl index c168e70a20..34e40b5b24 100644 --- a/test/benchmark/simple-fragment.wgsl.expected.glsl +++ b/test/benchmark/simple-fragment.wgsl.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct Input { vec4 color; }; + struct Output { vec4 color; }; + struct tint_symbol_3 { vec4 color; }; + struct tint_symbol_4 { vec4 color; }; @@ -30,6 +33,7 @@ tint_symbol_4 tint_symbol(tint_symbol_3 tint_symbol_2) { } layout(location = 0) in vec4 color; layout(location = 0) out vec4 color; + void main() { tint_symbol_3 inputs; inputs.color = color; @@ -38,9 +42,8 @@ void main() { color = outputs.color; } - Error parsing GLSL shader: -ERROR: 0:30: 'color' : redefinition +ERROR: 0:33: 'color' : redefinition ERROR: 1 compilation errors. No code generated. diff --git a/test/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.glsl b/test/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.glsl index c00b6b6f25..c12d1f170a 100644 --- a/test/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.glsl +++ b/test/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.glsl @@ -8,7 +8,6 @@ benchmark/skinned-shadowed-pbr-fragment.wgsl:51:13 warning: use of deprecated la precision mediump float; const float GAMMA = 2.200000048f; - vec3 linearTosRGB(vec3 linear) { float INV_GAMMA = (1.0f / GAMMA); return pow(linear, vec3(INV_GAMMA)); @@ -40,6 +39,7 @@ struct ClusterLights { uint offset; uint count; }; + struct ClusterLightGroup { uint offset; ClusterLights lights[27648]; @@ -51,7 +51,6 @@ layout(binding = 1) buffer ClusterLightGroup_1 { ClusterLights lights[27648]; uint indices[1769472]; } clusterLights; - struct Light { vec3 position; float range; @@ -68,7 +67,6 @@ layout(binding = 2) buffer GlobalLights_1 { Light lights[]; } globalLights; const uvec3 tileCount = uvec3(32u, 18u, 48u); - float linearDepth(float depthSample) { return ((camera.zFar * camera.zNear) / mad(depthSample, (camera.zNear - camera.zFar), camera.zFar)); } @@ -90,7 +88,6 @@ layout(binding = 6) buffer LightShadowTable_1 { } lightShadowTable; vec2 shadowSampleOffsets[16] = vec2[16](vec2(-1.5f, -1.5f), vec2(-1.5f, -0.5f), vec2(-1.5f, 0.5f), vec2(-1.5f, 1.5f), vec2(-0.5f, -1.5f), vec2(-0.5f, -0.5f), vec2(-0.5f, 0.5f), vec2(-0.5f, 1.5f), vec2(0.5f, -1.5f), vec2(0.5f, -0.5f), vec2(0.5f, 0.5f), vec2(0.5f, 1.5f), vec2(1.5f, -1.5f), vec2(1.5f, -0.5f), vec2(1.5f, 0.5f), vec2(1.5f, 1.5f)); const uint shadowSampleCount = 16u; - struct ShadowProperties { vec4 viewport; mat4 viewProj; @@ -102,7 +99,6 @@ layout(binding = 7) buffer LightShadows_1 { uniform highp sampler2D shadowTexture_1; uniform highp sampler2D shadowTexture_shadowSampler; - float dirLightVisibility(vec3 worldPos) { int shadowIndex = lightShadowTable.light[0u]; if ((shadowIndex == -1)) { @@ -180,6 +176,7 @@ struct VertexOutput { vec3 tangent; vec3 bitangent; }; + struct Material { vec4 baseColorFactor; vec3 emissiveFactor; @@ -214,7 +211,6 @@ uniform highp sampler2D metallicRoughnessTexture_metallicRoughnessSampler; uniform highp sampler2D occlusionTexture_occlusionSampler; uniform highp sampler2D emissiveTexture_emissiveSampler; - SurfaceInfo GetSurfaceInfo(VertexOutput tint_symbol) { SurfaceInfo surface = SurfaceInfo(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 0.0f, 0.0f, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), 0.0f, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); surface.v = normalize(tint_symbol.view); @@ -247,7 +243,6 @@ SurfaceInfo GetSurfaceInfo(VertexOutput tint_symbol) { const float PI = 3.141592741f; const uint LightType_Point = 0u; const uint LightType_Directional = 2u; - struct PuctualLight { uint lightType; vec3 pointToLight; @@ -316,6 +311,7 @@ struct FragmentOutput { vec4 color; vec4 emissive; }; + struct tint_symbol_4 { vec3 worldPos; vec3 view; @@ -328,6 +324,7 @@ struct tint_symbol_4 { vec3 bitangent; vec4 position; }; + struct tint_symbol_5 { vec4 color; vec4 emissive; @@ -335,7 +332,6 @@ struct tint_symbol_5 { uniform highp sampler2D ssaoTexture_1; uniform highp sampler2D ssaoTexture_defaultSampler; - FragmentOutput fragmentMain_inner(VertexOutput tint_symbol) { SurfaceInfo surface = GetSurfaceInfo(tint_symbol); vec3 Lo = vec3(0.0f, 0.0f, 0.0f); @@ -391,8 +387,10 @@ layout(location = 5) in vec4 instanceColor; layout(location = 6) in vec3 normal; layout(location = 7) in vec3 tangent; layout(location = 8) in vec3 bitangent; + layout(location = 0) out vec4 color; layout(location = 1) out vec4 emissive; + void main() { tint_symbol_4 inputs; inputs.worldPos = worldPos; @@ -411,10 +409,9 @@ void main() { emissive = outputs.emissive; } - Error parsing GLSL shader: -ERROR: 0:67: 'mad' : no matching overloaded function found -ERROR: 0:67: '' : compilation terminated +ERROR: 0:65: 'mad' : no matching overloaded function found +ERROR: 0:65: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/benchmark/skinned-shadowed-pbr-vertex.wgsl.expected.glsl b/test/benchmark/skinned-shadowed-pbr-vertex.wgsl.expected.glsl index 582fcd8161..ae182b5d53 100644 --- a/test/benchmark/skinned-shadowed-pbr-vertex.wgsl.expected.glsl +++ b/test/benchmark/skinned-shadowed-pbr-vertex.wgsl.expected.glsl @@ -16,6 +16,7 @@ struct VertexInput { vec4 instance3; vec4 instanceColor; }; + struct VertexOutput { vec4 position; vec3 worldPos; @@ -28,6 +29,7 @@ struct VertexOutput { vec3 tangent; vec3 bitangent; }; + struct Camera { mat4 projection; mat4 inverseProjection; @@ -56,7 +58,6 @@ layout(binding = 1) buffer Joints_1 { layout(binding = 2) buffer Joints_2 { mat4 matrices[]; } inverseBind; - mat4 getSkinMatrix(VertexInput tint_symbol) { mat4 joint0 = (joint.matrices[tint_symbol.joints.x] * inverseBind.matrices[tint_symbol.joints.x]); mat4 joint1 = (joint.matrices[tint_symbol.joints.y] * inverseBind.matrices[tint_symbol.joints.y]); @@ -79,6 +80,7 @@ struct tint_symbol_3 { vec4 instance3; vec4 instanceColor; }; + struct tint_symbol_4 { vec3 worldPos; vec3 view; @@ -144,6 +146,8 @@ layout(location = 5) out vec4 instanceColor; layout(location = 6) out vec3 normal; layout(location = 7) out vec3 tangent; layout(location = 8) out vec3 bitangent; + + void main() { tint_symbol_3 inputs; inputs.position = position; @@ -173,9 +177,8 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:138: 'texcoord' : redefinition +ERROR: 0:140: 'texcoord' : redefinition ERROR: 1 compilation errors. No code generated. diff --git a/test/buffer/storage/dynamic_index/read.wgsl.expected.glsl b/test/buffer/storage/dynamic_index/read.wgsl.expected.glsl index d468eae532..def30dbef0 100644 --- a/test/buffer/storage/dynamic_index/read.wgsl.expected.glsl +++ b/test/buffer/storage/dynamic_index/read.wgsl.expected.glsl @@ -16,7 +16,6 @@ struct Inner { layout(binding = 0) buffer S_1 { Inner arr[]; } s; - struct tint_symbol_2 { uint idx; }; @@ -38,10 +37,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.idx); return; } + + void main() { tint_symbol_2 inputs; inputs.idx = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/buffer/storage/dynamic_index/write.wgsl.expected.glsl b/test/buffer/storage/dynamic_index/write.wgsl.expected.glsl index 0921b4dad6..3ef8428023 100644 --- a/test/buffer/storage/dynamic_index/write.wgsl.expected.glsl +++ b/test/buffer/storage/dynamic_index/write.wgsl.expected.glsl @@ -16,7 +16,6 @@ struct Inner { layout(binding = 0) buffer S_1 { Inner arr[]; } s; - struct tint_symbol_2 { uint idx; }; @@ -39,10 +38,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.idx); return; } + + void main() { tint_symbol_2 inputs; inputs.idx = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/buffer/storage/static_index/read.wgsl.expected.glsl b/test/buffer/storage/static_index/read.wgsl.expected.glsl index 4924c0e9de..f46725330e 100644 --- a/test/buffer/storage/static_index/read.wgsl.expected.glsl +++ b/test/buffer/storage/static_index/read.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Inner { int x; }; + struct S { ivec3 a; int b; @@ -29,7 +30,6 @@ layout(binding = 0) buffer S_1 { Inner i; Inner j[4]; } s; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { ivec3 a = s.a; @@ -44,8 +44,8 @@ void tint_symbol() { Inner j[4] = s.j; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/storage/static_index/write.wgsl.expected.glsl b/test/buffer/storage/static_index/write.wgsl.expected.glsl index f57337cbdd..364b4f0059 100644 --- a/test/buffer/storage/static_index/write.wgsl.expected.glsl +++ b/test/buffer/storage/static_index/write.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Inner { int x; }; + struct S { ivec3 a; int b; @@ -29,7 +30,6 @@ layout(binding = 0) buffer S_1 { Inner i; Inner j[4]; } s; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { s.a = ivec3(0, 0, 0); @@ -46,8 +46,8 @@ void tint_symbol() { s.j = tint_symbol_2; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/storage/types/array.wgsl.expected.glsl b/test/buffer/storage/types/array.wgsl.expected.glsl index 50ce2f2565..183882da2c 100644 --- a/test/buffer/storage/types/array.wgsl.expected.glsl +++ b/test/buffer/storage/types/array.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { float inner[4]; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/f32.wgsl.expected.glsl b/test/buffer/storage/types/f32.wgsl.expected.glsl index bc9f222c49..40d99f7e00 100644 --- a/test/buffer/storage/types/f32.wgsl.expected.glsl +++ b/test/buffer/storage/types/f32.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { float inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/i32.wgsl.expected.glsl b/test/buffer/storage/types/i32.wgsl.expected.glsl index 69ccc1d320..976c2b2430 100644 --- a/test/buffer/storage/types/i32.wgsl.expected.glsl +++ b/test/buffer/storage/types/i32.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { int inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/mat2x2.wgsl.expected.glsl b/test/buffer/storage/types/mat2x2.wgsl.expected.glsl index 7f2232e706..2e8b06a16f 100644 --- a/test/buffer/storage/types/mat2x2.wgsl.expected.glsl +++ b/test/buffer/storage/types/mat2x2.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { mat2 inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/mat2x3.wgsl.expected.glsl b/test/buffer/storage/types/mat2x3.wgsl.expected.glsl index 0b414b214c..c4b734824e 100644 --- a/test/buffer/storage/types/mat2x3.wgsl.expected.glsl +++ b/test/buffer/storage/types/mat2x3.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { mat2x3 inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/mat3x2.wgsl.expected.glsl b/test/buffer/storage/types/mat3x2.wgsl.expected.glsl index 6fd97af3ec..0ec9fd8eda 100644 --- a/test/buffer/storage/types/mat3x2.wgsl.expected.glsl +++ b/test/buffer/storage/types/mat3x2.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { mat3x2 inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/mat4x4.wgsl.expected.glsl b/test/buffer/storage/types/mat4x4.wgsl.expected.glsl index 955e50adbc..4a1756aac2 100644 --- a/test/buffer/storage/types/mat4x4.wgsl.expected.glsl +++ b/test/buffer/storage/types/mat4x4.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { mat4 inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/runtime_array.wgsl.expected.glsl b/test/buffer/storage/types/runtime_array.wgsl.expected.glsl index b32c622d3b..2a4f200409 100644 --- a/test/buffer/storage/types/runtime_array.wgsl.expected.glsl +++ b/test/buffer/storage/types/runtime_array.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { S inner[]; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner[0] = tint_symbol.inner[0]; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/struct.wgsl.expected.glsl b/test/buffer/storage/types/struct.wgsl.expected.glsl index 74106b6a90..bc5bf8584b 100644 --- a/test/buffer/storage/types/struct.wgsl.expected.glsl +++ b/test/buffer/storage/types/struct.wgsl.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct Inner { float f; }; + struct S { Inner inner; }; @@ -16,17 +17,16 @@ layout(binding = 0) buffer S_1 { layout(binding = 1) buffer S_2 { Inner inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1 = tint_symbol; return; } + void main() { tint_symbol_2(); } - Error parsing GLSL shader: ERROR: 0:20: 'assign' : cannot convert from 'layout( binding=0 column_major shared) buffer block{layout( column_major shared) buffer structure{ global mediump float f} inner}' to 'layout( binding=1 column_major shared) buffer block{layout( column_major shared) buffer structure{ global mediump float f} inner}' ERROR: 0:20: '' : compilation terminated diff --git a/test/buffer/storage/types/u32.wgsl.expected.glsl b/test/buffer/storage/types/u32.wgsl.expected.glsl index 553d5228e8..6736a08998 100644 --- a/test/buffer/storage/types/u32.wgsl.expected.glsl +++ b/test/buffer/storage/types/u32.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { uint inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/vec2.wgsl.expected.glsl b/test/buffer/storage/types/vec2.wgsl.expected.glsl index ed93d722b0..ddcb7fe63f 100644 --- a/test/buffer/storage/types/vec2.wgsl.expected.glsl +++ b/test/buffer/storage/types/vec2.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { ivec2 inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/vec3.wgsl.expected.glsl b/test/buffer/storage/types/vec3.wgsl.expected.glsl index f98bac90ff..f780c9a56c 100644 --- a/test/buffer/storage/types/vec3.wgsl.expected.glsl +++ b/test/buffer/storage/types/vec3.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { uvec3 inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/storage/types/vec4.wgsl.expected.glsl b/test/buffer/storage/types/vec4.wgsl.expected.glsl index 36e0d15d87..414bc4af05 100644 --- a/test/buffer/storage/types/vec4.wgsl.expected.glsl +++ b/test/buffer/storage/types/vec4.wgsl.expected.glsl @@ -11,14 +11,13 @@ layout(binding = 0) buffer tint_symbol_block_1 { layout(binding = 1) buffer tint_symbol_block_2 { vec4 inner; } tint_symbol_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol_2() { tint_symbol_1.inner = tint_symbol.inner; return; } + void main() { tint_symbol_2(); } - diff --git a/test/buffer/uniform/dynamic_index/read.wgsl.expected.glsl b/test/buffer/uniform/dynamic_index/read.wgsl.expected.glsl index c6520d4721..975e4187e6 100644 --- a/test/buffer/uniform/dynamic_index/read.wgsl.expected.glsl +++ b/test/buffer/uniform/dynamic_index/read.wgsl.expected.glsl @@ -14,6 +14,7 @@ struct Inner { mat3x2 j; ivec4 k[4]; }; + struct S { Inner arr[8]; }; @@ -45,10 +46,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.idx); return; } + + void main() { tint_symbol_2 inputs; inputs.idx = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/buffer/uniform/static_index/read.wgsl.expected.glsl b/test/buffer/uniform/static_index/read.wgsl.expected.glsl index eebf1ed61b..e23579c32e 100644 --- a/test/buffer/uniform/static_index/read.wgsl.expected.glsl +++ b/test/buffer/uniform/static_index/read.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Inner { int x; }; + struct S { ivec3 a; int b; @@ -50,8 +51,8 @@ void tint_symbol() { Inner l[4] = s.l; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/array.wgsl.expected.glsl b/test/buffer/uniform/types/array.wgsl.expected.glsl index d4fe506b6c..514ba1ff58 100644 --- a/test/buffer/uniform/types/array.wgsl.expected.glsl +++ b/test/buffer/uniform/types/array.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { vec4 x[4] = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/f32.wgsl.expected.glsl b/test/buffer/uniform/types/f32.wgsl.expected.glsl index e8ce6d9f27..e3b3589fdc 100644 --- a/test/buffer/uniform/types/f32.wgsl.expected.glsl +++ b/test/buffer/uniform/types/f32.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { float x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/i32.wgsl.expected.glsl b/test/buffer/uniform/types/i32.wgsl.expected.glsl index 067e517765..6ae3def2c3 100644 --- a/test/buffer/uniform/types/i32.wgsl.expected.glsl +++ b/test/buffer/uniform/types/i32.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { int x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/mat2x2.wgsl.expected.glsl b/test/buffer/uniform/types/mat2x2.wgsl.expected.glsl index 48639af3e6..e09403c121 100644 --- a/test/buffer/uniform/types/mat2x2.wgsl.expected.glsl +++ b/test/buffer/uniform/types/mat2x2.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { mat2 x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/mat2x3.wgsl.expected.glsl b/test/buffer/uniform/types/mat2x3.wgsl.expected.glsl index be9528783f..fe7ef529e4 100644 --- a/test/buffer/uniform/types/mat2x3.wgsl.expected.glsl +++ b/test/buffer/uniform/types/mat2x3.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { mat2x3 x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/mat3x2.wgsl.expected.glsl b/test/buffer/uniform/types/mat3x2.wgsl.expected.glsl index d8529c9942..4b742e1319 100644 --- a/test/buffer/uniform/types/mat3x2.wgsl.expected.glsl +++ b/test/buffer/uniform/types/mat3x2.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { mat3x2 x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/mat4x4.wgsl.expected.glsl b/test/buffer/uniform/types/mat4x4.wgsl.expected.glsl index 616ab56cff..0305478df5 100644 --- a/test/buffer/uniform/types/mat4x4.wgsl.expected.glsl +++ b/test/buffer/uniform/types/mat4x4.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { mat4 x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/struct.wgsl.expected.glsl b/test/buffer/uniform/types/struct.wgsl.expected.glsl index 9fac48ef43..c684ea2f8e 100644 --- a/test/buffer/uniform/types/struct.wgsl.expected.glsl +++ b/test/buffer/uniform/types/struct.wgsl.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct Inner { float f; }; + struct S { Inner inner; }; @@ -19,14 +20,14 @@ void tint_symbol() { S x = u; return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:17: '=' : cannot convert from 'layout( binding=0 column_major shared) uniform block{layout( column_major shared) uniform structure{ global mediump float f} inner}' to ' temp structure{ global structure{ global mediump float f} inner}' -ERROR: 0:17: '' : compilation terminated +ERROR: 0:18: '=' : cannot convert from 'layout( binding=0 column_major shared) uniform block{layout( column_major shared) uniform structure{ global mediump float f} inner}' to ' temp structure{ global structure{ global mediump float f} inner}' +ERROR: 0:18: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/buffer/uniform/types/u32.wgsl.expected.glsl b/test/buffer/uniform/types/u32.wgsl.expected.glsl index f2aa4ceeb5..8096438350 100644 --- a/test/buffer/uniform/types/u32.wgsl.expected.glsl +++ b/test/buffer/uniform/types/u32.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { uint x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/vec2.wgsl.expected.glsl b/test/buffer/uniform/types/vec2.wgsl.expected.glsl index 4ebdfe0c3b..7ca9b13aac 100644 --- a/test/buffer/uniform/types/vec2.wgsl.expected.glsl +++ b/test/buffer/uniform/types/vec2.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { ivec2 x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/vec3.wgsl.expected.glsl b/test/buffer/uniform/types/vec3.wgsl.expected.glsl index 5174f9570a..0aba38a679 100644 --- a/test/buffer/uniform/types/vec3.wgsl.expected.glsl +++ b/test/buffer/uniform/types/vec3.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { uvec3 x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/buffer/uniform/types/vec4.wgsl.expected.glsl b/test/buffer/uniform/types/vec4.wgsl.expected.glsl index ae5afea4dc..1cbcd11ecc 100644 --- a/test/buffer/uniform/types/vec4.wgsl.expected.glsl +++ b/test/buffer/uniform/types/vec4.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { vec4 x = u.inner; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/chromium/1221120.wgsl.expected.glsl b/test/bug/chromium/1221120.wgsl.expected.glsl index fed5e2677e..eea151a484 100644 --- a/test/bug/chromium/1221120.wgsl.expected.glsl +++ b/test/bug/chromium/1221120.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const int H = 1; diff --git a/test/bug/chromium/1236161.wgsl.expected.glsl b/test/bug/chromium/1236161.wgsl.expected.glsl index 87dbeff593..fbc61f8787 100644 --- a/test/bug/chromium/1236161.wgsl.expected.glsl +++ b/test/bug/chromium/1236161.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct modf_result { float fract; float whole; }; + modf_result tint_modf(float param_0) { float whole; float fract = modf(param_0, whole); @@ -19,18 +20,18 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void i() { float s = tint_modf(1.0f).whole; } + Error parsing GLSL shader: -ERROR: 0:11: '{ } style initializers' : not supported with this profile: es -ERROR: 0:11: '' : compilation terminated +ERROR: 0:12: '{ } style initializers' : not supported with this profile: es +ERROR: 0:12: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/bug/chromium/1251009.wgsl.expected.glsl b/test/bug/chromium/1251009.wgsl.expected.glsl index 1087196eb8..ab20360e8b 100644 --- a/test/bug/chromium/1251009.wgsl.expected.glsl +++ b/test/bug/chromium/1251009.wgsl.expected.glsl @@ -5,10 +5,12 @@ struct VertexInputs0 { uint vertex_index; int loc0; }; + struct VertexInputs1 { uint loc1; vec4 loc3; }; + struct tint_symbol_2 { int loc0; uint loc1; @@ -17,6 +19,7 @@ struct tint_symbol_2 { uint vertex_index; uint instance_index; }; + struct tint_symbol_3 { vec4 value; }; @@ -38,6 +41,10 @@ layout(location = 0) in int loc0; layout(location = 1) in uint loc1; layout(location = 2) in uint loc1_1; layout(location = 3) in vec4 loc3; + + + + void main() { tint_symbol_2 inputs; inputs.loc0 = loc0; @@ -53,4 +60,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/bug/chromium/1273230.wgsl.expected.glsl b/test/bug/chromium/1273230.wgsl.expected.glsl index 4eca6df9f0..f05e2a2f8e 100644 --- a/test/bug/chromium/1273230.wgsl.expected.glsl +++ b/test/bug/chromium/1273230.wgsl.expected.glsl @@ -29,6 +29,7 @@ struct Uniforms { vec3 bbMin; vec3 bbMax; }; + struct Dbg { uint offsetCounter; uint pad0; @@ -52,6 +53,7 @@ layout(binding = 0) uniform Uniforms_1 { vec3 bbMin; vec3 bbMax; } uniforms; + layout(binding = 10) buffer U32s_1 { uint values[]; } indices; @@ -78,7 +80,6 @@ layout(binding = 50) buffer Dbg_1 { float value_f32_2; float value_f32_3; } dbg; - vec3 toVoxelPos(vec3 position) { vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); @@ -137,10 +138,11 @@ void main_count(tint_symbol_1 tint_symbol) { main_count_inner(tint_symbol.GlobalInvocationID); return; } + + void main() { tint_symbol_1 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; main_count(inputs); } - diff --git a/test/bug/chromium/1273451.wgsl.expected.glsl b/test/bug/chromium/1273451.wgsl.expected.glsl index 90a906d926..7024728317 100644 --- a/test/bug/chromium/1273451.wgsl.expected.glsl +++ b/test/bug/chromium/1273451.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct A { int a; }; + struct B { int b; }; @@ -22,3 +22,4 @@ B f(A a) { B tint_symbol = B(0); return tint_symbol; } + diff --git a/test/bug/dawn/947.wgsl.expected.glsl b/test/bug/dawn/947.wgsl.expected.glsl index e203e69604..5bb2e8684c 100644 --- a/test/bug/dawn/947.wgsl.expected.glsl +++ b/test/bug/dawn/947.wgsl.expected.glsl @@ -15,9 +15,11 @@ struct VertexOutputs { vec2 texcoords; vec4 position; }; + struct tint_symbol_2 { uint VertexIndex; }; + struct tint_symbol_3 { vec2 texcoords; vec4 position; @@ -39,6 +41,7 @@ VertexOutputs vs_main_inner(uint VertexIndex) { struct tint_symbol_5 { vec2 texcoord; }; + struct tint_symbol_6 { vec4 value; }; @@ -50,7 +53,10 @@ tint_symbol_3 vs_main(tint_symbol_2 tint_symbol_1) { wrapper_result.position = inner_result.position; return wrapper_result; } + layout(location = 0) out vec2 texcoords; + + void main() { tint_symbol_2 inputs; inputs.VertexIndex = uint(gl_VertexID); @@ -62,7 +68,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -70,27 +75,31 @@ struct Uniforms { vec2 u_scale; vec2 u_offset; }; + struct VertexOutputs { vec2 texcoords; vec4 position; }; + struct tint_symbol_2 { uint VertexIndex; }; + struct tint_symbol_3 { vec2 texcoords; vec4 position; }; + struct tint_symbol_5 { vec2 texcoord; }; + struct tint_symbol_6 { vec4 value; }; uniform highp sampler2D myTexture_mySampler; - vec4 fs_main_inner(vec2 texcoord) { vec2 clampedTexcoord = clamp(texcoord, vec2(0.0f, 0.0f), vec2(1.0f, 1.0f)); if (!(all(equal(clampedTexcoord, texcoord)))) { @@ -108,6 +117,7 @@ tint_symbol_6 fs_main(tint_symbol_5 tint_symbol_4) { } layout(location = 0) in vec2 texcoord; layout(location = 0) out vec4 value; + void main() { tint_symbol_5 inputs; inputs.texcoord = texcoord; @@ -116,4 +126,3 @@ void main() { value = outputs.value; } - diff --git a/test/bug/fxc/dyn_array_idx/read/function.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/read/function.wgsl.expected.glsl index 32d13a8837..38dd9fbf8d 100644 --- a/test/bug/fxc/dyn_array_idx/read/function.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/read/function.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -19,15 +20,14 @@ struct Result { layout(binding = 1) buffer Result_1 { int tint_symbol; } result; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); result.tint_symbol = s.data[ubo.dynamic_idx]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/read/private.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/read/private.wgsl.expected.glsl index 67d37d37a1..63c16e0739 100644 --- a/test/bug/fxc/dyn_array_idx/read/private.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/read/private.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -20,14 +21,13 @@ layout(binding = 1) buffer Result_1 { int tint_symbol; } result; S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { result.tint_symbol = s.data[ubo.dynamic_idx]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.glsl index 3719b7e495..1bc7ef2fd3 100644 --- a/test/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.glsl @@ -16,7 +16,6 @@ struct Result { layout(binding = 2) buffer Result_1 { int tint_symbol; } result; - struct SSBO { int data[4]; }; @@ -24,14 +23,13 @@ struct SSBO { layout(binding = 1) buffer SSBO_1 { int data[4]; } ssbo; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { result.tint_symbol = ssbo.data[ubo.dynamic_idx]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.glsl index 2ff97ae8bf..118dd73f44 100644 --- a/test/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.glsl @@ -18,14 +18,13 @@ struct Result { layout(binding = 2) buffer Result_1 { int tint_symbol; } result; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { result.tint_symbol = ubo.data[ubo.dynamic_idx].x; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.glsl index 955289b367..b3052ddafb 100644 --- a/test/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -20,7 +21,6 @@ layout(binding = 1) buffer Result_1 { int tint_symbol; } result; shared S s; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -41,10 +41,11 @@ void f(tint_symbol_2 tint_symbol_1) { f_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); f(inputs); } - diff --git a/test/bug/fxc/dyn_array_idx/write/function.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/write/function.wgsl.expected.glsl index 335f1db629..3be6198c89 100644 --- a/test/bug/fxc/dyn_array_idx/write/function.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/write/function.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -19,7 +20,6 @@ struct Result { layout(binding = 1) buffer Result_1 { int tint_symbol; } result; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); @@ -27,8 +27,8 @@ void f() { result.tint_symbol = s.data[3]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.glsl index dd49354994..ead018c6f6 100644 --- a/test/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -19,7 +20,6 @@ struct Result { layout(binding = 1) buffer Result_1 { int tint_symbol; } result; - void x(inout S p) { p.data[ubo.dynamic_idx] = 1; } @@ -31,8 +31,8 @@ void f() { result.tint_symbol = s.data[3]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/write/private.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/write/private.wgsl.expected.glsl index b10480ffd4..18c763b863 100644 --- a/test/bug/fxc/dyn_array_idx/write/private.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/write/private.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -20,15 +21,14 @@ layout(binding = 1) buffer Result_1 { int tint_symbol; } result; S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { s.data[ubo.dynamic_idx] = 1; result.tint_symbol = s.data[3]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.glsl index fa7364289e..61e4347199 100644 --- a/test/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -20,7 +21,6 @@ layout(binding = 1) buffer Result_1 { int tint_symbol; } result; S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); - void x(inout S p) { p.data[ubo.dynamic_idx] = 1; } @@ -31,8 +31,8 @@ void f() { result.tint_symbol = s.data[3]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.glsl index 01f9ff42e3..279d1cd6a5 100644 --- a/test/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.glsl @@ -16,7 +16,6 @@ struct Result { layout(binding = 2) buffer Result_1 { int tint_symbol; } result; - struct SSBO { int data[4]; }; @@ -24,15 +23,14 @@ struct SSBO { layout(binding = 1) buffer SSBO_1 { int data[4]; } ssbo; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { ssbo.data[ubo.dynamic_idx] = 1; result.tint_symbol = ssbo.data[3]; return; } + void main() { f(); } - diff --git a/test/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.glsl b/test/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.glsl index 7f4537ee2f..2a4d1c0b82 100644 --- a/test/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.glsl +++ b/test/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.glsl @@ -12,6 +12,7 @@ layout(binding = 0) uniform UBO_1 { struct S { int data[64]; }; + struct Result { int tint_symbol; }; @@ -20,7 +21,6 @@ layout(binding = 1) buffer Result_1 { int tint_symbol; } result; shared S s; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -42,10 +42,11 @@ void f(tint_symbol_2 tint_symbol_1) { f_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); f(inputs); } - diff --git a/test/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.glsl b/test/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.glsl index 254e4866c1..d63995b462 100644 --- a/test/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.glsl +++ b/test/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct tint_symbol_2 { vec2 vUV; }; + struct tint_symbol_3 { vec4 value; }; @@ -11,7 +12,6 @@ struct tint_symbol_3 { uniform highp sampler2D randomTexture_Sampler; uniform highp sampler2D depthTexture_Sampler; - vec4 tint_symbol_inner(vec2 vUV) { vec3 random = texture(randomTexture_Sampler, vUV).rgb; int i = 0; @@ -51,6 +51,7 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { } layout(location = 0) in vec2 vUV; layout(location = 0) out vec4 value; + void main() { tint_symbol_2 inputs; inputs.vUV = vUV; @@ -59,4 +60,3 @@ void main() { value = outputs.value; } - diff --git a/test/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.glsl b/test/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.glsl index 642b7e3052..131bb21fc8 100644 --- a/test/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.glsl +++ b/test/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Simulation { uint i; }; + struct Particle { vec3 position[8]; float lifetime; @@ -24,8 +25,8 @@ void tint_symbol() { particle.position[sim.i] = particle.position[sim.i]; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.glsl index 48e49e1900..74dc588545 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.glsl @@ -17,8 +17,8 @@ void tint_symbol() { m1[uniforms.i][0] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.glsl index 039fbe91f0..b7701f1e56 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.glsl @@ -17,8 +17,8 @@ void tint_symbol() { m1[uniforms.i][uniforms.j] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.glsl index 79409bbeae..31fe4d4a7b 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.glsl @@ -10,15 +10,15 @@ layout(binding = 4) uniform Uniforms_1 { uint i; uint j; } uniforms; -mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { m1[0][uniforms.j] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.glsl index 405f246144..021a5958c6 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.glsl @@ -17,8 +17,8 @@ void tint_symbol() { m1[uniforms.i] = vec4(1.0f); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.glsl index 38587f258c..0cf6f23328 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.glsl @@ -10,15 +10,15 @@ layout(binding = 4) uniform Uniforms_1 { uint i; uint j; } uniforms; -mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { m1[uniforms.i][0] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.glsl index a588d37ea2..8d28577eb1 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.glsl @@ -10,15 +10,15 @@ layout(binding = 4) uniform Uniforms_1 { uint i; uint j; } uniforms; -mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { m1[uniforms.i][uniforms.j] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.glsl index 79409bbeae..31fe4d4a7b 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.glsl @@ -10,15 +10,15 @@ layout(binding = 4) uniform Uniforms_1 { uint i; uint j; } uniforms; -mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { m1[0][uniforms.j] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.glsl b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.glsl index fb3492b13a..3f2bbc0d7e 100644 --- a/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.glsl +++ b/test/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.glsl @@ -10,15 +10,15 @@ layout(binding = 4) uniform Uniforms_1 { uint i; uint j; } uniforms; -mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +mat2x4 m1 = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { m1[uniforms.i] = vec4(1.0f); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.glsl b/test/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.glsl index dcde12e6c4..73303a127f 100644 --- a/test/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.glsl +++ b/test/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.glsl @@ -5,7 +5,6 @@ vec2 v2f = vec2(0.0f, 0.0f); ivec3 v3i = ivec3(0, 0, 0); uvec4 v4u = uvec4(0u, 0u, 0u, 0u); bvec2 v2b = bvec2(false, false); - void foo() { { for(int i = 0; (i < 2); i = (i + 1)) { @@ -26,8 +25,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.glsl b/test/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.glsl index 680bcaa3d0..66cdf905ac 100644 --- a/test/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.glsl +++ b/test/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.glsl @@ -5,7 +5,6 @@ vec2 v2f = vec2(0.0f, 0.0f); ivec3 v3i = ivec3(0, 0, 0); uvec4 v4u = uvec4(0u, 0u, 0u, 0u); bvec2 v2b = bvec2(false, false); - void foo() { int i = 0; v2f[i] = 1.0f; @@ -23,8 +22,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.glsl b/test/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.glsl index ad1e7e7513..d577a0b0c3 100644 --- a/test/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.glsl +++ b/test/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.glsl @@ -33,8 +33,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.glsl b/test/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.glsl index 81542321e1..70a28f6500 100644 --- a/test/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.glsl +++ b/test/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.glsl @@ -25,8 +25,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.glsl b/test/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.glsl index 7211d43497..1c080e37fe 100644 --- a/test/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.glsl +++ b/test/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.glsl @@ -34,8 +34,8 @@ void tint_symbol() { v4b[i] = true; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.glsl b/test/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.glsl index b81b3b6c87..32a381e3c1 100644 --- a/test/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.glsl +++ b/test/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.glsl @@ -30,8 +30,8 @@ void tint_symbol() { v4b[i] = true; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/1046.wgsl.expected.glsl b/test/bug/tint/1046.wgsl.expected.glsl index cfa646a644..aff09cba14 100644 --- a/test/bug/tint/1046.wgsl.expected.glsl +++ b/test/bug/tint/1046.wgsl.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct PointLight { vec4 position; }; + struct Uniforms { mat4 worldView; mat4 proj; @@ -21,10 +22,10 @@ layout(binding = 0) uniform Uniforms_1 { uint color_source; vec4 color; } uniforms; + layout(binding = 1) buffer PointLights_1 { PointLight values[]; } pointLights; - struct FragmentInput { vec4 position; vec4 view_position; @@ -32,9 +33,11 @@ struct FragmentInput { vec2 uv; vec4 color; }; + struct FragmentOutput { vec4 color; }; + struct tint_symbol_3 { vec4 view_position; vec4 normal; @@ -42,6 +45,7 @@ struct tint_symbol_3 { vec4 color; vec4 position; }; + struct tint_symbol_4 { vec4 color; }; @@ -63,7 +67,9 @@ layout(location = 0) in vec4 view_position; layout(location = 1) in vec4 normal; layout(location = 2) in vec2 uv; layout(location = 3) in vec4 color; + layout(location = 0) out vec4 color; + void main() { tint_symbol_3 inputs; inputs.view_position = view_position; @@ -76,9 +82,8 @@ void main() { color = outputs.color; } - Error parsing GLSL shader: -ERROR: 0:64: 'color' : redefinition +ERROR: 0:69: 'color' : redefinition ERROR: 1 compilation errors. No code generated. diff --git a/test/bug/tint/1064.wgsl.expected.glsl b/test/bug/tint/1064.wgsl.expected.glsl index c93c63949f..2f81388c46 100644 --- a/test/bug/tint/1064.wgsl.expected.glsl +++ b/test/bug/tint/1064.wgsl.expected.glsl @@ -16,8 +16,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/1076.wgsl.expected.glsl b/test/bug/tint/1076.wgsl.expected.glsl index 659072c4e9..e79fb56757 100644 --- a/test/bug/tint/1076.wgsl.expected.glsl +++ b/test/bug/tint/1076.wgsl.expected.glsl @@ -7,11 +7,13 @@ struct FragIn { float a; uint mask; }; + struct tint_symbol_3 { float a; float b; uint mask; }; + struct tint_symbol_4 { float a; uint mask; @@ -35,7 +37,10 @@ tint_symbol_4 tint_symbol(tint_symbol_3 tint_symbol_2) { } layout(location = 0) in float a; layout(location = 1) in float b; + layout(location = 0) out float a; + + void main() { tint_symbol_3 inputs; inputs.a = a; @@ -47,9 +52,8 @@ void main() { gl_SampleMask = outputs.mask; } - Error parsing GLSL shader: -ERROR: 0:36: 'a' : redefinition +ERROR: 0:39: 'a' : redefinition ERROR: 1 compilation errors. No code generated. diff --git a/test/bug/tint/1081.wgsl.expected.glsl b/test/bug/tint/1081.wgsl.expected.glsl index a0b53fa9f6..57544d774c 100644 --- a/test/bug/tint/1081.wgsl.expected.glsl +++ b/test/bug/tint/1081.wgsl.expected.glsl @@ -11,6 +11,7 @@ int f(int x) { struct tint_symbol_2 { ivec3 x; }; + struct tint_symbol_3 { int value; }; @@ -34,6 +35,7 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { } layout(location = 1) flat in ivec3 x; layout(location = 2) out int value; + void main() { tint_symbol_2 inputs; inputs.x = x; @@ -42,4 +44,3 @@ void main() { value = outputs.value; } - diff --git a/test/bug/tint/1083.wgsl.expected.glsl b/test/bug/tint/1083.wgsl.expected.glsl index 96a62a084b..8c230a243e 100644 --- a/test/bug/tint/1083.wgsl.expected.glsl +++ b/test/bug/tint/1083.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int c = (1 / 0); return; } + void main() { f(); } - diff --git a/test/bug/tint/1086.wgsl.expected.glsl b/test/bug/tint/1086.wgsl.expected.glsl index 23d35994dd..0c69c4f64c 100644 --- a/test/bug/tint/1086.wgsl.expected.glsl +++ b/test/bug/tint/1086.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; float v = 0.0f; - void x(inout float p) { p = 0.0f; } @@ -15,8 +14,8 @@ void f() { g(); return; } + void main() { f(); } - diff --git a/test/bug/tint/1088.spvasm.expected.glsl b/test/bug/tint/1088.spvasm.expected.glsl index 9deb3a6e9c..c665add474 100644 --- a/test/bug/tint/1088.spvasm.expected.glsl +++ b/test/bug/tint/1088.spvasm.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct LeftOver { mat4 worldViewProjection; float time; @@ -18,11 +19,11 @@ layout(binding = 2) uniform LeftOver_1 { mat4 test2[2]; tint_padded_array_element test[4]; } x_14; + vec2 vUV = vec2(0.0f, 0.0f); vec2 uv = vec2(0.0f, 0.0f); vec3 normal = vec3(0.0f, 0.0f, 0.0f); vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { vec4 q = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec3 p = vec3(0.0f, 0.0f, 0.0f); @@ -51,11 +52,13 @@ struct main_out { vec4 tint_symbol; vec2 vUV_1; }; + struct tint_symbol_3 { vec3 position_param; vec3 normal_param; vec2 uv_param; }; + struct tint_symbol_4 { vec2 vUV_1; vec4 tint_symbol; @@ -81,6 +84,8 @@ layout(location = 0) in vec3 position_param; layout(location = 1) in vec3 normal_param; layout(location = 2) in vec2 uv_param; layout(location = 0) out vec2 vUV_1; + + void main() { tint_symbol_3 inputs; inputs.position_param = position_param; @@ -94,4 +99,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/bug/tint/1113.wgsl.expected.glsl b/test/bug/tint/1113.wgsl.expected.glsl index f4dcd18854..1fbe960101 100644 --- a/test/bug/tint/1113.wgsl.expected.glsl +++ b/test/bug/tint/1113.wgsl.expected.glsl @@ -9,6 +9,7 @@ struct Uniforms { vec3 bbMin; vec3 bbMax; }; + struct Dbg { uint offsetCounter; uint pad0; @@ -32,6 +33,7 @@ layout(binding = 0) uniform Uniforms_1 { vec3 bbMin; vec3 bbMax; } uniforms; + layout(binding = 10) buffer U32s_1 { uint values[]; } indices; @@ -58,7 +60,6 @@ layout(binding = 50) buffer Dbg_1 { float value_f32_2; float value_f32_3; } dbg; - vec3 toVoxelPos(vec3 position) { vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); @@ -121,6 +122,7 @@ void main_count_inner(uvec3 GlobalInvocationID) { struct tint_symbol_3 { uvec3 GlobalInvocationID; }; + struct tint_symbol_5 { uvec3 GlobalInvocationID; }; @@ -130,13 +132,14 @@ void main_count(tint_symbol_1 tint_symbol) { main_count_inner(tint_symbol.GlobalInvocationID); return; } + + void main() { tint_symbol_1 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; main_count(inputs); } - #version 310 es precision mediump float; @@ -148,6 +151,7 @@ struct Uniforms { vec3 bbMin; vec3 bbMax; }; + struct Dbg { uint offsetCounter; uint pad0; @@ -171,6 +175,7 @@ layout(binding = 0) uniform Uniforms_1 { vec3 bbMin; vec3 bbMax; } uniforms; + layout(binding = 10) buffer U32s_1 { uint values[]; } indices; @@ -197,7 +202,6 @@ layout(binding = 50) buffer Dbg_1 { float value_f32_2; float value_f32_3; } dbg; - void doIgnore() { uint g42 = uniforms.numTriangles; uint kj6 = dbg.value1; @@ -210,6 +214,7 @@ void doIgnore() { struct tint_symbol_1 { uvec3 GlobalInvocationID; }; + struct tint_symbol_3 { uvec3 GlobalInvocationID; }; @@ -238,13 +243,14 @@ void main_create_lut(tint_symbol_3 tint_symbol_2) { main_create_lut_inner(tint_symbol_2.GlobalInvocationID); return; } + + void main() { tint_symbol_3 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; main_create_lut(inputs); } - #version 310 es precision mediump float; @@ -256,6 +262,7 @@ struct Uniforms { vec3 bbMin; vec3 bbMax; }; + struct Dbg { uint offsetCounter; uint pad0; @@ -279,6 +286,7 @@ layout(binding = 0) uniform Uniforms_1 { vec3 bbMin; vec3 bbMax; } uniforms; + layout(binding = 10) buffer U32s_1 { uint values[]; } indices; @@ -305,7 +313,6 @@ layout(binding = 50) buffer Dbg_1 { float value_f32_2; float value_f32_3; } dbg; - vec3 toVoxelPos(vec3 position) { vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); @@ -340,9 +347,11 @@ void doIgnore() { struct tint_symbol_1 { uvec3 GlobalInvocationID; }; + struct tint_symbol_3 { uvec3 GlobalInvocationID; }; + struct tint_symbol_5 { uvec3 GlobalInvocationID; }; @@ -370,10 +379,11 @@ void main_sort_triangles(tint_symbol_5 tint_symbol_4) { main_sort_triangles_inner(tint_symbol_4.GlobalInvocationID); return; } + + void main() { tint_symbol_5 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; main_sort_triangles(inputs); } - diff --git a/test/bug/tint/1121.wgsl.expected.glsl b/test/bug/tint/1121.wgsl.expected.glsl index 7796c15690..c656693574 100644 --- a/test/bug/tint/1121.wgsl.expected.glsl +++ b/test/bug/tint/1121.wgsl.expected.glsl @@ -10,11 +10,11 @@ struct LightData { layout(binding = 0) buffer LightsBuffer_1 { LightData lights[]; } lightsBuffer; - struct TileLightIdData { uint count; uint lightId[64]; }; + struct Tiles { TileLightIdData data[4]; }; @@ -22,7 +22,6 @@ struct Tiles { layout(binding = 0) buffer Tiles_1 { TileLightIdData data[4]; } tileLightId; - struct Config { uint numLights; uint numTiles; @@ -146,10 +145,11 @@ void tint_symbol_2(tint_symbol_4 tint_symbol_3) { tint_symbol_2_inner(tint_symbol_3.GlobalInvocationID); return; } + + void main() { tint_symbol_4 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; tint_symbol_2(inputs); } - diff --git a/test/bug/tint/1136.wgsl.expected.glsl b/test/bug/tint/1136.wgsl.expected.glsl index 670b1e681b..67d68ece30 100644 --- a/test/bug/tint/1136.wgsl.expected.glsl +++ b/test/bug/tint/1136.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct Buffer { uint data; }; @@ -18,7 +17,7 @@ struct Buffer { layout(binding = 0) buffer Buffer_1 { uint data; } tint_symbol; - void tint_symbol_1() { tint_symbol.data = (tint_symbol.data + 1u); } + diff --git a/test/bug/tint/1321.wgsl.expected.glsl b/test/bug/tint/1321.wgsl.expected.glsl index 30ed395a6a..6bff13a666 100644 --- a/test/bug/tint/1321.wgsl.expected.glsl +++ b/test/bug/tint/1321.wgsl.expected.glsl @@ -16,8 +16,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/1369.wgsl.expected.glsl b/test/bug/tint/1369.wgsl.expected.glsl index e167ca914b..bb2aa7542b 100644 --- a/test/bug/tint/1369.wgsl.expected.glsl +++ b/test/bug/tint/1369.wgsl.expected.glsl @@ -19,8 +19,8 @@ void f() { bool also_unreachable = false; return; } + void main() { f(); } - diff --git a/test/bug/tint/1385.wgsl.expected.glsl b/test/bug/tint/1385.wgsl.expected.glsl index 52becb32f3..9edbf0d9e2 100644 --- a/test/bug/tint/1385.wgsl.expected.glsl +++ b/test/bug/tint/1385.wgsl.expected.glsl @@ -1,11 +1,9 @@ #version 310 es precision mediump float; - layout(binding = 1) buffer data_block_1 { int inner[]; } data; - int foo() { return data.inner[0]; } @@ -15,8 +13,8 @@ void tint_symbol() { foo(); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/219.spvasm.expected.glsl b/test/bug/tint/219.spvasm.expected.glsl index 2eeb7d1885..cd7152215b 100644 --- a/test/bug/tint/219.spvasm.expected.glsl +++ b/test/bug/tint/219.spvasm.expected.glsl @@ -17,8 +17,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/221.wgsl.expected.glsl b/test/bug/tint/221.wgsl.expected.glsl index a6dab15cd2..1c037d0d2d 100644 --- a/test/bug/tint/221.wgsl.expected.glsl +++ b/test/bug/tint/221.wgsl.expected.glsl @@ -10,7 +10,6 @@ layout(binding = 0) buffer Buf_1 { uint count; uint data[50]; } b; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { uint i = 0u; @@ -34,8 +33,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/292.wgsl.expected.glsl b/test/bug/tint/292.wgsl.expected.glsl index e43a4bbe73..8b911115a0 100644 --- a/test/bug/tint/292.wgsl.expected.glsl +++ b/test/bug/tint/292.wgsl.expected.glsl @@ -17,6 +17,8 @@ tint_symbol_1 tint_symbol() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -25,4 +27,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/bug/tint/294.wgsl.expected.glsl b/test/bug/tint/294.wgsl.expected.glsl index 0aa593b3fe..413229049e 100644 --- a/test/bug/tint/294.wgsl.expected.glsl +++ b/test/bug/tint/294.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct Light { vec3 position; vec3 colour; diff --git a/test/bug/tint/369.wgsl.expected.glsl b/test/bug/tint/369.wgsl.expected.glsl index a21973db53..2e41e9356b 100644 --- a/test/bug/tint/369.wgsl.expected.glsl +++ b/test/bug/tint/369.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { mat2 m; }; @@ -21,3 +20,4 @@ layout(binding = 0) buffer S_1 { layout(binding = 0) uniform S_2 { mat2 m; } UBO; + diff --git a/test/bug/tint/403.wgsl.expected.glsl b/test/bug/tint/403.wgsl.expected.glsl index ec211c680e..a0a75b1596 100644 --- a/test/bug/tint/403.wgsl.expected.glsl +++ b/test/bug/tint/403.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct vertexUniformBuffer1 { mat2 transform1; }; + struct vertexUniformBuffer2 { mat2 transform2; }; @@ -11,6 +12,7 @@ struct vertexUniformBuffer2 { layout(binding = 0) uniform vertexUniformBuffer1_1 { mat2 transform1; } x_20; + layout(binding = 0) uniform vertexUniformBuffer2_1 { mat2 transform2; } x_26; @@ -18,6 +20,7 @@ layout(binding = 0) uniform vertexUniformBuffer2_1 { struct tint_symbol_3 { uint tint_symbol_1; }; + struct tint_symbol_4 { vec4 value; }; @@ -40,6 +43,9 @@ tint_symbol_4 tint_symbol(tint_symbol_3 tint_symbol_2) { wrapper_result.value = inner_result; return wrapper_result; } + + + void main() { tint_symbol_3 inputs; inputs.tint_symbol_1 = uint(gl_VertexID); @@ -50,4 +56,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/bug/tint/413.spvasm.expected.glsl b/test/bug/tint/413.spvasm.expected.glsl index 35e2e1023c..5b7a5dd561 100644 --- a/test/bug/tint/413.spvasm.expected.glsl +++ b/test/bug/tint/413.spvasm.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp usampler2D Src_1; layout(r32ui) uniform highp writeonly uimage2D Dst_1; - void main_1() { uvec4 srcValue = uvec4(0u, 0u, 0u, 0u); uvec4 x_18 = texelFetch(Src_1, ivec2(0, 0), 0); @@ -19,8 +18,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/453.wgsl.expected.glsl b/test/bug/tint/453.wgsl.expected.glsl index f1478ddc64..2fca5d87c3 100644 --- a/test/bug/tint/453.wgsl.expected.glsl +++ b/test/bug/tint/453.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp usampler2D Src_1; layout(r32ui) uniform highp writeonly uimage2D Dst_1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { uvec4 srcValue = uvec4(0u, 0u, 0u, 0u); @@ -14,8 +13,8 @@ void tint_symbol() { imageStore(Dst_1, ivec2(0, 0), srcValue.xxxx); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/492.wgsl.expected.glsl b/test/bug/tint/492.wgsl.expected.glsl index 31dca81299..ecec5742ec 100644 --- a/test/bug/tint/492.wgsl.expected.glsl +++ b/test/bug/tint/492.wgsl.expected.glsl @@ -8,14 +8,13 @@ struct S { layout(binding = 0) buffer S_1 { int a; } buf; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { buf.a = 12; return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/534.wgsl.expected.glsl b/test/bug/tint/534.wgsl.expected.glsl index b8c0f43860..d7ae9be0af 100644 --- a/test/bug/tint/534.wgsl.expected.glsl +++ b/test/bug/tint/534.wgsl.expected.glsl @@ -28,7 +28,6 @@ struct tint_symbol_3 { uniform highp sampler2D src_1; uniform highp sampler2D dst_1; - void tint_symbol_1_inner(uvec3 GlobalInvocationID) { ivec2 size = textureSize(src_1, 0); ivec2 dstTexCoord = ivec2(GlobalInvocationID.xy); @@ -64,10 +63,11 @@ void tint_symbol_1(tint_symbol_3 tint_symbol_2) { tint_symbol_1_inner(tint_symbol_2.GlobalInvocationID); return; } + + void main() { tint_symbol_3 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; tint_symbol_1(inputs); } - diff --git a/test/bug/tint/744.wgsl.expected.glsl b/test/bug/tint/744.wgsl.expected.glsl index bab0034063..37a6a7dea5 100644 --- a/test/bug/tint/744.wgsl.expected.glsl +++ b/test/bug/tint/744.wgsl.expected.glsl @@ -47,10 +47,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.global_id); return; } + + void main() { tint_symbol_2 inputs; inputs.global_id = gl_GlobalInvocationID; tint_symbol(inputs); } - diff --git a/test/bug/tint/749.spvasm.expected.glsl b/test/bug/tint/749.spvasm.expected.glsl index 95eeb34687..816362b550 100644 --- a/test/bug/tint/749.spvasm.expected.glsl +++ b/test/bug/tint/749.spvasm.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct QuicksortObject { int numbers[10]; }; + struct buf0 { vec2 resolution; }; @@ -13,8 +14,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_188; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void swap_i1_i1_(inout int i, inout int j) { int temp = 0; int x_932 = temp; @@ -1546,9 +1547,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -1566,7 +1569,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -1575,4 +1580,3 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - diff --git a/test/bug/tint/757.wgsl.expected.glsl b/test/bug/tint/757.wgsl.expected.glsl index b6776b2fe2..ffa7615dbd 100644 --- a/test/bug/tint/757.wgsl.expected.glsl +++ b/test/bug/tint/757.wgsl.expected.glsl @@ -8,13 +8,11 @@ struct Constants { layout(binding = 3) buffer Result_1 { float values[]; } result; - struct tint_symbol_2 { uvec3 GlobalInvocationID; }; uniform highp sampler2DArray myTexture_1; - void tint_symbol_inner(uvec3 GlobalInvocationID) { uint flatIndex = ((((2u * 2u) * GlobalInvocationID.z) + (2u * GlobalInvocationID.y)) + GlobalInvocationID.x); flatIndex = (flatIndex * 1u); @@ -31,10 +29,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.GlobalInvocationID); return; } + + void main() { tint_symbol_2 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; tint_symbol(inputs); } - diff --git a/test/bug/tint/764.wgsl.expected.glsl b/test/bug/tint/764.wgsl.expected.glsl index 61aaa72f16..b2546df3f4 100644 --- a/test/bug/tint/764.wgsl.expected.glsl +++ b/test/bug/tint/764.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat4 m = mat4(vec4(1.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f, 1.0f, 1.0f, 1.0f)); vec4 v1 = m[0]; float a = v1[0]; } + diff --git a/test/bug/tint/782.wgsl.expected.glsl b/test/bug/tint/782.wgsl.expected.glsl index 946b9f465f..0b8c37564a 100644 --- a/test/bug/tint/782.wgsl.expected.glsl +++ b/test/bug/tint/782.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void foo() { int explicit[2] = int[2](0, 0); int implict[2] = int[2](0, 0); implict = explicit; } + diff --git a/test/bug/tint/824.wgsl.expected.glsl b/test/bug/tint/824.wgsl.expected.glsl index 121d097963..43a5596a8f 100644 --- a/test/bug/tint/824.wgsl.expected.glsl +++ b/test/bug/tint/824.wgsl.expected.glsl @@ -5,10 +5,12 @@ struct Output { vec4 Position; vec4 color; }; + struct tint_symbol_3 { uint VertexIndex; uint InstanceIndex; }; + struct tint_symbol_4 { vec4 color; vec4 Position; @@ -31,7 +33,11 @@ tint_symbol_4 tint_symbol(tint_symbol_3 tint_symbol_2) { wrapper_result.color = inner_result.color; return wrapper_result; } + + layout(location = 0) out vec4 color; + + void main() { tint_symbol_3 inputs; inputs.VertexIndex = uint(gl_VertexID); @@ -44,4 +50,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/bug/tint/825.wgsl.expected.glsl b/test/bug/tint/825.wgsl.expected.glsl index 3132ef8565..e1d52ca4ae 100644 --- a/test/bug/tint/825.wgsl.expected.glsl +++ b/test/bug/tint/825.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int i = 0; int j = 0; mat2 m = mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f)); float f_1 = m[i][j]; } + diff --git a/test/bug/tint/827.wgsl.expected.glsl b/test/bug/tint/827.wgsl.expected.glsl index 43f718900c..72c1e8dbd1 100644 --- a/test/bug/tint/827.wgsl.expected.glsl +++ b/test/bug/tint/827.wgsl.expected.glsl @@ -1,18 +1,15 @@ #version 310 es precision mediump float; - const uint width = 128u; layout(binding = 1) buffer Result_1 { float values[]; } result; - struct tint_symbol_2 { uvec3 GlobalInvocationId; }; uniform highp sampler2D tex_1; - void tint_symbol_inner(uvec3 GlobalInvocationId) { result.values[((GlobalInvocationId.y * width) + GlobalInvocationId.x)] = texelFetch(tex_1, ivec2(int(GlobalInvocationId.x), int(GlobalInvocationId.y)), 0).x; } @@ -22,10 +19,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.GlobalInvocationId); return; } + + void main() { tint_symbol_2 inputs; inputs.GlobalInvocationId = gl_GlobalInvocationID; tint_symbol(inputs); } - diff --git a/test/bug/tint/870.spvasm.expected.glsl b/test/bug/tint/870.spvasm.expected.glsl index 479def4b23..b6579faa37 100644 --- a/test/bug/tint/870.spvasm.expected.glsl +++ b/test/bug/tint/870.spvasm.expected.glsl @@ -7,6 +7,7 @@ struct sspp962805860buildInformationS { int essence; int orientation[6]; }; + struct x_B4_BuildInformation { sspp962805860buildInformationS passthru; }; @@ -14,7 +15,6 @@ struct x_B4_BuildInformation { layout(binding = 2) buffer x_B4_BuildInformation_1 { sspp962805860buildInformationS passthru; } sspp962805860buildInformation; - void main_1() { int orientation[6] = int[6](0, 0, 0, 0, 0, 0); int x_23[6] = sspp962805860buildInformation.passthru.orientation; @@ -31,8 +31,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/913.wgsl.expected.glsl b/test/bug/tint/913.wgsl.expected.glsl index 06b72110a2..5535fd9272 100644 --- a/test/bug/tint/913.wgsl.expected.glsl +++ b/test/bug/tint/913.wgsl.expected.glsl @@ -30,7 +30,6 @@ struct tint_symbol_3 { uniform highp sampler2D src_1; uniform highp sampler2D dst_1; - void tint_symbol_1_inner(uvec3 GlobalInvocationID) { ivec2 srcSize = textureSize(src_1, 0); ivec2 dstSize = textureSize(dst_1, 0); @@ -105,10 +104,11 @@ void tint_symbol_1(tint_symbol_3 tint_symbol_2) { tint_symbol_1_inner(tint_symbol_2.GlobalInvocationID); return; } + + void main() { tint_symbol_3 inputs; inputs.GlobalInvocationID = gl_GlobalInvocationID; tint_symbol_1(inputs); } - diff --git a/test/bug/tint/914.wgsl.expected.glsl b/test/bug/tint/914.wgsl.expected.glsl index efacf5c5f2..2c7faa5fdb 100644 --- a/test/bug/tint/914.wgsl.expected.glsl +++ b/test/bug/tint/914.wgsl.expected.glsl @@ -62,7 +62,6 @@ const uint ColPerThread = 4u; const uint TileInner = 64u; shared float mm_Asub[64][64]; shared float mm_Bsub[64][64]; - struct tint_symbol_2 { uvec3 local_id; uint local_invocation_index; @@ -161,6 +160,10 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_id, tint_symbol_1.global_id, tint_symbol_1.local_invocation_index); return; } + + + + void main() { tint_symbol_2 inputs; inputs.local_id = gl_LocalInvocationID; @@ -169,4 +172,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/bug/tint/922.wgsl.expected.glsl b/test/bug/tint/922.wgsl.expected.glsl index 4aab10028b..da0e4c7045 100644 --- a/test/bug/tint/922.wgsl.expected.glsl +++ b/test/bug/tint/922.wgsl.expected.glsl @@ -9,25 +9,31 @@ struct Mat4x4_ { vec4 mz; vec4 mw; }; + struct Mat4x3_ { vec4 mx; vec4 my; vec4 mz; }; + struct Mat4x2_ { vec4 mx; vec4 my; }; + struct ub_SceneParams { Mat4x4_ u_Projection; }; + struct ub_MaterialParams { Mat4x2_ u_TexMtx[1]; vec4 u_Misc0_; }; + struct ub_PacketParams { Mat4x3_ u_PosMtx[32]; }; + struct VertexOutput { vec4 v_Color; vec2 v_TexCoord; @@ -37,13 +43,16 @@ struct VertexOutput { layout(binding = 0) uniform ub_SceneParams_1 { Mat4x4_ u_Projection; } global; + layout(binding = 1) uniform ub_MaterialParams_1 { Mat4x2_ u_TexMtx[1]; vec4 u_Misc0_; } global1; + layout(binding = 2) uniform ub_PacketParams_1 { Mat4x3_ u_PosMtx[32]; } global2; + vec3 a_Position1 = vec3(0.0f, 0.0f, 0.0f); vec2 a_UV1 = vec2(0.0f, 0.0f); vec4 a_Color1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -52,7 +61,6 @@ float a_PosMtxIdx1 = 0.0f; vec4 v_Color = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec2 v_TexCoord = vec2(0.0f, 0.0f); vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); - vec4 Mul(Mat4x4_ m8, vec4 v) { Mat4x4_ m9 = Mat4x4_(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), vec4(0.0f, 0.0f, 0.0f, 0.0f)); vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -136,6 +144,7 @@ struct tint_symbol_3 { vec3 a_Normal; float a_PosMtxIdx; }; + struct tint_symbol_4 { vec4 v_Color; vec2 v_TexCoord; @@ -168,6 +177,8 @@ layout(location = 3) in vec3 a_Normal; layout(location = 4) in float a_PosMtxIdx; layout(location = 0) out vec4 v_Color; layout(location = 1) out vec2 v_TexCoord; + + void main() { tint_symbol_3 inputs; inputs.a_Position = a_Position; @@ -184,9 +195,8 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:167: 'v_Color' : redefinition +ERROR: 0:176: 'v_Color' : redefinition ERROR: 1 compilation errors. No code generated. diff --git a/test/bug/tint/926.wgsl.expected.glsl b/test/bug/tint/926.wgsl.expected.glsl index ff825f6937..525f25f647 100644 --- a/test/bug/tint/926.wgsl.expected.glsl +++ b/test/bug/tint/926.wgsl.expected.glsl @@ -9,7 +9,6 @@ layout(binding = 5) buffer DrawIndirectArgs_1 { uint vertexCount; } drawOut; uint cubeVerts = 0u; - struct tint_symbol_1 { uvec3 global_id; }; @@ -23,10 +22,11 @@ void computeMain(tint_symbol_1 tint_symbol) { computeMain_inner(tint_symbol.global_id); return; } + + void main() { tint_symbol_1 inputs; inputs.global_id = gl_GlobalInvocationID; computeMain(inputs); } - diff --git a/test/bug/tint/942.wgsl.expected.glsl b/test/bug/tint/942.wgsl.expected.glsl index a3bc1ddd7b..e66562132d 100644 --- a/test/bug/tint/942.wgsl.expected.glsl +++ b/test/bug/tint/942.wgsl.expected.glsl @@ -18,8 +18,8 @@ struct Flip { layout(binding = 3) uniform Flip_1 { uint value; } flip; -shared vec3 tile[4][256]; +shared vec3 tile[4][256]; struct tint_symbol_2 { uvec3 LocalInvocationID; uint local_invocation_index; @@ -30,7 +30,6 @@ uniform highp sampler2D inputTex_1; uniform highp sampler2D inputTex_samp; layout(rgba8) uniform highp writeonly image2D outputTex_1; - void tint_symbol_inner(uvec3 WorkGroupID, uvec3 LocalInvocationID, uint local_invocation_index) { { for(uint idx = local_invocation_index; (idx < 1024u); idx = (idx + 64u)) { @@ -95,6 +94,10 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.WorkGroupID, tint_symbol_1.LocalInvocationID, tint_symbol_1.local_invocation_index); return; } + + + + void main() { tint_symbol_2 inputs; inputs.LocalInvocationID = gl_LocalInvocationID; @@ -103,4 +106,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/bug/tint/943.spvasm.expected.glsl b/test/bug/tint/943.spvasm.expected.glsl index eddfd9d6e3..a834d1fe00 100644 --- a/test/bug/tint/943.spvasm.expected.glsl +++ b/test/bug/tint/943.spvasm.expected.glsl @@ -10,12 +10,15 @@ struct Uniforms { ivec3 outShape; ivec2 outShapeStrides; }; + struct ssbOut { float result[]; }; + struct ssbA { float A[]; }; + struct ssbB { float B[]; }; @@ -28,6 +31,7 @@ layout(binding = 3) uniform Uniforms_1 { ivec3 outShape; ivec2 outShapeStrides; } x_48; + int dimInner_1 = 0; int dimBOuter_1 = 0; layout(binding = 0) buffer ssbOut_1 { @@ -44,7 +48,6 @@ int batch = 0; layout(binding = 2) buffer ssbB_1 { float B[]; } x_185; - bool coordsInBounds_vi2_vi2_(inout ivec2 coord, inout ivec2 shape) { bool x_87 = false; bool x_88_phi = false; @@ -401,6 +404,10 @@ void tint_symbol_2(tint_symbol_6 tint_symbol_5) { tint_symbol_2_inner(tint_symbol_5.tint_symbol_3, tint_symbol_5.tint_symbol_4, tint_symbol_5.local_invocation_index); return; } + + + + void main() { tint_symbol_6 inputs; inputs.tint_symbol_3 = gl_LocalInvocationID; @@ -409,10 +416,9 @@ void main() { tint_symbol_2(inputs); } - Error parsing GLSL shader: -ERROR: 0:12: '' : array size required -ERROR: 0:13: '' : compilation terminated +ERROR: 0:13: '' : array size required +ERROR: 0:14: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/bug/tint/948.wgsl.expected.glsl b/test/bug/tint/948.wgsl.expected.glsl index b619e1cdfe..759dcf5b83 100644 --- a/test/bug/tint/948.wgsl.expected.glsl +++ b/test/bug/tint/948.wgsl.expected.glsl @@ -26,6 +26,7 @@ layout(binding = 9) uniform LeftOver_1 { float spriteCount; vec3 colorMul; } x_20; + vec2 tUV = vec2(0.0f, 0.0f); float mt = 0.0f; vec4 glFragColor = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -36,7 +37,6 @@ vec3 vPosition = vec3(0.0f, 0.0f, 0.0f); vec2 vUV = vec2(0.0f, 0.0f); uniform highp sampler2D frameMapTexture_frameMapSampler; - mat4 getFrameData_f1_(inout float frameID) { float fX = 0.0f; float x_15 = frameID; @@ -52,7 +52,6 @@ uniform highp sampler2D tileMapsTexture1_tileMapsSampler; uniform highp sampler2D tileMapsTexture0_tileMapsSampler; uniform highp sampler2D animationMapTexture_animationMapSampler; uniform highp sampler2D spriteSheetTexture_spriteSheetSampler; - void main_1() { vec4 color = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec2 tileUV = vec2(0.0f, 0.0f); @@ -175,6 +174,7 @@ void main_1() { struct main_out { vec4 glFragColor_1; }; + struct tint_symbol_2 { vec3 vPosition_param; vec2 vUV_param; @@ -183,6 +183,7 @@ struct tint_symbol_2 { vec2 levelUnits_param; vec2 tileID_1_param; }; + struct tint_symbol_3 { vec4 glFragColor_1; }; @@ -212,6 +213,7 @@ layout(location = 3) in vec2 stageUnits_1_param; layout(location = 4) in vec2 levelUnits_param; layout(location = 5) in vec2 tileID_1_param; layout(location = 0) out vec4 glFragColor_1; + void main() { tint_symbol_2 inputs; inputs.vPosition_param = vPosition_param; @@ -225,11 +227,10 @@ void main() { glFragColor_1 = outputs.glFragColor_1; } - Error parsing GLSL shader: -ERROR: 0:74: 'frac' : no matching overloaded function found -ERROR: 0:74: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' -ERROR: 0:74: '' : compilation terminated +ERROR: 0:73: 'frac' : no matching overloaded function found +ERROR: 0:73: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' +ERROR: 0:73: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/bug/tint/949.wgsl.expected.glsl b/test/bug/tint/949.wgsl.expected.glsl index 50e1728afe..a77020ef0c 100644 --- a/test/bug/tint/949.wgsl.expected.glsl +++ b/test/bug/tint/949.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct lightingInfo { vec3 diffuse; vec3 specular; }; + struct LeftOver { mat4 u_World; mat4 u_ViewProjection; @@ -18,6 +19,7 @@ struct LeftOver { uint padding_1; vec2 tangentSpaceParameter0; }; + struct Light0 { vec4 vLightData; vec4 vLightDiffuse; @@ -42,6 +44,7 @@ layout(binding = 6) uniform LeftOver_1 { uint padding_1; vec2 tangentSpaceParameter0; } x_269; + vec4 v_output1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); bool tint_symbol = false; vec2 v_uv = vec2(0.0f, 0.0f); @@ -55,8 +58,8 @@ layout(binding = 5) uniform Light0_1 { vec4 shadowsInfo; vec2 depthValues; } light0; -vec4 glFragColor = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 glFragColor = vec4(0.0f, 0.0f, 0.0f, 0.0f); mat3 cotangent_frame_vf3_vf3_vf2_vf2_(inout vec3 normal_1, inout vec3 p, inout vec2 uv, inout vec2 tangentSpaceParams) { vec3 dp1 = vec3(0.0f, 0.0f, 0.0f); vec3 dp2 = vec3(0.0f, 0.0f, 0.0f); @@ -177,7 +180,6 @@ lightingInfo computeHemisphericLighting_vf3_vf3_vf4_vf3_vf3_vf3_f1_(inout vec3 v uniform highp sampler2D TextureSamplerTexture_TextureSamplerSampler; uniform highp sampler2D TextureSampler1Texture_TextureSampler1Sampler; - void main_1() { vec4 tempTextureRead = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec3 rgb = vec3(0.0f, 0.0f, 0.0f); @@ -350,6 +352,7 @@ void main_1() { struct main_out { vec4 glFragColor_1; }; + struct tint_symbol_4 { vec4 v_output1_param; vec2 vMainuv_param; @@ -357,6 +360,7 @@ struct tint_symbol_4 { vec2 v_uv_param; bool tint_symbol_2; }; + struct tint_symbol_5 { vec4 glFragColor_1; }; @@ -382,7 +386,9 @@ layout(location = 0) in vec4 v_output1_param; layout(location = 1) in vec2 vMainuv_param; layout(location = 2) in vec4 v_output2_param; layout(location = 3) in vec2 v_uv_param; + layout(location = 0) out vec4 glFragColor_1; + void main() { tint_symbol_4 inputs; inputs.v_output1_param = v_output1_param; @@ -395,11 +401,10 @@ void main() { glFragColor_1 = outputs.glFragColor_1; } - Error parsing GLSL shader: -ERROR: 0:69: 'ddx' : no matching overloaded function found -ERROR: 0:69: 'assign' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' -ERROR: 0:69: '' : compilation terminated +ERROR: 0:72: 'ddx' : no matching overloaded function found +ERROR: 0:72: 'assign' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' +ERROR: 0:72: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/bug/tint/951.spvasm.expected.glsl b/test/bug/tint/951.spvasm.expected.glsl index 96a555d936..bee1da4823 100644 --- a/test/bug/tint/951.spvasm.expected.glsl +++ b/test/bug/tint/951.spvasm.expected.glsl @@ -6,9 +6,11 @@ precision mediump float; struct ssbOut { float result[]; }; + struct ssbA { float A[]; }; + struct Uniforms { float NAN; int aShape; @@ -90,13 +92,14 @@ void tint_symbol_1(tint_symbol_4 tint_symbol_3) { tint_symbol_1_inner(tint_symbol_3.tint_symbol_2); return; } + + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_GlobalInvocationID; tint_symbol_1(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/bug/tint/959.wgsl.expected.glsl b/test/bug/tint/959.wgsl.expected.glsl index addc2c25d8..388ba362ce 100644 --- a/test/bug/tint/959.wgsl.expected.glsl +++ b/test/bug/tint/959.wgsl.expected.glsl @@ -32,24 +32,31 @@ layout(binding = 0) buffer S_8 { layout(binding = 1) uniform S_9 { float a; } b8; + layout(binding = 1) uniform S_10 { float a; } b9; + layout(binding = 1) uniform S_11 { float a; } b10; + layout(binding = 1) uniform S_12 { float a; } b11; + layout(binding = 1) uniform S_13 { float a; } b12; + layout(binding = 1) uniform S_14 { float a; } b13; + layout(binding = 1) uniform S_15 { float a; } b14; + layout(binding = 1) uniform S_16 { float a; } b15; @@ -57,8 +64,8 @@ layout(binding = 1) uniform S_16 { void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/977.spvasm.expected.glsl b/test/bug/tint/977.spvasm.expected.glsl index 1b19349964..0cfd8e3a0f 100644 --- a/test/bug/tint/977.spvasm.expected.glsl +++ b/test/bug/tint/977.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct ResultMatrix { float numbers[]; }; + struct FirstMatrix { float numbers[]; }; + struct SecondMatrix { float numbers[]; }; + struct Uniforms { float NAN; int sizeA; @@ -22,7 +25,6 @@ uvec3 tint_symbol = uvec3(0u, 0u, 0u); layout(binding = 2) buffer ResultMatrix_1 { float numbers[]; } resultMatrix; - float binaryOperation_f1_f1_(inout float a, inout float b) { float x_26 = 0.0f; float x_13 = b; @@ -73,13 +75,14 @@ void tint_symbol_1(tint_symbol_4 tint_symbol_3) { tint_symbol_1_inner(tint_symbol_3.tint_symbol_2); return; } + + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_GlobalInvocationID; tint_symbol_1(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/bug/tint/978.wgsl.expected.glsl b/test/bug/tint/978.wgsl.expected.glsl index 3f9b60fe26..e9785e761d 100644 --- a/test/bug/tint/978.wgsl.expected.glsl +++ b/test/bug/tint/978.wgsl.expected.glsl @@ -4,19 +4,21 @@ precision mediump float; struct FragmentInput { vec2 vUv; }; + struct FragmentOutput { vec4 color; }; + struct tint_symbol_3 { vec2 vUv; }; + struct tint_symbol_4 { vec4 color; }; uniform highp sampler2D depthMap_texSampler; - FragmentOutput tint_symbol_inner(FragmentInput fIn) { float tint_symbol_1 = texture(depthMap_texSampler, fIn.vUv).x; vec3 color = vec3(tint_symbol_1, tint_symbol_1, tint_symbol_1); @@ -34,6 +36,7 @@ tint_symbol_4 tint_symbol(tint_symbol_3 tint_symbol_2) { } layout(location = 2) in vec2 vUv; layout(location = 0) out vec4 color; + void main() { tint_symbol_3 inputs; inputs.vUv = vUv; @@ -42,4 +45,3 @@ void main() { color = outputs.color; } - diff --git a/test/bug/tint/980.wgsl.expected.glsl b/test/bug/tint/980.wgsl.expected.glsl index f21bafb4f4..26f15529ce 100644 --- a/test/bug/tint/980.wgsl.expected.glsl +++ b/test/bug/tint/980.wgsl.expected.glsl @@ -16,7 +16,6 @@ layout(binding = 0) buffer S_1 { vec3 v; uint i; } io; - struct tint_symbol_2 { uint idx; }; @@ -30,10 +29,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.idx); return; } + + void main() { tint_symbol_2 inputs; inputs.idx = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/bug/tint/990.wgsl.expected.glsl b/test/bug/tint/990.wgsl.expected.glsl index d9b7b77e6e..8a446ee950 100644 --- a/test/bug/tint/990.wgsl.expected.glsl +++ b/test/bug/tint/990.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int i = 0; { @@ -18,3 +17,4 @@ void f() { } } } + diff --git a/test/bug/tint/992.wgsl.expected.glsl b/test/bug/tint/992.wgsl.expected.glsl index 569029acdf..19b9edf259 100644 --- a/test/bug/tint/992.wgsl.expected.glsl +++ b/test/bug/tint/992.wgsl.expected.glsl @@ -18,10 +18,10 @@ tint_symbol frag_main() { return wrapper_result; } layout(location = 0) out vec4 value; + void main() { tint_symbol outputs; outputs = frag_main(); value = outputs.value; } - diff --git a/test/bug/tint/993.wgsl.expected.glsl b/test/bug/tint/993.wgsl.expected.glsl index 3c7ba429e6..67a394afb0 100644 --- a/test/bug/tint/993.wgsl.expected.glsl +++ b/test/bug/tint/993.wgsl.expected.glsl @@ -16,7 +16,6 @@ struct Result { layout(binding = 1) buffer Result_1 { uint value; } result; - struct TestData { int data[3]; }; @@ -24,7 +23,6 @@ struct TestData { layout(binding = 0) buffer TestData_1 { int data[3]; } s; - int runTest() { return atomicOr(s.data[(0u + uint(constants.zero))], 0); } @@ -34,8 +32,8 @@ void tint_symbol() { result.value = uint(runTest()); return; } + void main() { tint_symbol(); } - diff --git a/test/bug/tint/998.wgsl.expected.glsl b/test/bug/tint/998.wgsl.expected.glsl index 1717c914b7..62e80ae4f6 100644 --- a/test/bug/tint/998.wgsl.expected.glsl +++ b/test/bug/tint/998.wgsl.expected.glsl @@ -12,19 +12,19 @@ layout(binding = 0) uniform Constants_1 { struct Result { uint value; }; + struct S { uint data[3]; }; S s = S(uint[3](0u, 0u, 0u)); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { s.data[constants.zero] = 0u; return; } + void main() { tint_symbol(); } - diff --git a/test/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.glsl b/test/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.glsl index 034c499f42..88b1b8f90a 100644 --- a/test/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { mat3 r = (a + b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/add/scalar-scalar/f32.wgsl.expected.glsl index a11adca45e..0b90ef15a5 100644 --- a/test/expressions/binary/add/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/add/scalar-scalar/f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float r = (1.0f + 2.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/add/scalar-scalar/i32.wgsl.expected.glsl index 43905089a9..5803fdc0b2 100644 --- a/test/expressions/binary/add/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/add/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 + 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/add/scalar-scalar/u32.wgsl.expected.glsl index 5e1db81d7a..a7ec9570d9 100644 --- a/test/expressions/binary/add/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/add/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u + 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/scalar-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/add/scalar-vec3/f32.wgsl.expected.glsl index 0655ac204f..e54fe435f6 100644 --- a/test/expressions/binary/add/scalar-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/add/scalar-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a + b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/add/scalar-vec3/i32.wgsl.expected.glsl index ea0ed84216..a9808d1b23 100644 --- a/test/expressions/binary/add/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/add/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a + b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/add/scalar-vec3/u32.wgsl.expected.glsl index 0fe0f75148..6144b3488e 100644 --- a/test/expressions/binary/add/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/add/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a + b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/vec3-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/add/vec3-scalar/f32.wgsl.expected.glsl index e7a2730522..63461e90a0 100644 --- a/test/expressions/binary/add/vec3-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/add/vec3-scalar/f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 r = (a + 4.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/add/vec3-scalar/i32.wgsl.expected.glsl index 7882f3bf04..b13d477c93 100644 --- a/test/expressions/binary/add/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/add/vec3-scalar/i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 r = (a + 4); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/add/vec3-scalar/u32.wgsl.expected.glsl index 160e65c6ca..b1d217ce9a 100644 --- a/test/expressions/binary/add/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/add/vec3-scalar/u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 r = (a + 4u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/add/vec3-vec3/f32.wgsl.expected.glsl index 7bd2c34af9..5afc7283b7 100644 --- a/test/expressions/binary/add/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/add/vec3-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a + b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/add/vec3-vec3/i32.wgsl.expected.glsl index 0b48495477..14f55b4371 100644 --- a/test/expressions/binary/add/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/add/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a + b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/add/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/add/vec3-vec3/u32.wgsl.expected.glsl index bff24ce595..9956af3466 100644 --- a/test/expressions/binary/add/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/add/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a + b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.glsl index ea9a02af42..4e3304123a 100644 --- a/test/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 & 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.glsl index f46f9cd57a..ae4149da22 100644 --- a/test/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u & 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.glsl index d03945bc06..1091a53e0c 100644 --- a/test/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a & b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.glsl index 1fc4c7f585..d594442d3e 100644 --- a/test/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a & b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.glsl index 519f411506..db2479ffa8 100644 --- a/test/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 | 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.glsl index 52ae9c0401..38b5d665a5 100644 --- a/test/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u | 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.glsl index a16e26df0b..37b3d5f1d1 100644 --- a/test/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a | b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.glsl index 887fc52197..e938edb550 100644 --- a/test/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a | b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.glsl index 05cd2f1588..0bf5a9e90b 100644 --- a/test/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 ^ 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.glsl index 284867de28..5509458b5b 100644 --- a/test/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u ^ 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.glsl index 8b212badf7..386ff248ad 100644 --- a/test/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a ^ b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.glsl index 59b5058b8b..4b18413ec5 100644 --- a/test/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a ^ b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div/scalar-scalar/f32.wgsl.expected.glsl index 7db6fa7389..9ce355250b 100644 --- a/test/expressions/binary/div/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div/scalar-scalar/f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float r = (1.0f / 2.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div/scalar-scalar/i32.wgsl.expected.glsl index f0efa17f62..04a161efcd 100644 --- a/test/expressions/binary/div/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 / 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div/scalar-scalar/u32.wgsl.expected.glsl index d5d5366666..16baff5fc9 100644 --- a/test/expressions/binary/div/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u / 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/scalar-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div/scalar-vec3/f32.wgsl.expected.glsl index 6512ba3b11..968e31927f 100644 --- a/test/expressions/binary/div/scalar-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div/scalar-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div/scalar-vec3/i32.wgsl.expected.glsl index 08c20db1bc..0a2c8b33be 100644 --- a/test/expressions/binary/div/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div/scalar-vec3/u32.wgsl.expected.glsl index 1ee9726c26..c5ab59f8d4 100644 --- a/test/expressions/binary/div/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/vec3-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div/vec3-scalar/f32.wgsl.expected.glsl index 28eea803bf..ce2532ee30 100644 --- a/test/expressions/binary/div/vec3-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div/vec3-scalar/f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 r = (a / 4.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div/vec3-scalar/i32.wgsl.expected.glsl index 126af32f1a..9d8ce73e95 100644 --- a/test/expressions/binary/div/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div/vec3-scalar/i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 r = (a / 4); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div/vec3-scalar/u32.wgsl.expected.glsl index 6442c2c8a7..05c23d9da6 100644 --- a/test/expressions/binary/div/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div/vec3-scalar/u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 r = (a / 4u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div/vec3-vec3/f32.wgsl.expected.glsl index 4c1e415630..03e4822c14 100644 --- a/test/expressions/binary/div/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div/vec3-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div/vec3-vec3/i32.wgsl.expected.glsl index 18991b5db8..b25a8ae167 100644 --- a/test/expressions/binary/div/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div/vec3-vec3/u32.wgsl.expected.glsl index 8b8ddcb350..faac29242d 100644 --- a/test/expressions/binary/div/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl index a07511dec1..a9f5867fd6 100644 --- a/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float r = (1.0f / 0.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl index 0eb418f6a7..5aecc1080f 100644 --- a/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 / 0); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl index d45aa3d402..9a9100c3bc 100644 --- a/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u / 0u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.glsl index 204379301b..296587ec79 100644 --- a/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl index f2e29a87e2..19372fd01a 100644 --- a/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl index ab8795d6f8..2ca5062fae 100644 --- a/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.glsl index 1b6702992e..4e2085bd12 100644 --- a/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 r = (a / 0.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl index 7eccb905ea..47945cbf6b 100644 --- a/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 r = (a / 0); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl index 2b5b406be2..0c9cf4c703 100644 --- a/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 r = (a / 0u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl index a92210d29d..fe6684dd9b 100644 --- a/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl index eb947d2906..d20b10d019 100644 --- a/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl index 607c183448..3fc99d1d9c 100644 --- a/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl index 5c949fc23b..1410729698 100644 --- a/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { float r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl index 2677dda611..53c8ba42b3 100644 --- a/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { int r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl index 3db6a58562..7b857f9d13 100644 --- a/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uint r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.glsl index d4073b339d..709ea3bde5 100644 --- a/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl index b6fc980128..b9172f61f2 100644 --- a/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl index f8a5911537..9b2455b2da 100644 --- a/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.glsl index b9a0d2cbf2..c98f287870 100644 --- a/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl index 383f01bf37..3178cf289e 100644 --- a/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl index ef212367c0..00dd8758f1 100644 --- a/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl index b60c041a1c..7f66bc7d8b 100644 --- a/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl index 4908466f69..ff1cd8d188 100644 --- a/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl index d97e26c64d..328c0a203b 100644 --- a/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl index 7c9bba515b..09ba0c8f12 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { float r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl index c4ef3a3c21..f545f0b1bf 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { int r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl index 09fa79e097..37ae0464cd 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uint r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.glsl index 204379301b..296587ec79 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl index f2e29a87e2..19372fd01a 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl index ab8795d6f8..2ca5062fae 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.glsl index b3a53e9cff..ffa99093d3 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl index 0be07ba085..58899fd117 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl index c872141efa..b1bcc1c445 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl index a92210d29d..fe6684dd9b 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl index eb947d2906..d20b10d019 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl index 607c183448..3fc99d1d9c 100644 --- a/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a / b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.glsl index 11e227068a..f57ae3659a 100644 --- a/test/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 << 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.glsl index 8c7242cdee..4d0d3cea79 100644 --- a/test/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u << 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.glsl b/test/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.glsl index 71fa7c5708..db0ef8fb65 100644 --- a/test/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.glsl +++ b/test/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a << b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.glsl b/test/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.glsl index e7cf54fcb5..f8866258a0 100644 --- a/test/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.glsl +++ b/test/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a << b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.glsl index e0fd1be10b..7587ea33db 100644 --- a/test/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.glsl @@ -8,11 +8,11 @@ void f() { float r = (1.0f % 2.0f); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:6: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) ERROR: 0:6: '' : compilation terminated diff --git a/test/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.glsl index 5c42789bf0..506196a1df 100644 --- a/test/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 % 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.glsl index 0015a14956..0040d2b1ca 100644 --- a/test/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u % 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.glsl index 602ca026cd..fbf29629b3 100644 --- a/test/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.glsl @@ -10,11 +10,11 @@ void f() { vec3 r = (a % b); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:8: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump 3-component vector of float' and a right operand of type ' temp mediump 3-component vector of float' (or there is no acceptable conversion) ERROR: 0:8: '' : compilation terminated diff --git a/test/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.glsl index 7fa186bc6f..685f89da04 100644 --- a/test/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.glsl index 101e5453e5..fe2fe8888e 100644 --- a/test/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl index 34e9cf4837..6d3d71d6a9 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.glsl @@ -8,11 +8,11 @@ void f() { float r = (1.0f % 0.0f); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:6: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) ERROR: 0:6: '' : compilation terminated diff --git a/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl index bec5c24171..6bef751c18 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 % 0); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl index 2d2b907679..56ac547f16 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u % 0u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl index 2f8312483f..589fb87354 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl index 6d65fc6aa8..a4b1c8039d 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl index a2fb91657f..1c492a50d7 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 r = (a % 0); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl index 4fad4fbea6..6a048ef869 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 r = (a % 0u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl index d75e8d60a5..9a5fc61164 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.glsl @@ -10,11 +10,11 @@ void f() { vec3 r = (a % b); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:8: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump 3-component vector of float' and a right operand of type ' temp mediump 3-component vector of float' (or there is no acceptable conversion) ERROR: 0:8: '' : compilation terminated diff --git a/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl index 6fa1fb76d3..d7abe79c0d 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl index ed6faa17c4..dd411f1abd 100644 --- a/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl index 0090c86017..14d3b41064 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.glsl @@ -10,11 +10,11 @@ void f() { float r = (a % (b + b)); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:8: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' temp mediump float' (or there is no acceptable conversion) ERROR: 0:8: '' : compilation terminated diff --git a/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl index 053101ea3e..501dc92623 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { int r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl index 85af6af4d2..988e967768 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uint r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl index ebb12f2525..97ce0fa590 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl index d7da7506c8..9bd7ffb130 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl index 60e75ff8c4..e0a0c0574e 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl index 0c1b086860..7e5a571891 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl index 88ca6ba91a..4c2f21f8a8 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.glsl @@ -10,11 +10,11 @@ void f() { vec3 r = (a % (b + b)); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:8: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump 3-component vector of float' and a right operand of type ' temp mediump 3-component vector of float' (or there is no acceptable conversion) ERROR: 0:8: '' : compilation terminated diff --git a/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl index 0c114a5a9e..70a09f5733 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl index c2619d86c3..aea88973f6 100644 --- a/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % (b + b)); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl index 6611689951..29fd5fe804 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.glsl @@ -10,11 +10,11 @@ void f() { float r = (a % b); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:8: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' temp mediump float' (or there is no acceptable conversion) ERROR: 0:8: '' : compilation terminated diff --git a/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl index fcbb1c3f18..1b64b4a7dd 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { int r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl index 8e628f4316..eca91f8a50 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uint r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl index 2f8312483f..589fb87354 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl index 6d65fc6aa8..a4b1c8039d 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl index 49d0cc0674..797a0d72e9 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl index 3e616b3dd6..241eab3b0e 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl index d75e8d60a5..9a5fc61164 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.glsl @@ -10,11 +10,11 @@ void f() { vec3 r = (a % b); return; } + void main() { f(); } - Error parsing GLSL shader: ERROR: 0:8: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump 3-component vector of float' and a right operand of type ' temp mediump 3-component vector of float' (or there is no acceptable conversion) ERROR: 0:8: '' : compilation terminated diff --git a/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl index 6fa1fb76d3..d7abe79c0d 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl index ed6faa17c4..dd411f1abd 100644 --- a/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a % b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.glsl b/test/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.glsl index 36ae96adf2..e37618dbda 100644 --- a/test/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { mat4 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.glsl index e494482d40..16350dc303 100644 --- a/test/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.glsl @@ -15,8 +15,8 @@ void tint_symbol() { vec2 x = (data.matrix * data.vector); return; } + void main() { tint_symbol(); } - diff --git a/test/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.glsl b/test/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.glsl index 924136fe37..dec5c80e98 100644 --- a/test/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { mat3 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.glsl index b1959cbe8b..65c991c6df 100644 --- a/test/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.glsl @@ -15,8 +15,8 @@ void tint_symbol() { vec3 x = (data.matrix * data.vector); return; } + void main() { tint_symbol(); } - diff --git a/test/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.glsl b/test/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.glsl index 259686212a..92bdac6abf 100644 --- a/test/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { mat2 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.glsl index 16293279f0..094d946c79 100644 --- a/test/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float r = (1.0f * 2.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.glsl index 917ae68955..6fcda38d17 100644 --- a/test/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 * 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.glsl index 22b2997245..6bc63617f5 100644 --- a/test/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u * 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.glsl index 9c4bb5b97a..1e77318491 100644 --- a/test/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.glsl index b3e5917fd5..9ccdf10fab 100644 --- a/test/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.glsl index 2d2fbf714d..95d55a2db4 100644 --- a/test/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.glsl index 3603b2ebfe..19b9f4285f 100644 --- a/test/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.glsl @@ -15,8 +15,8 @@ void tint_symbol() { vec3 x = (data.vector * data.matrix); return; } + void main() { tint_symbol(); } - diff --git a/test/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.glsl index 2805876570..889c660056 100644 --- a/test/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.glsl @@ -15,8 +15,8 @@ void tint_symbol() { vec4 x = (data.vector * data.matrix); return; } + void main() { tint_symbol(); } - diff --git a/test/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.glsl index 68aadcc44b..a96dd5bb95 100644 --- a/test/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 r = (a * 4.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.glsl index 7e33049f02..83736fb202 100644 --- a/test/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 r = (a * 4); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.glsl index 9c19c286d8..d08bd4ac6a 100644 --- a/test/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 r = (a * 4u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.glsl index fdfb8b49fb..e99d96fe61 100644 --- a/test/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.glsl index bd7f2b7436..2af834dd5a 100644 --- a/test/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.glsl index 20ed770d49..889cd57dbe 100644 --- a/test/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a * b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.glsl index 040542f1f5..6d118f1159 100644 --- a/test/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 >> 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.glsl index 7eeeb719ab..bd44d7dc71 100644 --- a/test/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u >> 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.glsl b/test/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.glsl index eb2f2edeb6..1429a39339 100644 --- a/test/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.glsl +++ b/test/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a >> b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.glsl b/test/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.glsl index e62bc291ec..7c63c6d71a 100644 --- a/test/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.glsl +++ b/test/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a >> b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.glsl b/test/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.glsl index 358b6641d8..92c2f6cfc3 100644 --- a/test/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { mat3 r = (a - b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.glsl index 116ab47e0d..7b84b8f664 100644 --- a/test/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float r = (1.0f - 2.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.glsl index 01bf2dfd0b..f0334a1f28 100644 --- a/test/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int r = (1 - 2); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.glsl index 682d1bfc99..d4f1aff92a 100644 --- a/test/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint r = (1u - 2u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.glsl index 67f29c61ee..9e497a0a36 100644 --- a/test/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a - b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.glsl index 66d19e25f1..f655d71483 100644 --- a/test/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a - b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.glsl index e23b5c671e..1474d6cbee 100644 --- a/test/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a - b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.glsl b/test/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.glsl index b2a2318dd6..dbfdc7891a 100644 --- a/test/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 r = (a - 4.0f); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.glsl b/test/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.glsl index 225c7324b4..1d34062a97 100644 --- a/test/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 r = (a - 4); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.glsl b/test/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.glsl index 23e6c8a087..35eed7d1ff 100644 --- a/test/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 r = (a - 4u); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.glsl b/test/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.glsl index 88ca974136..2f73e34149 100644 --- a/test/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { vec3 r = (a - b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.glsl b/test/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.glsl index 13aca0a880..8869edf9f7 100644 --- a/test/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { ivec3 r = (a - b); return; } + void main() { f(); } - diff --git a/test/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.glsl b/test/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.glsl index 549532661d..64053c8f35 100644 --- a/test/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.glsl +++ b/test/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void f() { uvec3 r = (a - b); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/f32-f32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/f32-f32.wgsl.expected.glsl index 5d6e5d0cfa..16f1b8985b 100644 --- a/test/expressions/bitcast/scalar/f32-f32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/f32-f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float b = 1.0f; return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/f32-i32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/f32-i32.wgsl.expected.glsl index 33b530b47e..2b275349a6 100644 --- a/test/expressions/bitcast/scalar/f32-i32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/f32-i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int b = floatBitsToInt(1.0f); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/f32-u32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/f32-u32.wgsl.expected.glsl index f2f8061a0b..e73f2a1a61 100644 --- a/test/expressions/bitcast/scalar/f32-u32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/f32-u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint b = floatBitsToUint(1.0f); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/i32-f32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/i32-f32.wgsl.expected.glsl index 7f8a6e5166..1dc97ed155 100644 --- a/test/expressions/bitcast/scalar/i32-f32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/i32-f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float b = intBitsToFloat(1); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/i32-i32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/i32-i32.wgsl.expected.glsl index 6675356980..5b18f96c11 100644 --- a/test/expressions/bitcast/scalar/i32-i32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/i32-i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int b = 1; return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/i32-u32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/i32-u32.wgsl.expected.glsl index 5adfadd05b..d17ef1ba65 100644 --- a/test/expressions/bitcast/scalar/i32-u32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/i32-u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint b = uint(1); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/i32min-u32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/i32min-u32.wgsl.expected.glsl index faefd2dab3..fe0dbfb18f 100644 --- a/test/expressions/bitcast/scalar/i32min-u32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/i32min-u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint b = uint(-2147483648); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/u32-f32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/u32-f32.wgsl.expected.glsl index dd904cddcc..35a3458db0 100644 --- a/test/expressions/bitcast/scalar/u32-f32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/u32-f32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { float b = uintBitsToFloat(1u); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/u32-i32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/u32-i32.wgsl.expected.glsl index 6ca4979a06..8a046682d9 100644 --- a/test/expressions/bitcast/scalar/u32-i32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/u32-i32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { int b = int(1u); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/scalar/u32-u32.wgsl.expected.glsl b/test/expressions/bitcast/scalar/u32-u32.wgsl.expected.glsl index fb6eff6f9c..2e0049a8dc 100644 --- a/test/expressions/bitcast/scalar/u32-u32.wgsl.expected.glsl +++ b/test/expressions/bitcast/scalar/u32-u32.wgsl.expected.glsl @@ -6,8 +6,8 @@ void f() { uint b = 1u; return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/f32-f32.wgsl.expected.glsl b/test/expressions/bitcast/vector/f32-f32.wgsl.expected.glsl index 6ace57f4be..79506a25b3 100644 --- a/test/expressions/bitcast/vector/f32-f32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/f32-f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 b = a; return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/f32-i32.wgsl.expected.glsl b/test/expressions/bitcast/vector/f32-i32.wgsl.expected.glsl index 3ada5905eb..8905d2cd86 100644 --- a/test/expressions/bitcast/vector/f32-i32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/f32-i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 b = floatBitsToInt(a); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/f32-u32.wgsl.expected.glsl b/test/expressions/bitcast/vector/f32-u32.wgsl.expected.glsl index 69e07dcb59..3df55ecfa3 100644 --- a/test/expressions/bitcast/vector/f32-u32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/f32-u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 b = floatBitsToUint(a); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/i32-f32.wgsl.expected.glsl b/test/expressions/bitcast/vector/i32-f32.wgsl.expected.glsl index 9efb6f617f..7b652bff5c 100644 --- a/test/expressions/bitcast/vector/i32-f32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/i32-f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 b = intBitsToFloat(a); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/i32-i32.wgsl.expected.glsl b/test/expressions/bitcast/vector/i32-i32.wgsl.expected.glsl index f951aae29e..1c28025d81 100644 --- a/test/expressions/bitcast/vector/i32-i32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/i32-i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 b = a; return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/i32-u32.wgsl.expected.glsl b/test/expressions/bitcast/vector/i32-u32.wgsl.expected.glsl index ecc1fd43f8..9115f4a28e 100644 --- a/test/expressions/bitcast/vector/i32-u32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/i32-u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 b = uvec3(a); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/u32-f32.wgsl.expected.glsl b/test/expressions/bitcast/vector/u32-f32.wgsl.expected.glsl index 77ee42212c..9d1ac80bcf 100644 --- a/test/expressions/bitcast/vector/u32-f32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/u32-f32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { vec3 b = uintBitsToFloat(a); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/u32-i32.wgsl.expected.glsl b/test/expressions/bitcast/vector/u32-i32.wgsl.expected.glsl index 0e98c529ec..fec22555a6 100644 --- a/test/expressions/bitcast/vector/u32-i32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/u32-i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { ivec3 b = ivec3(a); return; } + void main() { f(); } - diff --git a/test/expressions/bitcast/vector/u32-u32.wgsl.expected.glsl b/test/expressions/bitcast/vector/u32-u32.wgsl.expected.glsl index 615f2f02eb..da18fc080b 100644 --- a/test/expressions/bitcast/vector/u32-u32.wgsl.expected.glsl +++ b/test/expressions/bitcast/vector/u32-u32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void f() { uvec3 b = a; return; } + void main() { f(); } - diff --git a/test/expressions/index/let/let/literal/array.wgsl.expected.glsl b/test/expressions/index/let/let/literal/array.wgsl.expected.glsl index 2f0abd5952..2225238006 100644 --- a/test/expressions/index/let/let/literal/array.wgsl.expected.glsl +++ b/test/expressions/index/let/let/literal/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[1]; } + diff --git a/test/expressions/index/let/let/literal/matrix.wgsl.expected.glsl b/test/expressions/index/let/let/literal/matrix.wgsl.expected.glsl index cd0f7ba96f..a0ebffd30a 100644 --- a/test/expressions/index/let/let/literal/matrix.wgsl.expected.glsl +++ b/test/expressions/index/let/let/literal/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f() { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[1]; } + diff --git a/test/expressions/index/let/let/literal/vector.wgsl.expected.glsl b/test/expressions/index/let/let/literal/vector.wgsl.expected.glsl index 1db8e0bf22..5d98a7679a 100644 --- a/test/expressions/index/let/let/literal/vector.wgsl.expected.glsl +++ b/test/expressions/index/let/let/literal/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f() { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[1]; } + diff --git a/test/expressions/index/let/let/param/array.wgsl.expected.glsl b/test/expressions/index/let/let/param/array.wgsl.expected.glsl index ea2771239c..88547d53cd 100644 --- a/test/expressions/index/let/let/param/array.wgsl.expected.glsl +++ b/test/expressions/index/let/let/param/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f(int x) { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[x]; } + diff --git a/test/expressions/index/let/let/param/matrix.wgsl.expected.glsl b/test/expressions/index/let/let/param/matrix.wgsl.expected.glsl index a9ae0fd59a..32e6a8bded 100644 --- a/test/expressions/index/let/let/param/matrix.wgsl.expected.glsl +++ b/test/expressions/index/let/let/param/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f(int x) { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[x]; } + diff --git a/test/expressions/index/let/let/param/vector.wgsl.expected.glsl b/test/expressions/index/let/let/param/vector.wgsl.expected.glsl index 0a3af1c58d..cad5646001 100644 --- a/test/expressions/index/let/let/param/vector.wgsl.expected.glsl +++ b/test/expressions/index/let/let/param/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f(int x) { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[x]; } + diff --git a/test/expressions/index/let/literal/array.wgsl.expected.glsl b/test/expressions/index/let/literal/array.wgsl.expected.glsl index 2f0abd5952..2225238006 100644 --- a/test/expressions/index/let/literal/array.wgsl.expected.glsl +++ b/test/expressions/index/let/literal/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[1]; } + diff --git a/test/expressions/index/let/literal/matrix.wgsl.expected.glsl b/test/expressions/index/let/literal/matrix.wgsl.expected.glsl index cd0f7ba96f..a0ebffd30a 100644 --- a/test/expressions/index/let/literal/matrix.wgsl.expected.glsl +++ b/test/expressions/index/let/literal/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f() { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[1]; } + diff --git a/test/expressions/index/let/literal/vector.wgsl.expected.glsl b/test/expressions/index/let/literal/vector.wgsl.expected.glsl index 1db8e0bf22..5d98a7679a 100644 --- a/test/expressions/index/let/literal/vector.wgsl.expected.glsl +++ b/test/expressions/index/let/literal/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f() { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[1]; } + diff --git a/test/expressions/index/let/param/array.wgsl.expected.glsl b/test/expressions/index/let/param/array.wgsl.expected.glsl index 1d881bf042..17f4054493 100644 --- a/test/expressions/index/let/param/array.wgsl.expected.glsl +++ b/test/expressions/index/let/param/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f(int i) { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[i]; } + diff --git a/test/expressions/index/let/param/matrix.wgsl.expected.glsl b/test/expressions/index/let/param/matrix.wgsl.expected.glsl index d4a28b3329..e1500945f6 100644 --- a/test/expressions/index/let/param/matrix.wgsl.expected.glsl +++ b/test/expressions/index/let/param/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f(int i) { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[i]; } + diff --git a/test/expressions/index/let/param/vector.wgsl.expected.glsl b/test/expressions/index/let/param/vector.wgsl.expected.glsl index 6a2d0bfba1..e4da58cb36 100644 --- a/test/expressions/index/let/param/vector.wgsl.expected.glsl +++ b/test/expressions/index/let/param/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f(int i) { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[i]; } + diff --git a/test/expressions/index/let/var/literal/array.wgsl.expected.glsl b/test/expressions/index/let/var/literal/array.wgsl.expected.glsl index 2f0abd5952..2225238006 100644 --- a/test/expressions/index/let/var/literal/array.wgsl.expected.glsl +++ b/test/expressions/index/let/var/literal/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[1]; } + diff --git a/test/expressions/index/let/var/literal/matrix.wgsl.expected.glsl b/test/expressions/index/let/var/literal/matrix.wgsl.expected.glsl index cd0f7ba96f..a0ebffd30a 100644 --- a/test/expressions/index/let/var/literal/matrix.wgsl.expected.glsl +++ b/test/expressions/index/let/var/literal/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f() { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[1]; } + diff --git a/test/expressions/index/let/var/literal/vector.wgsl.expected.glsl b/test/expressions/index/let/var/literal/vector.wgsl.expected.glsl index 1db8e0bf22..5d98a7679a 100644 --- a/test/expressions/index/let/var/literal/vector.wgsl.expected.glsl +++ b/test/expressions/index/let/var/literal/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f() { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[1]; } + diff --git a/test/expressions/index/var/let/literal/array.wgsl.expected.glsl b/test/expressions/index/var/let/literal/array.wgsl.expected.glsl index 2f0abd5952..2225238006 100644 --- a/test/expressions/index/var/let/literal/array.wgsl.expected.glsl +++ b/test/expressions/index/var/let/literal/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[1]; } + diff --git a/test/expressions/index/var/let/literal/matrix.wgsl.expected.glsl b/test/expressions/index/var/let/literal/matrix.wgsl.expected.glsl index cd0f7ba96f..a0ebffd30a 100644 --- a/test/expressions/index/var/let/literal/matrix.wgsl.expected.glsl +++ b/test/expressions/index/var/let/literal/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f() { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[1]; } + diff --git a/test/expressions/index/var/let/literal/vector.wgsl.expected.glsl b/test/expressions/index/var/let/literal/vector.wgsl.expected.glsl index 1db8e0bf22..5d98a7679a 100644 --- a/test/expressions/index/var/let/literal/vector.wgsl.expected.glsl +++ b/test/expressions/index/var/let/literal/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f() { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[1]; } + diff --git a/test/expressions/index/var/let/param/array.wgsl.expected.glsl b/test/expressions/index/var/let/param/array.wgsl.expected.glsl index ea2771239c..88547d53cd 100644 --- a/test/expressions/index/var/let/param/array.wgsl.expected.glsl +++ b/test/expressions/index/var/let/param/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f(int x) { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[x]; } + diff --git a/test/expressions/index/var/let/param/matrix.wgsl.expected.glsl b/test/expressions/index/var/let/param/matrix.wgsl.expected.glsl index a9ae0fd59a..32e6a8bded 100644 --- a/test/expressions/index/var/let/param/matrix.wgsl.expected.glsl +++ b/test/expressions/index/var/let/param/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f(int x) { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[x]; } + diff --git a/test/expressions/index/var/let/param/vector.wgsl.expected.glsl b/test/expressions/index/var/let/param/vector.wgsl.expected.glsl index 0a3af1c58d..cad5646001 100644 --- a/test/expressions/index/var/let/param/vector.wgsl.expected.glsl +++ b/test/expressions/index/var/let/param/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f(int x) { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[x]; } + diff --git a/test/expressions/index/var/literal/array.wgsl.expected.glsl b/test/expressions/index/var/literal/array.wgsl.expected.glsl index 2f0abd5952..2225238006 100644 --- a/test/expressions/index/var/literal/array.wgsl.expected.glsl +++ b/test/expressions/index/var/literal/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[1]; } + diff --git a/test/expressions/index/var/literal/matrix.wgsl.expected.glsl b/test/expressions/index/var/literal/matrix.wgsl.expected.glsl index cd0f7ba96f..a0ebffd30a 100644 --- a/test/expressions/index/var/literal/matrix.wgsl.expected.glsl +++ b/test/expressions/index/var/literal/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f() { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[1]; } + diff --git a/test/expressions/index/var/literal/vector.wgsl.expected.glsl b/test/expressions/index/var/literal/vector.wgsl.expected.glsl index 1db8e0bf22..5d98a7679a 100644 --- a/test/expressions/index/var/literal/vector.wgsl.expected.glsl +++ b/test/expressions/index/var/literal/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f() { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[1]; } + diff --git a/test/expressions/index/var/param/array.wgsl.expected.glsl b/test/expressions/index/var/param/array.wgsl.expected.glsl index 1d881bf042..17f4054493 100644 --- a/test/expressions/index/var/param/array.wgsl.expected.glsl +++ b/test/expressions/index/var/param/array.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f(int i) { int a[8] = int[8](1, 2, 3, 4, 5, 6, 7, 8); return a[i]; } + diff --git a/test/expressions/index/var/param/matrix.wgsl.expected.glsl b/test/expressions/index/var/param/matrix.wgsl.expected.glsl index d4a28b3329..e1500945f6 100644 --- a/test/expressions/index/var/param/matrix.wgsl.expected.glsl +++ b/test/expressions/index/var/param/matrix.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - vec3 f(int i) { mat3 m = mat3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); return m[i]; } + diff --git a/test/expressions/index/var/param/vector.wgsl.expected.glsl b/test/expressions/index/var/param/vector.wgsl.expected.glsl index 6a2d0bfba1..e4da58cb36 100644 --- a/test/expressions/index/var/param/vector.wgsl.expected.glsl +++ b/test/expressions/index/var/param/vector.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float f(int i) { vec3 v = vec3(1.0f, 2.0f, 3.0f); return v[i]; } + diff --git a/test/expressions/literals/-inf.spvasm.expected.glsl b/test/expressions/literals/-inf.spvasm.expected.glsl index 77a7f64874..78232f11f4 100644 --- a/test/expressions/literals/-inf.spvasm.expected.glsl +++ b/test/expressions/literals/-inf.spvasm.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; vec4 out_var_SV_TARGET = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { out_var_SV_TARGET = vec4(uintBitsToFloat(0xff800000u), uintBitsToFloat(0xff800000u), uintBitsToFloat(0xff800000u), uintBitsToFloat(0xff800000u)); return; @@ -11,6 +10,7 @@ void main_1() { struct main_out { vec4 out_var_SV_TARGET_1; }; + struct tint_symbol_1 { vec4 out_var_SV_TARGET_1; }; @@ -28,10 +28,10 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 out_var_SV_TARGET_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); out_var_SV_TARGET_1 = outputs.out_var_SV_TARGET_1; } - diff --git a/test/expressions/literals/inf.spvasm.expected.glsl b/test/expressions/literals/inf.spvasm.expected.glsl index 9c7b69fe5a..022c655e30 100644 --- a/test/expressions/literals/inf.spvasm.expected.glsl +++ b/test/expressions/literals/inf.spvasm.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; vec4 out_var_SV_TARGET = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { out_var_SV_TARGET = vec4(uintBitsToFloat(0x7f800000u), uintBitsToFloat(0x7f800000u), uintBitsToFloat(0x7f800000u), uintBitsToFloat(0x7f800000u)); return; @@ -11,6 +10,7 @@ void main_1() { struct main_out { vec4 out_var_SV_TARGET_1; }; + struct tint_symbol_1 { vec4 out_var_SV_TARGET_1; }; @@ -28,10 +28,10 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 out_var_SV_TARGET_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); out_var_SV_TARGET_1 = outputs.out_var_SV_TARGET_1; } - diff --git a/test/expressions/literals/intmin.wgsl.expected.glsl b/test/expressions/literals/intmin.wgsl.expected.glsl index 0fcbd6e6c0..89d8f8f17f 100644 --- a/test/expressions/literals/intmin.wgsl.expected.glsl +++ b/test/expressions/literals/intmin.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int add_int_min_explicit() { int a = -2147483648; int b = (a + 1); int c = (-2147483648 + 1); return c; } + diff --git a/test/expressions/literals/nan.spvasm.expected.glsl b/test/expressions/literals/nan.spvasm.expected.glsl index a09810eac6..96d9709771 100644 --- a/test/expressions/literals/nan.spvasm.expected.glsl +++ b/test/expressions/literals/nan.spvasm.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; vec4 out_var_SV_TARGET = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { out_var_SV_TARGET = vec4(uintBitsToFloat(0x7fc00000u), uintBitsToFloat(0x7fc00000u), uintBitsToFloat(0x7fc00000u), uintBitsToFloat(0x7fc00000u)); return; @@ -11,6 +10,7 @@ void main_1() { struct main_out { vec4 out_var_SV_TARGET_1; }; + struct tint_symbol_1 { vec4 out_var_SV_TARGET_1; }; @@ -28,10 +28,10 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 out_var_SV_TARGET_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); out_var_SV_TARGET_1 = outputs.out_var_SV_TARGET_1; } - diff --git a/test/expressions/splat/call/bool.wgsl.expected.glsl b/test/expressions/splat/call/bool.wgsl.expected.glsl index 7088506fde..02056af6e1 100644 --- a/test/expressions/splat/call/bool.wgsl.expected.glsl +++ b/test/expressions/splat/call/bool.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - bool get_bool() { return true; } @@ -20,3 +19,4 @@ void f() { bvec3 v3 = bvec3(get_bool()); bvec4 v4 = bvec4(get_bool()); } + diff --git a/test/expressions/splat/call/f32.wgsl.expected.glsl b/test/expressions/splat/call/f32.wgsl.expected.glsl index cfd01c6aa3..3bd3b4d420 100644 --- a/test/expressions/splat/call/f32.wgsl.expected.glsl +++ b/test/expressions/splat/call/f32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - float get_f32() { return 1.0f; } @@ -20,3 +19,4 @@ void f() { vec3 v3 = vec3(get_f32()); vec4 v4 = vec4(get_f32()); } + diff --git a/test/expressions/splat/call/i32.wgsl.expected.glsl b/test/expressions/splat/call/i32.wgsl.expected.glsl index 0f8a5bc97c..03c2a0c06c 100644 --- a/test/expressions/splat/call/i32.wgsl.expected.glsl +++ b/test/expressions/splat/call/i32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int get_i32() { return 1; } @@ -20,3 +19,4 @@ void f() { ivec3 v3 = ivec3(get_i32()); ivec4 v4 = ivec4(get_i32()); } + diff --git a/test/expressions/splat/call/u32.wgsl.expected.glsl b/test/expressions/splat/call/u32.wgsl.expected.glsl index 78d1b6aa2e..62f5fe2a94 100644 --- a/test/expressions/splat/call/u32.wgsl.expected.glsl +++ b/test/expressions/splat/call/u32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - uint get_u32() { return 1u; } @@ -20,3 +19,4 @@ void f() { uvec3 v3 = uvec3(get_u32()); uvec4 v4 = uvec4(get_u32()); } + diff --git a/test/expressions/splat/expression/bool.wgsl.expected.glsl b/test/expressions/splat/expression/bool.wgsl.expected.glsl index 63b1d0ffc9..d9c81de1a1 100644 --- a/test/expressions/splat/expression/bool.wgsl.expected.glsl +++ b/test/expressions/splat/expression/bool.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bool tint_tmp = true; if (!tint_tmp) { @@ -28,3 +27,4 @@ void f() { } bvec4 v4 = bvec4((tint_tmp_2)); } + diff --git a/test/expressions/splat/expression/f32.wgsl.expected.glsl b/test/expressions/splat/expression/f32.wgsl.expected.glsl index 572896e8b5..3facaa348c 100644 --- a/test/expressions/splat/expression/f32.wgsl.expected.glsl +++ b/test/expressions/splat/expression/f32.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { vec2 v2 = vec2((1.0f + 2.0f)); vec3 v3 = vec3((1.0f + 2.0f)); vec4 v4 = vec4((1.0f + 2.0f)); } + diff --git a/test/expressions/splat/expression/i32.wgsl.expected.glsl b/test/expressions/splat/expression/i32.wgsl.expected.glsl index c577b3cc6e..cf07c63aac 100644 --- a/test/expressions/splat/expression/i32.wgsl.expected.glsl +++ b/test/expressions/splat/expression/i32.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { ivec2 v2 = ivec2((1 + 2)); ivec3 v3 = ivec3((1 + 2)); ivec4 v4 = ivec4((1 + 2)); } + diff --git a/test/expressions/splat/expression/u32.wgsl.expected.glsl b/test/expressions/splat/expression/u32.wgsl.expected.glsl index d1a65977c1..2b80e5f1b3 100644 --- a/test/expressions/splat/expression/u32.wgsl.expected.glsl +++ b/test/expressions/splat/expression/u32.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uvec2 v2 = uvec2((1u + 2u)); uvec3 v3 = uvec3((1u + 2u)); uvec4 v4 = uvec4((1u + 2u)); } + diff --git a/test/expressions/splat/immediate/bool.wgsl.expected.glsl b/test/expressions/splat/immediate/bool.wgsl.expected.glsl index 01f1069798..fb64865db8 100644 --- a/test/expressions/splat/immediate/bool.wgsl.expected.glsl +++ b/test/expressions/splat/immediate/bool.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bvec2 v2 = bvec2(true); bvec3 v3 = bvec3(true); bvec4 v4 = bvec4(true); } + diff --git a/test/expressions/splat/immediate/f32.wgsl.expected.glsl b/test/expressions/splat/immediate/f32.wgsl.expected.glsl index 25d356cfcf..e5bd309c79 100644 --- a/test/expressions/splat/immediate/f32.wgsl.expected.glsl +++ b/test/expressions/splat/immediate/f32.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { vec2 v2 = vec2(1.0f); vec3 v3 = vec3(1.0f); vec4 v4 = vec4(1.0f); } + diff --git a/test/expressions/splat/immediate/i32.wgsl.expected.glsl b/test/expressions/splat/immediate/i32.wgsl.expected.glsl index 9610fe16a8..a693e22999 100644 --- a/test/expressions/splat/immediate/i32.wgsl.expected.glsl +++ b/test/expressions/splat/immediate/i32.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { ivec2 v2 = ivec2(1); ivec3 v3 = ivec3(1); ivec4 v4 = ivec4(1); } + diff --git a/test/expressions/splat/immediate/u32.wgsl.expected.glsl b/test/expressions/splat/immediate/u32.wgsl.expected.glsl index ecc96019b5..b0a88ab14e 100644 --- a/test/expressions/splat/immediate/u32.wgsl.expected.glsl +++ b/test/expressions/splat/immediate/u32.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uvec2 v2 = uvec2(1u); uvec3 v3 = uvec3(1u); uvec4 v4 = uvec4(1u); } + diff --git a/test/expressions/splat/var/bool.wgsl.expected.glsl b/test/expressions/splat/var/bool.wgsl.expected.glsl index 643b38ca1f..e0488a10aa 100644 --- a/test/expressions/splat/var/bool.wgsl.expected.glsl +++ b/test/expressions/splat/var/bool.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bool tint_tmp = true; if (!tint_tmp) { @@ -21,3 +20,4 @@ void f() { bvec3 v3 = bvec3(v); bvec4 v4 = bvec4(v); } + diff --git a/test/expressions/splat/var/f32.wgsl.expected.glsl b/test/expressions/splat/var/f32.wgsl.expected.glsl index 82daaeec49..92b82c88a3 100644 --- a/test/expressions/splat/var/f32.wgsl.expected.glsl +++ b/test/expressions/splat/var/f32.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { float v = (1.0f + 2.0f); vec2 v2 = vec2(v); vec3 v3 = vec3(v); vec4 v4 = vec4(v); } + diff --git a/test/expressions/splat/var/i32.wgsl.expected.glsl b/test/expressions/splat/var/i32.wgsl.expected.glsl index 74374ba30b..e55c53bec8 100644 --- a/test/expressions/splat/var/i32.wgsl.expected.glsl +++ b/test/expressions/splat/var/i32.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int v = (1 + 2); ivec2 v2 = ivec2(v); ivec3 v3 = ivec3(v); ivec4 v4 = ivec4(v); } + diff --git a/test/expressions/splat/var/u32.wgsl.expected.glsl b/test/expressions/splat/var/u32.wgsl.expected.glsl index 2ec3ca56de..5b0bdfd89f 100644 --- a/test/expressions/splat/var/u32.wgsl.expected.glsl +++ b/test/expressions/splat/var/u32.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uint v = (1u + 2u); uvec2 v2 = uvec2(v); uvec3 v3 = uvec3(v); uvec4 v4 = uvec4(v); } + diff --git a/test/expressions/splat/with_swizzle/f32.wgsl.expected.glsl b/test/expressions/splat/with_swizzle/f32.wgsl.expected.glsl index b1bd888e90..6bfa65d0b5 100644 --- a/test/expressions/splat/with_swizzle/f32.wgsl.expected.glsl +++ b/test/expressions/splat/with_swizzle/f32.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { float a = vec2(1.0f).y; float b = vec3(1.0f).z; float c = vec4(1.0f).w; } + diff --git a/test/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.glsl b/test/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.glsl index 42a3628c4d..7d88333c43 100644 --- a/test/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.glsl +++ b/test/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { vec3 v; }; @@ -142,3 +141,4 @@ void f() { vec4 zzzy = U.v.zzzy; vec4 zzzz = U.v.zzzz; } + diff --git a/test/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.glsl b/test/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.glsl index ceac2a99e2..2f1d6f3811 100644 --- a/test/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.glsl +++ b/test/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec3 v; }; @@ -142,3 +141,4 @@ void f() { ivec4 zzzy = U.v.zzzy; ivec4 zzzz = U.v.zzzz; } + diff --git a/test/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.glsl b/test/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.glsl index 843a272b2b..b26c59b24d 100644 --- a/test/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.glsl +++ b/test/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { uvec3 v; }; @@ -142,3 +141,4 @@ void f() { uvec4 zzzy = U.v.zzzy; uvec4 zzzz = U.v.zzzz; } + diff --git a/test/expressions/swizzle/read/vec3/f32.wgsl.expected.glsl b/test/expressions/swizzle/read/vec3/f32.wgsl.expected.glsl index 8ca7c27167..b4a830772c 100644 --- a/test/expressions/swizzle/read/vec3/f32.wgsl.expected.glsl +++ b/test/expressions/swizzle/read/vec3/f32.wgsl.expected.glsl @@ -5,18 +5,16 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { vec3 v; }; S P = S(vec3(0.0f, 0.0f, 0.0f)); - void f() { vec3 v = P.v; float x = P.v.x; @@ -140,3 +138,4 @@ void f() { vec4 zzzy = P.v.zzzy; vec4 zzzz = P.v.zzzz; } + diff --git a/test/expressions/swizzle/read/vec3/i32.wgsl.expected.glsl b/test/expressions/swizzle/read/vec3/i32.wgsl.expected.glsl index 65df5663ef..94182557e0 100644 --- a/test/expressions/swizzle/read/vec3/i32.wgsl.expected.glsl +++ b/test/expressions/swizzle/read/vec3/i32.wgsl.expected.glsl @@ -5,18 +5,16 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec3 v; }; S P = S(ivec3(0, 0, 0)); - void f() { ivec3 v = P.v; int x = P.v.x; @@ -140,3 +138,4 @@ void f() { ivec4 zzzy = P.v.zzzy; ivec4 zzzz = P.v.zzzz; } + diff --git a/test/expressions/swizzle/read/vec3/u32.wgsl.expected.glsl b/test/expressions/swizzle/read/vec3/u32.wgsl.expected.glsl index 5616b2f6fe..6b8eddc82f 100644 --- a/test/expressions/swizzle/read/vec3/u32.wgsl.expected.glsl +++ b/test/expressions/swizzle/read/vec3/u32.wgsl.expected.glsl @@ -5,18 +5,16 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { uvec3 v; }; S P = S(uvec3(0u, 0u, 0u)); - void f() { uvec3 v = P.v; uint x = P.v.x; @@ -140,3 +138,4 @@ void f() { uvec4 zzzy = P.v.zzzy; uvec4 zzzz = P.v.zzzz; } + diff --git a/test/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.glsl b/test/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.glsl index 7b0238ace9..4aa813a935 100644 --- a/test/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.glsl +++ b/test/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { vec3 v; }; @@ -18,10 +17,10 @@ struct S { layout(binding = 0) buffer S_1 { vec3 v; } U; - void f() { U.v = vec3(1.0f, 2.0f, 3.0f); U.v.x = 1.0f; U.v.y = 2.0f; U.v.z = 3.0f; } + diff --git a/test/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.glsl b/test/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.glsl index 6a11c234f1..8eafeb8637 100644 --- a/test/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.glsl +++ b/test/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec3 v; }; @@ -18,10 +17,10 @@ struct S { layout(binding = 0) buffer S_1 { ivec3 v; } U; - void f() { U.v = ivec3(1, 2, 3); U.v.x = 1; U.v.y = 2; U.v.z = 3; } + diff --git a/test/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.glsl b/test/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.glsl index 7cbf1022f3..741633cb31 100644 --- a/test/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.glsl +++ b/test/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { uvec3 v; }; @@ -18,10 +17,10 @@ struct S { layout(binding = 0) buffer S_1 { uvec3 v; } U; - void f() { U.v = uvec3(1u, 2u, 3u); U.v.x = 1u; U.v.y = 2u; U.v.z = 3u; } + diff --git a/test/expressions/swizzle/write/vec3/f32.wgsl.expected.glsl b/test/expressions/swizzle/write/vec3/f32.wgsl.expected.glsl index 5cf34f47ff..cee44acff1 100644 --- a/test/expressions/swizzle/write/vec3/f32.wgsl.expected.glsl +++ b/test/expressions/swizzle/write/vec3/f32.wgsl.expected.glsl @@ -5,21 +5,20 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { vec3 v; }; S P = S(vec3(0.0f, 0.0f, 0.0f)); - void f() { P.v = vec3(1.0f, 2.0f, 3.0f); P.v.x = 1.0f; P.v.y = 2.0f; P.v.z = 3.0f; } + diff --git a/test/expressions/swizzle/write/vec3/i32.wgsl.expected.glsl b/test/expressions/swizzle/write/vec3/i32.wgsl.expected.glsl index 578002578c..112ae4158c 100644 --- a/test/expressions/swizzle/write/vec3/i32.wgsl.expected.glsl +++ b/test/expressions/swizzle/write/vec3/i32.wgsl.expected.glsl @@ -5,21 +5,20 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { ivec3 v; }; S P = S(ivec3(0, 0, 0)); - void f() { P.v = ivec3(1, 2, 3); P.v.x = 1; P.v.y = 2; P.v.z = 3; } + diff --git a/test/expressions/swizzle/write/vec3/u32.wgsl.expected.glsl b/test/expressions/swizzle/write/vec3/u32.wgsl.expected.glsl index 053311a43d..436eff0e5c 100644 --- a/test/expressions/swizzle/write/vec3/u32.wgsl.expected.glsl +++ b/test/expressions/swizzle/write/vec3/u32.wgsl.expected.glsl @@ -5,21 +5,20 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { uvec3 v; }; S P = S(uvec3(0u, 0u, 0u)); - void f() { P.v = uvec3(1u, 2u, 3u); P.v.x = 1u; P.v.y = 2u; P.v.z = 3u; } + diff --git a/test/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.glsl index ce52794bd2..f2b52ac540 100644 --- a/test/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2 m = mat2(0.0f, 1.0f, 2.0f, 3.0f); diff --git a/test/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.glsl index 1b41ea2c34..06c93e9af5 100644 --- a/test/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2 m = mat2(vec2(0.0f, 1.0f), vec2(2.0f, 3.0f)); diff --git a/test/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.glsl index ce52794bd2..f2b52ac540 100644 --- a/test/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2 m = mat2(0.0f, 1.0f, 2.0f, 3.0f); diff --git a/test/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.glsl index 1b41ea2c34..06c93e9af5 100644 --- a/test/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2 m = mat2(vec2(0.0f, 1.0f), vec2(2.0f, 3.0f)); diff --git a/test/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.glsl index 57f04b5645..04b32b61a1 100644 --- a/test/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x3 m = mat2x3(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f); diff --git a/test/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.glsl index 7c1c90b075..c78cd8d3b2 100644 --- a/test/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x3 m = mat2x3(vec3(0.0f, 1.0f, 2.0f), vec3(3.0f, 4.0f, 5.0f)); diff --git a/test/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.glsl index 57f04b5645..04b32b61a1 100644 --- a/test/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x3 m = mat2x3(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f); diff --git a/test/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.glsl index 7c1c90b075..c78cd8d3b2 100644 --- a/test/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x3 m = mat2x3(vec3(0.0f, 1.0f, 2.0f), vec3(3.0f, 4.0f, 5.0f)); diff --git a/test/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.glsl index a487bc8927..122dc445ff 100644 --- a/test/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x4 m = mat2x4(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f); diff --git a/test/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.glsl index ceca1c826a..801356aa97 100644 --- a/test/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x4 m = mat2x4(vec4(0.0f, 1.0f, 2.0f, 3.0f), vec4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.glsl index a487bc8927..122dc445ff 100644 --- a/test/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x4 m = mat2x4(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f); diff --git a/test/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.glsl index ceca1c826a..801356aa97 100644 --- a/test/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat2x4 m = mat2x4(vec4(0.0f, 1.0f, 2.0f, 3.0f), vec4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.glsl index 1f1bbe196f..55235ae0fe 100644 --- a/test/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x2 m = mat3x2(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f); diff --git a/test/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.glsl index 19bfb0b9b4..6bedaa5eea 100644 --- a/test/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x2 m = mat3x2(vec2(0.0f, 1.0f), vec2(2.0f, 3.0f), vec2(4.0f, 5.0f)); diff --git a/test/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.glsl index 1f1bbe196f..55235ae0fe 100644 --- a/test/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x2 m = mat3x2(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f); diff --git a/test/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.glsl index 19bfb0b9b4..6bedaa5eea 100644 --- a/test/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x2 m = mat3x2(vec2(0.0f, 1.0f), vec2(2.0f, 3.0f), vec2(4.0f, 5.0f)); diff --git a/test/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.glsl index 3657e1dd03..a71208184e 100644 --- a/test/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3 m = mat3(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f); diff --git a/test/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.glsl index 1a551bb9d1..cbf652b660 100644 --- a/test/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3 m = mat3(vec3(0.0f, 1.0f, 2.0f), vec3(3.0f, 4.0f, 5.0f), vec3(6.0f, 7.0f, 8.0f)); diff --git a/test/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.glsl index 3657e1dd03..a71208184e 100644 --- a/test/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3 m = mat3(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f); diff --git a/test/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.glsl index 1a551bb9d1..cbf652b660 100644 --- a/test/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3 m = mat3(vec3(0.0f, 1.0f, 2.0f), vec3(3.0f, 4.0f, 5.0f), vec3(6.0f, 7.0f, 8.0f)); diff --git a/test/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.glsl index ef53b66241..7cb85e1cb3 100644 --- a/test/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x4 m = mat3x4(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f); diff --git a/test/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.glsl index 48eb1fafca..84ba7f120a 100644 --- a/test/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x4 m = mat3x4(vec4(0.0f, 1.0f, 2.0f, 3.0f), vec4(4.0f, 5.0f, 6.0f, 7.0f), vec4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.glsl index ef53b66241..7cb85e1cb3 100644 --- a/test/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x4 m = mat3x4(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f); diff --git a/test/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.glsl index 48eb1fafca..84ba7f120a 100644 --- a/test/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat3x4 m = mat3x4(vec4(0.0f, 1.0f, 2.0f, 3.0f), vec4(4.0f, 5.0f, 6.0f, 7.0f), vec4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.glsl index 503820e4e3..402014f33f 100644 --- a/test/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x2 m = mat4x2(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f); diff --git a/test/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.glsl index 17038f0154..bae5a652e2 100644 --- a/test/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x2 m = mat4x2(vec2(0.0f, 1.0f), vec2(2.0f, 3.0f), vec2(4.0f, 5.0f), vec2(6.0f, 7.0f)); diff --git a/test/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.glsl index 503820e4e3..402014f33f 100644 --- a/test/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x2 m = mat4x2(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f); diff --git a/test/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.glsl index 17038f0154..bae5a652e2 100644 --- a/test/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x2 m = mat4x2(vec2(0.0f, 1.0f), vec2(2.0f, 3.0f), vec2(4.0f, 5.0f), vec2(6.0f, 7.0f)); diff --git a/test/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.glsl index 085b370a94..115a5727e7 100644 --- a/test/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x3 m = mat4x3(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f); diff --git a/test/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.glsl index 12a476b137..f5559a8a9e 100644 --- a/test/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x3 m = mat4x3(vec3(0.0f, 1.0f, 2.0f), vec3(3.0f, 4.0f, 5.0f), vec3(6.0f, 7.0f, 8.0f), vec3(9.0f, 10.0f, 11.0f)); diff --git a/test/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.glsl index 085b370a94..115a5727e7 100644 --- a/test/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x3 m = mat4x3(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f); diff --git a/test/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.glsl index 12a476b137..f5559a8a9e 100644 --- a/test/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4x3 m = mat4x3(vec3(0.0f, 1.0f, 2.0f), vec3(3.0f, 4.0f, 5.0f), vec3(6.0f, 7.0f, 8.0f), vec3(9.0f, 10.0f, 11.0f)); diff --git a/test/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.glsl index 4d57ae100c..5a35fcee15 100644 --- a/test/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4 m = mat4(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f); diff --git a/test/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.glsl index 0d9377ef07..155df1e119 100644 --- a/test/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4 m = mat4(vec4(0.0f, 1.0f, 2.0f, 3.0f), vec4(4.0f, 5.0f, 6.0f, 7.0f), vec4(8.0f, 9.0f, 10.0f, 11.0f), vec4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.glsl index 4d57ae100c..5a35fcee15 100644 --- a/test/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4 m = mat4(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f); diff --git a/test/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.glsl b/test/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.glsl index 0d9377ef07..155df1e119 100644 --- a/test/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const mat4 m = mat4(vec4(0.0f, 1.0f, 2.0f, 3.0f), vec4(4.0f, 5.0f, 6.0f, 7.0f), vec4(8.0f, 9.0f, 10.0f, 11.0f), vec4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.glsl index b008ac779d..5f0a93c429 100644 --- a/test/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const bvec2 v = bvec2(false, true); diff --git a/test/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.glsl index c507eb00d2..82f16fa511 100644 --- a/test/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const vec2 v = vec2(0.0f, 1.0f); diff --git a/test/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.glsl index eaf0db6068..b96b5c7f13 100644 --- a/test/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const ivec2 v = ivec2(0, 1); diff --git a/test/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.glsl index 9bfce2de16..682a6c044d 100644 --- a/test/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const uvec2 v = uvec2(0u, 1u); diff --git a/test/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.glsl index b008ac779d..5f0a93c429 100644 --- a/test/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const bvec2 v = bvec2(false, true); diff --git a/test/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.glsl index c507eb00d2..82f16fa511 100644 --- a/test/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const vec2 v = vec2(0.0f, 1.0f); diff --git a/test/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.glsl index eaf0db6068..b96b5c7f13 100644 --- a/test/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const ivec2 v = ivec2(0, 1); diff --git a/test/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.glsl b/test/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.glsl index 9bfce2de16..682a6c044d 100644 --- a/test/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const uvec2 v = uvec2(0u, 1u); diff --git a/test/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.glsl b/test/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.glsl index e9a10c104e..148321aa2b 100644 --- a/test/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const bvec3 v = bvec3(false, true, false); diff --git a/test/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.glsl b/test/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.glsl index 315fe8cc94..4918115298 100644 --- a/test/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const vec3 v = vec3(0.0f, 1.0f, 2.0f); diff --git a/test/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.glsl b/test/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.glsl index bbef57624e..7958518998 100644 --- a/test/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const ivec3 v = ivec3(0, 1, 2); diff --git a/test/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.glsl b/test/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.glsl index 68d9ed495d..aa7de930f9 100644 --- a/test/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const uvec3 v = uvec3(0u, 1u, 2u); diff --git a/test/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.glsl b/test/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.glsl index 47ddaebfaf..a93f549176 100644 --- a/test/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const bvec4 v = bvec4(false, true, false, true); diff --git a/test/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.glsl b/test/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.glsl index d5bb0b5080..35b45c10e0 100644 --- a/test/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const vec4 v = vec4(0.0f, 1.0f, 2.0f, 3.0f); diff --git a/test/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.glsl b/test/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.glsl index 76fbdd0349..a57259445e 100644 --- a/test/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const ivec4 v = ivec4(0, 1, 2, 3); diff --git a/test/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.glsl b/test/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.glsl index 17a431eac2..aa3aca876f 100644 --- a/test/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.glsl +++ b/test/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.glsl @@ -5,10 +5,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const uvec4 v = uvec4(0u, 1u, 2u, 3u); diff --git a/test/expressions/unary/complement/complement.wgsl.expected.glsl b/test/expressions/unary/complement/complement.wgsl.expected.glsl index 9edee88ee4..5bec84b383 100644 --- a/test/expressions/unary/complement/complement.wgsl.expected.glsl +++ b/test/expressions/unary/complement/complement.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int i(int x) { return ~(x); } @@ -26,3 +25,4 @@ ivec4 vi(ivec4 x) { uvec4 vu(uvec4 x) { return ~(x); } + diff --git a/test/expressions/unary/negate/negate.wgsl.expected.glsl b/test/expressions/unary/negate/negate.wgsl.expected.glsl index b2ace9d614..d964058cb0 100644 --- a/test/expressions/unary/negate/negate.wgsl.expected.glsl +++ b/test/expressions/unary/negate/negate.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int i(int x) { return -(x); } @@ -18,3 +17,4 @@ int i(int x) { ivec4 vi(ivec4 x) { return -(x); } + diff --git a/test/expressions/zero_init/array/bool.wgsl.expected.glsl b/test/expressions/zero_init/array/bool.wgsl.expected.glsl index 57b69ce2ab..2d7cab4f7f 100644 --- a/test/expressions/zero_init/array/bool.wgsl.expected.glsl +++ b/test/expressions/zero_init/array/bool.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bool v[4] = bool[4](false, false, false, false); } + diff --git a/test/expressions/zero_init/array/f32.wgsl.expected.glsl b/test/expressions/zero_init/array/f32.wgsl.expected.glsl index 622b0babe7..7022024f21 100644 --- a/test/expressions/zero_init/array/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/array/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { float v[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/array/i32.wgsl.expected.glsl b/test/expressions/zero_init/array/i32.wgsl.expected.glsl index 5d2d392ffa..41cfbb6f54 100644 --- a/test/expressions/zero_init/array/i32.wgsl.expected.glsl +++ b/test/expressions/zero_init/array/i32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int v[4] = int[4](0, 0, 0, 0); } + diff --git a/test/expressions/zero_init/array/struct.wgsl.expected.glsl b/test/expressions/zero_init/array/struct.wgsl.expected.glsl index 65d04903d2..89eed928c3 100644 --- a/test/expressions/zero_init/array/struct.wgsl.expected.glsl +++ b/test/expressions/zero_init/array/struct.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { int i; uint u; @@ -21,3 +20,4 @@ struct S { void f() { S v[4] = S[4](S(0, 0u, 0.0f, false), S(0, 0u, 0.0f, false), S(0, 0u, 0.0f, false), S(0, 0u, 0.0f, false)); } + diff --git a/test/expressions/zero_init/array/u32.wgsl.expected.glsl b/test/expressions/zero_init/array/u32.wgsl.expected.glsl index 6a2060907a..f78daa68b0 100644 --- a/test/expressions/zero_init/array/u32.wgsl.expected.glsl +++ b/test/expressions/zero_init/array/u32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uint v[4] = uint[4](0u, 0u, 0u, 0u); } + diff --git a/test/expressions/zero_init/mat2x2/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat2x2/f32.wgsl.expected.glsl index d333532d26..517a2a791f 100644 --- a/test/expressions/zero_init/mat2x2/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat2x2/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat2 v = mat2(0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/mat2x3/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat2x3/f32.wgsl.expected.glsl index b836b1ad2c..7fa2090513 100644 --- a/test/expressions/zero_init/mat2x3/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat2x3/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat2x3 v = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/mat2x4/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat2x4/f32.wgsl.expected.glsl index b575ffd9ca..1abeed6b16 100644 --- a/test/expressions/zero_init/mat2x4/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat2x4/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat2x4 v = mat2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/mat3x2/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat3x2/f32.wgsl.expected.glsl index a5ee3635ec..40e1a7f28a 100644 --- a/test/expressions/zero_init/mat3x2/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat3x2/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat3x2 v = mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/mat3x3/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat3x3/f32.wgsl.expected.glsl index e28311604d..cfd03bb284 100644 --- a/test/expressions/zero_init/mat3x3/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat3x3/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat3 v = mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/mat3x4/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat3x4/f32.wgsl.expected.glsl index a9af0e969a..979ea88188 100644 --- a/test/expressions/zero_init/mat3x4/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat3x4/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat3x4 v = 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); } + diff --git a/test/expressions/zero_init/mat4x2/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat4x2/f32.wgsl.expected.glsl index 22cca40bc2..2d5d77a65d 100644 --- a/test/expressions/zero_init/mat4x2/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat4x2/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat4x2 v = mat4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/mat4x3/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat4x3/f32.wgsl.expected.glsl index 2dc748e3fc..7a71b37a21 100644 --- a/test/expressions/zero_init/mat4x3/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat4x3/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat4x3 v = 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); } + diff --git a/test/expressions/zero_init/mat4x4/f32.wgsl.expected.glsl b/test/expressions/zero_init/mat4x4/f32.wgsl.expected.glsl index 70b877aec3..1f94079dca 100644 --- a/test/expressions/zero_init/mat4x4/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/mat4x4/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { mat4 v = 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); } + diff --git a/test/expressions/zero_init/scalar/bool.wgsl.expected.glsl b/test/expressions/zero_init/scalar/bool.wgsl.expected.glsl index e8ff5f523c..a7f7c2df40 100644 --- a/test/expressions/zero_init/scalar/bool.wgsl.expected.glsl +++ b/test/expressions/zero_init/scalar/bool.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bool v = false; } + diff --git a/test/expressions/zero_init/scalar/f32.wgsl.expected.glsl b/test/expressions/zero_init/scalar/f32.wgsl.expected.glsl index 73fd41cac1..e0fa8afe93 100644 --- a/test/expressions/zero_init/scalar/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/scalar/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { float v = 0.0f; } + diff --git a/test/expressions/zero_init/scalar/i32.wgsl.expected.glsl b/test/expressions/zero_init/scalar/i32.wgsl.expected.glsl index 37ec2a1ed4..e2e115e24c 100644 --- a/test/expressions/zero_init/scalar/i32.wgsl.expected.glsl +++ b/test/expressions/zero_init/scalar/i32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int v = 0; } + diff --git a/test/expressions/zero_init/scalar/u32.wgsl.expected.glsl b/test/expressions/zero_init/scalar/u32.wgsl.expected.glsl index 8b743c5d20..29a2c66b2e 100644 --- a/test/expressions/zero_init/scalar/u32.wgsl.expected.glsl +++ b/test/expressions/zero_init/scalar/u32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uint v = 0u; } + diff --git a/test/expressions/zero_init/struct/array.wgsl.expected.glsl b/test/expressions/zero_init/struct/array.wgsl.expected.glsl index eb0a1461be..b51d09b1fd 100644 --- a/test/expressions/zero_init/struct/array.wgsl.expected.glsl +++ b/test/expressions/zero_init/struct/array.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { float a[4]; }; @@ -18,3 +17,4 @@ struct S { void f() { S v = S(float[4](0.0f, 0.0f, 0.0f, 0.0f)); } + diff --git a/test/expressions/zero_init/struct/scalar.wgsl.expected.glsl b/test/expressions/zero_init/struct/scalar.wgsl.expected.glsl index 1aaa3c6baf..7c2cf98c48 100644 --- a/test/expressions/zero_init/struct/scalar.wgsl.expected.glsl +++ b/test/expressions/zero_init/struct/scalar.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { int i; uint u; @@ -21,3 +20,4 @@ struct S { void f() { S v = S(0, 0u, 0.0f, false); } + diff --git a/test/expressions/zero_init/vec2/bool.wgsl.expected.glsl b/test/expressions/zero_init/vec2/bool.wgsl.expected.glsl index 564132fc6f..73bbf51454 100644 --- a/test/expressions/zero_init/vec2/bool.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec2/bool.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bvec2 v = bvec2(false, false); } + diff --git a/test/expressions/zero_init/vec2/f32.wgsl.expected.glsl b/test/expressions/zero_init/vec2/f32.wgsl.expected.glsl index 777431cf66..7e166622c3 100644 --- a/test/expressions/zero_init/vec2/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec2/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { vec2 v = vec2(0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/vec2/i32.wgsl.expected.glsl b/test/expressions/zero_init/vec2/i32.wgsl.expected.glsl index 63ced7c188..7d201b3b32 100644 --- a/test/expressions/zero_init/vec2/i32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec2/i32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { ivec2 v = ivec2(0, 0); } + diff --git a/test/expressions/zero_init/vec2/u32.wgsl.expected.glsl b/test/expressions/zero_init/vec2/u32.wgsl.expected.glsl index 9952538a25..eb07fe3581 100644 --- a/test/expressions/zero_init/vec2/u32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec2/u32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uvec2 v = uvec2(0u, 0u); } + diff --git a/test/expressions/zero_init/vec3/bool.wgsl.expected.glsl b/test/expressions/zero_init/vec3/bool.wgsl.expected.glsl index 8da4d24b49..fe628456d2 100644 --- a/test/expressions/zero_init/vec3/bool.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec3/bool.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bvec3 v = bvec3(false, false, false); } + diff --git a/test/expressions/zero_init/vec3/f32.wgsl.expected.glsl b/test/expressions/zero_init/vec3/f32.wgsl.expected.glsl index 9bf7e46eee..03af60bc89 100644 --- a/test/expressions/zero_init/vec3/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec3/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { vec3 v = vec3(0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/vec3/i32.wgsl.expected.glsl b/test/expressions/zero_init/vec3/i32.wgsl.expected.glsl index 85ff26bf9c..c99c12d905 100644 --- a/test/expressions/zero_init/vec3/i32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec3/i32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { ivec3 v = ivec3(0, 0, 0); } + diff --git a/test/expressions/zero_init/vec3/u32.wgsl.expected.glsl b/test/expressions/zero_init/vec3/u32.wgsl.expected.glsl index 9618466f56..9ea7708222 100644 --- a/test/expressions/zero_init/vec3/u32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec3/u32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uvec3 v = uvec3(0u, 0u, 0u); } + diff --git a/test/expressions/zero_init/vec4/bool.wgsl.expected.glsl b/test/expressions/zero_init/vec4/bool.wgsl.expected.glsl index 486e93f538..31e837df85 100644 --- a/test/expressions/zero_init/vec4/bool.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec4/bool.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { bvec4 v = bvec4(false, false, false, false); } + diff --git a/test/expressions/zero_init/vec4/f32.wgsl.expected.glsl b/test/expressions/zero_init/vec4/f32.wgsl.expected.glsl index a80e2f4511..049ff2349d 100644 --- a/test/expressions/zero_init/vec4/f32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec4/f32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); } + diff --git a/test/expressions/zero_init/vec4/i32.wgsl.expected.glsl b/test/expressions/zero_init/vec4/i32.wgsl.expected.glsl index de961206db..354ec54724 100644 --- a/test/expressions/zero_init/vec4/i32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec4/i32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { ivec4 v = ivec4(0, 0, 0, 0); } + diff --git a/test/expressions/zero_init/vec4/u32.wgsl.expected.glsl b/test/expressions/zero_init/vec4/u32.wgsl.expected.glsl index f83dbc49e1..d2e1db5fab 100644 --- a/test/expressions/zero_init/vec4/u32.wgsl.expected.glsl +++ b/test/expressions/zero_init/vec4/u32.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { uvec4 v = uvec4(0u, 0u, 0u, 0u); } + diff --git a/test/identifiers/underscore/double/alias.wgsl.expected.glsl b/test/identifiers/underscore/double/alias.wgsl.expected.glsl index 53fcf10276..e4a9a6bd0b 100644 --- a/test/identifiers/underscore/double/alias.wgsl.expected.glsl +++ b/test/identifiers/underscore/double/alias.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int c = 0; int d = 0; } + diff --git a/test/identifiers/underscore/double/fn.wgsl.expected.glsl b/test/identifiers/underscore/double/fn.wgsl.expected.glsl index 7b2cd08a85..7db0e21139 100644 --- a/test/identifiers/underscore/double/fn.wgsl.expected.glsl +++ b/test/identifiers/underscore/double/fn.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void a() { } @@ -24,3 +23,4 @@ void b() { void b__() { a__(); } + diff --git a/test/identifiers/underscore/double/let.wgsl.expected.glsl b/test/identifiers/underscore/double/let.wgsl.expected.glsl index 8930f1dbcc..78fedf755d 100644 --- a/test/identifiers/underscore/double/let.wgsl.expected.glsl +++ b/test/identifiers/underscore/double/let.wgsl.expected.glsl @@ -5,16 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const int a = 1; const int a__ = 2; - void f() { int b = a; int b__ = a__; } + diff --git a/test/identifiers/underscore/double/parameter.wgsl.expected.glsl b/test/identifiers/underscore/double/parameter.wgsl.expected.glsl index 3fb63a82ed..e1b6103dc4 100644 --- a/test/identifiers/underscore/double/parameter.wgsl.expected.glsl +++ b/test/identifiers/underscore/double/parameter.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f(int a__) { int b = a__; } + diff --git a/test/identifiers/underscore/double/struct.wgsl.expected.glsl b/test/identifiers/underscore/double/struct.wgsl.expected.glsl index 42b05678b6..55043ebaec 100644 --- a/test/identifiers/underscore/double/struct.wgsl.expected.glsl +++ b/test/identifiers/underscore/double/struct.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct a { int b; }; + struct a__ { int b__; }; @@ -22,3 +22,4 @@ void f() { a__ c = a__(0); int d = c.b__; } + diff --git a/test/identifiers/underscore/double/var.wgsl.expected.glsl b/test/identifiers/underscore/double/var.wgsl.expected.glsl index 5ce98aa082..0a28a9e395 100644 --- a/test/identifiers/underscore/double/var.wgsl.expected.glsl +++ b/test/identifiers/underscore/double/var.wgsl.expected.glsl @@ -5,16 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int a = 1; int a__ = 2; - void f() { int b = a; int b__ = a__; } + diff --git a/test/identifiers/underscore/prefix/lower/alias.wgsl.expected.glsl b/test/identifiers/underscore/prefix/lower/alias.wgsl.expected.glsl index 53fcf10276..e4a9a6bd0b 100644 --- a/test/identifiers/underscore/prefix/lower/alias.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/lower/alias.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int c = 0; int d = 0; } + diff --git a/test/identifiers/underscore/prefix/lower/fn.wgsl.expected.glsl b/test/identifiers/underscore/prefix/lower/fn.wgsl.expected.glsl index 1160ea6df4..17482fdcf0 100644 --- a/test/identifiers/underscore/prefix/lower/fn.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/lower/fn.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void a() { } @@ -24,3 +23,4 @@ void b() { void _b() { _a(); } + diff --git a/test/identifiers/underscore/prefix/lower/let.wgsl.expected.glsl b/test/identifiers/underscore/prefix/lower/let.wgsl.expected.glsl index 8f043f147a..f4f4bead32 100644 --- a/test/identifiers/underscore/prefix/lower/let.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/lower/let.wgsl.expected.glsl @@ -5,16 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const int a = 1; const int _a = 2; - void f() { int b = a; int _b = _a; } + diff --git a/test/identifiers/underscore/prefix/lower/parameter.wgsl.expected.glsl b/test/identifiers/underscore/prefix/lower/parameter.wgsl.expected.glsl index 670f017c00..e87ca0b6b4 100644 --- a/test/identifiers/underscore/prefix/lower/parameter.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/lower/parameter.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f(int _a) { int b = _a; } + diff --git a/test/identifiers/underscore/prefix/lower/struct.wgsl.expected.glsl b/test/identifiers/underscore/prefix/lower/struct.wgsl.expected.glsl index ca7b774eb4..1ff7bdc7f4 100644 --- a/test/identifiers/underscore/prefix/lower/struct.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/lower/struct.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct a { int b; }; + struct _a { int _b; }; @@ -22,3 +22,4 @@ void f() { _a c = _a(0); int d = c._b; } + diff --git a/test/identifiers/underscore/prefix/lower/var.wgsl.expected.glsl b/test/identifiers/underscore/prefix/lower/var.wgsl.expected.glsl index 677a81e7de..db69473ae0 100644 --- a/test/identifiers/underscore/prefix/lower/var.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/lower/var.wgsl.expected.glsl @@ -5,16 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int a = 1; int _a = 2; - void f() { int b = a; int _b = _a; } + diff --git a/test/identifiers/underscore/prefix/upper/alias.wgsl.expected.glsl b/test/identifiers/underscore/prefix/upper/alias.wgsl.expected.glsl index 53fcf10276..e4a9a6bd0b 100644 --- a/test/identifiers/underscore/prefix/upper/alias.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/upper/alias.wgsl.expected.glsl @@ -5,13 +5,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int c = 0; int d = 0; } + diff --git a/test/identifiers/underscore/prefix/upper/fn.wgsl.expected.glsl b/test/identifiers/underscore/prefix/upper/fn.wgsl.expected.glsl index aad927e10c..3088dd6415 100644 --- a/test/identifiers/underscore/prefix/upper/fn.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/upper/fn.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void A() { } @@ -24,3 +23,4 @@ void B() { void _B() { _A(); } + diff --git a/test/identifiers/underscore/prefix/upper/let.wgsl.expected.glsl b/test/identifiers/underscore/prefix/upper/let.wgsl.expected.glsl index 6d5f7d2668..de02479cb1 100644 --- a/test/identifiers/underscore/prefix/upper/let.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/upper/let.wgsl.expected.glsl @@ -5,16 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - const int A = 1; const int _A = 2; - void f() { int B = A; int _B = _A; } + diff --git a/test/identifiers/underscore/prefix/upper/parameter.wgsl.expected.glsl b/test/identifiers/underscore/prefix/upper/parameter.wgsl.expected.glsl index 6bed49e2ca..7b37d8f8c3 100644 --- a/test/identifiers/underscore/prefix/upper/parameter.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/upper/parameter.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f(int _A) { int B = _A; } + diff --git a/test/identifiers/underscore/prefix/upper/struct.wgsl.expected.glsl b/test/identifiers/underscore/prefix/upper/struct.wgsl.expected.glsl index 05d196e8d7..8334244e49 100644 --- a/test/identifiers/underscore/prefix/upper/struct.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/upper/struct.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct A { int B; }; + struct _A { int _B; }; @@ -22,3 +22,4 @@ void f() { _A c = _A(0); int d = c._B; } + diff --git a/test/identifiers/underscore/prefix/upper/var.wgsl.expected.glsl b/test/identifiers/underscore/prefix/upper/var.wgsl.expected.glsl index 96d1732f00..8285b2a656 100644 --- a/test/identifiers/underscore/prefix/upper/var.wgsl.expected.glsl +++ b/test/identifiers/underscore/prefix/upper/var.wgsl.expected.glsl @@ -5,16 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int A = 1; int _A = 2; - void f() { int B = A; int _B = _A; } + diff --git a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl b/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl index 17681808b2..b3f0b74fda 100644 --- a/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/complex_via_let.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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; @@ -16,14 +14,14 @@ void tint_symbol() { 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: 0:10: 'GetDimensions' : no such field in structure +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl b/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl index 068c081ea7..36ad7bdd9b 100644 --- a/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/complex_via_let_no_struct.wgsl.expected.glsl @@ -3,11 +3,9 @@ SKIP: FAILED #version 310 es precision mediump float; - layout(binding = 0) buffer G_block_1 { int inner[]; } G; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { uint tint_symbol_2 = 0u; @@ -16,14 +14,14 @@ void tint_symbol() { uint l1 = tint_symbol_3; return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:12: '.' : cannot apply to an array: GetDimensions -ERROR: 0:12: '' : compilation terminated +ERROR: 0:10: '.' : cannot apply to an array: GetDimensions +ERROR: 0:10: '' : 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 index fa2390439d..86ee59c1ef 100644 --- a/test/intrinsics/arrayLength/deprecated.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/deprecated.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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; @@ -17,14 +15,14 @@ void tint_symbol() { 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: 0:10: 'GetDimensions' : no such field in structure +ERROR: 0:10: '' : 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 index 17681808b2..b3f0b74fda 100644 --- a/test/intrinsics/arrayLength/simple.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/simple.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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; @@ -16,14 +14,14 @@ void tint_symbol() { 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: 0:10: 'GetDimensions' : no such field in structure +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.glsl b/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.glsl index 068c081ea7..36ad7bdd9b 100644 --- a/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/simple_no_struct.wgsl.expected.glsl @@ -3,11 +3,9 @@ SKIP: FAILED #version 310 es precision mediump float; - layout(binding = 0) buffer G_block_1 { int inner[]; } G; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { uint tint_symbol_2 = 0u; @@ -16,14 +14,14 @@ void tint_symbol() { uint l1 = tint_symbol_3; return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:12: '.' : cannot apply to an array: GetDimensions -ERROR: 0:12: '' : compilation terminated +ERROR: 0:10: '.' : cannot apply to an array: GetDimensions +ERROR: 0:10: '' : 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 index 17681808b2..b3f0b74fda 100644 --- a/test/intrinsics/arrayLength/via_let.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/via_let.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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; @@ -16,14 +14,14 @@ void tint_symbol() { 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: 0:10: 'GetDimensions' : no such field in structure +ERROR: 0:10: '' : 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 index 17681808b2..b3f0b74fda 100644 --- a/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/via_let_complex.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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; @@ -16,14 +14,14 @@ void tint_symbol() { 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: 0:10: 'GetDimensions' : no such field in structure +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl b/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl index 068c081ea7..36ad7bdd9b 100644 --- a/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/via_let_complex_no_struct.wgsl.expected.glsl @@ -3,11 +3,9 @@ SKIP: FAILED #version 310 es precision mediump float; - layout(binding = 0) buffer G_block_1 { int inner[]; } G; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { uint tint_symbol_2 = 0u; @@ -16,14 +14,14 @@ void tint_symbol() { uint l1 = tint_symbol_3; return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:12: '.' : cannot apply to an array: GetDimensions -ERROR: 0:12: '' : compilation terminated +ERROR: 0:10: '.' : cannot apply to an array: GetDimensions +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.glsl b/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.glsl index 068c081ea7..36ad7bdd9b 100644 --- a/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.glsl +++ b/test/intrinsics/arrayLength/via_let_no_struct.wgsl.expected.glsl @@ -3,11 +3,9 @@ SKIP: FAILED #version 310 es precision mediump float; - layout(binding = 0) buffer G_block_1 { int inner[]; } G; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { uint tint_symbol_2 = 0u; @@ -16,14 +14,14 @@ void tint_symbol() { uint l1 = tint_symbol_3; return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:12: '.' : cannot apply to an array: GetDimensions -ERROR: 0:12: '' : compilation terminated +ERROR: 0:10: '.' : cannot apply to an array: GetDimensions +ERROR: 0:10: '' : 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 index 2069052d1b..75129595be 100644 --- a/test/intrinsics/degrees.spvasm.expected.glsl +++ b/test/intrinsics/degrees.spvasm.expected.glsl @@ -19,8 +19,8 @@ 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 index a0d5cde52e..cf882c2979 100644 --- a/test/intrinsics/frexp.wgsl.expected.glsl +++ b/test/intrinsics/frexp.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct frexp_result { float sig; int exp; }; + frexp_result tint_frexp(float param_0) { float exp; float sig = frexp(param_0, exp); @@ -22,14 +23,14 @@ void tint_symbol() { 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: 0:11: 'frexp' : no matching overloaded function found +ERROR: 0:11: '' : 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 index a9d9604b78..7506230d7f 100644 --- a/test/intrinsics/gen/abs/002533.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/002533.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_002533(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 71f22f8eb5..937d4f030b 100644 --- a/test/intrinsics/gen/abs/005174.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/005174.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_005174(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1f4097a958..d3ffa08672 100644 --- a/test/intrinsics/gen/abs/1ce782.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/1ce782.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl b/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl index cabdd21c9a..5fdaf61276 100644 --- a/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/1e9d53.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_1e9d53(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 219081cf57..fe400bb4dc 100644 --- a/test/intrinsics/gen/abs/467cd1.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/467cd1.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl b/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl index d13d663d2c..8e239127d1 100644 --- a/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/4ad288.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_4ad288(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 87e4f31f10..3c90e55b8a 100644 --- a/test/intrinsics/gen/abs/5ad50a.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/5ad50a.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_5ad50a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index cba64f1d6b..149dfb523f 100644 --- a/test/intrinsics/gen/abs/7326de.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/7326de.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl b/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl index 404056872c..61a6d18103 100644 --- a/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/7f28e6.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl b/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl index 5937ef3eaa..668bba904d 100644 --- a/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/7faa9e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_7faa9e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 0d7c01a0b3..c396532718 100644 --- a/test/intrinsics/gen/abs/9c80a6.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/9c80a6.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_9c80a6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 09f3cae4a9..f5d5e91c33 100644 --- a/test/intrinsics/gen/abs/b96037.wgsl.expected.glsl +++ b/test/intrinsics/gen/abs/b96037.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { abs_b96037(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a70ce0bb1a..9b74954c0a 100644 --- a/test/intrinsics/gen/acos/489247.wgsl.expected.glsl +++ b/test/intrinsics/gen/acos/489247.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { acos_489247(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6022d54696..e6d69bd5ca 100644 --- a/test/intrinsics/gen/acos/8e2acf.wgsl.expected.glsl +++ b/test/intrinsics/gen/acos/8e2acf.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { acos_8e2acf(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 80ccb9ba24..20c61a6a42 100644 --- a/test/intrinsics/gen/acos/a610c4.wgsl.expected.glsl +++ b/test/intrinsics/gen/acos/a610c4.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { acos_a610c4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1c696f08d7..5d54b67031 100644 --- a/test/intrinsics/gen/acos/dfc915.wgsl.expected.glsl +++ b/test/intrinsics/gen/acos/dfc915.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { acos_dfc915(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 5873a4adcc..293dff0e94 100644 --- a/test/intrinsics/gen/all/353d6a.wgsl.expected.glsl +++ b/test/intrinsics/gen/all/353d6a.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl b/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl index 9da0a90965..0e91cf6bb1 100644 --- a/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl +++ b/test/intrinsics/gen/all/986c7b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { all_986c7b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f8de1d2a08..111a40ae97 100644 --- a/test/intrinsics/gen/all/bd2dba.wgsl.expected.glsl +++ b/test/intrinsics/gen/all/bd2dba.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { all_bd2dba(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d3bc0fe7d0..ca1909a252 100644 --- a/test/intrinsics/gen/all/f46790.wgsl.expected.glsl +++ b/test/intrinsics/gen/all/f46790.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { all_f46790(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 168f1d3bd1..0e3b9abf24 100644 --- a/test/intrinsics/gen/any/083428.wgsl.expected.glsl +++ b/test/intrinsics/gen/any/083428.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { any_083428(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 22a26764f2..e2b970876c 100644 --- a/test/intrinsics/gen/any/0e3e58.wgsl.expected.glsl +++ b/test/intrinsics/gen/any/0e3e58.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { any_0e3e58(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index eecacd1e07..fcfa374c87 100644 --- a/test/intrinsics/gen/any/2ab91a.wgsl.expected.glsl +++ b/test/intrinsics/gen/any/2ab91a.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl b/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl index c07e8aec20..a729c5c49b 100644 --- a/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl +++ b/test/intrinsics/gen/any/e755c1.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { any_e755c1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 79b0117c6a..6b1d6e3caf 100644 --- a/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.glsl +++ b/test/intrinsics/gen/arrayLength/1588cd.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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); @@ -30,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -38,10 +38,9 @@ void main() { 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -49,11 +48,9 @@ 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); @@ -69,14 +66,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -84,11 +81,9 @@ 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); @@ -105,14 +100,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : 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 index 39316b0b7c..452afabd34 100644 --- a/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.glsl +++ b/test/intrinsics/gen/arrayLength/61b1c7.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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); @@ -30,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -38,10 +38,9 @@ void main() { 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -49,11 +48,9 @@ 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); @@ -69,14 +66,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -84,11 +81,9 @@ 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); @@ -105,14 +100,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : 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 index 98c7ec5da0..8c76c142c2 100644 --- a/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.glsl +++ b/test/intrinsics/gen/arrayLength/a0f5ca.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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); @@ -30,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -38,10 +38,9 @@ void main() { 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -49,11 +48,9 @@ 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); @@ -69,14 +66,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -84,11 +81,9 @@ 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); @@ -105,14 +100,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : 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 index 5b23df4876..fa58e97aa0 100644 --- a/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.glsl +++ b/test/intrinsics/gen/arrayLength/cdd123.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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); @@ -30,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -38,10 +38,9 @@ void main() { 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -49,11 +48,9 @@ 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); @@ -69,14 +66,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -84,11 +81,9 @@ 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); @@ -105,14 +100,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : 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 index a482ec84a2..5ac52d7b3e 100644 --- a/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.glsl +++ b/test/intrinsics/gen/arrayLength/cfca0a.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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); @@ -30,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -38,10 +38,9 @@ void main() { 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -49,11 +48,9 @@ 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); @@ -69,14 +66,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -84,11 +81,9 @@ 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); @@ -105,14 +100,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : 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 index 54ac47a85d..006963f474 100644 --- a/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.glsl +++ b/test/intrinsics/gen/arrayLength/eb510f.wgsl.expected.glsl @@ -3,11 +3,9 @@ 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); @@ -30,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -38,10 +38,9 @@ void main() { 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -49,11 +48,9 @@ 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); @@ -69,14 +66,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -84,11 +81,9 @@ 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); @@ -105,14 +100,14 @@ 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: 0:9: 'GetDimensions' : no such field in structure +ERROR: 0:9: '' : 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 index 77c5c1633f..6f9fb5fd2d 100644 --- a/test/intrinsics/gen/asin/064953.wgsl.expected.glsl +++ b/test/intrinsics/gen/asin/064953.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { asin_064953(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index eb9d0352c7..3cb463d399 100644 --- a/test/intrinsics/gen/asin/7b6a44.wgsl.expected.glsl +++ b/test/intrinsics/gen/asin/7b6a44.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { asin_7b6a44(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 74f5c46875..26ae9688f9 100644 --- a/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.glsl +++ b/test/intrinsics/gen/asin/8cd9c9.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { asin_8cd9c9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 3b4521ea3a..46b4799d64 100644 --- a/test/intrinsics/gen/asin/c0c272.wgsl.expected.glsl +++ b/test/intrinsics/gen/asin/c0c272.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { asin_c0c272(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6c7de9bbc1..db1ced4d99 100644 --- a/test/intrinsics/gen/atan/02979a.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan/02979a.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan_02979a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index dfd43f25fc..1f9b3f4232 100644 --- a/test/intrinsics/gen/atan/331e6d.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan/331e6d.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan_331e6d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 4adb5b2fb1..68eeb28b73 100644 --- a/test/intrinsics/gen/atan/a8b696.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan/a8b696.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan_a8b696(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 7f0420a13e..80f0885242 100644 --- a/test/intrinsics/gen/atan/ad96e4.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan/ad96e4.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan_ad96e4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 26eca58c07..c81d3b3c7b 100644 --- a/test/intrinsics/gen/atan2/57fb13.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan2/57fb13.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan2_57fb13(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index ab55de0df8..12b8b57e38 100644 --- a/test/intrinsics/gen/atan2/96057c.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan2/96057c.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan2_96057c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 49d65c5f79..ca014e6877 100644 --- a/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan2/a70d0d.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan2_a70d0d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e0bcc8aa96..58481e67e9 100644 --- a/test/intrinsics/gen/atan2/ae713e.wgsl.expected.glsl +++ b/test/intrinsics/gen/atan2/ae713e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { atan2_ae713e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 55ffa257a7..715d36dd7e 100644 --- a/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAdd/794055.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicAdd_794055() { int res = atomicAdd(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl b/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl index a25340d5a8..a718035619 100644 --- a/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAdd/8a199a.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicAdd_8a199a() { uint res = atomicAdd(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicAdd_8a199a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicAdd_8a199a() { uint res = atomicAdd(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicAdd_8a199a(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl b/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl index 17d866bd24..6f142ad70f 100644 --- a/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAdd/d32fe4.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicAdd_d32fe4() { int res = atomicAdd(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicAdd_d32fe4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicAdd_d32fe4() { int res = atomicAdd(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicAdd_d32fe4(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl b/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl index 9a3d9a1226..77ff3ccdbb 100644 --- a/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAdd/d5db1d.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicAdd_d5db1d() { uint res = atomicAdd(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl index 1bcff311a8..cb8b590492 100644 --- a/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAnd/152966.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicAnd_152966() { int res = atomicAnd(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicAnd_152966(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicAnd_152966() { int res = atomicAnd(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicAnd_152966(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl index 8ab60de264..893ba81787 100644 --- a/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAnd/34edd3.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicAnd_34edd3() { uint res = atomicAnd(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl index af28d896e8..29566d1f48 100644 --- a/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAnd/45a819.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicAnd_45a819() { int res = atomicAnd(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl b/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl index 7a483e0fc0..9260151490 100644 --- a/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicAnd/85a8d9.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicAnd_85a8d9() { uint res = atomicAnd(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicAnd_85a8d9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicAnd_85a8d9() { uint res = atomicAnd(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicAnd_85a8d9(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl index 00386ca542..3d91ea5a05 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicCompareExchangeWeak/12871c.wgsl.expected.glsl @@ -16,7 +16,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicCompareExchangeWeak_12871c() { ivec2 res = tint_atomicCompareExchangeWeak(sb_rw.arg_0, 1, 1); } @@ -25,11 +24,11 @@ void fragment_main() { atomicCompareExchangeWeak_12871c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -48,7 +47,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicCompareExchangeWeak_12871c() { ivec2 res = tint_atomicCompareExchangeWeak(sb_rw.arg_0, 1, 1); } @@ -58,8 +56,8 @@ void compute_main() { atomicCompareExchangeWeak_12871c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl index 7b5dda55d1..dd307ae28e 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicCompareExchangeWeak/6673da.wgsl.expected.glsl @@ -16,7 +16,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicCompareExchangeWeak_6673da() { uvec2 res = tint_atomicCompareExchangeWeak(sb_rw.arg_0, 1u, 1u); } @@ -25,11 +24,11 @@ void fragment_main() { atomicCompareExchangeWeak_6673da(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -48,7 +47,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicCompareExchangeWeak_6673da() { uvec2 res = tint_atomicCompareExchangeWeak(sb_rw.arg_0, 1u, 1u); } @@ -58,8 +56,8 @@ void compute_main() { atomicCompareExchangeWeak_6673da(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl index aaaf1776d2..fc9c6e65e1 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicCompareExchangeWeak/89ea3b.wgsl.expected.glsl @@ -10,7 +10,6 @@ ivec2 tint_atomicCompareExchangeWeak(inout int param_0, int param_1, int param_2 shared int arg_0; - void atomicCompareExchangeWeak_89ea3b() { ivec2 res = tint_atomicCompareExchangeWeak(arg_0, 1, 1); } @@ -32,10 +31,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl b/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl index 03b6857849..01162d84f6 100644 --- a/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicCompareExchangeWeak/b2ab2c.wgsl.expected.glsl @@ -10,7 +10,6 @@ uvec2 tint_atomicCompareExchangeWeak(inout uint param_0, uint param_1, uint para shared uint arg_0; - void atomicCompareExchangeWeak_b2ab2c() { uvec2 res = tint_atomicCompareExchangeWeak(arg_0, 1u, 1u); } @@ -32,10 +31,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl index c97fd12719..ceb8f2c587 100644 --- a/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicExchange_0a5dca() { uint res = atomicExchange(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl index 93c7eb6fcc..c8aeb19195 100644 --- a/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicExchange/d59712.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicExchange_d59712() { uint res = atomicExchange(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicExchange_d59712(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicExchange_d59712() { uint res = atomicExchange(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicExchange_d59712(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl index 52ae007ff8..02874faaa1 100644 --- a/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicExchange/e114ba.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicExchange_e114ba() { int res = atomicExchange(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl b/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl index 1491b523ea..89206ebe1c 100644 --- a/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicExchange/f2e22f.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicExchange_f2e22f() { int res = atomicExchange(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicExchange_f2e22f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicExchange_f2e22f() { int res = atomicExchange(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicExchange_f2e22f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl index 649a8e56f1..e8ec1aaafa 100644 --- a/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicLoad/0806ad.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicLoad_0806ad() { int res = atomicOr(sb_rw.arg_0, 0); } @@ -17,11 +16,11 @@ void fragment_main() { atomicLoad_0806ad(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicLoad_0806ad() { int res = atomicOr(sb_rw.arg_0, 0); } @@ -42,8 +40,8 @@ void compute_main() { atomicLoad_0806ad(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl index de8c6c6d28..ec67ef64e6 100644 --- a/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicLoad/361bf1.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicLoad_361bf1() { uint res = atomicOr(arg_0, 0u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl index 3f9ee82718..f4c5fdcad8 100644 --- a/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicLoad/afcc03.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicLoad_afcc03() { int res = atomicOr(arg_0, 0); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl b/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl index 71fe30f61a..315bfe3b89 100644 --- a/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicLoad/fe6cc3.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicLoad_fe6cc3() { uint res = atomicOr(sb_rw.arg_0, 0u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicLoad_fe6cc3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicLoad_fe6cc3() { uint res = atomicOr(sb_rw.arg_0, 0u); } @@ -42,8 +40,8 @@ void compute_main() { atomicLoad_fe6cc3(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl index e638604cb3..2a92b96976 100644 --- a/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMax/51b9be.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicMax_51b9be() { uint res = atomicMax(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicMax_51b9be(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicMax_51b9be() { uint res = atomicMax(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicMax_51b9be(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl index f51238d2e4..953c280998 100644 --- a/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMax/92aa72.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicMax_92aa72() { int res = atomicMax(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicMax_92aa72(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicMax_92aa72() { int res = atomicMax(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicMax_92aa72(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl index 8a4aaddc15..bda8cf5a50 100644 --- a/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMax/a89cc3.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicMax_a89cc3() { int res = atomicMax(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl b/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl index 085ee2eca4..7ff699c224 100644 --- a/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMax/beccfc.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicMax_beccfc() { uint res = atomicMax(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl index a3e2d3be12..924c3e5652 100644 --- a/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMin/278235.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicMin_278235() { int res = atomicMin(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl index 10e70a6293..f872cf38d0 100644 --- a/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMin/69d383.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicMin_69d383() { uint res = atomicMin(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl index edfeb6ec7f..3ef1cad890 100644 --- a/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMin/8e38dc.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicMin_8e38dc() { int res = atomicMin(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicMin_8e38dc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicMin_8e38dc() { int res = atomicMin(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicMin_8e38dc(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl b/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl index 247ed1eb3c..007cfa1451 100644 --- a/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicMin/c67a74.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicMin_c67a74() { uint res = atomicMin(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicMin_c67a74(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicMin_c67a74() { uint res = atomicMin(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicMin_c67a74(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl index 9fd6dfba54..2da57b8f6d 100644 --- a/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicOr/5e3d61.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicOr_5e3d61() { uint res = atomicOr(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl index 905360cf58..e0066d77a1 100644 --- a/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicOr/5e95d4.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicOr_5e95d4() { uint res = atomicOr(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicOr_5e95d4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicOr_5e95d4() { uint res = atomicOr(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicOr_5e95d4(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl index 5da969c7e3..6e2be736f5 100644 --- a/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicOr/8d96a0.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicOr_8d96a0() { int res = atomicOr(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicOr_8d96a0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicOr_8d96a0() { int res = atomicOr(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicOr_8d96a0(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl b/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl index 1bd396d099..c2ab6caf95 100644 --- a/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicOr/d09248.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicOr_d09248() { int res = atomicOr(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl index 1539167b34..4810df6bd1 100644 --- a/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicStore/726882.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicStore_726882() { atomicExchange(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl index d338acca00..5c11b81278 100644 --- a/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicStore/8bea94.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicStore_8bea94() { atomicExchange(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl index 7c317219f1..1e0429dc9a 100644 --- a/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicStore/cdc29e.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicStore_cdc29e() { atomicExchange(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicStore_cdc29e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicStore_cdc29e() { atomicExchange(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicStore_cdc29e(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl b/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl index c2ab929a5e..ac7fa98a6f 100644 --- a/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicStore/d1e9a6.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicStore_d1e9a6() { atomicExchange(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicStore_d1e9a6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicStore_d1e9a6() { atomicExchange(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicStore_d1e9a6(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl index 3294fbd8a5..bc8a2ee13e 100644 --- a/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicSub/051100.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicSub_051100() { int res = atomicAdd(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicSub_051100(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicSub_051100() { int res = atomicAdd(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicSub_051100(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl index b0bddda8d0..f17a4f3a5e 100644 --- a/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicSub/0d26c2.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicSub_0d26c2() { uint res = atomicAdd(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl index 537de8739f..118bcedf8f 100644 --- a/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicSub/15bfc9.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicSub_15bfc9() { uint res = atomicAdd(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicSub_15bfc9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicSub_15bfc9() { uint res = atomicAdd(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicSub_15bfc9(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl b/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl index 9c70e9930b..c8331da0cc 100644 --- a/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicSub/77883a.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicSub_77883a() { int res = atomicAdd(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl index e32e6b0034..931dcf11e8 100644 --- a/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicXor/54510e.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicXor_54510e() { uint res = atomicXor(sb_rw.arg_0, 1u); } @@ -17,11 +16,11 @@ void fragment_main() { atomicXor_54510e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { uint arg_0; } sb_rw; - void atomicXor_54510e() { uint res = atomicXor(sb_rw.arg_0, 1u); } @@ -42,8 +40,8 @@ void compute_main() { atomicXor_54510e(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl index 99173566c7..464b9e796b 100644 --- a/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicXor/75dc95.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int arg_0; - void atomicXor_75dc95() { int res = atomicXor(arg_0, 1); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl index ce68be512d..f91c27bbea 100644 --- a/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicXor/c1b78c.wgsl.expected.glsl @@ -8,7 +8,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicXor_c1b78c() { int res = atomicXor(sb_rw.arg_0, 1); } @@ -17,11 +16,11 @@ void fragment_main() { atomicXor_c1b78c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -32,7 +31,6 @@ struct SB_RW { layout(binding = 0) buffer SB_RW_1 { int arg_0; } sb_rw; - void atomicXor_c1b78c() { int res = atomicXor(sb_rw.arg_0, 1); } @@ -42,8 +40,8 @@ void compute_main() { atomicXor_c1b78c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl b/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl index bcc49d9191..209ec0bb1b 100644 --- a/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl +++ b/test/intrinsics/gen/atomicXor/c8e6be.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared uint arg_0; - void atomicXor_c8e6be() { uint res = atomicXor(arg_0, 1u); } @@ -24,10 +23,11 @@ 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); } - diff --git a/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl b/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl index 956a3951ca..7fb4dc55bb 100644 --- a/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl +++ b/test/intrinsics/gen/ceil/34064b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ceil_34064b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 31d306d2b7..bf97f9654e 100644 --- a/test/intrinsics/gen/ceil/678655.wgsl.expected.glsl +++ b/test/intrinsics/gen/ceil/678655.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ceil_678655(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d917e31f11..52ced7b207 100644 --- a/test/intrinsics/gen/ceil/96f597.wgsl.expected.glsl +++ b/test/intrinsics/gen/ceil/96f597.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ceil_96f597(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 79d3a3c40e..1a3cac6977 100644 --- a/test/intrinsics/gen/ceil/b74c16.wgsl.expected.glsl +++ b/test/intrinsics/gen/ceil/b74c16.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ceil_b74c16(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8ed088e70e..103572cf6c 100644 --- a/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/0acf8f.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_0acf8f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 2efad4de44..a2abc658c3 100644 --- a/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/1a32e3.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_1a32e3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a443a31247..73faf97553 100644 --- a/test/intrinsics/gen/clamp/2bd567.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/2bd567.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_2bd567(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 3546e042e5..ed22707804 100644 --- a/test/intrinsics/gen/clamp/2bde41.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/2bde41.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_2bde41(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 389d81855a..9bdda9e235 100644 --- a/test/intrinsics/gen/clamp/548fc7.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/548fc7.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_548fc7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index dc61fb76f5..42ae5f6343 100644 --- a/test/intrinsics/gen/clamp/5f0819.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/5f0819.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_5f0819(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 5f2a0ec9c3..37b11b6a8a 100644 --- a/test/intrinsics/gen/clamp/6c1749.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/6c1749.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_6c1749(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 614bb6a282..2b225ed01a 100644 --- a/test/intrinsics/gen/clamp/7706d7.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/7706d7.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_7706d7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6b6fa981dc..7f078f6106 100644 --- a/test/intrinsics/gen/clamp/867397.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/867397.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_867397(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e644d9aeea..dc2ca1eccc 100644 --- a/test/intrinsics/gen/clamp/a2de25.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/a2de25.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_a2de25(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 393f2841f6..a9e6199868 100644 --- a/test/intrinsics/gen/clamp/b07c65.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/b07c65.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_b07c65(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 22e0ec001c..8cde9f3bda 100644 --- a/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.glsl +++ b/test/intrinsics/gen/clamp/bd43ce.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { clamp_bd43ce(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d97825f3ea..68bc55b379 100644 --- a/test/intrinsics/gen/cos/16dc15.wgsl.expected.glsl +++ b/test/intrinsics/gen/cos/16dc15.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cos_16dc15(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f80a3a3556..775dbf3a9e 100644 --- a/test/intrinsics/gen/cos/29d66d.wgsl.expected.glsl +++ b/test/intrinsics/gen/cos/29d66d.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cos_29d66d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 0718e00da3..49b902e19b 100644 --- a/test/intrinsics/gen/cos/c3b486.wgsl.expected.glsl +++ b/test/intrinsics/gen/cos/c3b486.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cos_c3b486(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index acd2840b6b..bd2d098f86 100644 --- a/test/intrinsics/gen/cos/c5c28e.wgsl.expected.glsl +++ b/test/intrinsics/gen/cos/c5c28e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cos_c5c28e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 3fe5c6ae9e..7771255669 100644 --- a/test/intrinsics/gen/cosh/377652.wgsl.expected.glsl +++ b/test/intrinsics/gen/cosh/377652.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cosh_377652(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8feca51432..475471e990 100644 --- a/test/intrinsics/gen/cosh/c13756.wgsl.expected.glsl +++ b/test/intrinsics/gen/cosh/c13756.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cosh_c13756(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index afbc39643b..76744dd4e4 100644 --- a/test/intrinsics/gen/cosh/da92dd.wgsl.expected.glsl +++ b/test/intrinsics/gen/cosh/da92dd.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cosh_da92dd(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 25ccf66ebe..7e6890ea47 100644 --- a/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.glsl +++ b/test/intrinsics/gen/cosh/e0c1de.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cosh_e0c1de(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 11b663d450..dec129c511 100644 --- a/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/0d0e46.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl index 053ca57d36..15fdfffaf9 100644 --- a/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/0f7980.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl index f910a7f16d..7baeb627f6 100644 --- a/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/65d2ae.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl index 1387754adb..c876810b4d 100644 --- a/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/690cfc.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl index 4cc6288fd3..08a12e8cef 100644 --- a/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/94fd81.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl index 55d89f8847..851ae3392c 100644 --- a/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/ae44f9.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl index e907fc3e35..80fe35ec3a 100644 --- a/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/af90e2.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl b/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl index 40ac27a911..0ef55de856 100644 --- a/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl +++ b/test/intrinsics/gen/countOneBits/fd88b2.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl b/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl index 6d93cb083b..64fad74400 100644 --- a/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl +++ b/test/intrinsics/gen/cross/041cb0.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { cross_041cb0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ void compute_main() { cross_041cb0(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/degrees/0d170c.wgsl.expected.glsl b/test/intrinsics/gen/degrees/0d170c.wgsl.expected.glsl index 684f3fb817..55c0c7a62b 100644 --- a/test/intrinsics/gen/degrees/0d170c.wgsl.expected.glsl +++ b/test/intrinsics/gen/degrees/0d170c.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { degrees_0d170c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { degrees_0d170c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.glsl b/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.glsl index 8d35b2dd31..dd18b3bd30 100644 --- a/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.glsl +++ b/test/intrinsics/gen/degrees/1ad5df.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { degrees_1ad5df(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { degrees_1ad5df(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/degrees/2af623.wgsl.expected.glsl b/test/intrinsics/gen/degrees/2af623.wgsl.expected.glsl index 2f1c095931..447c7986f0 100644 --- a/test/intrinsics/gen/degrees/2af623.wgsl.expected.glsl +++ b/test/intrinsics/gen/degrees/2af623.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { degrees_2af623(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { degrees_2af623(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/degrees/51f705.wgsl.expected.glsl b/test/intrinsics/gen/degrees/51f705.wgsl.expected.glsl index c57603073c..5135deb8db 100644 --- a/test/intrinsics/gen/degrees/51f705.wgsl.expected.glsl +++ b/test/intrinsics/gen/degrees/51f705.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { degrees_51f705(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { degrees_51f705(); 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 index 1adff1aa82..b72337e733 100644 --- a/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.glsl +++ b/test/intrinsics/gen/determinant/2b62ba.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { determinant_2b62ba(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8b716efd95..f8b510f302 100644 --- a/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.glsl +++ b/test/intrinsics/gen/determinant/a0a87c.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { determinant_a0a87c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 2e2e0d0238..fc322436b9 100644 --- a/test/intrinsics/gen/determinant/e19305.wgsl.expected.glsl +++ b/test/intrinsics/gen/determinant/e19305.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { determinant_e19305(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 4fb7b3d81b..a3c576e786 100644 --- a/test/intrinsics/gen/distance/0657d4.wgsl.expected.glsl +++ b/test/intrinsics/gen/distance/0657d4.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { distance_0657d4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a0773a81b7..092483257d 100644 --- a/test/intrinsics/gen/distance/9646ea.wgsl.expected.glsl +++ b/test/intrinsics/gen/distance/9646ea.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { distance_9646ea(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index cc3cdc41f0..9d95357962 100644 --- a/test/intrinsics/gen/distance/aa4055.wgsl.expected.glsl +++ b/test/intrinsics/gen/distance/aa4055.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { distance_aa4055(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a38a90cb73..5b5a6bf53a 100644 --- a/test/intrinsics/gen/distance/cfed73.wgsl.expected.glsl +++ b/test/intrinsics/gen/distance/cfed73.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { distance_cfed73(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 69e56745f5..27d3e7a778 100644 --- a/test/intrinsics/gen/dot/0c577b.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/0c577b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { dot_0c577b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 22594abbaa..66d877d559 100644 --- a/test/intrinsics/gen/dot/7548a0.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/7548a0.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -52,11 +53,11 @@ void fragment_main() { dot_7548a0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -77,8 +78,8 @@ 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 index 263b33dde6..f58fa99615 100644 --- a/test/intrinsics/gen/dot/883f0e.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/883f0e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { dot_883f0e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index ad17ac2ee6..090d24214d 100644 --- a/test/intrinsics/gen/dot/97c7ee.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/97c7ee.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -52,11 +53,11 @@ void fragment_main() { dot_97c7ee(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -77,8 +78,8 @@ 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 index 3a4cec1653..f8c73a8eef 100644 --- a/test/intrinsics/gen/dot/ba4246.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/ba4246.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { dot_ba4246(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 9ee8ab2da9..058ea47de7 100644 --- a/test/intrinsics/gen/dot/e994c7.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/e994c7.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -52,11 +53,11 @@ void fragment_main() { dot_e994c7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -77,8 +78,8 @@ 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 index 31c5cefc46..da0f7b0546 100644 --- a/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/ef6b1d.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -52,11 +53,11 @@ void fragment_main() { dot_ef6b1d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -77,8 +78,8 @@ 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 index 3e0d1f82d9..66e776ee48 100644 --- a/test/intrinsics/gen/dot/f1312c.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/f1312c.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -52,11 +53,11 @@ void fragment_main() { dot_f1312c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -77,8 +78,8 @@ 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 index 22d0dd2861..339737255b 100644 --- a/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.glsl +++ b/test/intrinsics/gen/dot/fc5f7c.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -52,11 +53,11 @@ void fragment_main() { dot_fc5f7c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -77,8 +78,8 @@ 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 index b2c3e883aa..375163218b 100644 --- a/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdx/0763f7.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl b/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl index b147755b82..3ed75b42fd 100644 --- a/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdx/99edb1.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl b/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl index 3201da849c..3c5dee07fe 100644 --- a/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdx/c487fa.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl b/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl index 8d278918df..974858772d 100644 --- a/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdx/e263de.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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 diff --git a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl index 712cb2e1fa..312c91d106 100644 --- a/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxCoarse/029152.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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 diff --git a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl index ca3f4443a3..5144cdc9b1 100644 --- a/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxCoarse/9581cf.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl index d74869327b..316a7409ed 100644 --- a/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxCoarse/c28641.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl b/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl index 568db443bf..165c98ae90 100644 --- a/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxCoarse/f64d7b.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl index 1f79d0e1bb..9849f53467 100644 --- a/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxFine/8c5069.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl index 589076751d..1b7f55c81f 100644 --- a/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxFine/9631de.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl index 99c60ca855..e808df6c6d 100644 --- a/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxFine/f401a2.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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 diff --git a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl b/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl index 3e8c68fbf6..4148812a90 100644 --- a/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdxFine/f92fb6.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl index b235c278ad..5af0963bef 100644 --- a/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdy/699a05.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl index 7c20e0f592..83f914922c 100644 --- a/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdy/7f8d84.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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 diff --git a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl index 82667ce624..77cb3360e9 100644 --- a/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdy/a8b56e.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl b/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl index baf086e530..93993fb7e5 100644 --- a/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdy/feb40f.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl index a4f7518aa9..acc10ce72d 100644 --- a/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyCoarse/3e1ab4.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl index 3872654559..faccad9f7c 100644 --- a/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyCoarse/445d24.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl index e650118156..42ddd725ea 100644 --- a/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyCoarse/870a7e.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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 diff --git a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl b/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl index b76372cfba..9d4bb1c3d2 100644 --- a/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyCoarse/ae1873.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl index 903fba0722..339d3866b9 100644 --- a/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyFine/1fb7ab.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl index 4aafeb03ab..f616661353 100644 --- a/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyFine/6eb673.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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 diff --git a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl index 532ff81b7e..ad7595638b 100644 --- a/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyFine/d0a648.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl b/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl index 89a7b2c0f5..c0cad99393 100644 --- a/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl +++ b/test/intrinsics/gen/dpdyFine/df33aa.wgsl.expected.glsl @@ -11,11 +11,11 @@ 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' diff --git a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl b/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl index 5af098b55e..14b34b1e46 100644 --- a/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp/0f70eb.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp_0f70eb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e4384a7eb1..62d16d53c2 100644 --- a/test/intrinsics/gen/exp/1951e7.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp/1951e7.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp_1951e7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 7d9ef49c72..721e5dc76d 100644 --- a/test/intrinsics/gen/exp/771fd2.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp/771fd2.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp_771fd2(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index c40ee7e7df..acca67dd1b 100644 --- a/test/intrinsics/gen/exp/d98450.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp/d98450.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp_d98450(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e9ecb77676..a05fac60f9 100644 --- a/test/intrinsics/gen/exp2/1f8680.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp2/1f8680.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp2_1f8680(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6194f99d19..0a6862d08e 100644 --- a/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp2/a9d0a7.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp2_a9d0a7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e3d32d533e..6cdab4d16e 100644 --- a/test/intrinsics/gen/exp2/d6777c.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp2/d6777c.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp2_d6777c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index c6d84db7b2..f929267021 100644 --- a/test/intrinsics/gen/exp2/dea523.wgsl.expected.glsl +++ b/test/intrinsics/gen/exp2/dea523.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { exp2_dea523(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 5dbbc6d8b2..4a9bdc4845 100644 --- a/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.glsl +++ b/test/intrinsics/gen/faceForward/5afbd5.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { faceForward_5afbd5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e488435d1b..6fccb43ab3 100644 --- a/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.glsl +++ b/test/intrinsics/gen/faceForward/b316e5.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { faceForward_b316e5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 14d0f5de3a..80375c86f8 100644 --- a/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.glsl +++ b/test/intrinsics/gen/faceForward/e6908b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { faceForward_e6908b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1552c45b21..e3ece5a65d 100644 --- a/test/intrinsics/gen/floor/3bccc4.wgsl.expected.glsl +++ b/test/intrinsics/gen/floor/3bccc4.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { floor_3bccc4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8255234576..d0cfbad6d5 100644 --- a/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.glsl +++ b/test/intrinsics/gen/floor/5fc9ac.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { floor_5fc9ac(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 234af63fd4..25c718c07b 100644 --- a/test/intrinsics/gen/floor/60d7ea.wgsl.expected.glsl +++ b/test/intrinsics/gen/floor/60d7ea.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { floor_60d7ea(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8b0047904d..708bc0626d 100644 --- a/test/intrinsics/gen/floor/66f154.wgsl.expected.glsl +++ b/test/intrinsics/gen/floor/66f154.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { floor_66f154(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 65e2184a21..6a1c015803 100644 --- a/test/intrinsics/gen/fma/26a7a9.wgsl.expected.glsl +++ b/test/intrinsics/gen/fma/26a7a9.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl b/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl index 7436355474..8b2530b389 100644 --- a/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl +++ b/test/intrinsics/gen/fma/6a3283.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl b/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl index 30e2d14aed..0d07f7bbf8 100644 --- a/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl +++ b/test/intrinsics/gen/fma/c10ba3.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'mad' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl b/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl index 7c0248ea32..a380e52552 100644 --- a/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl +++ b/test/intrinsics/gen/fma/e17c5c.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl b/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl index 0375ada0cd..a8aa37036a 100644 --- a/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl +++ b/test/intrinsics/gen/fract/8bc1e9.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl b/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl index 61ab7399bf..3940b2d62d 100644 --- a/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl +++ b/test/intrinsics/gen/fract/943cb1.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl b/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl index 156d5e9c7f..52044439ae 100644 --- a/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl +++ b/test/intrinsics/gen/fract/a49758.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl b/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl index 3f97c82301..3fadefa246 100644 --- a/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl +++ b/test/intrinsics/gen/fract/fa5c71.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'frac' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/frexp/368997.wgsl.expected.glsl b/test/intrinsics/gen/frexp/368997.wgsl.expected.glsl index 150693639c..a1f31eab7d 100644 --- a/test/intrinsics/gen/frexp/368997.wgsl.expected.glsl +++ b/test/intrinsics/gen/frexp/368997.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct frexp_result_vec3 { vec3 sig; ivec3 exp; }; + frexp_result_vec3 tint_frexp(vec3 param_0) { float3 exp; float3 sig = frexp(param_0, exp); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:9: 'float3' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float3' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct frexp_result_vec3 { vec3 sig; ivec3 exp; }; + frexp_result_vec3 tint_frexp(vec3 param_0) { float3 exp; float3 sig = frexp(param_0, exp); @@ -77,14 +80,14 @@ void fragment_main() { frexp_368997(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float3' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float3' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct frexp_result_vec3 { vec3 sig; ivec3 exp; }; + frexp_result_vec3 tint_frexp(vec3 param_0) { float3 exp; float3 sig = frexp(param_0, exp); @@ -117,14 +121,14 @@ void compute_main() { frexp_368997(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float3' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float3' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.glsl b/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.glsl index bf14350650..8e0f6fdfa9 100644 --- a/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.glsl +++ b/test/intrinsics/gen/frexp/3c4f48.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct frexp_result_vec4 { vec4 sig; ivec4 exp; }; + frexp_result_vec4 tint_frexp(vec4 param_0) { float4 exp; float4 sig = frexp(param_0, exp); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:9: 'float4' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float4' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct frexp_result_vec4 { vec4 sig; ivec4 exp; }; + frexp_result_vec4 tint_frexp(vec4 param_0) { float4 exp; float4 sig = frexp(param_0, exp); @@ -77,14 +80,14 @@ void fragment_main() { frexp_3c4f48(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float4' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float4' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct frexp_result_vec4 { vec4 sig; ivec4 exp; }; + frexp_result_vec4 tint_frexp(vec4 param_0) { float4 exp; float4 sig = frexp(param_0, exp); @@ -117,14 +121,14 @@ void compute_main() { frexp_3c4f48(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float4' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float4' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.glsl b/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.glsl index ff8402ccc8..2acbc9f008 100644 --- a/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.glsl +++ b/test/intrinsics/gen/frexp/4bdfc7.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct frexp_result_vec2 { vec2 sig; ivec2 exp; }; + frexp_result_vec2 tint_frexp(vec2 param_0) { float2 exp; float2 sig = frexp(param_0, exp); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:9: 'float2' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float2' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct frexp_result_vec2 { vec2 sig; ivec2 exp; }; + frexp_result_vec2 tint_frexp(vec2 param_0) { float2 exp; float2 sig = frexp(param_0, exp); @@ -77,14 +80,14 @@ void fragment_main() { frexp_4bdfc7(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float2' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float2' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct frexp_result_vec2 { vec2 sig; ivec2 exp; }; + frexp_result_vec2 tint_frexp(vec2 param_0) { float2 exp; float2 sig = frexp(param_0, exp); @@ -117,14 +121,14 @@ void compute_main() { frexp_4bdfc7(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float2' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float2' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/frexp/eabd40.wgsl.expected.glsl b/test/intrinsics/gen/frexp/eabd40.wgsl.expected.glsl index e16cc08356..6892c1a0ef 100644 --- a/test/intrinsics/gen/frexp/eabd40.wgsl.expected.glsl +++ b/test/intrinsics/gen/frexp/eabd40.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct frexp_result { float sig; int exp; }; + frexp_result tint_frexp(float param_0) { float exp; float sig = frexp(param_0, exp); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { 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: 0:11: 'frexp' : no matching overloaded function found +ERROR: 0:11: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct frexp_result { float sig; int exp; }; + frexp_result tint_frexp(float param_0) { float exp; float sig = frexp(param_0, exp); @@ -77,14 +80,14 @@ void fragment_main() { frexp_eabd40(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:10: 'frexp' : no matching overloaded function found -ERROR: 0:10: '' : compilation terminated +ERROR: 0:11: 'frexp' : no matching overloaded function found +ERROR: 0:11: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct frexp_result { float sig; int exp; }; + frexp_result tint_frexp(float param_0) { float exp; float sig = frexp(param_0, exp); @@ -117,14 +121,14 @@ void compute_main() { frexp_eabd40(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:10: 'frexp' : no matching overloaded function found -ERROR: 0:10: '' : compilation terminated +ERROR: 0:11: 'frexp' : no matching overloaded function found +ERROR: 0:11: '' : 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 index a0affd9547..34122c57f2 100644 --- a/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidth/5d1b39.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 3a38177059..ec1ced884c 100644 --- a/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidth/b83ebb.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 6d23f98a46..91563b72aa 100644 --- a/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidth/d2ab9a.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index fa13be745c..43676d1e90 100644 --- a/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidth/df38ef.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 0fa894073a..135ec350fe 100644 --- a/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthCoarse/159c8a.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 13b779ca9c..62de671cd4 100644 --- a/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthCoarse/1e59d9.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 6f6634b054..a7780a7d53 100644 --- a/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthCoarse/4e4fc4.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 48db5eeb35..27c6a7c507 100644 --- a/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthCoarse/e653f7.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 46ed62a1fb..456f35c0f1 100644 --- a/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthFine/523fdc.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index ce3dbadbb7..871b6a6742 100644 --- a/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthFine/68f4ef.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index 4441b46ac6..8244f2fbd0 100644 --- a/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthFine/f1742d.wgsl.expected.glsl @@ -9,8 +9,8 @@ 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 index bf921e23ff..7fc286d2ad 100644 --- a/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.glsl +++ b/test/intrinsics/gen/fwidthFine/ff6aa0.wgsl.expected.glsl @@ -9,8 +9,8 @@ void fragment_main() { fwidthFine_ff6aa0(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/ignore/51aeb7.wgsl.expected.glsl b/test/intrinsics/gen/ignore/51aeb7.wgsl.expected.glsl index a9d7595ac2..9fbab2cc15 100644 --- a/test/intrinsics/gen/ignore/51aeb7.wgsl.expected.glsl +++ b/test/intrinsics/gen/ignore/51aeb7.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { ignore_51aeb7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ void compute_main() { ignore_51aeb7(); 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 index d3e5912565..455f5b2582 100644 --- a/test/intrinsics/gen/ignore/6698df.wgsl.expected.glsl +++ b/test/intrinsics/gen/ignore/6698df.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { ignore_6698df(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ void compute_main() { ignore_6698df(); 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 index 4f16889e4b..c68bffc2dc 100644 --- a/test/intrinsics/gen/ignore/d91a2f.wgsl.expected.glsl +++ b/test/intrinsics/gen/ignore/d91a2f.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { ignore_d91a2f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ void compute_main() { ignore_d91a2f(); 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 index 7e976a524a..63c111f5cd 100644 --- a/test/intrinsics/gen/ignore/f414a6.wgsl.expected.glsl +++ b/test/intrinsics/gen/ignore/f414a6.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { ignore_f414a6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index 790d03ba44..64218af9cc 100644 --- a/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.glsl +++ b/test/intrinsics/gen/inverseSqrt/84407e.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'rsqrt' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl b/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl index bb7a249860..2e339a43c7 100644 --- a/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl +++ b/test/intrinsics/gen/inverseSqrt/8f2bd2.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl b/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl index d4f4e548c5..44afddedcc 100644 --- a/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl +++ b/test/intrinsics/gen/inverseSqrt/b197b1.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl b/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl index 6725af4a9e..f9371f768a 100644 --- a/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl +++ b/test/intrinsics/gen/inverseSqrt/c22347.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl index 0d46074903..9c34884666 100644 --- a/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl +++ b/test/intrinsics/gen/isFinite/34d32b.wgsl.expected.glsl @@ -26,6 +26,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -34,7 +36,6 @@ void main() { 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' @@ -58,11 +59,11 @@ 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' @@ -87,11 +88,11 @@ 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' diff --git a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl index 2fd72b3c27..47a43a4c1c 100644 --- a/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl +++ b/test/intrinsics/gen/isFinite/426f9f.wgsl.expected.glsl @@ -26,6 +26,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -34,7 +36,6 @@ void main() { 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' @@ -58,11 +59,11 @@ 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' @@ -87,11 +88,11 @@ 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' diff --git a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl index 91124f9efc..8486ac9f17 100644 --- a/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl +++ b/test/intrinsics/gen/isFinite/8a23ad.wgsl.expected.glsl @@ -26,6 +26,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -34,7 +36,6 @@ void main() { 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' @@ -58,11 +59,11 @@ 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' @@ -87,11 +88,11 @@ 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' diff --git a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl index 395c892075..a2870a9237 100644 --- a/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl +++ b/test/intrinsics/gen/isFinite/f31987.wgsl.expected.glsl @@ -26,6 +26,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -34,7 +36,6 @@ void main() { 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' @@ -58,11 +59,11 @@ 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' @@ -87,11 +88,11 @@ 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' diff --git a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl index 870a48f6a0..36f99fe51d 100644 --- a/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl +++ b/test/intrinsics/gen/isInf/666f2a.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isInf_666f2a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index bb37301746..56e4d76ed2 100644 --- a/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl +++ b/test/intrinsics/gen/isInf/7bd98f.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isInf_7bd98f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index 77035e8142..a1c971ab13 100644 --- a/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl +++ b/test/intrinsics/gen/isInf/7e81b5.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isInf_7e81b5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index 2bb0f8c688..7c0559f3af 100644 --- a/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl +++ b/test/intrinsics/gen/isInf/a46d6f.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isInf_a46d6f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index 3e392cce55..9221d99d9b 100644 --- a/test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNan/1280ab.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isNan_1280ab(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index 0da055c646..ea662da3d3 100644 --- a/test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNan/4d280d.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isNan_4d280d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index e7ec27b042..5fae942ad8 100644 --- a/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNan/67ecd3.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isNan_67ecd3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index 8033cb1b5c..81a59dae5e 100644 --- a/test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNan/e4978e.wgsl.expected.glsl @@ -24,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -48,11 +49,11 @@ void fragment_main() { isNan_e4978e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -69,8 +70,8 @@ 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 index 23d8edfbcb..6b4953edff 100644 --- a/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNormal/863dcd.wgsl.expected.glsl @@ -33,6 +33,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -41,7 +43,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'uint4' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -71,11 +72,11 @@ 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 @@ -106,11 +107,11 @@ 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 diff --git a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl index 53e9308208..09a02d18d9 100644 --- a/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNormal/b00ab1.wgsl.expected.glsl @@ -33,6 +33,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -41,7 +43,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -71,11 +72,11 @@ 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 @@ -106,11 +107,11 @@ 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 diff --git a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl index fdd976b7e7..959e3d4932 100644 --- a/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNormal/c286b7.wgsl.expected.glsl @@ -33,6 +33,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -41,7 +43,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'uint3' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -71,11 +72,11 @@ 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 @@ -106,11 +107,11 @@ 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 diff --git a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl index 58fb928025..047b0305c0 100644 --- a/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl +++ b/test/intrinsics/gen/isNormal/c6e880.wgsl.expected.glsl @@ -33,6 +33,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -41,7 +43,6 @@ void main() { 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' @@ -72,11 +73,11 @@ 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' @@ -108,11 +109,11 @@ 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' diff --git a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl b/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl index 2ce0179843..52421d5479 100644 --- a/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl +++ b/test/intrinsics/gen/ldexp/a31cdc.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ldexp_a31cdc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d331a2042f..517e258e46 100644 --- a/test/intrinsics/gen/ldexp/abd718.wgsl.expected.glsl +++ b/test/intrinsics/gen/ldexp/abd718.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ldexp_abd718(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 38cd6b5db1..24485b439f 100644 --- a/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.glsl +++ b/test/intrinsics/gen/ldexp/cc9cde.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ldexp_cc9cde(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index c34ebd0ab2..113b4c3b9c 100644 --- a/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.glsl +++ b/test/intrinsics/gen/ldexp/db8b49.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { ldexp_db8b49(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1316030300..3b119de312 100644 --- a/test/intrinsics/gen/length/056071.wgsl.expected.glsl +++ b/test/intrinsics/gen/length/056071.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { length_056071(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 59c2009107..ce4b832cad 100644 --- a/test/intrinsics/gen/length/602a17.wgsl.expected.glsl +++ b/test/intrinsics/gen/length/602a17.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { length_602a17(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index c59c8834a9..d86ccd38a9 100644 --- a/test/intrinsics/gen/length/afde8b.wgsl.expected.glsl +++ b/test/intrinsics/gen/length/afde8b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { length_afde8b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 9d9618cbb7..7486516217 100644 --- a/test/intrinsics/gen/length/becebf.wgsl.expected.glsl +++ b/test/intrinsics/gen/length/becebf.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { length_becebf(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 234a002d11..1bc35fb7a2 100644 --- a/test/intrinsics/gen/log/3da25a.wgsl.expected.glsl +++ b/test/intrinsics/gen/log/3da25a.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log_3da25a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a24f791ee6..46d72a1904 100644 --- a/test/intrinsics/gen/log/7114a6.wgsl.expected.glsl +++ b/test/intrinsics/gen/log/7114a6.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log_7114a6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f93a0bc5eb..aa634070d7 100644 --- a/test/intrinsics/gen/log/b2ce28.wgsl.expected.glsl +++ b/test/intrinsics/gen/log/b2ce28.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log_b2ce28(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 0256c6c7ab..2171e83cc9 100644 --- a/test/intrinsics/gen/log/f4c570.wgsl.expected.glsl +++ b/test/intrinsics/gen/log/f4c570.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log_f4c570(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 7eda0ddf33..a3cbb0d734 100644 --- a/test/intrinsics/gen/log2/4036ed.wgsl.expected.glsl +++ b/test/intrinsics/gen/log2/4036ed.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log2_4036ed(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f62ea98939..23d35bc7b0 100644 --- a/test/intrinsics/gen/log2/902988.wgsl.expected.glsl +++ b/test/intrinsics/gen/log2/902988.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log2_902988(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1c68e823af..5cc3c47edf 100644 --- a/test/intrinsics/gen/log2/adb233.wgsl.expected.glsl +++ b/test/intrinsics/gen/log2/adb233.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log2_adb233(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index da187fe9f6..ad3b77a6e4 100644 --- a/test/intrinsics/gen/log2/aea659.wgsl.expected.glsl +++ b/test/intrinsics/gen/log2/aea659.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { log2_aea659(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 26b2d96269..63560d09d1 100644 --- a/test/intrinsics/gen/max/0c0aae.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/0c0aae.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_0c0aae(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 936d5e60ae..730e3d371c 100644 --- a/test/intrinsics/gen/max/25eafe.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/25eafe.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_25eafe(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e72fe51850..8e21639ca1 100644 --- a/test/intrinsics/gen/max/320815.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/320815.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_320815(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1b72e316da..2d87a72fb0 100644 --- a/test/intrinsics/gen/max/44a39d.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/44a39d.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_44a39d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 19e7f1f89d..f0127c45d9 100644 --- a/test/intrinsics/gen/max/453e04.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/453e04.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_453e04(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 0c680c937d..db7e09855d 100644 --- a/test/intrinsics/gen/max/462050.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/462050.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_462050(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f1fe35acd5..e418b7904d 100644 --- a/test/intrinsics/gen/max/4883ac.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/4883ac.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_4883ac(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8c916c86f1..662db4ec2d 100644 --- a/test/intrinsics/gen/max/85e6bc.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/85e6bc.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_85e6bc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index ba1ee866b1..d39362b591 100644 --- a/test/intrinsics/gen/max/a93419.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/a93419.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_a93419(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e4a3b6d1e2..bad55c73a4 100644 --- a/test/intrinsics/gen/max/b1b73a.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/b1b73a.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_b1b73a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 4221ecdbaf..e9496f360f 100644 --- a/test/intrinsics/gen/max/ce7c30.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/ce7c30.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_ce7c30(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 14fc5506d5..eead06e87b 100644 --- a/test/intrinsics/gen/max/e8192f.wgsl.expected.glsl +++ b/test/intrinsics/gen/max/e8192f.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { max_e8192f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f92e9cb6a9..21670e2ffc 100644 --- a/test/intrinsics/gen/min/03c7e3.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/03c7e3.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_03c7e3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 980a70150a..23d6a58574 100644 --- a/test/intrinsics/gen/min/0dc614.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/0dc614.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_0dc614(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6f40cd935d..5df9bdcf0f 100644 --- a/test/intrinsics/gen/min/3941e1.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/3941e1.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_3941e1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 72f91a5426..138a485d19 100644 --- a/test/intrinsics/gen/min/46c5d3.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/46c5d3.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_46c5d3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e3845f799d..c1d244a18f 100644 --- a/test/intrinsics/gen/min/82b28f.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/82b28f.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_82b28f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index dc784fd0e4..ea51f496ea 100644 --- a/test/intrinsics/gen/min/93cfc4.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/93cfc4.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_93cfc4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e8b51fddfc..43bee8b18f 100644 --- a/test/intrinsics/gen/min/a45171.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/a45171.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_a45171(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 95169e0c2f..eb5a4b0003 100644 --- a/test/intrinsics/gen/min/aa28ad.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/aa28ad.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_aa28ad(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 23e2ce170f..1090dab24c 100644 --- a/test/intrinsics/gen/min/af326d.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/af326d.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_af326d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index ce5340156d..09ecc63a81 100644 --- a/test/intrinsics/gen/min/c70bb7.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/c70bb7.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_c70bb7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 747e2ed142..914a4b36dc 100644 --- a/test/intrinsics/gen/min/c73147.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/c73147.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_c73147(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 07477ab7f6..a6b8d7351b 100644 --- a/test/intrinsics/gen/min/c76fa6.wgsl.expected.glsl +++ b/test/intrinsics/gen/min/c76fa6.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { min_c76fa6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 27d05de8aa..5d2c8c9455 100644 --- a/test/intrinsics/gen/mix/0c8c33.wgsl.expected.glsl +++ b/test/intrinsics/gen/mix/0c8c33.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { mix_0c8c33(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6ebd0518a4..baca38f813 100644 --- a/test/intrinsics/gen/mix/1faeb1.wgsl.expected.glsl +++ b/test/intrinsics/gen/mix/1faeb1.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { mix_1faeb1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e8f7679053..926742837c 100644 --- a/test/intrinsics/gen/mix/2fadab.wgsl.expected.glsl +++ b/test/intrinsics/gen/mix/2fadab.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { mix_2fadab(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 3bdb9d0569..474594f615 100644 --- a/test/intrinsics/gen/mix/315264.wgsl.expected.glsl +++ b/test/intrinsics/gen/mix/315264.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { mix_315264(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 2c2bb45194..df22fe4b68 100644 --- a/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.glsl +++ b/test/intrinsics/gen/mix/4f0b5e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { mix_4f0b5e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 49ff4c3979..0d74119feb 100644 --- a/test/intrinsics/gen/mix/6f8adc.wgsl.expected.glsl +++ b/test/intrinsics/gen/mix/6f8adc.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { mix_6f8adc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index cb6d7e35e9..69908a31b0 100644 --- a/test/intrinsics/gen/mix/c37ede.wgsl.expected.glsl +++ b/test/intrinsics/gen/mix/c37ede.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { mix_c37ede(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ void compute_main() { mix_c37ede(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/modf/180fed.wgsl.expected.glsl b/test/intrinsics/gen/modf/180fed.wgsl.expected.glsl index efa2621075..7ca9bdf6be 100644 --- a/test/intrinsics/gen/modf/180fed.wgsl.expected.glsl +++ b/test/intrinsics/gen/modf/180fed.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct modf_result { float fract; float whole; }; + modf_result tint_modf(float param_0) { float whole; float fract = modf(param_0, whole); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { 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: 0:12: '{ } style initializers' : not supported with this profile: es +ERROR: 0:12: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct modf_result { float fract; float whole; }; + modf_result tint_modf(float param_0) { float whole; float fract = modf(param_0, whole); @@ -77,14 +80,14 @@ void fragment_main() { modf_180fed(); 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: 0:12: '{ } style initializers' : not supported with this profile: es +ERROR: 0:12: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct modf_result { float fract; float whole; }; + modf_result tint_modf(float param_0) { float whole; float fract = modf(param_0, whole); @@ -117,14 +121,14 @@ void compute_main() { modf_180fed(); 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: 0:12: '{ } style initializers' : not supported with this profile: es +ERROR: 0:12: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/modf/9b75f7.wgsl.expected.glsl b/test/intrinsics/gen/modf/9b75f7.wgsl.expected.glsl index 4f22fcf9f2..01bd4b3513 100644 --- a/test/intrinsics/gen/modf/9b75f7.wgsl.expected.glsl +++ b/test/intrinsics/gen/modf/9b75f7.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct modf_result_vec3 { vec3 fract; vec3 whole; }; + modf_result_vec3 tint_modf(vec3 param_0) { float3 whole; float3 fract = modf(param_0, whole); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:9: 'float3' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float3' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct modf_result_vec3 { vec3 fract; vec3 whole; }; + modf_result_vec3 tint_modf(vec3 param_0) { float3 whole; float3 fract = modf(param_0, whole); @@ -77,14 +80,14 @@ void fragment_main() { modf_9b75f7(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float3' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float3' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct modf_result_vec3 { vec3 fract; vec3 whole; }; + modf_result_vec3 tint_modf(vec3 param_0) { float3 whole; float3 fract = modf(param_0, whole); @@ -117,14 +121,14 @@ void compute_main() { modf_9b75f7(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float3' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float3' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.glsl b/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.glsl index 0229c44dcb..603abe5107 100644 --- a/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.glsl +++ b/test/intrinsics/gen/modf/ec2dbc.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct modf_result_vec4 { vec4 fract; vec4 whole; }; + modf_result_vec4 tint_modf(vec4 param_0) { float4 whole; float4 fract = modf(param_0, whole); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:9: 'float4' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float4' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct modf_result_vec4 { vec4 fract; vec4 whole; }; + modf_result_vec4 tint_modf(vec4 param_0) { float4 whole; float4 fract = modf(param_0, whole); @@ -77,14 +80,14 @@ void fragment_main() { modf_ec2dbc(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float4' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float4' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct modf_result_vec4 { vec4 fract; vec4 whole; }; + modf_result_vec4 tint_modf(vec4 param_0) { float4 whole; float4 fract = modf(param_0, whole); @@ -117,14 +121,14 @@ void compute_main() { modf_ec2dbc(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float4' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float4' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/intrinsics/gen/modf/f5f20d.wgsl.expected.glsl b/test/intrinsics/gen/modf/f5f20d.wgsl.expected.glsl index 4848ceef91..c3fde70913 100644 --- a/test/intrinsics/gen/modf/f5f20d.wgsl.expected.glsl +++ b/test/intrinsics/gen/modf/f5f20d.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct modf_result_vec2 { vec2 fract; vec2 whole; }; + modf_result_vec2 tint_modf(vec2 param_0) { float2 whole; float2 fract = modf(param_0, whole); @@ -34,6 +35,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -42,10 +45,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:9: 'float2' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float2' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -57,6 +59,7 @@ struct modf_result_vec2 { vec2 fract; vec2 whole; }; + modf_result_vec2 tint_modf(vec2 param_0) { float2 whole; float2 fract = modf(param_0, whole); @@ -77,14 +80,14 @@ void fragment_main() { modf_f5f20d(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float2' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float2' : undeclared identifier +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -96,6 +99,7 @@ struct modf_result_vec2 { vec2 fract; vec2 whole; }; + modf_result_vec2 tint_modf(vec2 param_0) { float2 whole; float2 fract = modf(param_0, whole); @@ -117,14 +121,14 @@ void compute_main() { modf_f5f20d(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:9: 'float2' : undeclared identifier -ERROR: 0:9: '' : compilation terminated +ERROR: 0:10: 'float2' : undeclared identifier +ERROR: 0:10: '' : 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 index 50ca5bf6e8..4558248764 100644 --- a/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.glsl +++ b/test/intrinsics/gen/normalize/64d8c0.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { normalize_64d8c0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 02f8bd9972..959ddaf538 100644 --- a/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.glsl +++ b/test/intrinsics/gen/normalize/9a0aab.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { normalize_9a0aab(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f0eb1f51a6..8c9aaef2d0 100644 --- a/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.glsl +++ b/test/intrinsics/gen/normalize/fc2ef1.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { normalize_fc2ef1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8335d30b34..efb873d3c4 100644 --- a/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.glsl +++ b/test/intrinsics/gen/pack2x16float/0e97b3.wgsl.expected.glsl @@ -28,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -36,7 +38,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -65,11 +66,11 @@ 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 @@ -99,11 +100,11 @@ 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 diff --git a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl b/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl index 3e7fe19d76..f3e88a87ec 100644 --- a/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl +++ b/test/intrinsics/gen/pack2x16snorm/6c169b.wgsl.expected.glsl @@ -28,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -36,7 +38,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'int2' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -65,11 +66,11 @@ 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 @@ -99,11 +100,11 @@ 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 diff --git a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl b/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl index bf3bafbe30..039d0c538a 100644 --- a/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl +++ b/test/intrinsics/gen/pack2x16unorm/0f08e4.wgsl.expected.glsl @@ -28,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -36,7 +38,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -65,11 +66,11 @@ 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 @@ -99,11 +100,11 @@ 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 diff --git a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl b/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl index c1831816cd..bdb1fa7c58 100644 --- a/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl +++ b/test/intrinsics/gen/pack4x8snorm/4d22e7.wgsl.expected.glsl @@ -28,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -36,7 +38,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'int4' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -65,11 +66,11 @@ 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 @@ -99,11 +100,11 @@ 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 diff --git a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl b/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl index 4da2c32a38..354a8bf5d4 100644 --- a/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl +++ b/test/intrinsics/gen/pack4x8unorm/95c456.wgsl.expected.glsl @@ -28,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -36,7 +38,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: 'uint4' : undeclared identifier ERROR: 0:5: '' : compilation terminated @@ -65,11 +66,11 @@ 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 @@ -99,11 +100,11 @@ 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 diff --git a/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl b/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl index a336cc90f3..82ecafa577 100644 --- a/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl +++ b/test/intrinsics/gen/pow/04a908.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { pow_04a908(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d70fc2ff0e..da1678922f 100644 --- a/test/intrinsics/gen/pow/46e029.wgsl.expected.glsl +++ b/test/intrinsics/gen/pow/46e029.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { pow_46e029(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6691e7afdb..f1c85fc98b 100644 --- a/test/intrinsics/gen/pow/4a46c9.wgsl.expected.glsl +++ b/test/intrinsics/gen/pow/4a46c9.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { pow_4a46c9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index df359b2692..a52a87ff68 100644 --- a/test/intrinsics/gen/pow/e60ea5.wgsl.expected.glsl +++ b/test/intrinsics/gen/pow/e60ea5.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { pow_e60ea5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ void compute_main() { pow_e60ea5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/radians/09b7fc.wgsl.expected.glsl b/test/intrinsics/gen/radians/09b7fc.wgsl.expected.glsl index 270c9d2698..fbfd57bfc5 100644 --- a/test/intrinsics/gen/radians/09b7fc.wgsl.expected.glsl +++ b/test/intrinsics/gen/radians/09b7fc.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { radians_09b7fc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { radians_09b7fc(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/radians/61687a.wgsl.expected.glsl b/test/intrinsics/gen/radians/61687a.wgsl.expected.glsl index f2c469a6a0..0c61f002f2 100644 --- a/test/intrinsics/gen/radians/61687a.wgsl.expected.glsl +++ b/test/intrinsics/gen/radians/61687a.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { radians_61687a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { radians_61687a(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.glsl b/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.glsl index 4494c76558..48c9109ded 100644 --- a/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.glsl +++ b/test/intrinsics/gen/radians/6b0ff2.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { radians_6b0ff2(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { radians_6b0ff2(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/radians/f96258.wgsl.expected.glsl b/test/intrinsics/gen/radians/f96258.wgsl.expected.glsl index 2cf878e57e..e27a435b06 100644 --- a/test/intrinsics/gen/radians/f96258.wgsl.expected.glsl +++ b/test/intrinsics/gen/radians/f96258.wgsl.expected.glsl @@ -25,6 +25,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +35,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -54,11 +55,11 @@ void fragment_main() { radians_f96258(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -80,8 +81,8 @@ void compute_main() { radians_f96258(); 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 index 7d81f8f86b..34b7aab785 100644 --- a/test/intrinsics/gen/reflect/05357e.wgsl.expected.glsl +++ b/test/intrinsics/gen/reflect/05357e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { reflect_05357e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 90303df7f5..423ee1e25a 100644 --- a/test/intrinsics/gen/reflect/b61e10.wgsl.expected.glsl +++ b/test/intrinsics/gen/reflect/b61e10.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { reflect_b61e10(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e4edf099f4..32b62a0671 100644 --- a/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.glsl +++ b/test/intrinsics/gen/reflect/f47fdb.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { reflect_f47fdb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 9f3ea85733..c46e333c8a 100644 --- a/test/intrinsics/gen/refract/7e02e6.wgsl.expected.glsl +++ b/test/intrinsics/gen/refract/7e02e6.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { refract_7e02e6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index b1361eeed0..f7e95c408e 100644 --- a/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.glsl +++ b/test/intrinsics/gen/refract/cbc1d2.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { refract_cbc1d2(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 12a9689265..0f1a3dea19 100644 --- a/test/intrinsics/gen/refract/cd905f.wgsl.expected.glsl +++ b/test/intrinsics/gen/refract/cd905f.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { refract_cd905f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1f240b4d4c..bad1323ca9 100644 --- a/test/intrinsics/gen/reverseBits/222177.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/222177.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl index ca98e70834..13f72b8383 100644 --- a/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/35fea9.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl index d6af58f06a..b512ef14d2 100644 --- a/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/4dbd6f.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl index 9dcf4bc1df..b655cf255f 100644 --- a/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/7c4269.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl index 54e3baad1f..5956ce2bac 100644 --- a/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/a6ccd4.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl index cf95586af6..d79516d7b0 100644 --- a/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/c21bc1.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl index 9a17b8c58e..4d22669f0b 100644 --- a/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/e1f4c1.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl b/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl index ff07c3984a..de7818786e 100644 --- a/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl +++ b/test/intrinsics/gen/reverseBits/e31adf.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { 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' @@ -54,11 +55,11 @@ 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' @@ -83,11 +84,11 @@ 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' diff --git a/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl b/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl index 088e98abde..543cdfafe9 100644 --- a/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl +++ b/test/intrinsics/gen/round/106c0b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { round_106c0b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 8a1f931ce2..938fc0a742 100644 --- a/test/intrinsics/gen/round/1c7897.wgsl.expected.glsl +++ b/test/intrinsics/gen/round/1c7897.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { round_1c7897(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index b4bdde7aee..1747df8204 100644 --- a/test/intrinsics/gen/round/52c84d.wgsl.expected.glsl +++ b/test/intrinsics/gen/round/52c84d.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { round_52c84d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d42fb3bb0e..faa0f32ffc 100644 --- a/test/intrinsics/gen/round/9edc38.wgsl.expected.glsl +++ b/test/intrinsics/gen/round/9edc38.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { round_9edc38(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index bcdbc9c6bb..a6559e0398 100644 --- a/test/intrinsics/gen/select/00b848.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/00b848.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl b/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl index 8ee7a9c093..c414d875dc 100644 --- a/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/01e2cd.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl b/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl index 953ba8e514..4aac9211a2 100644 --- a/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/087ea4.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_087ea4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index bb3b71bd41..1c22a52dd5 100644 --- a/test/intrinsics/gen/select/1e960b.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/1e960b.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/266aff.wgsl.expected.glsl b/test/intrinsics/gen/select/266aff.wgsl.expected.glsl index 5bb9c40f3f..239efd1d2c 100644 --- a/test/intrinsics/gen/select/266aff.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/266aff.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl b/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl index 796be36710..303c8eeef7 100644 --- a/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/28a27e.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl b/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl index 3790d14add..b89b64971b 100644 --- a/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/3c25ce.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_3c25ce(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 9d3f859436..df0fd7e319 100644 --- a/test/intrinsics/gen/select/416e14.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/416e14.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_416e14(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 2bf0d76312..e8c162b507 100644 --- a/test/intrinsics/gen/select/51b047.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/51b047.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_51b047(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index c46f90eaf5..6c78e34033 100644 --- a/test/intrinsics/gen/select/713567.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/713567.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_713567(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d4cbe6ae88..285c1399b4 100644 --- a/test/intrinsics/gen/select/78be5f.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/78be5f.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_78be5f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 752a9a651e..49e4ec5924 100644 --- a/test/intrinsics/gen/select/80a9a9.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/80a9a9.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl b/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl index ddd9d4acdd..fb5d604efc 100644 --- a/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/8fa62c.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_8fa62c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index b38da759ca..c4a5fdbb6d 100644 --- a/test/intrinsics/gen/select/99f883.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/99f883.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_99f883(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 034f6de931..823a57d066 100644 --- a/test/intrinsics/gen/select/a2860e.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/a2860e.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl b/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl index 376b4c97e6..61f2ca1ca6 100644 --- a/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/ab069f.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_ab069f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 3f1e5e9e04..816bbbfbfb 100644 --- a/test/intrinsics/gen/select/b04721.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/b04721.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_b04721(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d7557116da..554f56ecbb 100644 --- a/test/intrinsics/gen/select/bb447f.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/bb447f.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_bb447f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 5220945bfd..d2b160767e 100644 --- a/test/intrinsics/gen/select/bb8aae.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/bb8aae.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl b/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl index f09b128887..8cf102e3a6 100644 --- a/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/bf3d29.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_bf3d29(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 4055abb003..6cc94bcf9a 100644 --- a/test/intrinsics/gen/select/c31f9e.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/c31f9e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_c31f9e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index fbd94e195e..ca938a826f 100644 --- a/test/intrinsics/gen/select/c41bd1.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/c41bd1.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_c41bd1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d1112ca7e3..ab85b6e45b 100644 --- a/test/intrinsics/gen/select/c4a4ef.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/c4a4ef.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl b/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl index f495bf07fc..89cfd90b7f 100644 --- a/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/cb9301.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl b/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl index edd3d6a540..88d5c1abfe 100644 --- a/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/e3e028.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl b/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl index 291479b13e..7158954042 100644 --- a/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/ebfea2.wgsl.expected.glsl @@ -22,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,7 +32,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated @@ -53,11 +54,11 @@ 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 @@ -81,11 +82,11 @@ 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 diff --git a/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl b/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl index b5a024e815..4e8bed7819 100644 --- a/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/ed8a15.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_ed8a15(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index ded66c151a..b928a2d557 100644 --- a/test/intrinsics/gen/select/fb7e53.wgsl.expected.glsl +++ b/test/intrinsics/gen/select/fb7e53.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { select_fb7e53(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 594594bd40..37c77968f8 100644 --- a/test/intrinsics/gen/sign/159665.wgsl.expected.glsl +++ b/test/intrinsics/gen/sign/159665.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sign_159665(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 231bae21af..cd159a8279 100644 --- a/test/intrinsics/gen/sign/b8f634.wgsl.expected.glsl +++ b/test/intrinsics/gen/sign/b8f634.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sign_b8f634(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index b9897f12ff..f19d9dad92 100644 --- a/test/intrinsics/gen/sign/d065d8.wgsl.expected.glsl +++ b/test/intrinsics/gen/sign/d065d8.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sign_d065d8(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index cbb23044c0..4a4a7d1ac4 100644 --- a/test/intrinsics/gen/sign/dd790e.wgsl.expected.glsl +++ b/test/intrinsics/gen/sign/dd790e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sign_dd790e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 51d31eea73..0dcac18668 100644 --- a/test/intrinsics/gen/sin/01f241.wgsl.expected.glsl +++ b/test/intrinsics/gen/sin/01f241.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sin_01f241(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f34b822af1..56583fd386 100644 --- a/test/intrinsics/gen/sin/4e3979.wgsl.expected.glsl +++ b/test/intrinsics/gen/sin/4e3979.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sin_4e3979(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d849a1118f..e4382faced 100644 --- a/test/intrinsics/gen/sin/b78c91.wgsl.expected.glsl +++ b/test/intrinsics/gen/sin/b78c91.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sin_b78c91(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d1e42e7f55..6a5df55573 100644 --- a/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.glsl +++ b/test/intrinsics/gen/sin/fc8bc4.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sin_fc8bc4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 5401860d47..81eb153818 100644 --- a/test/intrinsics/gen/sinh/445e33.wgsl.expected.glsl +++ b/test/intrinsics/gen/sinh/445e33.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sinh_445e33(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 6c2544d07c..37ed11914b 100644 --- a/test/intrinsics/gen/sinh/7bb598.wgsl.expected.glsl +++ b/test/intrinsics/gen/sinh/7bb598.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sinh_7bb598(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index dff05778e9..43896ef6e5 100644 --- a/test/intrinsics/gen/sinh/b9860e.wgsl.expected.glsl +++ b/test/intrinsics/gen/sinh/b9860e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sinh_b9860e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a6fdb9a0f2..aa91888e46 100644 --- a/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.glsl +++ b/test/intrinsics/gen/sinh/c9a5eb.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sinh_c9a5eb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index e2086a4575..85550783b3 100644 --- a/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.glsl +++ b/test/intrinsics/gen/smoothStep/5f615b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { smoothStep_5f615b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 0ed1f2b5f0..3c64b14c16 100644 --- a/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.glsl +++ b/test/intrinsics/gen/smoothStep/658be3.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { smoothStep_658be3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index f43d9e5f99..0d3cc99d41 100644 --- a/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.glsl +++ b/test/intrinsics/gen/smoothStep/c11eef.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { smoothStep_c11eef(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 83171c6bd3..d18d1ff6c5 100644 --- a/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.glsl +++ b/test/intrinsics/gen/smoothStep/cb0bfb.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { smoothStep_cb0bfb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1a9092b6ef..87e1877fa0 100644 --- a/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.glsl +++ b/test/intrinsics/gen/sqrt/20c74e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sqrt_20c74e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index d6c2d16900..9f52b9f403 100644 --- a/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.glsl +++ b/test/intrinsics/gen/sqrt/8c7024.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sqrt_8c7024(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 2f6ae9e565..32e6ead2a5 100644 --- a/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.glsl +++ b/test/intrinsics/gen/sqrt/aa0d7a.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sqrt_aa0d7a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 4679c12a86..d2209a9c3c 100644 --- a/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.glsl +++ b/test/intrinsics/gen/sqrt/f8c59a.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { sqrt_f8c59a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 306bcaca86..0f72929373 100644 --- a/test/intrinsics/gen/step/0b073b.wgsl.expected.glsl +++ b/test/intrinsics/gen/step/0b073b.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { step_0b073b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 87cd641475..7d2918fce7 100644 --- a/test/intrinsics/gen/step/19accd.wgsl.expected.glsl +++ b/test/intrinsics/gen/step/19accd.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { step_19accd(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1a6235568d..f3223695ae 100644 --- a/test/intrinsics/gen/step/334303.wgsl.expected.glsl +++ b/test/intrinsics/gen/step/334303.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { step_334303(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 753b13d2b1..d79c9a903f 100644 --- a/test/intrinsics/gen/step/e2b337.wgsl.expected.glsl +++ b/test/intrinsics/gen/step/e2b337.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { step_e2b337(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 289b86f1f4..52d644611b 100644 --- a/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.glsl +++ b/test/intrinsics/gen/storageBarrier/d87211.wgsl.expected.glsl @@ -10,8 +10,8 @@ void compute_main() { storageBarrier_d87211(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl b/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl index 3443c6f352..d4c23fb4b8 100644 --- a/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl +++ b/test/intrinsics/gen/tan/244e2a.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tan_244e2a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 3f9de1adac..65b6d14fea 100644 --- a/test/intrinsics/gen/tan/2f030e.wgsl.expected.glsl +++ b/test/intrinsics/gen/tan/2f030e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tan_2f030e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 919a434291..3725d7b99a 100644 --- a/test/intrinsics/gen/tan/7ea104.wgsl.expected.glsl +++ b/test/intrinsics/gen/tan/7ea104.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tan_7ea104(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index b3aa74d92a..4e2ce26709 100644 --- a/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.glsl +++ b/test/intrinsics/gen/tan/8ce3e9.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tan_8ce3e9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 63f683376c..75d7d83ab0 100644 --- a/test/intrinsics/gen/tanh/5663c5.wgsl.expected.glsl +++ b/test/intrinsics/gen/tanh/5663c5.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tanh_5663c5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a2c5b4edf5..cfccd02950 100644 --- a/test/intrinsics/gen/tanh/5724b3.wgsl.expected.glsl +++ b/test/intrinsics/gen/tanh/5724b3.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tanh_5724b3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 5973331fb2..0f13e27544 100644 --- a/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.glsl +++ b/test/intrinsics/gen/tanh/9f9fb9.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tanh_9f9fb9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index a4ef21aa1c..d750eed346 100644 --- a/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.glsl +++ b/test/intrinsics/gen/tanh/c15fdb.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { tanh_c15fdb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 0f60c4c72a..14f92e4fc7 100644 --- a/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/002b2a.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D arg_0_1; - void textureDimensions_002b2a() { int res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureDimensions_002b2a() { int res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureDimensions_002b2a() { int res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl index f593650a1d..2c55d0691a 100644 --- a/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/012b82.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_012b82() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_012b82() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_012b82(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_012b82() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_012b82(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl index b044497842..48a35aab4f 100644 --- a/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/08753d.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_08753d() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_08753d() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_08753d(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_08753d() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_08753d(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl index 58e3f0941d..7a591c01d8 100644 --- a/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/0c4772.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_0c4772() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_0c4772() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_0c4772(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_0c4772() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_0c4772(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl index ac5415ca74..c22bc6f388 100644 --- a/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/0cce40.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_0cce40() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_0cce40() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_0cce40(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_0cce40() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_0cce40(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl index 413b4f819c..b469d25bb4 100644 --- a/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/0cf2ff.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_0cf2ff() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_0cf2ff() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_0cf2ff(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_0cf2ff() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_0cf2ff(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl index 1368767a2e..c9e5480f5e 100644 --- a/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/0d8b7e.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_0d8b7e() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_0d8b7e() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_0d8b7e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_0d8b7e() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_0d8b7e(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl index ce1b64b66e..aa2ecfa2c4 100644 --- a/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/0e32ee.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_0e32ee() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_0e32ee() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_0e32ee(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_0e32ee() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_0e32ee(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl index 8fb03bedc0..5c0b2c3570 100644 --- a/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/0f3c50.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureDimensions_0f3c50() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureDimensions_0f3c50() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_0f3c50(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureDimensions_0f3c50() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_0f3c50(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl index 2507c32fca..4967d803a2 100644 --- a/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/1191a5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2D arg_0_1; - void textureDimensions_1191a5() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2D arg_0_1; - void textureDimensions_1191a5() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_1191a5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2D arg_0_1; - void textureDimensions_1191a5() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_1191a5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl index bccba0b5c2..d650570488 100644 --- a/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/12c9bb.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_12c9bb() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_12c9bb() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_12c9bb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_12c9bb() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_12c9bb(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl index 33dbdb6eff..4f4b2295ae 100644 --- a/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/147998.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_147998() { ivec2 res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_147998() { ivec2 res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_147998(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_147998() { ivec2 res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_147998(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl index f912185ab9..36e6ad42e4 100644 --- a/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/16036c.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_16036c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_16036c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_16036c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_16036c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_16036c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl index a83fbb9f98..2fd6faa938 100644 --- a/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/1b71f0.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_1b71f0() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_1b71f0() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_1b71f0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_1b71f0() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_1b71f0(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl index 56fe634466..0da782cb13 100644 --- a/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/1d6c26.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_1d6c26() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_1d6c26() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_1d6c26(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_1d6c26() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_1d6c26(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl index 05a17aa557..23f9499947 100644 --- a/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/1e9e39.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_1e9e39() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_1e9e39() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_1e9e39(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_1e9e39() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_1e9e39(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl index 5aeb255d6f..5017607b0f 100644 --- a/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/1f20c5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureDimensions_1f20c5() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureDimensions_1f20c5() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_1f20c5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureDimensions_1f20c5() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_1f20c5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl index 5ab8cb0874..8f243b6273 100644 --- a/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/214dd4.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_214dd4() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_214dd4() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_214dd4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_214dd4() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_214dd4(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl index 719dfa5627..1042e3cd88 100644 --- a/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/221f22.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureDimensions_221f22() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureDimensions_221f22() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureDimensions_221f22() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl index 231b3b2811..c5073661f6 100644 --- a/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/267788.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureDimensions_267788() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureDimensions_267788() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_267788(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureDimensions_267788() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_267788(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl index 0c1b611290..41a9191925 100644 --- a/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/26bdfa.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler3D arg_0_1; - void textureDimensions_26bdfa() { ivec3 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_1; - void textureDimensions_26bdfa() { ivec3 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_26bdfa(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_1; - void textureDimensions_26bdfa() { ivec3 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_26bdfa(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl index 57baecfde7..2af5f6154b 100644 --- a/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/26ef6c.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_26ef6c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_26ef6c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_26ef6c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_26ef6c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_26ef6c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl index 2c47ea96e5..3022183c0d 100644 --- a/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/2ad087.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_2ad087() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_2ad087() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_2ad087(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_2ad087() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_2ad087(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl index a8a428b365..d479f5d24b 100644 --- a/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/2efa05.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler3D arg_0_1; - void textureDimensions_2efa05() { ivec3 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler3D arg_0_1; - void textureDimensions_2efa05() { ivec3 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_2efa05(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler3D arg_0_1; - void textureDimensions_2efa05() { ivec3 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_2efa05(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl index cd8540d815..0e911ecae2 100644 --- a/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/2f289f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_2f289f() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_2f289f() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_2f289f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_2f289f() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_2f289f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl index 8a467fb7f4..f5a17e6e1e 100644 --- a/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/2fe1cc.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_2fe1cc() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_2fe1cc() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_2fe1cc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_2fe1cc() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_2fe1cc(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl index 74872a4deb..3398fc91af 100644 --- a/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/318ecc.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_318ecc() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_318ecc() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_318ecc(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_318ecc() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_318ecc(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl index 5be1dd0e34..fcc17642be 100644 --- a/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/340d06.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_340d06() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_340d06() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_340d06(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_340d06() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_340d06(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl index 854f888f92..4a6a6ad478 100644 --- a/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/398e30.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_398e30() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_398e30() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_398e30(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_398e30() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_398e30(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl index 73a1b29d11..883af99a0a 100644 --- a/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/3a94ea.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_3a94ea() { ivec2 res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_3a94ea() { ivec2 res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_3a94ea(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_3a94ea() { ivec2 res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_3a94ea(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl index 050a238210..7af209ee84 100644 --- a/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/3aca08.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_3aca08() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_3aca08() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_3aca08(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_3aca08() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_3aca08(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl index c3c8c629fc..e930f20568 100644 --- a/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/3c5ad8.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_3c5ad8() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_3c5ad8() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_3c5ad8(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_3c5ad8() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_3c5ad8(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl index 8dd6ca1168..7eb9fe19b1 100644 --- a/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/4152a6.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureDimensions_4152a6() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureDimensions_4152a6() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureDimensions_4152a6() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl index a2dbeb60af..c0c95d2adb 100644 --- a/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/423f99.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler1D arg_0_1; - void textureDimensions_423f99() { int res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureDimensions_423f99() { int res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureDimensions_423f99() { int res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl index 6c7255efe8..7b34430714 100644 --- a/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/4267ee.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_4267ee() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_4267ee() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_4267ee(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_4267ee() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_4267ee(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl index 4d2620d075..ff1dc833e0 100644 --- a/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/42d4e6.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8) uniform highp writeonly image1D arg_0_1; - void textureDimensions_42d4e6() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8) uniform highp writeonly image1D arg_0_1; - void textureDimensions_42d4e6() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_42d4e6(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8) uniform highp writeonly image1D arg_0_1; - void textureDimensions_42d4e6() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_42d4e6(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl index 9581a35cd9..dedc3e52fc 100644 --- a/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/48cb89.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_48cb89() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_48cb89() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_48cb89(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_48cb89() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_48cb89(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl index d3f8a37b74..b86ec80662 100644 --- a/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/49d274.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_49d274() { ivec2 res = imageSize(arg_0_1).xy; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_49d274() { ivec2 res = imageSize(arg_0_1).xy; } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_49d274(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_49d274() { ivec2 res = imageSize(arg_0_1).xy; } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_49d274(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl index cc416b2dac..1b3d08f47d 100644 --- a/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/4df9a8.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_4df9a8() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_4df9a8() { int res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_4df9a8(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_4df9a8() { int res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_4df9a8(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl index 28bcc155d5..2dc6825fd0 100644 --- a/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/50a9ee.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_50a9ee() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_50a9ee() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_50a9ee() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl index 5b94938481..2322ae57cf 100644 --- a/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/52045c.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler1D arg_0_1; - void textureDimensions_52045c() { int res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureDimensions_52045c() { int res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureDimensions_52045c() { int res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl index b0f533ccd5..6edb6470fe 100644 --- a/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/55b23e.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_55b23e() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_55b23e() { int res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_55b23e(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_55b23e() { int res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_55b23e(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl index 8b9bec3286..bb33254a1b 100644 --- a/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/579629.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureDimensions_579629() { ivec2 res = textureSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureDimensions_579629() { ivec2 res = textureSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_579629(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureDimensions_579629() { ivec2 res = textureSize(arg_0_1); } @@ -71,8 +69,8 @@ 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 index 7fbf196d25..a2a5088e4b 100644 --- a/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/57da0b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_57da0b() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_57da0b() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_57da0b(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_57da0b() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_57da0b(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl index a243d0c37c..5703d387fa 100644 --- a/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/57e28f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_57e28f() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_57e28f() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_57e28f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_57e28f() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_57e28f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl index 5e4dae76eb..4705fe6243 100644 --- a/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/58a515.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_58a515() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_58a515() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_58a515(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_58a515() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_58a515(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl index 04e4107ea1..0867e7024d 100644 --- a/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/5985f3.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_5985f3() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_5985f3() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_5985f3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_5985f3() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_5985f3(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl index 97f15c88ea..aa60bfd1ec 100644 --- a/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/5caa5e.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_5caa5e() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_5caa5e() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_5caa5e(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_5caa5e() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_5caa5e(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl index 0bcace0d39..c83720621d 100644 --- a/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/5e295d.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_5e295d() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_5e295d() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_5e295d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_5e295d() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_5e295d(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl index d3ac6cc189..3487223b28 100644 --- a/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/60bf54.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_60bf54() { ivec3 res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_60bf54() { ivec3 res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_60bf54(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_60bf54() { ivec3 res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_60bf54(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl index 5c5ffdb948..d9953ab4a6 100644 --- a/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/63f3cf.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_63f3cf() { ivec3 res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_63f3cf() { ivec3 res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_63f3cf(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_63f3cf() { ivec3 res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_63f3cf(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl index b3d04ccd39..83013ddfe1 100644 --- a/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/68105c.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_68105c() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_68105c() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_68105c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_68105c() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_68105c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl index 619ef603e0..5fdb83d51c 100644 --- a/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/686ef2.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isamplerCube arg_0_1; - void textureDimensions_686ef2() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isamplerCube arg_0_1; - void textureDimensions_686ef2() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_686ef2(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isamplerCube arg_0_1; - void textureDimensions_686ef2() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_686ef2(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl index bad1827046..a837f74af0 100644 --- a/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/6adac6.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_6adac6() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_6adac6() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_6adac6(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_6adac6() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_6adac6(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl index f1c5c1f706..d53f89ccab 100644 --- a/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/6ec1b4.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler3D arg_0_1; - void textureDimensions_6ec1b4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler3D arg_0_1; - void textureDimensions_6ec1b4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_6ec1b4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler3D arg_0_1; - void textureDimensions_6ec1b4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_6ec1b4(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl index 070db6db6b..9f84fac9c5 100644 --- a/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/6f0d79.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_6f0d79() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_6f0d79() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_6f0d79(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_6f0d79() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_6f0d79(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl index 681147cec2..dc198d9d2d 100644 --- a/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/702c53.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8) uniform highp writeonly image2D arg_0_1; - void textureDimensions_702c53() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2D arg_0_1; - void textureDimensions_702c53() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_702c53(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2D arg_0_1; - void textureDimensions_702c53() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_702c53(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl index aa44ad0cc8..b9d84113df 100644 --- a/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/72e5d6.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_72e5d6() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_72e5d6() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_72e5d6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_72e5d6() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_72e5d6(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl index c52530f7d2..f149da1aee 100644 --- a/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/79df87.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler1D arg_0_1; - void textureDimensions_79df87() { int res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureDimensions_79df87() { int res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureDimensions_79df87() { int res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl index 1d2ab40818..a66e815b5a 100644 --- a/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/7bf826.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_7bf826() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_7bf826() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_7bf826(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_7bf826() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_7bf826(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl index bbba2081e6..253b2b4bf5 100644 --- a/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/7f5c2e.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_7f5c2e() { ivec2 res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_7f5c2e() { ivec2 res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_7f5c2e(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_7f5c2e() { ivec2 res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_7f5c2e(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl index f6be5c0431..f9c21cea1f 100644 --- a/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/8028f3.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_8028f3() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_8028f3() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_8028f3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_8028f3() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_8028f3(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl index b2c772be35..6a6bbb39f4 100644 --- a/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/811679.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_811679() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_811679() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_811679(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_811679() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_811679(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl index 7836f70386..3b765b8541 100644 --- a/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/820596.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_820596() { ivec3 res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_820596() { ivec3 res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_820596(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_820596() { ivec3 res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_820596(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl index 22e223deb0..24adf9727d 100644 --- a/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/83ee5a.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_83ee5a() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_83ee5a() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_83ee5a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_83ee5a() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_83ee5a(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl index 4d6dcaece9..38697f6230 100644 --- a/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/85d556.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_85d556() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_85d556() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_85d556(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_85d556() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_85d556(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl index 820ff0200d..ddf17b073d 100644 --- a/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/88ad17.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usamplerCube arg_0_1; - void textureDimensions_88ad17() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usamplerCube arg_0_1; - void textureDimensions_88ad17() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_88ad17(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usamplerCube arg_0_1; - void textureDimensions_88ad17() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_88ad17(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl index f7b5040bbc..4094696140 100644 --- a/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/8aa4c4.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler3D arg_0_1; - void textureDimensions_8aa4c4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_1; - void textureDimensions_8aa4c4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_8aa4c4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_1; - void textureDimensions_8aa4c4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_8aa4c4(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl index 27de4f3f74..61106bcfb7 100644 --- a/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/8deb5e.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler3D arg_0_1; - void textureDimensions_8deb5e() { ivec3 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler3D arg_0_1; - void textureDimensions_8deb5e() { ivec3 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_8deb5e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler3D arg_0_1; - void textureDimensions_8deb5e() { ivec3 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_8deb5e(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl index f3a64bad4a..80db1d7d1a 100644 --- a/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_8f20bf() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_8f20bf() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_8f20bf() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl index f4f61cdef2..8b89fb84e1 100644 --- a/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/8fca0f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_8fca0f() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_8fca0f() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_8fca0f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image3D arg_0_1; - void textureDimensions_8fca0f() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_8fca0f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl index 2c5b144765..304f830e32 100644 --- a/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/90340b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_90340b() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_90340b() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_90340b() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl index 5a8a2b5889..d51bdd08f0 100644 --- a/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/9042ab.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_9042ab() { ivec2 res = imageSize(arg_0_1).xy; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_9042ab() { ivec2 res = imageSize(arg_0_1).xy; } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_9042ab(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureDimensions_9042ab() { ivec2 res = imageSize(arg_0_1).xy; } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_9042ab(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl index 3c4c7c46e9..2641780999 100644 --- a/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/9393b0.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_9393b0() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_9393b0() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_9393b0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_9393b0() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_9393b0(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl index 55587ff2de..249f885a88 100644 --- a/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/939fdb.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_939fdb() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_939fdb() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_939fdb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_939fdb() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_939fdb(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl index d6d55f8c81..0df22f8509 100644 --- a/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/962dcd.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isamplerCube arg_0_1; - void textureDimensions_962dcd() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isamplerCube arg_0_1; - void textureDimensions_962dcd() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_962dcd(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isamplerCube arg_0_1; - void textureDimensions_962dcd() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_962dcd(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl index 0b0ea4af09..4466a1d9f1 100644 --- a/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/9abfe5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_9abfe5() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_9abfe5() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_9abfe5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_9abfe5() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_9abfe5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl index e51dea9ddb..90cfd47b6d 100644 --- a/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/9c9c57.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureDimensions_9c9c57() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureDimensions_9c9c57() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_9c9c57(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureDimensions_9c9c57() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_9c9c57(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl index ef5dd498d9..3282b4c825 100644 --- a/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/9da9e2.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_9da9e2() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_9da9e2() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_9da9e2(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_9da9e2() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_9da9e2(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl index 1ef74f49f8..06452a687e 100644 --- a/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/9eb8d8.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_9eb8d8() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_9eb8d8() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_9eb8d8(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_9eb8d8() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_9eb8d8(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl index 79420da5ff..6af3f445bf 100644 --- a/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/9f8e46.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_9f8e46() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_9f8e46() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_9f8e46(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_9f8e46() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_9f8e46(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl index df0018fc9f..87c69a8ea5 100644 --- a/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/a01845.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_a01845() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_a01845() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureDimensions_a01845() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl index 8eceb21676..664e20429e 100644 --- a/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/a7d565.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler1D arg_0_1; - void textureDimensions_a7d565() { int res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureDimensions_a7d565() { int res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureDimensions_a7d565() { int res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl index b0969075f5..ff71748270 100644 --- a/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/a863f2.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_a863f2() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_a863f2() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_a863f2(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32f) uniform highp writeonly image1D arg_0_1; - void textureDimensions_a863f2() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_a863f2(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl index dbd5448f2b..30537426c9 100644 --- a/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/a9c9c1.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_a9c9c1() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_a9c9c1() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_a9c9c1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_a9c9c1() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_a9c9c1(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl index 6712c43536..ddf7bffefe 100644 --- a/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/b0e16d.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2D arg_0_1; - void textureDimensions_b0e16d() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2D arg_0_1; - void textureDimensions_b0e16d() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_b0e16d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2D arg_0_1; - void textureDimensions_b0e16d() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_b0e16d(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl index 6e65111207..27edddaf88 100644 --- a/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/b3c954.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usamplerCube arg_0_1; - void textureDimensions_b3c954() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usamplerCube arg_0_1; - void textureDimensions_b3c954() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_b3c954(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usamplerCube arg_0_1; - void textureDimensions_b3c954() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_b3c954(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl index eddf418912..ee7fbb6bee 100644 --- a/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/b3e407.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D arg_0_1; - void textureDimensions_b3e407() { int res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureDimensions_b3e407() { int res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureDimensions_b3e407() { int res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl index b9b28357cc..942e900ade 100644 --- a/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/b91240.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2D arg_0_1; - void textureDimensions_b91240() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2D arg_0_1; - void textureDimensions_b91240() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_b91240(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2D arg_0_1; - void textureDimensions_b91240() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_b91240(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl index 2d337f82ce..b1a73dba12 100644 --- a/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/ba1481.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_ba1481() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_ba1481() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_ba1481(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureDimensions_ba1481() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_ba1481(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl index 9be28c7e65..d53a4f06a9 100644 --- a/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/bb3dde.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_bb3dde() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_bb3dde() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_bb3dde(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage3D arg_0_1; - void textureDimensions_bb3dde() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_bb3dde(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl index c288e250be..43dbd13bae 100644 --- a/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/c30e75.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_c30e75() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_c30e75() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_c30e75(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2D arg_0_1; - void textureDimensions_c30e75() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_c30e75(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl index cfd945eddc..a05daa284a 100644 --- a/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/c7943d.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_c7943d() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_c7943d() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_c7943d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2D arg_0_1; - void textureDimensions_c7943d() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_c7943d(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl index af1aadb388..66c6718342 100644 --- a/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/cc968c.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_cc968c() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_cc968c() { int res = imageSize(arg_0_1); } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_cc968c(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage1D arg_0_1; - void textureDimensions_cc968c() { int res = imageSize(arg_0_1); } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_cc968c(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl index 774aa7aed1..10234236ea 100644 --- a/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/cccc8f.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8_snorm) uniform highp writeonly image1D arg_0_1; - void textureDimensions_cccc8f() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8_snorm) uniform highp writeonly image1D arg_0_1; - void textureDimensions_cccc8f() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_cccc8f(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8_snorm) uniform highp writeonly image1D arg_0_1; - void textureDimensions_cccc8f() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_cccc8f(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl index b46987f208..9946cc25c6 100644 --- a/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/cd76a7.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8) uniform highp writeonly image3D arg_0_1; - void textureDimensions_cd76a7() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image3D arg_0_1; - void textureDimensions_cd76a7() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_cd76a7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image3D arg_0_1; - void textureDimensions_cd76a7() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_cd76a7(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl index d1f95a061b..ad020972cd 100644 --- a/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/cdf473.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_cdf473() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_cdf473() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_cdf473(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureDimensions_cdf473() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_cdf473(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl index f96f64dc85..b14fbe8970 100644 --- a/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/cec841.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_cec841() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_cec841() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_cec841(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureDimensions_cec841() { ivec2 res = textureSize(arg_0_1, 0).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_cec841(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl index d6a4eeb686..a41c319751 100644 --- a/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/cf7e43.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8_snorm) uniform highp writeonly image3D arg_0_1; - void textureDimensions_cf7e43() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image3D arg_0_1; - void textureDimensions_cf7e43() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_cf7e43(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image3D arg_0_1; - void textureDimensions_cf7e43() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_cf7e43(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl index ba733358ec..9dbf7f40d6 100644 --- a/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/d125bc.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_d125bc() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_d125bc() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_d125bc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_1; - void textureDimensions_d125bc() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_d125bc(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl index e527f04bf6..d434b3e733 100644 --- a/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/d83c45.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureDimensions_d83c45() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureDimensions_d83c45() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureDimensions_d83c45() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl index c2f50a6bef..73f127b729 100644 --- a/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/daf7c0.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureDimensions_daf7c0() { ivec2 res = textureSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureDimensions_daf7c0() { ivec2 res = textureSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_daf7c0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureDimensions_daf7c0() { ivec2 res = textureSize(arg_0_1); } @@ -71,8 +69,8 @@ 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 index 2abfd3c29e..b1f94d93f2 100644 --- a/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/dc2dd0.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_dc2dd0() { int res = imageSize(arg_0_1); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_dc2dd0() { int res = imageSize(arg_0_1); } @@ -58,11 +57,11 @@ void fragment_main() { textureDimensions_dc2dd0(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8ui) uniform highp writeonly uimage1D arg_0_1; - void textureDimensions_dc2dd0() { int res = imageSize(arg_0_1); } @@ -89,11 +87,11 @@ void compute_main() { textureDimensions_dc2dd0(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl index bbd4d769ae..74761e16ff 100644 --- a/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/e927be.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureDimensions_e927be() { ivec2 res = textureSize(arg_0_1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureDimensions_e927be() { ivec2 res = textureSize(arg_0_1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureDimensions_e927be() { ivec2 res = textureSize(arg_0_1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl index 4677c343d2..cc5eb73991 100644 --- a/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/e9e96c.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_e9e96c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_e9e96c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_e9e96c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_e9e96c() { ivec2 res = imageSize(arg_0_1).xy; } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_e9e96c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl index 61798afac8..e9158de3df 100644 --- a/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/ef5b89.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_ef5b89() { ivec2 res = textureSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_ef5b89() { ivec2 res = textureSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_ef5b89(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_ef5b89() { ivec2 res = textureSize(arg_0_1); } @@ -71,8 +69,8 @@ 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 index 06ce0685c8..89b3428688 100644 --- a/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/efc8a4.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler3D arg_0_1; - void textureDimensions_efc8a4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler3D arg_0_1; - void textureDimensions_efc8a4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_efc8a4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler3D arg_0_1; - void textureDimensions_efc8a4() { ivec3 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_efc8a4(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl index 4aa60802c9..85626e25b5 100644 --- a/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/f60bdb.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_f60bdb() { ivec2 res = textureSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_f60bdb() { ivec2 res = textureSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_f60bdb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_f60bdb() { ivec2 res = textureSize(arg_0_1); } @@ -71,8 +69,8 @@ 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 index 393b87dc06..f855aeefe8 100644 --- a/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/f7145b.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2D arg_0_1; - void textureDimensions_f7145b() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2D arg_0_1; - void textureDimensions_f7145b() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_f7145b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2D arg_0_1; - void textureDimensions_f7145b() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_f7145b(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl index 7f6d8edfcf..25889f57ef 100644 --- a/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/f931c7.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_f931c7() { ivec2 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_f931c7() { ivec2 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_f931c7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2D arg_0_1; - void textureDimensions_f931c7() { ivec2 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_f931c7(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl index ff7510b846..853f710896 100644 --- a/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/fa9859.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2D arg_0_1; - void textureDimensions_fa9859() { ivec2 res = textureSize(arg_0_1, 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2D arg_0_1; - void textureDimensions_fa9859() { ivec2 res = textureSize(arg_0_1, 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_fa9859(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2D arg_0_1; - void textureDimensions_fa9859() { ivec2 res = textureSize(arg_0_1, 0); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_fa9859(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl index 0a351e67fa..a8498fee2d 100644 --- a/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/fb5670.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_fb5670() { ivec2 res = imageSize(arg_0_1).xy; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_fb5670() { ivec2 res = imageSize(arg_0_1).xy; } @@ -57,11 +56,11 @@ void fragment_main() { textureDimensions_fb5670(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureDimensions_fb5670() { ivec2 res = imageSize(arg_0_1).xy; } @@ -87,11 +85,11 @@ void compute_main() { textureDimensions_fb5670(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl b/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl index 9173c69732..56f7a39794 100644 --- a/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureDimensions/fcac78.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_fcac78() { ivec3 res = imageSize(arg_0_1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_fcac78() { ivec3 res = imageSize(arg_0_1); } @@ -48,16 +47,15 @@ void fragment_main() { textureDimensions_fcac78(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage3D arg_0_1; - void textureDimensions_fcac78() { ivec3 res = imageSize(arg_0_1); } @@ -71,8 +69,8 @@ void compute_main() { textureDimensions_fcac78(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/01305f.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/01305f.wgsl.expected.glsl index 23f98df094..9c485b238f 100644 --- a/test/intrinsics/gen/textureGather/01305f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/01305f.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp usampler2DArray arg_1_arg_2; - void textureGather_01305f() { uvec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_1_arg_2; - void textureGather_01305f() { uvec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_01305f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_1_arg_2; - void textureGather_01305f() { uvec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_01305f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/06030a.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/06030a.wgsl.expected.glsl index 960aef7ef2..6c84a46772 100644 --- a/test/intrinsics/gen/textureGather/06030a.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/06030a.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_1_arg_2; - void textureGather_06030a() { vec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_1_arg_2; - void textureGather_06030a() { vec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_06030a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_1_arg_2; - void textureGather_06030a() { vec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_06030a(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/10c554.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/10c554.wgsl.expected.glsl index 2eeb6932ae..073e19ee29 100644 --- a/test/intrinsics/gen/textureGather/10c554.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/10c554.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureGather_10c554() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureGather_10c554() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f)); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_10c554(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureGather_10c554() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f)); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_10c554(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.glsl index 688ba1e959..dea7b6980e 100644 --- a/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/15d79c.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_1_arg_2; - void textureGather_15d79c() { vec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_1_arg_2; - void textureGather_15d79c() { vec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_15d79c(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_1_arg_2; - void textureGather_15d79c() { vec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_15d79c(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.glsl index 8eb5532037..ed998ff9e1 100644 --- a/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/2e0ed5.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGather_2e0ed5() { vec4 res = textureGather(arg_0_arg_1, vec2(0.0f, 0.0f)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGather_2e0ed5() { vec4 res = textureGather(arg_0_arg_1, vec2(0.0f, 0.0f)); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_2e0ed5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGather_2e0ed5() { vec4 res = textureGather(arg_0_arg_1, vec2(0.0f, 0.0f)); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_2e0ed5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.glsl index 685d4e11e0..ffbb04b854 100644 --- a/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/3112e8.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_1_arg_2; - void textureGather_3112e8() { vec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCubeArray arg_1_arg_2; - void textureGather_3112e8() { vec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -59,11 +58,11 @@ void fragment_main() { textureGather_3112e8(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCubeArray arg_1_arg_2; - void textureGather_3112e8() { vec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -90,11 +88,11 @@ void compute_main() { textureGather_3112e8(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.glsl index 86c4e69749..ea10f93cd1 100644 --- a/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/3c527e.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp usamplerCubeArray arg_1_arg_2; - void textureGather_3c527e() { uvec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp usamplerCubeArray arg_1_arg_2; - void textureGather_3c527e() { uvec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -59,11 +58,11 @@ void fragment_main() { textureGather_3c527e(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'usamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -76,7 +75,6 @@ precision mediump float; uniform highp usamplerCubeArray arg_1_arg_2; - void textureGather_3c527e() { uvec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -90,11 +88,11 @@ void compute_main() { textureGather_3c527e(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'usamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureGather/43025d.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/43025d.wgsl.expected.glsl index 52d72ac82a..c770aa50ea 100644 --- a/test/intrinsics/gen/textureGather/43025d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/43025d.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureGather_43025d() { vec4 res = textureGather(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1))); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureGather_43025d() { vec4 res = textureGather(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1))); } @@ -59,11 +58,11 @@ void fragment_main() { textureGather_43025d(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureGather_43025d() { vec4 res = textureGather(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1))); } @@ -90,11 +88,11 @@ void compute_main() { textureGather_43025d(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.glsl index ce12d8ef3f..c5f4ab33d8 100644 --- a/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/4f2350.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp isampler2DArray arg_1_arg_2; - void textureGather_4f2350() { ivec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_1_arg_2; - void textureGather_4f2350() { ivec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_4f2350(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_1_arg_2; - void textureGather_4f2350() { ivec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_4f2350(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.glsl index b3cea06fe1..b5cd131994 100644 --- a/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/51cf0b.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp isampler2DArray arg_1_arg_2; - void textureGather_51cf0b() { ivec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_1_arg_2; - void textureGather_51cf0b() { ivec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_51cf0b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_1_arg_2; - void textureGather_51cf0b() { ivec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_51cf0b(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.glsl index aee3538878..2d6eb3acb3 100644 --- a/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/53ece6.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGather_53ece6() { vec4 res = textureGatherOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGather_53ece6() { vec4 res = textureGatherOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0)); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_53ece6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGather_53ece6() { vec4 res = textureGatherOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0)); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_53ece6(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.glsl index 263ea24584..0b79d6418c 100644 --- a/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/57bfc6.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp samplerCube arg_1_arg_2; - void textureGather_57bfc6() { vec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_1_arg_2; - void textureGather_57bfc6() { vec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_57bfc6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_1_arg_2; - void textureGather_57bfc6() { vec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_57bfc6(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.glsl index b78777ddae..369cafb5a6 100644 --- a/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/587ba3.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp isampler2D arg_1_arg_2; - void textureGather_587ba3() { ivec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2D arg_1_arg_2; - void textureGather_587ba3() { ivec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_587ba3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2D arg_1_arg_2; - void textureGather_587ba3() { ivec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_587ba3(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.glsl index f8cbb0fd92..e862fd5bb5 100644 --- a/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/69e0fb.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp isampler2D arg_1_arg_2; - void textureGather_69e0fb() { ivec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2D arg_1_arg_2; - void textureGather_69e0fb() { ivec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_69e0fb(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2D arg_1_arg_2; - void textureGather_69e0fb() { ivec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_69e0fb(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/93003d.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/93003d.wgsl.expected.glsl index 7c39728652..57c6303f5f 100644 --- a/test/intrinsics/gen/textureGather/93003d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/93003d.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp usampler2D arg_1_arg_2; - void textureGather_93003d() { uvec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2D arg_1_arg_2; - void textureGather_93003d() { uvec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_93003d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2D arg_1_arg_2; - void textureGather_93003d() { uvec4 res = textureGatherOffset(arg_1_arg_2, vec2(0.0f, 0.0f), ivec2(0, 0), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_93003d(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.glsl index d0355b6ce1..e872aa3068 100644 --- a/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/9a6358.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGather_9a6358() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, float(1))); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGather_9a6358() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, float(1))); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_9a6358(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGather_9a6358() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, float(1))); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_9a6358(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.glsl index 94e82de2ae..614bd6766b 100644 --- a/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/9efca2.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_1_arg_2; - void textureGather_9efca2() { vec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_1_arg_2; - void textureGather_9efca2() { vec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_9efca2(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_1_arg_2; - void textureGather_9efca2() { vec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_9efca2(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.glsl index 9069aeda96..97371b6104 100644 --- a/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/bd0b1e.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_1_arg_2; - void textureGather_bd0b1e() { vec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_1_arg_2; - void textureGather_bd0b1e() { vec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_bd0b1e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_1_arg_2; - void textureGather_bd0b1e() { vec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_bd0b1e(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.glsl index bffbce1f79..1f317e7fca 100644 --- a/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/c409ae.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGather_c409ae() { vec4 res = textureGatherOffset(arg_0_arg_1, vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGather_c409ae() { vec4 res = textureGatherOffset(arg_0_arg_1, vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_c409ae(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGather_c409ae() { vec4 res = textureGatherOffset(arg_0_arg_1, vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_c409ae(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/c55822.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/c55822.wgsl.expected.glsl index e099dcfdc5..8ab7901fb9 100644 --- a/test/intrinsics/gen/textureGather/c55822.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/c55822.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp isamplerCubeArray arg_1_arg_2; - void textureGather_c55822() { ivec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp isamplerCubeArray arg_1_arg_2; - void textureGather_c55822() { ivec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -59,11 +58,11 @@ void fragment_main() { textureGather_c55822(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'isamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -76,7 +75,6 @@ precision mediump float; uniform highp isamplerCubeArray arg_1_arg_2; - void textureGather_c55822() { ivec4 res = textureGather(arg_1_arg_2, vec4(0.0f, 0.0f, 0.0f, float(1)), 1); } @@ -90,11 +88,11 @@ void compute_main() { textureGather_c55822(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'isamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.glsl index 7f2323ee49..0f00339410 100644 --- a/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/e1b67d.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp usamplerCube arg_1_arg_2; - void textureGather_e1b67d() { uvec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usamplerCube arg_1_arg_2; - void textureGather_e1b67d() { uvec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_e1b67d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usamplerCube arg_1_arg_2; - void textureGather_e1b67d() { uvec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_e1b67d(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.glsl index 44ff16ab2c..015e775447 100644 --- a/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/e9eff6.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp usampler2D arg_1_arg_2; - void textureGather_e9eff6() { uvec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2D arg_1_arg_2; - void textureGather_e9eff6() { uvec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_e9eff6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2D arg_1_arg_2; - void textureGather_e9eff6() { uvec4 res = textureGather(arg_1_arg_2, vec2(0.0f, 0.0f), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_e9eff6(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.glsl index 25499394f4..e0ab81c155 100644 --- a/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/f5f3ba.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp usampler2DArray arg_1_arg_2; - void textureGather_f5f3ba() { uvec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_1_arg_2; - void textureGather_f5f3ba() { uvec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_f5f3ba(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_1_arg_2; - void textureGather_f5f3ba() { uvec4 res = textureGatherOffset(arg_1_arg_2, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_f5f3ba(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.glsl b/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.glsl index 2a173d6594..9d745f20df 100644 --- a/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGather/f7995a.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp isamplerCube arg_1_arg_2; - void textureGather_f7995a() { ivec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isamplerCube arg_1_arg_2; - void textureGather_f7995a() { ivec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -50,17 +49,16 @@ void fragment_main() { textureGather_f7995a(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isamplerCube arg_1_arg_2; - void textureGather_f7995a() { ivec4 res = textureGather(arg_1_arg_2, vec3(0.0f, 0.0f, 0.0f), 1); } @@ -74,8 +72,8 @@ void compute_main() { textureGather_f7995a(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.glsl b/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.glsl index b4282df9f6..c76101ce7c 100644 --- a/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGatherCompare/182fd4.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureGatherCompare_182fd4() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,11 +34,10 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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. @@ -47,7 +47,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureGatherCompare_182fd4() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -60,15 +59,15 @@ void fragment_main() { textureGatherCompare_182fd4(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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. @@ -78,7 +77,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureGatherCompare_182fd4() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -92,15 +90,15 @@ void compute_main() { textureGatherCompare_182fd4(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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/textureGatherCompare/60d2d1.wgsl.expected.glsl b/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.glsl index ff0a64b34a..94a4141c10 100644 --- a/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGatherCompare/60d2d1.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureGatherCompare_60d2d1() { vec4 res = textureGather(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureGatherCompare_60d2d1() { vec4 res = textureGather(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -59,11 +58,11 @@ void fragment_main() { textureGatherCompare_60d2d1(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureGatherCompare_60d2d1() { vec4 res = textureGather(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -90,11 +88,11 @@ void compute_main() { textureGatherCompare_60d2d1(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.glsl b/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.glsl index e408d495cd..269455469a 100644 --- a/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGatherCompare/6d9352.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGatherCompare_6d9352() { vec4 res = textureGather(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,11 +34,10 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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. @@ -47,7 +47,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGatherCompare_6d9352() { vec4 res = textureGather(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -60,15 +59,15 @@ void fragment_main() { textureGatherCompare_6d9352(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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. @@ -78,7 +77,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGatherCompare_6d9352() { vec4 res = textureGather(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -92,15 +90,15 @@ void compute_main() { textureGatherCompare_6d9352(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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/textureGatherCompare/6f1267.wgsl.expected.glsl b/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.glsl index 58dd62c1bb..df3b334e1f 100644 --- a/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGatherCompare/6f1267.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGatherCompare_6f1267() { vec4 res = textureGatherOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,11 +34,10 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGatherOffset' : 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: 0:7: 'textureGatherOffset' : 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. @@ -47,7 +47,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGatherCompare_6f1267() { vec4 res = textureGatherOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -60,15 +59,15 @@ void fragment_main() { textureGatherCompare_6f1267(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGatherOffset' : 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: 0:7: 'textureGatherOffset' : 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. @@ -78,7 +77,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGatherCompare_6f1267() { vec4 res = textureGatherOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -92,15 +90,15 @@ void compute_main() { textureGatherCompare_6f1267(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGatherOffset' : 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: 0:7: 'textureGatherOffset' : 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/textureGatherCompare/783e65.wgsl.expected.glsl b/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.glsl index 5a9308090e..904a0a5a5f 100644 --- a/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGatherCompare/783e65.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGatherCompare_783e65() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,11 +34,10 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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. @@ -47,7 +47,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGatherCompare_783e65() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -60,15 +59,15 @@ void fragment_main() { textureGatherCompare_783e65(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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. @@ -78,7 +77,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureGatherCompare_783e65() { vec4 res = textureGather(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -92,15 +90,15 @@ void compute_main() { textureGatherCompare_783e65(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGather' : 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: 0:7: 'textureGather' : 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/textureGatherCompare/a5f587.wgsl.expected.glsl b/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.glsl index f535ee085b..0c1fcc2ec9 100644 --- a/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureGatherCompare/a5f587.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGatherCompare_a5f587() { vec4 res = textureGatherOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,11 +34,10 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGatherOffset' : 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: 0:7: 'textureGatherOffset' : 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. @@ -47,7 +47,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGatherCompare_a5f587() { vec4 res = textureGatherOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -60,15 +59,15 @@ void fragment_main() { textureGatherCompare_a5f587(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGatherOffset' : 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: 0:7: 'textureGatherOffset' : 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. @@ -78,7 +77,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureGatherCompare_a5f587() { vec4 res = textureGatherOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -92,15 +90,15 @@ void compute_main() { textureGatherCompare_a5f587(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureGatherOffset' : 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: 0:7: 'textureGatherOffset' : 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/19cf87.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl index b4e2da954e..5412f67a3b 100644 --- a/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/19cf87.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_19cf87() { float res = texelFetch(arg_0_1, ivec2(0, 0), 0).x; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_19cf87() { float res = texelFetch(arg_0_1, ivec2(0, 0), 0).x; } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_19cf87(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_19cf87() { float res = texelFetch(arg_0_1, ivec2(0, 0), 0).x; } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_19cf87(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl index 60fca1f492..fb511ee92a 100644 --- a/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/1b8588.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler1D arg_0_1; - void textureLoad_1b8588() { uvec4 res = texelFetch(arg_0_1, 1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureLoad_1b8588() { uvec4 res = texelFetch(arg_0_1, 1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureLoad_1b8588() { uvec4 res = texelFetch(arg_0_1, 1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl index 98ac52ad97..73e9fa2af2 100644 --- a/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/1f2016.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler3D arg_0_1; - void textureLoad_1f2016() { vec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_1; - void textureLoad_1f2016() { vec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_1f2016(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_1; - void textureLoad_1f2016() { vec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_1f2016(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl index b316707f55..9682ec0466 100644 --- a/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/484344.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_484344() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_484344() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_484344(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_484344() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_484344(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl index 9466096b26..5dd74b92af 100644 --- a/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/4fd803.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler3D arg_0_1; - void textureLoad_4fd803() { ivec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler3D arg_0_1; - void textureLoad_4fd803() { ivec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_4fd803(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler3D arg_0_1; - void textureLoad_4fd803() { ivec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_4fd803(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl index ac08abf67a..e3c138f5d4 100644 --- a/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/5a2f9d.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler1D arg_0_1; - void textureLoad_5a2f9d() { ivec4 res = texelFetch(arg_0_1, 1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureLoad_5a2f9d() { ivec4 res = texelFetch(arg_0_1, 1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureLoad_5a2f9d() { ivec4 res = texelFetch(arg_0_1, 1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl index 8964b6c978..3470f2720c 100644 --- a/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/6154d4.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2D arg_0_1; - void textureLoad_6154d4() { uvec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2D arg_0_1; - void textureLoad_6154d4() { uvec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_6154d4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2D arg_0_1; - void textureLoad_6154d4() { uvec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_6154d4(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl index f7e907212e..527ff52482 100644 --- a/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/6273b1.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_6273b1() { float res = texelFetch(arg_0_1, ivec2(0, 0), 1).x; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_6273b1() { float res = texelFetch(arg_0_1, ivec2(0, 0), 1).x; } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_6273b1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_6273b1() { float res = texelFetch(arg_0_1, ivec2(0, 0), 1).x; } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_6273b1(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl index 7452a9cd13..35d4409ebd 100644 --- a/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/79e697.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureLoad_79e697() { ivec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureLoad_79e697() { ivec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_79e697(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureLoad_79e697() { ivec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_79e697(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl index 2f360e6d0b..87cab79869 100644 --- a/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/7c90e5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureLoad_7c90e5() { uvec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureLoad_7c90e5() { uvec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_7c90e5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureLoad_7c90e5() { uvec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_7c90e5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl index 49fbabd10e..0ae7c9106c 100644 --- a/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/81c381.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D arg_0_1; - void textureLoad_81c381() { vec4 res = texelFetch(arg_0_1, 1, 0); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureLoad_81c381() { vec4 res = texelFetch(arg_0_1, 1, 0); } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureLoad_81c381() { vec4 res = texelFetch(arg_0_1, 1, 0); } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl index 65df325afa..6240bc693d 100644 --- a/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/87be85.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureLoad_87be85() { vec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureLoad_87be85() { vec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_87be85(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureLoad_87be85() { vec4 res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_87be85(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl index ecb0930391..fc14c7a980 100644 --- a/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/8acf41.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_8acf41() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_8acf41() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_8acf41(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_1; - void textureLoad_8acf41() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_8acf41(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl index fae43f3b52..78ec7ba62f 100644 --- a/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/9b2667.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureLoad_9b2667() { float res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0).x; } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureLoad_9b2667() { float res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0).x; } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_9b2667(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureLoad_9b2667() { float res = texelFetch(arg_0_1, ivec3(0, 0, 1), 0).x; } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_9b2667(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl index 215da7ef67..bc1f029fc4 100644 --- a/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/a583c9.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_a583c9() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_a583c9() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_a583c9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_a583c9() { vec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -71,8 +69,8 @@ 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 index 4553ca8ed6..40ac76841d 100644 --- a/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/a9a9f5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler3D arg_0_1; - void textureLoad_a9a9f5() { uvec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler3D arg_0_1; - void textureLoad_a9a9f5() { uvec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_a9a9f5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler3D arg_0_1; - void textureLoad_a9a9f5() { uvec4 res = texelFetch(arg_0_1, ivec3(0, 0, 0), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_a9a9f5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl index 3a871ed0e7..24250999bb 100644 --- a/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/c2a480.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2D arg_0_1; - void textureLoad_c2a480() { ivec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2D arg_0_1; - void textureLoad_c2a480() { ivec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_c2a480(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2D arg_0_1; - void textureLoad_c2a480() { ivec4 res = texelFetch(arg_0_1, ivec2(0, 0), 0); } @@ -71,8 +69,8 @@ void compute_main() { textureLoad_c2a480(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl b/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl index 83deeea074..a5fbbe27d9 100644 --- a/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/c378ee.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureLoad_c378ee() { uvec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureLoad_c378ee() { uvec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_c378ee(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureLoad_c378ee() { uvec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -71,8 +69,8 @@ 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 index fabf33315e..9aafc2490a 100644 --- a/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureLoad/e3d2cc.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureLoad_e3d2cc() { ivec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureLoad_e3d2cc() { ivec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -48,16 +47,15 @@ void fragment_main() { textureLoad_e3d2cc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureLoad_e3d2cc() { ivec4 res = texelFetch(arg_0_1, ivec2(0, 0), 1); } @@ -71,8 +69,8 @@ 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 index 7ac4790cda..f67b0d807a 100644 --- a/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/024820.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLayers_024820() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLayers_024820() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLayers_024820() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 2a991e32ca..1433d32fc7 100644 --- a/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/053df7.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureNumLayers_053df7() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureNumLayers_053df7() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureNumLayers_053df7() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl index 29bd7cf395..8120d25494 100644 --- a/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/058cc3.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_058cc3() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_058cc3() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ void fragment_main() { textureNumLayers_058cc3(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_058cc3() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ void compute_main() { textureNumLayers_058cc3(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl index 656c3055d6..85d6768eed 100644 --- a/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/09d05d.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_09d05d() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_09d05d() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_09d05d() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index a0e8e7aa87..0c9751afb5 100644 --- a/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/13b4ce.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_13b4ce() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_13b4ce() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_13b4ce() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index f29f8562c1..71288c5bb0 100644 --- a/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/22e53b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_22e53b() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_22e53b() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_22e53b() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 7287b21dd2..edd36532b6 100644 --- a/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/562013.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_562013() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_562013() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_562013() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 7a082d84c2..6cb0d2d524 100644 --- a/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/5d59cd.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLayers_5d59cd() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLayers_5d59cd() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLayers_5d59cd() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl index 7e4ab5ac06..2c22d99837 100644 --- a/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/68a65b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_68a65b() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_68a65b() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_68a65b() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 0a9915dc72..2dc89f1e9f 100644 --- a/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/778bd1.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLayers_778bd1() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLayers_778bd1() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLayers_778bd1() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl index c7b6605fb3..7951783345 100644 --- a/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/7f1937.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_7f1937() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_7f1937() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ void fragment_main() { textureNumLayers_7f1937(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_7f1937() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ void compute_main() { textureNumLayers_7f1937(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl index c7975e6f99..00b6c8d932 100644 --- a/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/85f980.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureNumLayers_85f980() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureNumLayers_85f980() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureNumLayers_85f980() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl index 90a560981f..835800ad7e 100644 --- a/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/87953e.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureNumLayers_87953e() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureNumLayers_87953e() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureNumLayers_87953e() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index f200d42383..9fa11ee033 100644 --- a/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/893e7c.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureNumLayers_893e7c() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureNumLayers_893e7c() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureNumLayers_893e7c() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 7233f2fb0f..ae57eb4441 100644 --- a/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/9700fb.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_9700fb() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_9700fb() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_9700fb() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 4c6bf3f631..875fca051f 100644 --- a/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/a216d2.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_a216d2() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_a216d2() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_a216d2() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 69bf2307a4..451e755ad6 100644 --- a/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/cd5dc8.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_cd5dc8() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_cd5dc8() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_cd5dc8() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index a28de70f71..ab739fc567 100644 --- a/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/d5b228.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_d5b228() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_d5b228() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_d5b228() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index dd53e4264b..2b8859db81 100644 --- a/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/e31be1.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_e31be1() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_e31be1() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureNumLayers_e31be1() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 003cf831db..007b6ace7b 100644 --- a/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/e653c0.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLayers_e653c0() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLayers_e653c0() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLayers_e653c0() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 259f4f678d..ab9eb508f3 100644 --- a/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/ee942f.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_ee942f() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_ee942f() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_ee942f() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 5fae35ef96..3a29646c9a 100644 --- a/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/f33005.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_f33005() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_f33005() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureNumLayers_f33005() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 6114dc780a..60679ad1a5 100644 --- a/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/fcec98.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_fcec98() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_fcec98() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ void fragment_main() { textureNumLayers_fcec98(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_fcec98() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ void compute_main() { textureNumLayers_fcec98(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl index 264efcb01b..f662bf51fa 100644 --- a/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLayers/ff5e89.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_ff5e89() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_ff5e89() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureNumLayers_ff5e89() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index ebffe1984f..8af1de3453 100644 --- a/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/076cb5.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCube arg_0_1; - void textureNumLevels_076cb5() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp samplerCube arg_0_1; - void textureNumLevels_076cb5() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp samplerCube arg_0_1; - void textureNumLevels_076cb5() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index f34065a2bb..f5ea75b264 100644 --- a/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/080d95.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isamplerCube arg_0_1; - void textureNumLevels_080d95() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isamplerCube arg_0_1; - void textureNumLevels_080d95() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isamplerCube arg_0_1; - void textureNumLevels_080d95() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 0c666209f7..f014bea1bf 100644 --- a/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/09ddd0.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler2D arg_0_1; - void textureNumLevels_09ddd0() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2D arg_0_1; - void textureNumLevels_09ddd0() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2D arg_0_1; - void textureNumLevels_09ddd0() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index fc1eb9c5ef..b88b1bed64 100644 --- a/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/105988.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLevels_105988() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLevels_105988() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLevels_105988() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 3480f63bd9..7c231ca9d0 100644 --- a/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/1e6f3b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler1D arg_0_1; - void textureNumLevels_1e6f3b() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureNumLevels_1e6f3b() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usampler1D arg_0_1; - void textureNumLevels_1e6f3b() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl index 08f45888e9..8c20d6e45c 100644 --- a/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/23f750.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler2D arg_0_1; - void textureNumLevels_23f750() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2D arg_0_1; - void textureNumLevels_23f750() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2D arg_0_1; - void textureNumLevels_23f750() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 7e37a9e1cf..b1131a02c9 100644 --- a/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/2c3575.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLevels_2c3575() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLevels_2c3575() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLevels_2c3575() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl index f430b8ac68..ddc40637ac 100644 --- a/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/32a0ae.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler1D arg_0_1; - void textureNumLevels_32a0ae() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureNumLevels_32a0ae() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isampler1D arg_0_1; - void textureNumLevels_32a0ae() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl index 0177cb0767..fcc74f7f2f 100644 --- a/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/5101cf.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureNumLevels_5101cf() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureNumLevels_5101cf() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2DArray arg_0_1; - void textureNumLevels_5101cf() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index b7da5d44b1..11b5d551b3 100644 --- a/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/51b5bb.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D arg_0_1; - void textureNumLevels_51b5bb() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureNumLevels_51b5bb() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp sampler1D arg_0_1; - void textureNumLevels_51b5bb() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl index 5827c9b2bf..ace3b6d453 100644 --- a/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/897aaf.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCube arg_0_1; - void textureNumLevels_897aaf() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp samplerCube arg_0_1; - void textureNumLevels_897aaf() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp samplerCube arg_0_1; - void textureNumLevels_897aaf() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index aafada51dd..8fcea69762 100644 --- a/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/9da7a5.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler3D arg_0_1; - void textureNumLevels_9da7a5() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler3D arg_0_1; - void textureNumLevels_9da7a5() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler3D arg_0_1; - void textureNumLevels_9da7a5() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 1c5cc0ca22..8c92d9a1a5 100644 --- a/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/a91c03.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureNumLevels_a91c03() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'isamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureNumLevels_a91c03() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp isamplerCubeArray arg_0_1; - void textureNumLevels_a91c03() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl index 0b190ab72e..00c68654a5 100644 --- a/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/aee7c8.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLevels_aee7c8() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLevels_aee7c8() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp samplerCubeArray arg_0_1; - void textureNumLevels_aee7c8() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl index 8c7223c24e..95168787b6 100644 --- a/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/b1b12b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2D arg_0_1; - void textureNumLevels_b1b12b() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2D arg_0_1; - void textureNumLevels_b1b12b() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2D arg_0_1; - void textureNumLevels_b1b12b() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index cd0d70f68e..d103725012 100644 --- a/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/b4f5ea.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler3D arg_0_1; - void textureNumLevels_b4f5ea() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler3D arg_0_1; - void textureNumLevels_b4f5ea() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler3D arg_0_1; - void textureNumLevels_b4f5ea() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 30de2c6d84..aa22cc75ff 100644 --- a/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/d004a9.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureNumLevels_d004a9() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureNumLevels_d004a9() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2DArray arg_0_1; - void textureNumLevels_d004a9() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 9868029a28..565b95ff2b 100644 --- a/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/dca09e.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler3D arg_0_1; - void textureNumLevels_dca09e() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler3D arg_0_1; - void textureNumLevels_dca09e() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler3D arg_0_1; - void textureNumLevels_dca09e() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 44e6b398b8..c955cb20c2 100644 --- a/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/e67231.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2D arg_0_1; - void textureNumLevels_e67231() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2D arg_0_1; - void textureNumLevels_e67231() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2D arg_0_1; - void textureNumLevels_e67231() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index eb232ea98a..77747c5020 100644 --- a/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/ed078b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usamplerCube arg_0_1; - void textureNumLevels_ed078b() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usamplerCube arg_0_1; - void textureNumLevels_ed078b() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usamplerCube arg_0_1; - void textureNumLevels_ed078b() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 4636ea7893..9d7d15011e 100644 --- a/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/f46ec6.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureNumLevels_f46ec6() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'usamplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureNumLevels_f46ec6() { int res = textureQueryLevels(arg_0_1);; } @@ -57,11 +56,11 @@ 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 @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; uniform highp usamplerCubeArray arg_0_1; - void textureNumLevels_f46ec6() { int res = textureQueryLevels(arg_0_1);; } @@ -87,11 +85,11 @@ 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 diff --git a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl b/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl index c80884412b..3924bda17e 100644 --- a/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumLevels/f5828d.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLevels_f5828d() { int res = textureQueryLevels(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLevels_f5828d() { int res = textureQueryLevels(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DArray arg_0_1; - void textureNumLevels_f5828d() { int res = textureQueryLevels(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 26792393a0..81de2d0c7a 100644 --- a/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumSamples/2c6f14.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_2c6f14() { int res = textureSamples(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_2c6f14() { int res = textureSamples(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_2c6f14() { int res = textureSamples(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 4edac8a2eb..bb0a17ad2d 100644 --- a/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumSamples/42f8bb.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureNumSamples_42f8bb() { int res = textureSamples(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureNumSamples_42f8bb() { int res = textureSamples(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp usampler2DMS arg_0_1; - void textureNumSamples_42f8bb() { int res = textureSamples(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 2a6a32a2e3..98c556ab11 100644 --- a/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumSamples/449d23.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureNumSamples_449d23() { int res = textureSamples(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureNumSamples_449d23() { int res = textureSamples(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp isampler2DMS arg_0_1; - void textureNumSamples_449d23() { int res = textureSamples(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 3ac2707b3a..1e01150e9f 100644 --- a/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureNumSamples/a3c8a0.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_a3c8a0() { int res = textureSamples(arg_0_1);; } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,11 +33,10 @@ void main() { 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -45,7 +45,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_a3c8a0() { int res = textureSamples(arg_0_1);; } @@ -58,15 +57,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:6: '' : compilation terminated ERROR: 3 compilation errors. No code generated. @@ -75,7 +74,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_a3c8a0() { int res = textureSamples(arg_0_1);; } @@ -89,15 +87,15 @@ 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: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp highp int' +ERROR: 0:6: '' : 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 index 3be69b9cec..77a763ed2c 100644 --- a/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/02aa9b.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSample_02aa9b() { vec4 res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0)); } @@ -12,8 +11,8 @@ void fragment_main() { textureSample_02aa9b(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl index 1215f7da9e..cf23155043 100644 --- a/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/100dc0.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSample_100dc0() { vec4 res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0)); } @@ -12,8 +11,8 @@ void fragment_main() { textureSample_100dc0(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl index e2a25d58df..4541476dba 100644 --- a/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/38bbb9.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSample_38bbb9() { float res = texture(arg_0_arg_1, vec2(0.0f, 0.0f)).x; } @@ -12,8 +11,8 @@ 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 index d41bb795d1..04c2dab834 100644 --- a/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/3b50bd.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSample_3b50bd() { vec4 res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f)); } @@ -12,8 +11,8 @@ 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 index 9ef770e501..0c0a8bb43f 100644 --- a/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/4dd1bf.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSample_4dd1bf() { vec4 res = texture(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1))); } @@ -14,11 +13,11 @@ 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 diff --git a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl index f55a6addfb..fa29227884 100644 --- a/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/51b514.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSample_51b514() { vec4 res = texture(arg_0_arg_1, vec2(0.0f, 0.0f)); } @@ -12,8 +11,8 @@ 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 index 8e0be0b294..def5be6ac3 100644 --- a/test/intrinsics/gen/textureSample/667d76.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/667d76.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSample_667d76() { float res = textureOffset(arg_0_arg_1, vec2(0.0f, 0.0f), ivec2(0, 0)).x; } @@ -12,8 +11,8 @@ void fragment_main() { textureSample_667d76(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl index 06284d4026..6189a03944 100644 --- a/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/6717ca.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSample_6717ca() { vec4 res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, float(1))); } @@ -12,8 +11,8 @@ 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 index 0c8a04b2a0..1bf28939a1 100644 --- a/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/6e64fb.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler1D arg_0_arg_1; - void textureSample_6e64fb() { vec4 res = texture(arg_0_arg_1, 1.0f); } @@ -14,11 +13,11 @@ 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 diff --git a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl index 78556ad744..4058d9badc 100644 --- a/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/7c3baa.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSample_7c3baa() { vec4 res = textureOffset(arg_0_arg_1, vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -12,8 +11,8 @@ void fragment_main() { textureSample_7c3baa(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl index e2e2ddd29b..ebd77203c5 100644 --- a/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/7e9ffd.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSample_7e9ffd() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, float(1))).x; } @@ -12,8 +11,8 @@ 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 index 116b359992..68f3566894 100644 --- a/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSample_8522e7() { float res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0)).x; } @@ -12,8 +11,8 @@ void fragment_main() { textureSample_8522e7(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl index 76d4a089ad..54e6cbdde5 100644 --- a/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/c2f4e8.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSample_c2f4e8() { float res = texture(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1))).x; } @@ -14,11 +13,11 @@ 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 diff --git a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl b/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl index acb4c23097..c014268aa3 100644 --- a/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/e53267.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSample_e53267() { vec4 res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f)); } @@ -12,8 +11,8 @@ 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 index 8f10fdae1b..80069552d2 100644 --- a/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSample/ea7030.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSample_ea7030() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f)).x; } @@ -12,8 +11,8 @@ 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 index 326544dd42..fb0329d908 100644 --- a/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/53b9f7.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleBias_53b9f7() { vec4 res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -12,8 +11,8 @@ 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 index 923d6d0aa8..10913953bd 100644 --- a/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/65ac50.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleBias_65ac50() { vec4 res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0), 1.0f); } @@ -12,8 +11,8 @@ void fragment_main() { textureSampleBias_65ac50(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl index 8963a2b194..d9202052ab 100644 --- a/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/6a9113.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleBias_6a9113() { vec4 res = texture(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -12,8 +11,8 @@ 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 index 0a16afa383..1d24e97338 100644 --- a/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/80e579.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleBias_80e579() { vec4 res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -12,8 +11,8 @@ 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 index 7acf4f6d4c..eceb36672e 100644 --- a/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/81c19a.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleBias_81c19a() { vec4 res = textureOffset(arg_0_arg_1, vec2(0.0f, 0.0f), ivec2(0, 0), 1.0f); } @@ -12,8 +11,8 @@ void fragment_main() { textureSampleBias_81c19a(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl index 1707cd88c9..84c7017e88 100644 --- a/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/d3fa1b.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleBias_d3fa1b() { vec4 res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -12,8 +11,8 @@ 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 index c643170cfe..478b3204f4 100644 --- a/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/df91bb.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleBias_df91bb() { vec4 res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0), 1.0f); } @@ -12,8 +11,8 @@ void fragment_main() { textureSampleBias_df91bb(); return; } + void main() { fragment_main(); } - diff --git a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl index ab89f32130..086831e820 100644 --- a/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleBias/eed7c4.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleBias_eed7c4() { vec4 res = texture(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -14,11 +13,11 @@ 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 diff --git a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl index 7d60a48272..1231a761a8 100644 --- a/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompare/25fcd1.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompare_25fcd1() { float res = textureOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -14,14 +13,14 @@ void fragment_main() { textureSampleCompare_25fcd1(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : 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 index 3afff8b147..7c2b7a6054 100644 --- a/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompare/3a5923.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompare_3a5923() { float res = texture(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -14,14 +13,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : 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 index 49d1c57d28..66c6f937da 100644 --- a/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompare/63fb83.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleCompare_63fb83() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -14,14 +13,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : 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 index feff3b4b68..c0ae874002 100644 --- a/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompare/98b85c.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompare_98b85c() { float res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -14,14 +13,14 @@ void fragment_main() { textureSampleCompare_98b85c(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : 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 index 924fac942d..c7d428c8be 100644 --- a/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompare/a3ca7e.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleCompare_a3ca7e() { float res = texture(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -14,11 +13,11 @@ 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 diff --git a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl index 2642223179..8c04e11feb 100644 --- a/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompare/dd431d.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompare_dd431d() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -14,14 +13,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : 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 index fa864b0d98..7f8280ef21 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompareLevel/011a8f.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompareLevel_011a8f() { float res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompareLevel_011a8f() { float res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -59,14 +58,14 @@ void fragment_main() { textureSampleCompareLevel_011a8f(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompareLevel_011a8f() { float res = textureOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -90,14 +88,14 @@ void compute_main() { textureSampleCompareLevel_011a8f(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : 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 index e9e93c18fb..a99409794e 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompareLevel/1116ed.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompareLevel_1116ed() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { 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: 0:7: 'texture' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompareLevel_1116ed() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -59,14 +58,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleCompareLevel_1116ed() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -90,14 +88,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : 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 index e4784a20f2..5ec997dffd 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompareLevel/1568e3.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleCompareLevel_1568e3() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { 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: 0:7: 'texture' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleCompareLevel_1568e3() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -59,14 +58,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleCompareLevel_1568e3() { float res = texture(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -90,14 +88,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : 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 index 7a934c1621..b3a2099f1d 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompareLevel_2ad2b1() { float res = texture(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { 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: 0:7: 'texture' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompareLevel_2ad2b1() { float res = texture(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -59,14 +58,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompareLevel_2ad2b1() { float res = texture(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -90,14 +88,14 @@ 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : 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 index 6f116fe4a2..bdbfe50c71 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleCompareLevel_4cf3a2() { float res = texture(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleCompareLevel_4cf3a2() { float res = texture(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -59,11 +58,11 @@ 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 @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleCompareLevel_4cf3a2() { float res = texture(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -90,11 +88,11 @@ 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 diff --git a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl index 40a07de472..da1ac6c7a9 100644 --- a/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleCompareLevel/f8121c.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompareLevel_f8121c() { float res = textureOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompareLevel_f8121c() { float res = textureOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -59,14 +58,14 @@ void fragment_main() { textureSampleCompareLevel_f8121c(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleCompareLevel_f8121c() { float res = textureOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -90,14 +88,14 @@ void compute_main() { textureSampleCompareLevel_f8121c(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureOffset' : no matching overloaded function found +ERROR: 0:7: '' : 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 index dd3d5061ac..7b9b193a9b 100644 --- a/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/21402b.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleGrad_21402b() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleGrad_21402b() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleGrad_21402b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleGrad_21402b() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -74,8 +72,8 @@ 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 index a29e182ade..3a47f0d9f4 100644 --- a/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/2ecd8f.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleGrad_2ecd8f() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleGrad_2ecd8f() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleGrad_2ecd8f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleGrad_2ecd8f() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f)); } @@ -74,8 +72,8 @@ 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 index 93a50fe232..107a45fbe8 100644 --- a/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/468f88.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleGrad_468f88() { vec4 res = textureGradOffset(arg_0_arg_1, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleGrad_468f88() { vec4 res = textureGradOffset(arg_0_arg_1, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleGrad_468f88(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleGrad_468f88() { vec4 res = textureGradOffset(arg_0_arg_1, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -74,8 +72,8 @@ void compute_main() { textureSampleGrad_468f88(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl index 139e8a124b..bfed096299 100644 --- a/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/521263.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleGrad_521263() { vec4 res = textureGrad(arg_0_arg_1, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleGrad_521263() { vec4 res = textureGrad(arg_0_arg_1, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleGrad_521263(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleGrad_521263() { vec4 res = textureGrad(arg_0_arg_1, vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f)); } @@ -74,8 +72,8 @@ 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 index c8bf7a0bb3..c740f157cc 100644 --- a/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/5312f4.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleGrad_5312f4() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleGrad_5312f4() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleGrad_5312f4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleGrad_5312f4() { vec4 res = textureGrad(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -74,8 +72,8 @@ 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 index 50eb21e6e3..b8527be1c3 100644 --- a/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/872f00.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleGrad_872f00() { vec4 res = textureGradOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleGrad_872f00() { vec4 res = textureGradOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleGrad_872f00(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleGrad_872f00() { vec4 res = textureGradOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), ivec2(0, 0)); } @@ -74,8 +72,8 @@ void compute_main() { textureSampleGrad_872f00(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl index 0053fca271..331edfe3ff 100644 --- a/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/e383db.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleGrad_e383db() { vec4 res = textureGrad(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleGrad_e383db() { vec4 res = textureGrad(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -59,11 +58,11 @@ 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 @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleGrad_e383db() { vec4 res = textureGrad(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f)); } @@ -90,11 +88,11 @@ 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 diff --git a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl index fb59338026..ef27adf8b4 100644 --- a/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleGrad/e9a2f7.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleGrad_e9a2f7() { vec4 res = textureGradOffset(arg_0_arg_1, 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)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleGrad_e9a2f7() { vec4 res = textureGradOffset(arg_0_arg_1, 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)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleGrad_e9a2f7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleGrad_e9a2f7() { vec4 res = textureGradOffset(arg_0_arg_1, 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)); } @@ -74,8 +72,8 @@ void compute_main() { textureSampleGrad_e9a2f7(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl index 3eca5d3d10..cb419ca43d 100644 --- a/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/02be59.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_02be59() { float res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 0).x; } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_02be59() { float res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 0).x; } @@ -59,14 +58,14 @@ 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_02be59() { float res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 0).x; } @@ -90,14 +88,14 @@ 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : 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 index ba6f146b60..dbc14531da 100644 --- a/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/0bdd9a.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleLevel_0bdd9a() { vec4 res = textureLod(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleLevel_0bdd9a() { vec4 res = textureLod(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -59,11 +58,11 @@ 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 @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleLevel_0bdd9a() { vec4 res = textureLod(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); } @@ -90,11 +88,11 @@ 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 diff --git a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl index 888e5c080b..772230323e 100644 --- a/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/1b0291.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleLevel_1b0291() { float res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 0).x; } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleLevel_1b0291() { float res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 0).x; } @@ -59,14 +58,14 @@ 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleLevel_1b0291() { float res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 0).x; } @@ -90,14 +88,14 @@ 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : 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 index b04ff20c8e..c383326460 100644 --- a/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/1bf73e.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_1bf73e() { float res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 0).x; } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_1bf73e() { float res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 0).x; } @@ -59,14 +58,14 @@ 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_1bf73e() { float res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 0).x; } @@ -90,14 +88,14 @@ 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: 0:7: 'textureLod' : no matching overloaded function found +ERROR: 0:7: '' : 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 index 7f799d200f..394a15c8c5 100644 --- a/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/302be4.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_302be4() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_302be4() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_302be4(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_302be4() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f); } @@ -74,8 +72,8 @@ 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 index 5df230a8d8..50c9e1e592 100644 --- a/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/47daa4.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_47daa4() { float res = textureLodOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 0, ivec2(0, 0)).x; } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureLodOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureLodOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_47daa4() { float res = textureLodOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 0, ivec2(0, 0)).x; } @@ -59,14 +58,14 @@ void fragment_main() { textureSampleLevel_47daa4(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureLodOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureLodOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_47daa4() { float res = textureLodOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 0, ivec2(0, 0)).x; } @@ -90,14 +88,14 @@ void compute_main() { textureSampleLevel_47daa4(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureLodOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureLodOffset' : no matching overloaded function found +ERROR: 0:7: '' : 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 index 2e13b34708..7bff4d0fbe 100644 --- a/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_690d95() { vec4 res = textureLodOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_690d95() { vec4 res = textureLodOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_690d95(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_690d95() { vec4 res = textureLodOffset(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f, ivec2(0, 0)); } @@ -74,8 +72,8 @@ void compute_main() { textureSampleLevel_690d95(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl index 6e452b846f..2484ec5da4 100644 --- a/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/979816.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_979816() { vec4 res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 0.0f); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_979816() { vec4 res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 0.0f); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_979816(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_979816() { vec4 res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 0.0f); } @@ -74,8 +72,8 @@ 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 index c46fd86e1e..e660e98a48 100644 --- a/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/9bd37b.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleLevel_9bd37b() { vec4 res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f, ivec3(0, 0, 0)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleLevel_9bd37b() { vec4 res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f, ivec3(0, 0, 0)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_9bd37b(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleLevel_9bd37b() { vec4 res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f, ivec3(0, 0, 0)); } @@ -74,8 +72,8 @@ void compute_main() { textureSampleLevel_9bd37b(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl index df5321c889..2a2dadce82 100644 --- a/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/a4af26.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_a4af26() { vec4 res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_a4af26() { vec4 res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_a4af26(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_a4af26() { vec4 res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 1.0f, ivec2(0, 0)); } @@ -74,8 +72,8 @@ void compute_main() { textureSampleLevel_a4af26(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl index 89cb1f2550..2c839e5d09 100644 --- a/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/abfcc0.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleLevel_abfcc0() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleLevel_abfcc0() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_abfcc0(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler3D arg_0_arg_1; - void textureSampleLevel_abfcc0() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -74,8 +72,8 @@ 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 index d4ae3febcf..f6c7b8a0dc 100644 --- a/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/ae5e39.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleLevel_ae5e39() { float res = textureLod(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 0).x; } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,7 +34,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated @@ -46,7 +46,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleLevel_ae5e39() { float res = textureLod(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 0).x; } @@ -59,11 +58,11 @@ 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 @@ -76,7 +75,6 @@ precision mediump float; uniform highp samplerCubeArray arg_0_arg_1; - void textureSampleLevel_ae5e39() { float res = textureLod(arg_0_arg_1, vec4(0.0f, 0.0f, 0.0f, float(1)), 0).x; } @@ -90,11 +88,11 @@ 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 diff --git a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl b/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl index ed6448c060..cfdb547bf6 100644 --- a/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/ba93b3.wgsl.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_ba93b3() { float res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 0, ivec2(0, 0)).x; } @@ -25,6 +24,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -33,10 +34,9 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: -ERROR: 0:8: 'textureLodOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureLodOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -46,7 +46,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_ba93b3() { float res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 0, ivec2(0, 0)).x; } @@ -59,14 +58,14 @@ void fragment_main() { textureSampleLevel_ba93b3(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureLodOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureLodOffset' : no matching overloaded function found +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. @@ -76,7 +75,6 @@ precision mediump float; uniform highp sampler2DArray arg_0_arg_1; - void textureSampleLevel_ba93b3() { float res = textureLodOffset(arg_0_arg_1, vec3(0.0f, 0.0f, float(1)), 0, ivec2(0, 0)).x; } @@ -90,14 +88,14 @@ void compute_main() { textureSampleLevel_ba93b3(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: -ERROR: 0:8: 'textureLodOffset' : no matching overloaded function found -ERROR: 0:8: '' : compilation terminated +ERROR: 0:7: 'textureLodOffset' : no matching overloaded function found +ERROR: 0:7: '' : 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 index f65d6f6a9f..97a3f726e4 100644 --- a/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/c32df7.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleLevel_c32df7() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleLevel_c32df7() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_c32df7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp samplerCube arg_0_arg_1; - void textureSampleLevel_c32df7() { vec4 res = textureLod(arg_0_arg_1, vec3(0.0f, 0.0f, 0.0f), 1.0f); } @@ -74,8 +72,8 @@ 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 index ddb00ef6ae..c4375e55ae 100644 --- a/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureSampleLevel/c6aca6.wgsl.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_c6aca6() { vec4 res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -23,6 +22,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -31,13 +32,11 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_c6aca6() { vec4 res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -50,17 +49,16 @@ void fragment_main() { textureSampleLevel_c6aca6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2D arg_0_arg_1; - void textureSampleLevel_c6aca6() { vec4 res = textureLod(arg_0_arg_1, vec2(0.0f, 0.0f), 1.0f); } @@ -74,8 +72,8 @@ 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 index 93076e893b..37a91f0d6b 100644 --- a/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/05ce15.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32f) uniform highp writeonly image2D arg_0_1; - void textureStore_05ce15() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2D arg_0_1; - void textureStore_05ce15() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_05ce15(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2D arg_0_1; - void textureStore_05ce15() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_05ce15(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl index af34f025d1..19110dbfa7 100644 --- a/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/064c7f.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2D arg_0_1; - void textureStore_064c7f() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2D arg_0_1; - void textureStore_064c7f() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_064c7f(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2D arg_0_1; - void textureStore_064c7f() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_064c7f(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl index 97a40824eb..85d4b9fdd1 100644 --- a/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/068641.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_068641() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_068641() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_068641(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_068641() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_068641(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl index d49a59a16f..e127986e7e 100644 --- a/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/0af6b5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32f) uniform highp writeonly image2D arg_0_1; - void textureStore_0af6b5() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2D arg_0_1; - void textureStore_0af6b5() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_0af6b5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2D arg_0_1; - void textureStore_0af6b5() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_0af6b5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl index 1c04a3315a..cdd5c97aef 100644 --- a/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/0c3dff.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_0c3dff() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_0c3dff() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_0c3dff(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_0c3dff() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_0c3dff(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl index 23bcd0ba0a..f893594d31 100644 --- a/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/102722.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_102722() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_102722() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_102722(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_102722() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_102722(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl index dcca2574b0..231d6ff2b8 100644 --- a/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/1bbd08.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8) uniform highp writeonly image3D arg_0_1; - void textureStore_1bbd08() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image3D arg_0_1; - void textureStore_1bbd08() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_1bbd08(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image3D arg_0_1; - void textureStore_1bbd08() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_1bbd08(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl index 366104888e..906d185d21 100644 --- a/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/1c02e7.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_1c02e7() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_1c02e7() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_1c02e7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_1c02e7() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_1c02e7(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl index d6b90ebf9a..6de31cacdd 100644 --- a/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/22d955.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_22d955() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_22d955() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_22d955(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_22d955() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_22d955(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl index efe7756d81..9398a7e91a 100644 --- a/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/26bf70.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_26bf70() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_26bf70() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_26bf70(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_26bf70() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_26bf70(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl index 17f4bc93e4..9c2d7fff16 100644 --- a/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/2796b4.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_2796b4() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_2796b4() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_2796b4(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_2796b4() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_2796b4(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl index 8e2b8c4147..4b15eaa1b3 100644 --- a/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/2ac6c7.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32f) uniform highp writeonly image1D arg_0_1; - void textureStore_2ac6c7() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32f) uniform highp writeonly image1D arg_0_1; - void textureStore_2ac6c7() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_2ac6c7(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32f) uniform highp writeonly image1D arg_0_1; - void textureStore_2ac6c7() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_2ac6c7(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl index 6e8f226190..de17a70eaa 100644 --- a/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/2eb2a4.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_2eb2a4() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_2eb2a4() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_2eb2a4(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_2eb2a4() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_2eb2a4(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl index 6403f804e9..6c5f37e937 100644 --- a/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/2ed2a3.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8_snorm) uniform highp writeonly image1D arg_0_1; - void textureStore_2ed2a3() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8_snorm) uniform highp writeonly image1D arg_0_1; - void textureStore_2ed2a3() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_2ed2a3(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8_snorm) uniform highp writeonly image1D arg_0_1; - void textureStore_2ed2a3() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_2ed2a3(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl index 4defeef72b..cc698dcf59 100644 --- a/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/31745b.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_31745b() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_31745b() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_31745b(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_31745b() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_31745b(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl index 0271e9cff6..226f284a37 100644 --- a/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/32f368.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_32f368() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_32f368() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_32f368(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_32f368() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_32f368(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl index 0803632315..0a51372fe9 100644 --- a/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/331aee.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32f) uniform highp writeonly image3D arg_0_1; - void textureStore_331aee() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image3D arg_0_1; - void textureStore_331aee() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_331aee(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image3D arg_0_1; - void textureStore_331aee() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_331aee(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl index 8b8affc663..2a5a1be79f 100644 --- a/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/38e8d7.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_38e8d7() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_38e8d7() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_38e8d7(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_38e8d7() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_38e8d7(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl index c89eb91cf3..9534df4f15 100644 --- a/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/3a52ac.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_3a52ac() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_3a52ac() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_3a52ac(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_3a52ac() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_3a52ac(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl index 8f114f9a89..6dccb92f66 100644 --- a/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/3bb7a1.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_3bb7a1() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_3bb7a1() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_3bb7a1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_3bb7a1() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_3bb7a1(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl index 1cb628ceb2..dc7578c719 100644 --- a/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/3bec15.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_3bec15() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_3bec15() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_3bec15(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_3bec15() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_3bec15(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl index a8dff3e76c..4051914d0c 100644 --- a/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/441ba8.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_441ba8() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_441ba8() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_441ba8(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_441ba8() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_441ba8(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl index 0359847f4a..848ecfb71e 100644 --- a/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/4fc057.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureStore_4fc057() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureStore_4fc057() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_4fc057(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0_1; - void textureStore_4fc057() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_4fc057(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl index edaf32961b..7c355c269a 100644 --- a/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/5a2f8f.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_5a2f8f() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_5a2f8f() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_5a2f8f(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_5a2f8f() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_5a2f8f(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl index 8990d5e48c..2f11b81ccf 100644 --- a/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/60975f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureStore_60975f() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureStore_60975f() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_60975f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2DArray arg_0_1; - void textureStore_60975f() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_60975f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl index 15e66fc294..05c42da39e 100644 --- a/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/682fd6.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_682fd6() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_682fd6() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_682fd6(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_682fd6() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_682fd6(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl index 668e90cd02..40e7774a64 100644 --- a/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/6b75c3.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32f) uniform highp writeonly image1D arg_0_1; - void textureStore_6b75c3() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32f) uniform highp writeonly image1D arg_0_1; - void textureStore_6b75c3() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_6b75c3(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32f) uniform highp writeonly image1D arg_0_1; - void textureStore_6b75c3() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_6b75c3(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl index 0993568890..648d74040b 100644 --- a/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/6b80d2.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_6b80d2() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_6b80d2() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_6b80d2(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(r32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_6b80d2() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_6b80d2(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl index 95cd7228eb..e42d2a7313 100644 --- a/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/6cff2e.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_6cff2e() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_6cff2e() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_6cff2e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_6cff2e() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_6cff2e(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl index 1946796268..40998d2f13 100644 --- a/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/6da692.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_6da692() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_6da692() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_6da692(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_6da692() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_6da692(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl index e528e3ff09..85c9f9f8ff 100644 --- a/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/731349.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8) uniform highp writeonly image2D arg_0_1; - void textureStore_731349() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2D arg_0_1; - void textureStore_731349() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_731349(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8) uniform highp writeonly image2D arg_0_1; - void textureStore_731349() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_731349(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl index 69c93ef656..b752f92aa8 100644 --- a/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/752da6.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_752da6() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_752da6() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_752da6(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_752da6() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_752da6(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl index eecdcaaccf..90de71e9c2 100644 --- a/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/77c0ae.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_77c0ae() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_77c0ae() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_77c0ae(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage2D arg_0_1; - void textureStore_77c0ae() { imageStore(arg_0_1, ivec2(0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_77c0ae(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl index b67042b7a1..aaa1cde69b 100644 --- a/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/7cec8d.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_7cec8d() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_7cec8d() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_7cec8d(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_7cec8d() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_7cec8d(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl index c36928aad2..ca11490ed0 100644 --- a/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/7f7fae.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8) uniform highp writeonly image1D arg_0_1; - void textureStore_7f7fae() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8) uniform highp writeonly image1D arg_0_1; - void textureStore_7f7fae() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_7f7fae(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8) uniform highp writeonly image1D arg_0_1; - void textureStore_7f7fae() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_7f7fae(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl index b7b058096c..96b41327fa 100644 --- a/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/804942.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_804942() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_804942() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_804942(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_804942() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_804942(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl index 88e7036bf3..c3a8b6943c 100644 --- a/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/805dae.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2D arg_0_1; - void textureStore_805dae() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2D arg_0_1; - void textureStore_805dae() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_805dae(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image2D arg_0_1; - void textureStore_805dae() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_805dae(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl index 1d2ea07586..78ab18d24b 100644 --- a/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/83bcc1.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_83bcc1() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_83bcc1() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_83bcc1(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_83bcc1() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_83bcc1(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl index ed49302d13..a0a3487e08 100644 --- a/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/872747.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image1D arg_0_1; - void textureStore_872747() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image1D arg_0_1; - void textureStore_872747() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_872747(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image1D arg_0_1; - void textureStore_872747() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_872747(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl index 67e1537e1d..0a9786f684 100644 --- a/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/8e0479.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_8e0479() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_8e0479() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_8e0479(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_8e0479() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_8e0479(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl index 633eaa4492..13f51c8c54 100644 --- a/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/8f71a1.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_8f71a1() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_8f71a1() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_8f71a1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_8f71a1() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_8f71a1(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl index d6d0f3c963..e72df96a2e 100644 --- a/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/969534.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_969534() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_969534() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_969534(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_969534() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_969534(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl index ba254e685b..6cf74aed3c 100644 --- a/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/9a3ecc.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_9a3ecc() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_9a3ecc() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_9a3ecc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_9a3ecc() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_9a3ecc(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl index 17f8574365..84d3e1d637 100644 --- a/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/9d9cd5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_9d9cd5() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_9d9cd5() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_9d9cd5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_9d9cd5() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_9d9cd5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl index e42de0586e..3c61f8de7f 100644 --- a/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/9e3ec5.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_9e3ec5() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_9e3ec5() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_9e3ec5(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_9e3ec5() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_9e3ec5(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl index cf92f73d6a..9aa0f0ada2 100644 --- a/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/ac67aa.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_ac67aa() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_ac67aa() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_ac67aa(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_ac67aa() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_ac67aa(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl index ddedb0f63c..005a4b0736 100644 --- a/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/b706b1.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_b706b1() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_b706b1() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_b706b1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_b706b1() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_b706b1(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl index c2606c1670..2444cd86ad 100644 --- a/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/bbcb7f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_bbcb7f() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_bbcb7f() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_bbcb7f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2D arg_0_1; - void textureStore_bbcb7f() { imageStore(arg_0_1, ivec2(0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_bbcb7f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl index 982658a614..191c3d8f54 100644 --- a/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/be6e30.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16f) uniform highp writeonly image2D arg_0_1; - void textureStore_be6e30() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2D arg_0_1; - void textureStore_be6e30() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_be6e30(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image2D arg_0_1; - void textureStore_be6e30() { imageStore(arg_0_1, ivec2(0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_be6e30(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl index de8414d24a..cd820c6f43 100644 --- a/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/bf775c.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba8i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_bf775c() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_bf775c() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_bf775c(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba8i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_bf775c() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_bf775c(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'iimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl index e513d6a4f9..41ebd4f99d 100644 --- a/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/c5af1e.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba16f) uniform highp writeonly image3D arg_0_1; - void textureStore_c5af1e() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image3D arg_0_1; - void textureStore_c5af1e() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_c5af1e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba16f) uniform highp writeonly image3D arg_0_1; - void textureStore_c5af1e() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_c5af1e(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl index 056432fc9e..1b134c9c31 100644 --- a/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/c863be.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_c863be() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_c863be() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_c863be(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image2DArray arg_0_1; - void textureStore_c863be() { imageStore(arg_0_1, ivec3(0, 0, 1), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_c863be(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl index dbb4a12a34..f5e63f8ccb 100644 --- a/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/d73b5c.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_d73b5c() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_d73b5c() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_d73b5c(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage1D arg_0_1; - void textureStore_d73b5c() { imageStore(arg_0_1, 1, ivec4(0, 0, 0, 0)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_d73b5c(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl index d8946a463a..a03d4474d2 100644 --- a/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/dd7d81.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8_snorm) uniform highp writeonly image3D arg_0_1; - void textureStore_dd7d81() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image3D arg_0_1; - void textureStore_dd7d81() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_dd7d81(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8_snorm) uniform highp writeonly image3D arg_0_1; - void textureStore_dd7d81() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_dd7d81(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl index 05b042ffd3..22bef326ba 100644 --- a/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/dde364.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_dde364() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_dde364() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_dde364(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32ui) uniform highp writeonly uimage2DArray arg_0_1; - void textureStore_dde364() { imageStore(arg_0_1, ivec3(0, 0, 1), uvec4(0u, 0u, 0u, 0u)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_dde364(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl index d9d00e6bb2..fb1e77d857 100644 --- a/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/e885e8.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba16f) uniform highp writeonly image1D arg_0_1; - void textureStore_e885e8() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16f) uniform highp writeonly image1D arg_0_1; - void textureStore_e885e8() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_e885e8(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba16f) uniform highp writeonly image1D arg_0_1; - void textureStore_e885e8() { imageStore(arg_0_1, 1, vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_e885e8(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl index cd5619d2f8..614d7fd7a9 100644 --- a/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/eb702f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32f) uniform highp writeonly image3D arg_0_1; - void textureStore_eb702f() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image3D arg_0_1; - void textureStore_eb702f() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_eb702f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32f) uniform highp writeonly image3D arg_0_1; - void textureStore_eb702f() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_eb702f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl index 4d0dd64c4d..e86a52f87c 100644 --- a/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/eb78b9.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_eb78b9() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_eb78b9() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_eb78b9(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32i) uniform highp writeonly iimage3D arg_0_1; - void textureStore_eb78b9() { imageStore(arg_0_1, ivec3(0, 0, 0), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_eb78b9(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl index 39fc638772..d61f6745a0 100644 --- a/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/ee6acc.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image3D arg_0_1; - void textureStore_ee6acc() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image3D arg_0_1; - void textureStore_ee6acc() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_ee6acc(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32f) uniform highp writeonly image3D arg_0_1; - void textureStore_ee6acc() { imageStore(arg_0_1, ivec3(0, 0, 0), vec4(0.0f, 0.0f, 0.0f, 0.0f)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_ee6acc(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl index 50cd686a7b..9947cb581b 100644 --- a/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/ef9f2f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(r32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_ef9f2f() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_ef9f2f() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_ef9f2f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(r32ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_ef9f2f() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_ef9f2f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl index f8cc2cea7e..d8adbadc00 100644 --- a/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/f8dead.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_f8dead() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_f8dead() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_f8dead(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8ui) uniform highp writeonly uimage3D arg_0_1; - void textureStore_f8dead() { imageStore(arg_0_1, ivec3(0, 0, 0), uvec4(0u, 0u, 0u, 0u)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_f8dead(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl index f188d4a78e..79479080b1 100644 --- a/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/f9be83.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_f9be83() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -44,7 +44,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_f9be83() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -57,11 +56,11 @@ void fragment_main() { textureStore_f9be83(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated @@ -73,7 +72,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rg32i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_f9be83() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -87,11 +85,11 @@ void compute_main() { textureStore_f9be83(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl index b9c043d73c..4c10233841 100644 --- a/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/fb9a8f.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rgba32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_fb9a8f() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -24,6 +23,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -32,7 +33,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -45,7 +45,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_fb9a8f() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -58,11 +57,11 @@ void fragment_main() { textureStore_fb9a8f(); return; } + void main() { fragment_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier @@ -75,7 +74,6 @@ ERROR: 2 compilation errors. No code generated. precision mediump float; layout(rgba32ui) uniform highp writeonly uimage1D arg_0_1; - void textureStore_fb9a8f() { imageStore(arg_0_1, 1, uvec4(0u, 0u, 0u, 0u)); } @@ -89,11 +87,11 @@ void compute_main() { textureStore_fb9a8f(); return; } + void main() { compute_main(); } - Error parsing GLSL shader: ERROR: 0:4: 'uimage1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl b/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl index c8c16c95a7..1a0cd07df1 100644 --- a/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl +++ b/test/intrinsics/gen/textureStore/fbf53f.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_fbf53f() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -22,6 +21,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -30,12 +31,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_fbf53f() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -48,16 +47,15 @@ void fragment_main() { textureStore_fbf53f(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; layout(rgba8i) uniform highp writeonly iimage2DArray arg_0_1; - void textureStore_fbf53f() { imageStore(arg_0_1, ivec3(0, 0, 1), ivec4(0, 0, 0, 0)); } @@ -71,8 +69,8 @@ void compute_main() { textureStore_fbf53f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl b/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl index d526e538a4..cdac204610 100644 --- a/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/2585cd.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_2585cd(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 690387c1ca..006212b8cd 100644 --- a/test/intrinsics/gen/transpose/31d679.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/31d679.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_31d679(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index ec4cdeeef2..0b22417250 100644 --- a/test/intrinsics/gen/transpose/31e37e.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/31e37e.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_31e37e(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 7651b41f6f..56568c4a22 100644 --- a/test/intrinsics/gen/transpose/4ce359.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/4ce359.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_4ce359(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 7a5f776741..4a9f2d1368 100644 --- a/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/4dc9a1.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_4dc9a1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 78e72ea711..10e90c403a 100644 --- a/test/intrinsics/gen/transpose/854336.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/854336.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_854336(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 894481703f..6f8842b663 100644 --- a/test/intrinsics/gen/transpose/c1b600.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/c1b600.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_c1b600(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 1efffd4ae8..99f51a5d1d 100644 --- a/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_d8f8ba(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 80ab4e85e4..d6088094f6 100644 --- a/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.glsl +++ b/test/intrinsics/gen/transpose/ed4bdc.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { transpose_ed4bdc(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index cdc4839049..7c0765d761 100644 --- a/test/intrinsics/gen/trunc/562d05.wgsl.expected.glsl +++ b/test/intrinsics/gen/trunc/562d05.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { trunc_562d05(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 0d50be725c..dedadcccce 100644 --- a/test/intrinsics/gen/trunc/e183aa.wgsl.expected.glsl +++ b/test/intrinsics/gen/trunc/e183aa.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { trunc_e183aa(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 9bb7a77f78..7ebd6076e0 100644 --- a/test/intrinsics/gen/trunc/eb83df.wgsl.expected.glsl +++ b/test/intrinsics/gen/trunc/eb83df.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { trunc_eb83df(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index 653a58cf3d..feddb14729 100644 --- a/test/intrinsics/gen/trunc/f370d3.wgsl.expected.glsl +++ b/test/intrinsics/gen/trunc/f370d3.wgsl.expected.glsl @@ -20,6 +20,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -28,7 +30,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -44,11 +45,11 @@ void fragment_main() { trunc_f370d3(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; @@ -65,8 +66,8 @@ 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 index be890b1ac5..7dfd286d38 100644 --- a/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.glsl +++ b/test/intrinsics/gen/unpack2x16float/32a5cf.wgsl.expected.glsl @@ -28,6 +28,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -36,7 +38,6 @@ void main() { 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 @@ -65,11 +66,11 @@ 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 @@ -99,11 +100,11 @@ 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 diff --git a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl b/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl index ed824f9445..70c2c61f05 100644 --- a/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl +++ b/test/intrinsics/gen/unpack2x16snorm/b4aea6.wgsl.expected.glsl @@ -29,6 +29,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -37,7 +39,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:6: 'int2' : undeclared identifier ERROR: 0:6: '' : compilation terminated @@ -67,11 +68,11 @@ 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 @@ -102,11 +103,11 @@ 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 diff --git a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl b/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl index 0e3d558e78..7b78901978 100644 --- a/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl +++ b/test/intrinsics/gen/unpack2x16unorm/7699c0.wgsl.expected.glsl @@ -29,6 +29,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -37,7 +39,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:6: 'uint2' : undeclared identifier ERROR: 0:6: '' : compilation terminated @@ -67,11 +68,11 @@ 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 @@ -102,11 +103,11 @@ 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 diff --git a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl b/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl index b95e1868fa..6a7ff11f4f 100644 --- a/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl +++ b/test/intrinsics/gen/unpack4x8snorm/523fb3.wgsl.expected.glsl @@ -29,6 +29,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -37,7 +39,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:6: 'int4' : undeclared identifier ERROR: 0:6: '' : compilation terminated @@ -67,11 +68,11 @@ 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 @@ -102,11 +103,11 @@ 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 diff --git a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl b/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl index 3c80c76e22..ab15ddd97a 100644 --- a/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl +++ b/test/intrinsics/gen/unpack4x8unorm/750c74.wgsl.expected.glsl @@ -29,6 +29,8 @@ tint_symbol vertex_main() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = vertex_main(); @@ -37,7 +39,6 @@ void main() { gl_Position.y = -gl_Position.y; } - Error parsing GLSL shader: ERROR: 0:6: 'uint4' : undeclared identifier ERROR: 0:6: '' : compilation terminated @@ -67,11 +68,11 @@ 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 @@ -102,11 +103,11 @@ 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 diff --git a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl b/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl index c099196719..0ce18a635e 100644 --- a/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl +++ b/test/intrinsics/gen/workgroupBarrier/a17f7f.wgsl.expected.glsl @@ -10,8 +10,8 @@ void compute_main() { workgroupBarrier_a17f7f(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/ignore/call.wgsl.expected.glsl b/test/intrinsics/ignore/call.wgsl.expected.glsl index ce8e2b7bf6..d74ad98fe9 100644 --- a/test/intrinsics/ignore/call.wgsl.expected.glsl +++ b/test/intrinsics/ignore/call.wgsl.expected.glsl @@ -14,8 +14,8 @@ 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 index 79a70ea372..679f1cbadb 100644 --- a/test/intrinsics/ignore/runtime_array.wgsl.expected.glsl +++ b/test/intrinsics/ignore/runtime_array.wgsl.expected.glsl @@ -5,18 +5,16 @@ intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic #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 index 1f86391e95..42d9060b18 100644 --- a/test/intrinsics/ignore/storage_buffer.wgsl.expected.glsl +++ b/test/intrinsics/ignore/storage_buffer.wgsl.expected.glsl @@ -16,15 +16,14 @@ struct S { 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 index 0470473936..1bd914a9bc 100644 --- a/test/intrinsics/ignore/uniform_buffer.wgsl.expected.glsl +++ b/test/intrinsics/ignore/uniform_buffer.wgsl.expected.glsl @@ -23,8 +23,8 @@ void tint_symbol() { u.i; return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/modf.wgsl.expected.glsl b/test/intrinsics/modf.wgsl.expected.glsl index 82a421352b..b258447825 100644 --- a/test/intrinsics/modf.wgsl.expected.glsl +++ b/test/intrinsics/modf.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct modf_result { float fract; float whole; }; + modf_result tint_modf(float param_0) { float whole; float fract = modf(param_0, whole); @@ -22,14 +23,14 @@ void tint_symbol() { 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: 0:12: '{ } style initializers' : not supported with this profile: es +ERROR: 0:12: '' : 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 index 4db477f8a3..9941550626 100644 --- a/test/intrinsics/radians.spvasm.expected.glsl +++ b/test/intrinsics/radians.spvasm.expected.glsl @@ -19,8 +19,8 @@ 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 index 417fe25632..78014c0a43 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.glsl +++ b/test/intrinsics/repeated_use.wgsl.expected.glsl @@ -92,11 +92,11 @@ void tint_symbol() { 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 diff --git a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl b/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl index d4520c4c1a..1f3b12fe91 100644 --- a/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl +++ b/test/intrinsics/textureDimensions/depth_ms.spvasm.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; vec4 tint_symbol_1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); uniform highp sampler2DMS arg_0_1; - void textureDimensions_f60bdb() { ivec2 res = ivec2(0, 0); ivec2 x_16 = ivec2(textureSize(arg_0_1)); @@ -25,6 +24,7 @@ void vertex_main_1() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -41,6 +41,8 @@ tint_symbol_3 vertex_main() { wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; return wrapper_result; } + + void main() { tint_symbol_3 outputs; outputs = vertex_main(); @@ -49,12 +51,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_f60bdb() { ivec2 res = ivec2(0, 0); ivec2 x_16 = ivec2(textureSize(arg_0_1)); @@ -65,6 +65,7 @@ void textureDimensions_f60bdb() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -78,16 +79,15 @@ void fragment_main() { fragment_main_1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureDimensions_f60bdb() { ivec2 res = ivec2(0, 0); ivec2 x_16 = ivec2(textureSize(arg_0_1)); @@ -98,6 +98,7 @@ void textureDimensions_f60bdb() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -112,8 +113,8 @@ void compute_main() { compute_main_1(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/textureGather/f32/alpha.wgsl.expected.glsl b/test/intrinsics/textureGather/f32/alpha.wgsl.expected.glsl index d66b16269e..a33d0bddd2 100644 --- a/test/intrinsics/textureGather/f32/alpha.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/f32/alpha.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp sampler2D t_s; - void tint_symbol() { vec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 3); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/f32/blue.wgsl.expected.glsl b/test/intrinsics/textureGather/f32/blue.wgsl.expected.glsl index 23d9bf92cd..924fd2ce65 100644 --- a/test/intrinsics/textureGather/f32/blue.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/f32/blue.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp sampler2D t_s; - void tint_symbol() { vec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 2); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/f32/green.wgsl.expected.glsl b/test/intrinsics/textureGather/f32/green.wgsl.expected.glsl index 0510c4c987..cc9b7d16bc 100644 --- a/test/intrinsics/textureGather/f32/green.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/f32/green.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp sampler2D t_s; - void tint_symbol() { vec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 1); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/f32/red.wgsl.expected.glsl b/test/intrinsics/textureGather/f32/red.wgsl.expected.glsl index f3ae667ca6..231dce5014 100644 --- a/test/intrinsics/textureGather/f32/red.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/f32/red.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp sampler2D t_s; - void tint_symbol() { vec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 0); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/i32/alpha.wgsl.expected.glsl b/test/intrinsics/textureGather/i32/alpha.wgsl.expected.glsl index 3c6bc4068b..320f50fe28 100644 --- a/test/intrinsics/textureGather/i32/alpha.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/i32/alpha.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp isampler2D t_s; - void tint_symbol() { ivec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 3); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/i32/blue.wgsl.expected.glsl b/test/intrinsics/textureGather/i32/blue.wgsl.expected.glsl index ca6190029a..200e7e54ec 100644 --- a/test/intrinsics/textureGather/i32/blue.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/i32/blue.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp isampler2D t_s; - void tint_symbol() { ivec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 2); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/i32/green.wgsl.expected.glsl b/test/intrinsics/textureGather/i32/green.wgsl.expected.glsl index 86f861a23b..02ab2d55cf 100644 --- a/test/intrinsics/textureGather/i32/green.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/i32/green.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp isampler2D t_s; - void tint_symbol() { ivec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 1); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/i32/red.wgsl.expected.glsl b/test/intrinsics/textureGather/i32/red.wgsl.expected.glsl index da5037b551..6c7d9a0cb1 100644 --- a/test/intrinsics/textureGather/i32/red.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/i32/red.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp isampler2D t_s; - void tint_symbol() { ivec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 0); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/u32/alpha.wgsl.expected.glsl b/test/intrinsics/textureGather/u32/alpha.wgsl.expected.glsl index e172b37355..58ca174590 100644 --- a/test/intrinsics/textureGather/u32/alpha.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/u32/alpha.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp usampler2D t_s; - void tint_symbol() { uvec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 3); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/u32/blue.wgsl.expected.glsl b/test/intrinsics/textureGather/u32/blue.wgsl.expected.glsl index b5fb696faf..ec6b81acc5 100644 --- a/test/intrinsics/textureGather/u32/blue.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/u32/blue.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp usampler2D t_s; - void tint_symbol() { uvec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 2); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/u32/green.wgsl.expected.glsl b/test/intrinsics/textureGather/u32/green.wgsl.expected.glsl index a9e95b42b1..235a063235 100644 --- a/test/intrinsics/textureGather/u32/green.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/u32/green.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp usampler2D t_s; - void tint_symbol() { uvec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 1); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureGather/u32/red.wgsl.expected.glsl b/test/intrinsics/textureGather/u32/red.wgsl.expected.glsl index 4a21368eb6..8791f6e601 100644 --- a/test/intrinsics/textureGather/u32/red.wgsl.expected.glsl +++ b/test/intrinsics/textureGather/u32/red.wgsl.expected.glsl @@ -3,13 +3,12 @@ precision mediump float; uniform highp usampler2D t_s; - void tint_symbol() { uvec4 res = textureGather(t_s, vec2(0.0f, 0.0f), 0); return; } + void main() { tint_symbol(); } - diff --git a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl b/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl index c94cc72720..d492ec7a5a 100644 --- a/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl +++ b/test/intrinsics/textureLoad/depth_ms.spvasm.expected.glsl @@ -3,7 +3,6 @@ precision mediump float; vec4 tint_symbol_1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); uniform highp sampler2DMS arg_0_1; - void textureLoad_6273b1() { float res = 0.0f; vec4 x_17 = vec4(texelFetch(arg_0_1, ivec2(0, 0), 1).x, 0.0f, 0.0f, 0.0f); @@ -25,6 +24,7 @@ void vertex_main_1() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -41,6 +41,8 @@ tint_symbol_3 vertex_main() { wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; return wrapper_result; } + + void main() { tint_symbol_3 outputs; outputs = vertex_main(); @@ -49,12 +51,10 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_6273b1() { float res = 0.0f; vec4 x_17 = vec4(texelFetch(arg_0_1, ivec2(0, 0), 1).x, 0.0f, 0.0f, 0.0f); @@ -65,6 +65,7 @@ void textureLoad_6273b1() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -78,16 +79,15 @@ void fragment_main() { fragment_main_1(); return; } + void main() { fragment_main(); } - #version 310 es precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureLoad_6273b1() { float res = 0.0f; vec4 x_17 = vec4(texelFetch(arg_0_1, ivec2(0, 0), 1).x, 0.0f, 0.0f, 0.0f); @@ -98,6 +98,7 @@ void textureLoad_6273b1() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -112,8 +113,8 @@ void compute_main() { compute_main_1(); return; } + void main() { compute_main(); } - diff --git a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl b/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl index 6b066d1bb5..037730fd45 100644 --- a/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl +++ b/test/intrinsics/textureNumSamples/depth_ms.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; vec4 tint_symbol_1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); uniform highp sampler2DMS arg_0_1; - void textureNumSamples_a3c8a0() { int res = 0; int x_16 = textureSamples(arg_0_1);; @@ -27,6 +26,7 @@ void vertex_main_1() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -43,6 +43,8 @@ tint_symbol_3 vertex_main() { wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; return wrapper_result; } + + void main() { tint_symbol_3 outputs; outputs = vertex_main(); @@ -51,11 +53,10 @@ void main() { 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: 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. @@ -64,7 +65,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_a3c8a0() { int res = 0; int x_16 = textureSamples(arg_0_1);; @@ -75,6 +75,7 @@ void textureNumSamples_a3c8a0() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -88,15 +89,15 @@ 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: 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. @@ -105,7 +106,6 @@ ERROR: 3 compilation errors. No code generated. precision mediump float; uniform highp sampler2DMS arg_0_1; - void textureNumSamples_a3c8a0() { int res = 0; int x_16 = textureSamples(arg_0_1);; @@ -116,6 +116,7 @@ void textureNumSamples_a3c8a0() { struct vertex_main_out { vec4 tint_symbol_1_1; }; + struct tint_symbol_3 { vec4 tint_symbol_1_1; }; @@ -130,15 +131,15 @@ 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: 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/layout/storage/mat2x2/f32.wgsl.expected.glsl b/test/layout/storage/mat2x2/f32.wgsl.expected.glsl index 852cff9319..e5f8b53d3b 100644 --- a/test/layout/storage/mat2x2/f32.wgsl.expected.glsl +++ b/test/layout/storage/mat2x2/f32.wgsl.expected.glsl @@ -8,15 +8,14 @@ struct SSBO { layout(binding = 0) buffer SSBO_1 { mat2 m; } ssbo; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void f() { mat2 v = ssbo.m; ssbo.m = v; return; } + void main() { f(); } - diff --git a/test/layout/storage/mat2x2/stride/16.spvasm.expected.glsl b/test/layout/storage/mat2x2/stride/16.spvasm.expected.glsl index 2c56258571..e125413e9e 100644 --- a/test/layout/storage/mat2x2/stride/16.spvasm.expected.glsl +++ b/test/layout/storage/mat2x2/stride/16.spvasm.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct tint_padded_array_element { vec2 el; }; + struct SSBO { tint_padded_array_element m[2]; }; @@ -11,7 +12,6 @@ struct SSBO { layout(binding = 0) buffer SSBO_1 { tint_padded_array_element m[2]; } ssbo; - mat2 arr_to_mat2x2_stride_16(tint_padded_array_element arr[2]) { return mat2(arr[0u].el, arr[1u].el); } @@ -32,8 +32,8 @@ void f() { f_1(); return; } + void main() { f(); } - diff --git a/test/let/global/global.wgsl.expected.glsl b/test/let/global/global.wgsl.expected.glsl index 247d694b3f..ec327ce2ab 100644 --- a/test/let/global/global.wgsl.expected.glsl +++ b/test/let/global/global.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct MyStruct { float f1; }; + struct tint_symbol_1 { vec4 value; }; @@ -19,10 +20,10 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 value; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); value = outputs.value; } - diff --git a/test/let/inferred/function.wgsl.expected.glsl b/test/let/inferred/function.wgsl.expected.glsl index 247d694b3f..ec327ce2ab 100644 --- a/test/let/inferred/function.wgsl.expected.glsl +++ b/test/let/inferred/function.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct MyStruct { float f1; }; + struct tint_symbol_1 { vec4 value; }; @@ -19,10 +20,10 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 value; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); value = outputs.value; } - diff --git a/test/loops/continue_in_switch.wgsl.expected.glsl b/test/loops/continue_in_switch.wgsl.expected.glsl index f339404e64..2b26425c39 100644 --- a/test/loops/continue_in_switch.wgsl.expected.glsl +++ b/test/loops/continue_in_switch.wgsl.expected.glsl @@ -18,8 +18,8 @@ void f() { } return; } + void main() { f(); } - diff --git a/test/loops/loop.wgsl.expected.glsl b/test/loops/loop.wgsl.expected.glsl index e0d93302c9..81b6873435 100644 --- a/test/loops/loop.wgsl.expected.glsl +++ b/test/loops/loop.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int i = 0; while (true) { @@ -20,3 +19,4 @@ int f() { } } } + diff --git a/test/loops/loop_with_continuing.wgsl.expected.glsl b/test/loops/loop_with_continuing.wgsl.expected.glsl index 2510e3d60f..768d31af69 100644 --- a/test/loops/loop_with_continuing.wgsl.expected.glsl +++ b/test/loops/loop_with_continuing.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int i = 0; while (true) { @@ -22,3 +21,4 @@ int f() { } } } + diff --git a/test/loops/nested_loops.wgsl.expected.glsl b/test/loops/nested_loops.wgsl.expected.glsl index f6a415341a..56fcb75ffc 100644 --- a/test/loops/nested_loops.wgsl.expected.glsl +++ b/test/loops/nested_loops.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int i = 0; int j = 0; @@ -27,3 +26,4 @@ int f() { } } } + diff --git a/test/loops/nested_loops_with_continuing.wgsl.expected.glsl b/test/loops/nested_loops_with_continuing.wgsl.expected.glsl index 23b0e70a8c..67fbaf7ee6 100644 --- a/test/loops/nested_loops_with_continuing.wgsl.expected.glsl +++ b/test/loops/nested_loops_with_continuing.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - int f() { int i = 0; int j = 0; @@ -31,3 +30,4 @@ int f() { } } } + diff --git a/test/ptr_ref/access/matrix.spvasm.expected.glsl b/test/ptr_ref/access/matrix.spvasm.expected.glsl index 132104ad6a..f6f23597c3 100644 --- a/test/ptr_ref/access/matrix.spvasm.expected.glsl +++ b/test/ptr_ref/access/matrix.spvasm.expected.glsl @@ -13,8 +13,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/access/matrix.wgsl.expected.glsl b/test/ptr_ref/access/matrix.wgsl.expected.glsl index e76a7fd315..f08f729c5e 100644 --- a/test/ptr_ref/access/matrix.wgsl.expected.glsl +++ b/test/ptr_ref/access/matrix.wgsl.expected.glsl @@ -7,8 +7,8 @@ void tint_symbol() { m[1] = vec3(5.0f, 5.0f, 5.0f); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/copy/ptr_copy.spvasm.expected.glsl b/test/ptr_ref/copy/ptr_copy.spvasm.expected.glsl index 8c4e0cefbf..9fa5aa1019 100644 --- a/test/ptr_ref/copy/ptr_copy.spvasm.expected.glsl +++ b/test/ptr_ref/copy/ptr_copy.spvasm.expected.glsl @@ -11,8 +11,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/global/i32.spvasm.expected.glsl b/test/ptr_ref/load/global/i32.spvasm.expected.glsl index e3ffc252ad..0d72c7d2db 100644 --- a/test/ptr_ref/load/global/i32.spvasm.expected.glsl +++ b/test/ptr_ref/load/global/i32.spvasm.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; int I = 0; - void main_1() { int x_11 = (I + 1); return; @@ -13,8 +12,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/global/i32.wgsl.expected.glsl b/test/ptr_ref/load/global/i32.wgsl.expected.glsl index 1e87672e3f..42d01348c5 100644 --- a/test/ptr_ref/load/global/i32.wgsl.expected.glsl +++ b/test/ptr_ref/load/global/i32.wgsl.expected.glsl @@ -2,14 +2,13 @@ precision mediump float; int I = 0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { int use = (I + 1); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/global/struct_field.spvasm.expected.glsl b/test/ptr_ref/load/global/struct_field.spvasm.expected.glsl index 631eeb8092..e3cb845ce7 100644 --- a/test/ptr_ref/load/global/struct_field.spvasm.expected.glsl +++ b/test/ptr_ref/load/global/struct_field.spvasm.expected.glsl @@ -6,7 +6,6 @@ struct S { }; S V = S(0); - void main_1() { int i = 0; int x_15 = V.i; @@ -19,8 +18,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/global/struct_field.wgsl.expected.glsl b/test/ptr_ref/load/global/struct_field.wgsl.expected.glsl index 5451a7aed8..5248de86c4 100644 --- a/test/ptr_ref/load/global/struct_field.wgsl.expected.glsl +++ b/test/ptr_ref/load/global/struct_field.wgsl.expected.glsl @@ -6,14 +6,13 @@ struct S { }; S V = S(0); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { int i = V.i; return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/i32.spvasm.expected.glsl b/test/ptr_ref/load/local/i32.spvasm.expected.glsl index 848563fd13..0d7cd5310d 100644 --- a/test/ptr_ref/load/local/i32.spvasm.expected.glsl +++ b/test/ptr_ref/load/local/i32.spvasm.expected.glsl @@ -13,8 +13,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/i32.wgsl.expected.glsl b/test/ptr_ref/load/local/i32.wgsl.expected.glsl index 87a16daf48..d810e0a2d5 100644 --- a/test/ptr_ref/load/local/i32.wgsl.expected.glsl +++ b/test/ptr_ref/load/local/i32.wgsl.expected.glsl @@ -7,8 +7,8 @@ void tint_symbol() { int use = (i + 1); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/ptr_function.wgsl.expected.glsl b/test/ptr_ref/load/local/ptr_function.wgsl.expected.glsl index 87a16daf48..d810e0a2d5 100644 --- a/test/ptr_ref/load/local/ptr_function.wgsl.expected.glsl +++ b/test/ptr_ref/load/local/ptr_function.wgsl.expected.glsl @@ -7,8 +7,8 @@ void tint_symbol() { int use = (i + 1); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/ptr_private.wgsl.expected.glsl b/test/ptr_ref/load/local/ptr_private.wgsl.expected.glsl index 87e4b5e3d3..4cc2e08b4e 100644 --- a/test/ptr_ref/load/local/ptr_private.wgsl.expected.glsl +++ b/test/ptr_ref/load/local/ptr_private.wgsl.expected.glsl @@ -2,14 +2,13 @@ precision mediump float; int i = 123; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { int use = (i + 1); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/ptr_storage.wgsl.expected.glsl b/test/ptr_ref/load/local/ptr_storage.wgsl.expected.glsl index dc2e8ca462..ec7a6ae440 100644 --- a/test/ptr_ref/load/local/ptr_storage.wgsl.expected.glsl +++ b/test/ptr_ref/load/local/ptr_storage.wgsl.expected.glsl @@ -8,14 +8,13 @@ struct S { layout(binding = 0) buffer S_1 { int a; } v; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { int use = (v.a + 1); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/ptr_uniform.wgsl.expected.glsl b/test/ptr_ref/load/local/ptr_uniform.wgsl.expected.glsl index 7b5f1a5978..664cbb164a 100644 --- a/test/ptr_ref/load/local/ptr_uniform.wgsl.expected.glsl +++ b/test/ptr_ref/load/local/ptr_uniform.wgsl.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { int use = (v.a + 1); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/ptr_workgroup.wgsl.expected.glsl b/test/ptr_ref/load/local/ptr_workgroup.wgsl.expected.glsl index 9fbac12a3d..8e17712528 100644 --- a/test/ptr_ref/load/local/ptr_workgroup.wgsl.expected.glsl +++ b/test/ptr_ref/load/local/ptr_workgroup.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int i; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -21,10 +20,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/ptr_ref/load/local/struct_field.spvasm.expected.glsl b/test/ptr_ref/load/local/struct_field.spvasm.expected.glsl index 9a7994a43a..ca5baef640 100644 --- a/test/ptr_ref/load/local/struct_field.spvasm.expected.glsl +++ b/test/ptr_ref/load/local/struct_field.spvasm.expected.glsl @@ -18,8 +18,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/local/struct_field.wgsl.expected.glsl b/test/ptr_ref/load/local/struct_field.wgsl.expected.glsl index 9e372f3825..bffaaf1478 100644 --- a/test/ptr_ref/load/local/struct_field.wgsl.expected.glsl +++ b/test/ptr_ref/load/local/struct_field.wgsl.expected.glsl @@ -11,8 +11,8 @@ void tint_symbol() { int i = V.i; return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/param/ptr.spvasm.expected.glsl b/test/ptr_ref/load/param/ptr.spvasm.expected.glsl index 847dadd1e9..7ed789b3c2 100644 --- a/test/ptr_ref/load/param/ptr.spvasm.expected.glsl +++ b/test/ptr_ref/load/param/ptr.spvasm.expected.glsl @@ -18,8 +18,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/load/param/ptr.wgsl.expected.glsl b/test/ptr_ref/load/param/ptr.wgsl.expected.glsl index 2323a1c6d0..c55ebb3f9b 100644 --- a/test/ptr_ref/load/param/ptr.wgsl.expected.glsl +++ b/test/ptr_ref/load/param/ptr.wgsl.expected.glsl @@ -11,8 +11,8 @@ void tint_symbol() { int r = func(i, i); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/global/i32.spvasm.expected.glsl b/test/ptr_ref/store/global/i32.spvasm.expected.glsl index 12117ac488..502f0c8de9 100644 --- a/test/ptr_ref/store/global/i32.spvasm.expected.glsl +++ b/test/ptr_ref/store/global/i32.spvasm.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; int I = 0; - void main_1() { I = 123; I = ((100 + 20) + 3); @@ -14,8 +13,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/global/i32.wgsl.expected.glsl b/test/ptr_ref/store/global/i32.wgsl.expected.glsl index fec11c115b..7935a1b1ac 100644 --- a/test/ptr_ref/store/global/i32.wgsl.expected.glsl +++ b/test/ptr_ref/store/global/i32.wgsl.expected.glsl @@ -2,15 +2,14 @@ precision mediump float; int I = 0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { I = 123; I = ((100 + 20) + 3); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/global/struct_field.spvasm.expected.glsl b/test/ptr_ref/store/global/struct_field.spvasm.expected.glsl index 75f61267ef..e298bd868b 100644 --- a/test/ptr_ref/store/global/struct_field.spvasm.expected.glsl +++ b/test/ptr_ref/store/global/struct_field.spvasm.expected.glsl @@ -6,7 +6,6 @@ struct S { }; S V = S(0); - void main_1() { V.i = 5; return; @@ -17,8 +16,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/local/i32.spvasm.expected.glsl b/test/ptr_ref/store/local/i32.spvasm.expected.glsl index fcf6afbd07..61d339c7af 100644 --- a/test/ptr_ref/store/local/i32.spvasm.expected.glsl +++ b/test/ptr_ref/store/local/i32.spvasm.expected.glsl @@ -14,8 +14,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/local/i32.wgsl.expected.glsl b/test/ptr_ref/store/local/i32.wgsl.expected.glsl index 036484690d..4adf704d50 100644 --- a/test/ptr_ref/store/local/i32.wgsl.expected.glsl +++ b/test/ptr_ref/store/local/i32.wgsl.expected.glsl @@ -8,8 +8,8 @@ void tint_symbol() { i = ((100 + 20) + 3); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/local/struct_field.spvasm.expected.glsl b/test/ptr_ref/store/local/struct_field.spvasm.expected.glsl index d7921f1578..8cab3a70d2 100644 --- a/test/ptr_ref/store/local/struct_field.spvasm.expected.glsl +++ b/test/ptr_ref/store/local/struct_field.spvasm.expected.glsl @@ -16,8 +16,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/param/ptr.spvasm.expected.glsl b/test/ptr_ref/store/param/ptr.spvasm.expected.glsl index cd8b75c802..807ddc65fa 100644 --- a/test/ptr_ref/store/param/ptr.spvasm.expected.glsl +++ b/test/ptr_ref/store/param/ptr.spvasm.expected.glsl @@ -18,8 +18,8 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - diff --git a/test/ptr_ref/store/param/ptr.wgsl.expected.glsl b/test/ptr_ref/store/param/ptr.wgsl.expected.glsl index 9e4326c13d..02abe6321d 100644 --- a/test/ptr_ref/store/param/ptr.wgsl.expected.glsl +++ b/test/ptr_ref/store/param/ptr.wgsl.expected.glsl @@ -11,8 +11,8 @@ void tint_symbol() { func(123, i); return; } + void main() { tint_symbol(); } - diff --git a/test/samples/compute_boids.wgsl.expected.glsl b/test/samples/compute_boids.wgsl.expected.glsl index 10299a16b1..e96bfa7610 100644 --- a/test/samples/compute_boids.wgsl.expected.glsl +++ b/test/samples/compute_boids.wgsl.expected.glsl @@ -6,6 +6,7 @@ struct tint_symbol_2 { vec2 a_particleVel; vec2 a_pos; }; + struct tint_symbol_3 { vec4 value; }; @@ -19,10 +20,12 @@ vec4 vert_main_inner(vec2 a_particlePos, vec2 a_particleVel, vec2 a_pos) { struct tint_symbol_4 { vec4 value; }; + struct Particle { vec2 pos; vec2 vel; }; + struct SimParams { float deltaT; float rule1Distance; @@ -32,9 +35,11 @@ struct SimParams { float rule2Scale; float rule3Scale; }; + struct Particles { Particle particles[5]; }; + struct tint_symbol_6 { uvec3 tint_symbol; }; @@ -48,6 +53,8 @@ tint_symbol_3 vert_main(tint_symbol_2 tint_symbol_1) { layout(location = 0) in vec2 a_particlePos; layout(location = 1) in vec2 a_particleVel; layout(location = 2) in vec2 a_pos; + + void main() { tint_symbol_2 inputs; inputs.a_particlePos = a_particlePos; @@ -60,7 +67,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -69,9 +75,11 @@ struct tint_symbol_2 { vec2 a_particleVel; vec2 a_pos; }; + struct tint_symbol_3 { vec4 value; }; + struct tint_symbol_4 { vec4 value; }; @@ -84,6 +92,7 @@ struct Particle { vec2 pos; vec2 vel; }; + struct SimParams { float deltaT; float rule1Distance; @@ -93,9 +102,11 @@ struct SimParams { float rule2Scale; float rule3Scale; }; + struct Particles { Particle particles[5]; }; + struct tint_symbol_6 { uvec3 tint_symbol; }; @@ -107,13 +118,13 @@ tint_symbol_4 frag_main() { return wrapper_result_1; } layout(location = 0) out vec4 value; + void main() { tint_symbol_4 outputs; outputs = frag_main(); value = outputs.value; } - #version 310 es precision mediump float; @@ -122,16 +133,20 @@ struct tint_symbol_2 { vec2 a_particleVel; vec2 a_pos; }; + struct tint_symbol_3 { vec4 value; }; + struct tint_symbol_4 { vec4 value; }; + struct Particle { vec2 pos; vec2 vel; }; + struct SimParams { float deltaT; float rule1Distance; @@ -141,6 +156,7 @@ struct SimParams { float rule2Scale; float rule3Scale; }; + struct Particles { Particle particles[5]; }; @@ -154,13 +170,13 @@ layout(binding = 0) uniform SimParams_1 { float rule2Scale; float rule3Scale; } params; + layout(binding = 1) buffer Particles_1 { Particle particles[5]; } particlesA; layout(binding = 2) buffer Particles_2 { Particle particles[5]; } particlesB; - struct tint_symbol_6 { uvec3 tint_symbol; }; @@ -229,10 +245,11 @@ void comp_main(tint_symbol_6 tint_symbol_5) { comp_main_inner(tint_symbol_5.tint_symbol); return; } + + void main() { tint_symbol_6 inputs; inputs.tint_symbol = gl_GlobalInvocationID; comp_main(inputs); } - diff --git a/test/samples/cube.wgsl.expected.glsl b/test/samples/cube.wgsl.expected.glsl index 67ede84244..4e7e02e2a8 100644 --- a/test/samples/cube.wgsl.expected.glsl +++ b/test/samples/cube.wgsl.expected.glsl @@ -13,14 +13,17 @@ struct VertexInput { vec4 cur_position; vec4 color; }; + struct VertexOutput { vec4 vtxFragColor; vec4 Position; }; + struct tint_symbol_3 { vec4 cur_position; vec4 color; }; + struct tint_symbol_4 { vec4 vtxFragColor; vec4 Position; @@ -36,6 +39,7 @@ VertexOutput vtx_main_inner(VertexInput tint_symbol) { struct tint_symbol_6 { vec4 fragColor; }; + struct tint_symbol_7 { vec4 value; }; @@ -51,6 +55,8 @@ tint_symbol_4 vtx_main(tint_symbol_3 tint_symbol_2) { layout(location = 0) in vec4 cur_position; layout(location = 1) in vec4 color; layout(location = 0) out vec4 vtxFragColor; + + void main() { tint_symbol_3 inputs; inputs.cur_position = cur_position; @@ -63,32 +69,37 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; struct Uniforms { mat4 modelViewProjectionMatrix; }; + struct VertexInput { vec4 cur_position; vec4 color; }; + struct VertexOutput { vec4 vtxFragColor; vec4 Position; }; + struct tint_symbol_3 { vec4 cur_position; vec4 color; }; + struct tint_symbol_4 { vec4 vtxFragColor; vec4 Position; }; + struct tint_symbol_6 { vec4 fragColor; }; + struct tint_symbol_7 { vec4 value; }; @@ -105,6 +116,7 @@ tint_symbol_7 frag_main(tint_symbol_6 tint_symbol_5) { } layout(location = 0) in vec4 fragColor; layout(location = 0) out vec4 value; + void main() { tint_symbol_6 inputs; inputs.fragColor = fragColor; @@ -113,4 +125,3 @@ void main() { value = outputs.value; } - diff --git a/test/samples/function.wgsl.expected.glsl b/test/samples/function.wgsl.expected.glsl index 4a81677d5e..7f72a2a8dd 100644 --- a/test/samples/function.wgsl.expected.glsl +++ b/test/samples/function.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 2, local_size_y = 1, local_size_z = 1) in; void ep() { return; } + void main() { ep(); } - diff --git a/test/samples/simple.wgsl.expected.glsl b/test/samples/simple.wgsl.expected.glsl index 66efb9ee94..d84bf76177 100644 --- a/test/samples/simple.wgsl.expected.glsl +++ b/test/samples/simple.wgsl.expected.glsl @@ -21,10 +21,10 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 value; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); value = outputs.value; } - diff --git a/test/samples/simple_vertex.spvasm.expected.glsl b/test/samples/simple_vertex.spvasm.expected.glsl index 70dfb1821c..818a292e4e 100644 --- a/test/samples/simple_vertex.spvasm.expected.glsl +++ b/test/samples/simple_vertex.spvasm.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); return; @@ -11,6 +10,7 @@ void main_1() { struct main_out { vec4 tint_symbol; }; + struct tint_symbol_2 { vec4 tint_symbol; }; @@ -27,6 +27,8 @@ tint_symbol_2 tint_symbol_1() { wrapper_result.tint_symbol = inner_result.tint_symbol; return wrapper_result; } + + void main() { tint_symbol_2 outputs; outputs = tint_symbol_1(); @@ -35,4 +37,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/samples/triangle.wgsl.expected.glsl b/test/samples/triangle.wgsl.expected.glsl index 8cb735c8d4..012baae0bc 100644 --- a/test/samples/triangle.wgsl.expected.glsl +++ b/test/samples/triangle.wgsl.expected.glsl @@ -2,10 +2,10 @@ precision mediump float; const vec2 pos[3] = vec2[3](vec2(0.0f, 0.5f), vec2(-0.5f, -0.5f), vec2(0.5f, -0.5f)); - struct tint_symbol_1 { uint VertexIndex; }; + struct tint_symbol_2 { vec4 value; }; @@ -24,6 +24,9 @@ tint_symbol_2 vtx_main(tint_symbol_1 tint_symbol) { wrapper_result.value = inner_result; return wrapper_result; } + + + void main() { tint_symbol_1 inputs; inputs.VertexIndex = uint(gl_VertexID); @@ -34,16 +37,17 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; struct tint_symbol_1 { uint VertexIndex; }; + struct tint_symbol_2 { vec4 value; }; + struct tint_symbol_3 { vec4 value; }; @@ -59,10 +63,10 @@ tint_symbol_3 frag_main() { return wrapper_result_1; } layout(location = 0) out vec4 value; + void main() { tint_symbol_3 outputs; outputs = frag_main(); value = outputs.value; } - diff --git a/test/shader_io/compute_input_builtins.wgsl.expected.glsl b/test/shader_io/compute_input_builtins.wgsl.expected.glsl index d69da6d44d..fe53acf08e 100644 --- a/test/shader_io/compute_input_builtins.wgsl.expected.glsl +++ b/test/shader_io/compute_input_builtins.wgsl.expected.glsl @@ -18,6 +18,12 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_invocation_id, tint_symbol_1.local_invocation_index, tint_symbol_1.global_invocation_id, tint_symbol_1.workgroup_id, tint_symbol_1.num_workgroups); return; } + + + + + + void main() { tint_symbol_2 inputs; inputs.local_invocation_id = gl_LocalInvocationID; @@ -28,4 +34,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/shader_io/compute_input_builtins_struct.wgsl.expected.glsl b/test/shader_io/compute_input_builtins_struct.wgsl.expected.glsl index 51de3dad0f..3c72c7823e 100644 --- a/test/shader_io/compute_input_builtins_struct.wgsl.expected.glsl +++ b/test/shader_io/compute_input_builtins_struct.wgsl.expected.glsl @@ -8,6 +8,7 @@ struct ComputeInputs { uvec3 workgroup_id; uvec3 num_workgroups; }; + struct tint_symbol_2 { uvec3 local_invocation_id; uint local_invocation_index; @@ -26,6 +27,12 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_3); return; } + + + + + + void main() { tint_symbol_2 inputs; inputs.local_invocation_id = gl_LocalInvocationID; @@ -36,4 +43,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/shader_io/compute_input_mixed.wgsl.expected.glsl b/test/shader_io/compute_input_mixed.wgsl.expected.glsl index 763d31e104..5ce9f3802d 100644 --- a/test/shader_io/compute_input_mixed.wgsl.expected.glsl +++ b/test/shader_io/compute_input_mixed.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct ComputeInputs0 { uvec3 local_invocation_id; }; + struct ComputeInputs1 { uvec3 workgroup_id; }; + struct tint_symbol_2 { uvec3 local_invocation_id; uint local_invocation_index; @@ -25,6 +27,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_3, tint_symbol_1.local_invocation_index, tint_symbol_1.global_invocation_id, tint_symbol_4); return; } + + + + + void main() { tint_symbol_2 inputs; inputs.local_invocation_id = gl_LocalInvocationID; @@ -34,4 +41,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/shader_io/fragment_input_builtins.wgsl.expected.glsl b/test/shader_io/fragment_input_builtins.wgsl.expected.glsl index cef02b4580..68435f1b9b 100644 --- a/test/shader_io/fragment_input_builtins.wgsl.expected.glsl +++ b/test/shader_io/fragment_input_builtins.wgsl.expected.glsl @@ -21,6 +21,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.position, tint_symbol_1.front_facing, tint_symbol_1.sample_index, tint_symbol_1.sample_mask); return; } + + + + + void main() { tint_symbol_2 inputs; inputs.position = gl_FragCoord; @@ -30,10 +35,9 @@ void main() { tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:31: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:31: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/shader_io/fragment_input_builtins_struct.wgsl.expected.glsl b/test/shader_io/fragment_input_builtins_struct.wgsl.expected.glsl index a7299c14a1..f53cb1185d 100644 --- a/test/shader_io/fragment_input_builtins_struct.wgsl.expected.glsl +++ b/test/shader_io/fragment_input_builtins_struct.wgsl.expected.glsl @@ -9,6 +9,7 @@ struct FragmentInputs { uint sample_index; uint sample_mask; }; + struct tint_symbol_2 { vec4 position; bool front_facing; @@ -28,6 +29,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_3); return; } + + + + + void main() { tint_symbol_2 inputs; inputs.position = gl_FragCoord; @@ -37,10 +43,9 @@ void main() { tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:39: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:39: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/shader_io/fragment_input_locations.wgsl.expected.glsl b/test/shader_io/fragment_input_locations.wgsl.expected.glsl index 8f917962bf..bd55ab7d59 100644 --- a/test/shader_io/fragment_input_locations.wgsl.expected.glsl +++ b/test/shader_io/fragment_input_locations.wgsl.expected.glsl @@ -23,6 +23,7 @@ layout(location = 0) flat in int loc0; layout(location = 1) flat in uint loc1; layout(location = 2) in float loc2; layout(location = 3) in vec4 loc3; + void main() { tint_symbol_2 inputs; inputs.loc0 = loc0; @@ -32,4 +33,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/shader_io/fragment_input_locations_struct.wgsl.expected.glsl b/test/shader_io/fragment_input_locations_struct.wgsl.expected.glsl index a187ac5747..fd2ae1cd13 100644 --- a/test/shader_io/fragment_input_locations_struct.wgsl.expected.glsl +++ b/test/shader_io/fragment_input_locations_struct.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct FragmentInputs { float loc2; vec4 loc3; }; + struct tint_symbol_2 { int loc0; uint loc1; @@ -30,6 +31,7 @@ layout(location = 0) flat in int loc0; layout(location = 1) flat in uint loc1; layout(location = 2) in float loc2; layout(location = 3) in vec4 loc3; + void main() { tint_symbol_2 inputs; inputs.loc0 = loc0; @@ -39,4 +41,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/shader_io/fragment_input_mixed.wgsl.expected.glsl b/test/shader_io/fragment_input_mixed.wgsl.expected.glsl index a8469155c3..b9ecb1cbf4 100644 --- a/test/shader_io/fragment_input_mixed.wgsl.expected.glsl +++ b/test/shader_io/fragment_input_mixed.wgsl.expected.glsl @@ -7,10 +7,12 @@ struct FragmentInputs0 { vec4 position; int loc0; }; + struct FragmentInputs1 { vec4 loc3; uint sample_mask; }; + struct tint_symbol_2 { int loc0; uint loc1; @@ -43,6 +45,11 @@ layout(location = 0) flat in int loc0; layout(location = 1) flat in uint loc1; layout(location = 2) in float loc2; layout(location = 3) in vec4 loc3; + + + + + void main() { tint_symbol_2 inputs; inputs.loc0 = loc0; @@ -56,10 +63,9 @@ void main() { tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:52: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:52: '' : compilation terminated +ERROR: 0:59: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:59: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/shader_io/fragment_output_builtins.wgsl.expected.glsl b/test/shader_io/fragment_output_builtins.wgsl.expected.glsl index b13fd6ab32..5051cbc9ed 100644 --- a/test/shader_io/fragment_output_builtins.wgsl.expected.glsl +++ b/test/shader_io/fragment_output_builtins.wgsl.expected.glsl @@ -21,19 +21,21 @@ tint_symbol main1() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol outputs; outputs = main1(); gl_FragDepth = outputs.value; } - #version 310 es precision mediump float; struct tint_symbol { float value; }; + struct tint_symbol_1 { uint value; }; @@ -48,16 +50,17 @@ tint_symbol_1 main2() { wrapper_result_1.value = inner_result_1; return wrapper_result_1; } + + void main() { tint_symbol_1 outputs; outputs = main2(); gl_SampleMask = outputs.value; } - Error parsing GLSL shader: -ERROR: 0:24: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:24: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/shader_io/fragment_output_builtins_struct.wgsl.expected.glsl b/test/shader_io/fragment_output_builtins_struct.wgsl.expected.glsl index cdfd3fb725..44aa003908 100644 --- a/test/shader_io/fragment_output_builtins_struct.wgsl.expected.glsl +++ b/test/shader_io/fragment_output_builtins_struct.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct FragmentOutputs { float frag_depth; uint sample_mask; }; + struct tint_symbol_1 { float frag_depth; uint sample_mask; @@ -24,6 +25,9 @@ tint_symbol_1 tint_symbol() { wrapper_result.sample_mask = inner_result.sample_mask; return wrapper_result; } + + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -31,10 +35,9 @@ void main() { gl_SampleMask = outputs.sample_mask; } - Error parsing GLSL shader: -ERROR: 0:29: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:29: '' : compilation terminated +ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:33: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/shader_io/fragment_output_locations.wgsl.expected.glsl b/test/shader_io/fragment_output_locations.wgsl.expected.glsl index 74baed1166..a82449b08d 100644 --- a/test/shader_io/fragment_output_locations.wgsl.expected.glsl +++ b/test/shader_io/fragment_output_locations.wgsl.expected.glsl @@ -12,9 +12,11 @@ int main0_inner() { struct tint_symbol_1 { uint value; }; + struct tint_symbol_2 { float value; }; + struct tint_symbol_3 { vec4 value; }; @@ -26,19 +28,20 @@ tint_symbol main0() { return wrapper_result; } layout(location = 0) out int value; + void main() { tint_symbol outputs; outputs = main0(); value = outputs.value; } - #version 310 es precision mediump float; struct tint_symbol { int value; }; + struct tint_symbol_1 { uint value; }; @@ -50,6 +53,7 @@ uint main1_inner() { struct tint_symbol_2 { float value; }; + struct tint_symbol_3 { vec4 value; }; @@ -61,22 +65,24 @@ tint_symbol_1 main1() { return wrapper_result_1; } layout(location = 1) out uint value; + void main() { tint_symbol_1 outputs; outputs = main1(); value = outputs.value; } - #version 310 es precision mediump float; struct tint_symbol { int value; }; + struct tint_symbol_1 { uint value; }; + struct tint_symbol_2 { float value; }; @@ -96,25 +102,28 @@ tint_symbol_2 main2() { return wrapper_result_2; } layout(location = 2) out float value; + void main() { tint_symbol_2 outputs; outputs = main2(); value = outputs.value; } - #version 310 es precision mediump float; struct tint_symbol { int value; }; + struct tint_symbol_1 { uint value; }; + struct tint_symbol_2 { float value; }; + struct tint_symbol_3 { vec4 value; }; @@ -130,10 +139,10 @@ tint_symbol_3 main3() { return wrapper_result_3; } layout(location = 3) out vec4 value; + void main() { tint_symbol_3 outputs; outputs = main3(); value = outputs.value; } - diff --git a/test/shader_io/fragment_output_locations_struct.wgsl.expected.glsl b/test/shader_io/fragment_output_locations_struct.wgsl.expected.glsl index 76a61711e2..05914adc24 100644 --- a/test/shader_io/fragment_output_locations_struct.wgsl.expected.glsl +++ b/test/shader_io/fragment_output_locations_struct.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct FragmentOutputs { float loc2; vec4 loc3; }; + struct tint_symbol_1 { int loc0; uint loc1; @@ -32,6 +33,7 @@ layout(location = 0) out int loc0; layout(location = 1) out uint loc1; layout(location = 2) out float loc2; layout(location = 3) out vec4 loc3; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -41,4 +43,3 @@ void main() { loc3 = outputs.loc3; } - diff --git a/test/shader_io/fragment_output_mixed.wgsl.expected.glsl b/test/shader_io/fragment_output_mixed.wgsl.expected.glsl index d6ae60432a..8bc4c9f9d4 100644 --- a/test/shader_io/fragment_output_mixed.wgsl.expected.glsl +++ b/test/shader_io/fragment_output_mixed.wgsl.expected.glsl @@ -11,6 +11,7 @@ struct FragmentOutputs { uint sample_mask; vec4 loc3; }; + struct tint_symbol_1 { int loc0; uint loc1; @@ -40,6 +41,9 @@ layout(location = 0) out int loc0; layout(location = 1) out uint loc1; layout(location = 2) out float loc2; layout(location = 3) out vec4 loc3; + + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -51,10 +55,9 @@ void main() { gl_SampleMask = outputs.sample_mask; } - Error parsing GLSL shader: -ERROR: 0:49: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:49: '' : compilation terminated +ERROR: 0:53: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:53: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/shader_io/interpolate_input_parameters.wgsl.expected.glsl b/test/shader_io/interpolate_input_parameters.wgsl.expected.glsl index b02bb3495f..39a7ae95ec 100644 --- a/test/shader_io/interpolate_input_parameters.wgsl.expected.glsl +++ b/test/shader_io/interpolate_input_parameters.wgsl.expected.glsl @@ -27,6 +27,7 @@ layout(location = 4) in float perspective_sample; layout(location = 5) in float linear_center; layout(location = 6) centroid in float linear_centroid; layout(location = 7) in float linear_sample; + void main() { tint_symbol_3 inputs; inputs.none = none; @@ -40,4 +41,3 @@ void main() { tint_symbol(inputs); } - diff --git a/test/shader_io/interpolate_input_struct.wgsl.expected.glsl b/test/shader_io/interpolate_input_struct.wgsl.expected.glsl index b4ebc59696..7c062cd966 100644 --- a/test/shader_io/interpolate_input_struct.wgsl.expected.glsl +++ b/test/shader_io/interpolate_input_struct.wgsl.expected.glsl @@ -11,6 +11,7 @@ struct In { float linear_centroid; float linear_sample; }; + struct tint_symbol_4 { float none; float tint_symbol; @@ -38,6 +39,7 @@ layout(location = 4) in float perspective_sample; layout(location = 5) in float linear_center; layout(location = 6) centroid in float linear_centroid; layout(location = 7) in float linear_sample; + void main() { tint_symbol_4 inputs; inputs.none = none; @@ -51,4 +53,3 @@ void main() { tint_symbol_1(inputs); } - diff --git a/test/shader_io/interpolate_integers.wgsl.expected.glsl b/test/shader_io/interpolate_integers.wgsl.expected.glsl index 3edb32475b..d6abebfcab 100644 --- a/test/shader_io/interpolate_integers.wgsl.expected.glsl +++ b/test/shader_io/interpolate_integers.wgsl.expected.glsl @@ -8,6 +8,7 @@ struct Interface { uvec4 vu; vec4 pos; }; + struct tint_symbol { int i; uint u; @@ -28,6 +29,7 @@ struct tint_symbol_2 { uvec4 vu; vec4 pos; }; + struct tint_symbol_3 { int value; }; @@ -46,6 +48,8 @@ layout(location = 0) flat out int i; layout(location = 1) flat out uint u; layout(location = 2) flat out ivec4 vi; layout(location = 3) flat out uvec4 vu; + + void main() { tint_symbol outputs; outputs = vert_main(); @@ -58,7 +62,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -69,6 +72,7 @@ struct Interface { uvec4 vu; vec4 pos; }; + struct tint_symbol { int i; uint u; @@ -76,6 +80,7 @@ struct tint_symbol { uvec4 vu; vec4 pos; }; + struct tint_symbol_2 { int i; uint u; @@ -83,6 +88,7 @@ struct tint_symbol_2 { uvec4 vu; vec4 pos; }; + struct tint_symbol_3 { int value; }; @@ -102,7 +108,9 @@ layout(location = 0) flat in int i; layout(location = 1) flat in uint u; layout(location = 2) flat in ivec4 vi; layout(location = 3) flat in uvec4 vu; + layout(location = 0) out int value; + void main() { tint_symbol_2 inputs; inputs.i = i; @@ -115,4 +123,3 @@ void main() { value = outputs.value; } - diff --git a/test/shader_io/interpolate_return_struct.wgsl.expected.glsl b/test/shader_io/interpolate_return_struct.wgsl.expected.glsl index 0b52495180..27a4b0f3f6 100644 --- a/test/shader_io/interpolate_return_struct.wgsl.expected.glsl +++ b/test/shader_io/interpolate_return_struct.wgsl.expected.glsl @@ -12,6 +12,7 @@ struct Out { float linear_centroid; float linear_sample; }; + struct tint_symbol_2 { float none; float tint_symbol; @@ -51,6 +52,8 @@ layout(location = 4) out float perspective_sample; layout(location = 5) out float linear_center; layout(location = 6) centroid out float linear_centroid; layout(location = 7) out float linear_sample; + + void main() { tint_symbol_2 outputs; outputs = tint_symbol_1(); @@ -67,4 +70,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/invariant.wgsl.expected.glsl b/test/shader_io/invariant.wgsl.expected.glsl index 88d2c062cc..e80be2cce1 100644 --- a/test/shader_io/invariant.wgsl.expected.glsl +++ b/test/shader_io/invariant.wgsl.expected.glsl @@ -15,6 +15,8 @@ tint_symbol_1 tint_symbol() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -23,4 +25,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/invariant_struct_member.wgsl.expected.glsl b/test/shader_io/invariant_struct_member.wgsl.expected.glsl index b660e74f8e..df27cb03a4 100644 --- a/test/shader_io/invariant_struct_member.wgsl.expected.glsl +++ b/test/shader_io/invariant_struct_member.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Out { vec4 pos; }; + struct tint_symbol_1 { vec4 pos; }; @@ -19,6 +20,8 @@ tint_symbol_1 tint_symbol() { wrapper_result.pos = inner_result.pos; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -27,4 +30,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/shared_struct_different_stages.wgsl.expected.glsl b/test/shader_io/shared_struct_different_stages.wgsl.expected.glsl index d9b62a4367..5ca3021db1 100644 --- a/test/shader_io/shared_struct_different_stages.wgsl.expected.glsl +++ b/test/shader_io/shared_struct_different_stages.wgsl.expected.glsl @@ -6,6 +6,7 @@ struct Interface { float col2; vec4 pos; }; + struct tint_symbol { float col1; float col2; @@ -33,6 +34,8 @@ tint_symbol vert_main() { } layout(location = 1) out float col1; layout(location = 2) out float col2; + + void main() { tint_symbol outputs; outputs = vert_main(); @@ -43,7 +46,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -52,11 +54,13 @@ struct Interface { float col2; vec4 pos; }; + struct tint_symbol { float col1; float col2; vec4 pos; }; + struct tint_symbol_2 { float col1; float col2; @@ -75,6 +79,8 @@ void frag_main(tint_symbol_2 tint_symbol_1) { } layout(location = 1) in float col1; layout(location = 2) in float col2; + + void main() { tint_symbol_2 inputs; inputs.col1 = col1; @@ -83,4 +89,3 @@ void main() { frag_main(inputs); } - diff --git a/test/shader_io/shared_struct_helper_function.wgsl.expected.glsl b/test/shader_io/shared_struct_helper_function.wgsl.expected.glsl index 4af4489c5b..aea561ab04 100644 --- a/test/shader_io/shared_struct_helper_function.wgsl.expected.glsl +++ b/test/shader_io/shared_struct_helper_function.wgsl.expected.glsl @@ -33,6 +33,8 @@ tint_symbol vert_main1() { return wrapper_result; } layout(location = 0) flat out int loc0; + + void main() { tint_symbol outputs; outputs = vert_main1(); @@ -42,7 +44,6 @@ void main() { gl_Position.y = -gl_Position.y; } - #version 310 es precision mediump float; @@ -60,6 +61,7 @@ struct tint_symbol { int loc0; vec4 pos; }; + struct tint_symbol_1 { int loc0; vec4 pos; @@ -77,6 +79,8 @@ tint_symbol_1 vert_main2() { return wrapper_result_1; } layout(location = 0) flat out int loc0; + + void main() { tint_symbol_1 outputs; outputs = vert_main2(); @@ -86,4 +90,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/shared_struct_storage_buffer.wgsl.expected.glsl b/test/shader_io/shared_struct_storage_buffer.wgsl.expected.glsl index b8b01eb7be..25f66459ab 100644 --- a/test/shader_io/shared_struct_storage_buffer.wgsl.expected.glsl +++ b/test/shader_io/shared_struct_storage_buffer.wgsl.expected.glsl @@ -14,7 +14,6 @@ layout(binding = 0) buffer S_1 { uint u; vec4 v; } tint_symbol; - struct tint_symbol_3 { float f; uint u; @@ -35,6 +34,8 @@ void frag_main(tint_symbol_3 tint_symbol_2) { } layout(location = 0) in float f; layout(location = 1) flat in uint u; + + void main() { tint_symbol_3 inputs; inputs.f = f; @@ -43,10 +44,9 @@ void main() { frag_main(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'assign' : cannot convert from ' in structure{ global mediump float f, global mediump uint u, global mediump 4-component vector of float v}' to 'layout( binding=0 column_major shared) buffer block{layout( column_major shared) buffer mediump float f, layout( column_major shared) buffer mediump uint u, layout( column_major shared) buffer mediump 4-component vector of float v}' -ERROR: 0:26: '' : compilation terminated +ERROR: 0:25: 'assign' : cannot convert from ' in structure{ global mediump float f, global mediump uint u, global mediump 4-component vector of float v}' to 'layout( binding=0 column_major shared) buffer block{layout( column_major shared) buffer mediump float f, layout( column_major shared) buffer mediump uint u, layout( column_major shared) buffer mediump 4-component vector of float v}' +ERROR: 0:25: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/shader_io/vertex_input_builtins.wgsl.expected.glsl b/test/shader_io/vertex_input_builtins.wgsl.expected.glsl index 50db3c7660..5fc5936ff4 100644 --- a/test/shader_io/vertex_input_builtins.wgsl.expected.glsl +++ b/test/shader_io/vertex_input_builtins.wgsl.expected.glsl @@ -5,6 +5,7 @@ struct tint_symbol_2 { uint vertex_index; uint instance_index; }; + struct tint_symbol_3 { vec4 value; }; @@ -20,6 +21,10 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { wrapper_result.value = inner_result; return wrapper_result; } + + + + void main() { tint_symbol_2 inputs; inputs.vertex_index = uint(gl_VertexID); @@ -31,4 +36,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/vertex_input_builtins_struct.wgsl.expected.glsl b/test/shader_io/vertex_input_builtins_struct.wgsl.expected.glsl index 88c758b91f..159c575144 100644 --- a/test/shader_io/vertex_input_builtins_struct.wgsl.expected.glsl +++ b/test/shader_io/vertex_input_builtins_struct.wgsl.expected.glsl @@ -5,10 +5,12 @@ struct VertexInputs { uint vertex_index; uint instance_index; }; + struct tint_symbol_2 { uint vertex_index; uint instance_index; }; + struct tint_symbol_3 { vec4 value; }; @@ -25,6 +27,10 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { wrapper_result.value = inner_result; return wrapper_result; } + + + + void main() { tint_symbol_2 inputs; inputs.vertex_index = uint(gl_VertexID); @@ -36,4 +42,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/vertex_input_locations.wgsl.expected.glsl b/test/shader_io/vertex_input_locations.wgsl.expected.glsl index be35fad21b..ff2bf50f12 100644 --- a/test/shader_io/vertex_input_locations.wgsl.expected.glsl +++ b/test/shader_io/vertex_input_locations.wgsl.expected.glsl @@ -7,6 +7,7 @@ struct tint_symbol_2 { float loc2; vec4 loc3; }; + struct tint_symbol_3 { vec4 value; }; @@ -29,6 +30,8 @@ layout(location = 0) in int loc0; layout(location = 1) in uint loc1; layout(location = 2) in float loc2; layout(location = 3) in vec4 loc3; + + void main() { tint_symbol_2 inputs; inputs.loc0 = loc0; @@ -42,4 +45,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/vertex_input_locations_struct.wgsl.expected.glsl b/test/shader_io/vertex_input_locations_struct.wgsl.expected.glsl index 7f77780311..ba1db5d73d 100644 --- a/test/shader_io/vertex_input_locations_struct.wgsl.expected.glsl +++ b/test/shader_io/vertex_input_locations_struct.wgsl.expected.glsl @@ -7,12 +7,14 @@ struct VertexInputs { float loc2; vec4 loc3; }; + struct tint_symbol_2 { int loc0; uint loc1; float loc2; vec4 loc3; }; + struct tint_symbol_3 { vec4 value; }; @@ -36,6 +38,8 @@ layout(location = 0) in int loc0; layout(location = 1) in uint loc1; layout(location = 2) in float loc2; layout(location = 3) in vec4 loc3; + + void main() { tint_symbol_2 inputs; inputs.loc0 = loc0; @@ -49,4 +53,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/vertex_input_mixed.wgsl.expected.glsl b/test/shader_io/vertex_input_mixed.wgsl.expected.glsl index 8feb18805d..29796379dc 100644 --- a/test/shader_io/vertex_input_mixed.wgsl.expected.glsl +++ b/test/shader_io/vertex_input_mixed.wgsl.expected.glsl @@ -5,10 +5,12 @@ struct VertexInputs0 { uint vertex_index; int loc0; }; + struct VertexInputs1 { float loc2; vec4 loc3; }; + struct tint_symbol_2 { int loc0; uint loc1; @@ -17,6 +19,7 @@ struct tint_symbol_2 { uint vertex_index; uint instance_index; }; + struct tint_symbol_3 { vec4 value; }; @@ -42,6 +45,10 @@ layout(location = 0) in int loc0; layout(location = 1) in uint loc1; layout(location = 2) in float loc2; layout(location = 3) in vec4 loc3; + + + + void main() { tint_symbol_2 inputs; inputs.loc0 = loc0; @@ -57,4 +64,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/vertex_output_builtins.wgsl.expected.glsl b/test/shader_io/vertex_output_builtins.wgsl.expected.glsl index 78e2a3f7d3..b963e6200d 100644 --- a/test/shader_io/vertex_output_builtins.wgsl.expected.glsl +++ b/test/shader_io/vertex_output_builtins.wgsl.expected.glsl @@ -15,6 +15,8 @@ tint_symbol_1 tint_symbol() { wrapper_result.value = inner_result; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -23,4 +25,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/vertex_output_builtins_struct.wgsl.expected.glsl b/test/shader_io/vertex_output_builtins_struct.wgsl.expected.glsl index 07d7a0927a..5206366ce1 100644 --- a/test/shader_io/vertex_output_builtins_struct.wgsl.expected.glsl +++ b/test/shader_io/vertex_output_builtins_struct.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct VertexOutputs { vec4 position; }; + struct tint_symbol_1 { vec4 position; }; @@ -19,6 +20,8 @@ tint_symbol_1 tint_symbol() { wrapper_result.position = inner_result.position; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -27,4 +30,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shader_io/vertex_output_locations_struct.wgsl.expected.glsl b/test/shader_io/vertex_output_locations_struct.wgsl.expected.glsl index cd514d6e1d..a1f89aeb8f 100644 --- a/test/shader_io/vertex_output_locations_struct.wgsl.expected.glsl +++ b/test/shader_io/vertex_output_locations_struct.wgsl.expected.glsl @@ -8,6 +8,7 @@ struct VertexOutputs { vec4 loc3; vec4 position; }; + struct tint_symbol_1 { int loc0; uint loc1; @@ -35,6 +36,8 @@ layout(location = 0) flat out int loc0; layout(location = 1) flat out uint loc1; layout(location = 2) out float loc2; layout(location = 3) out vec4 loc3; + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); @@ -47,4 +50,3 @@ void main() { gl_Position.y = -gl_Position.y; } - diff --git a/test/shadowing/alias/let.wgsl.expected.glsl b/test/shadowing/alias/let.wgsl.expected.glsl index 15c71a7a20..f084e64d54 100644 --- a/test/shadowing/alias/let.wgsl.expected.glsl +++ b/test/shadowing/alias/let.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { { int a_1 = 0; @@ -19,3 +18,4 @@ void f() { int a_2 = 0; int b = a_2; } + diff --git a/test/shadowing/alias/param.wgsl.expected.glsl b/test/shadowing/alias/param.wgsl.expected.glsl index cd776caf18..b685a99857 100644 --- a/test/shadowing/alias/param.wgsl.expected.glsl +++ b/test/shadowing/alias/param.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f(int a_1) { int b = a_1; } + diff --git a/test/shadowing/alias/var.wgsl.expected.glsl b/test/shadowing/alias/var.wgsl.expected.glsl index 15c71a7a20..f084e64d54 100644 --- a/test/shadowing/alias/var.wgsl.expected.glsl +++ b/test/shadowing/alias/var.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { { int a_1 = 0; @@ -19,3 +18,4 @@ void f() { int a_2 = 0; int b = a_2; } + diff --git a/test/shadowing/function/let.wgsl.expected.glsl b/test/shadowing/function/let.wgsl.expected.glsl index 89ec7f6c73..ad0de52784 100644 --- a/test/shadowing/function/let.wgsl.expected.glsl +++ b/test/shadowing/function/let.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void a() { { int a_1 = 1; @@ -18,3 +17,4 @@ void a() { } int b = 1; } + diff --git a/test/shadowing/function/param.wgsl.expected.glsl b/test/shadowing/function/param.wgsl.expected.glsl index cdaca56a26..00ac116389 100644 --- a/test/shadowing/function/param.wgsl.expected.glsl +++ b/test/shadowing/function/param.wgsl.expected.glsl @@ -5,12 +5,12 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void a(int a_1) { int b = a_1; } + diff --git a/test/shadowing/function/var.wgsl.expected.glsl b/test/shadowing/function/var.wgsl.expected.glsl index 4ed4b3dbdd..6b283c8a08 100644 --- a/test/shadowing/function/var.wgsl.expected.glsl +++ b/test/shadowing/function/var.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct a { int a; }; @@ -23,3 +22,4 @@ void f() { a a_2 = a(0); a b = a_2; } + diff --git a/test/shadowing/param/function.wgsl.expected.glsl b/test/shadowing/param/function.wgsl.expected.glsl index 483ebcc76c..3a4f23ebf2 100644 --- a/test/shadowing/param/function.wgsl.expected.glsl +++ b/test/shadowing/param/function.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void a(int a_1) { { int a_2 = a_1; int b = a_2; } } + diff --git a/test/shadowing/param/let.wgsl.expected.glsl b/test/shadowing/param/let.wgsl.expected.glsl index b267040965..6c7a3b5d82 100644 --- a/test/shadowing/param/let.wgsl.expected.glsl +++ b/test/shadowing/param/let.wgsl.expected.glsl @@ -5,14 +5,14 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f(int a) { { int b = a; } } + diff --git a/test/shadowing/param/var.wgsl.expected.glsl b/test/shadowing/param/var.wgsl.expected.glsl index 1cabf9bdb1..fc665c4bbe 100644 --- a/test/shadowing/param/var.wgsl.expected.glsl +++ b/test/shadowing/param/var.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f(int a) { { int a_1 = a; int b = a_1; } } + diff --git a/test/shadowing/struct/let.wgsl.expected.glsl b/test/shadowing/struct/let.wgsl.expected.glsl index 4ed4b3dbdd..6b283c8a08 100644 --- a/test/shadowing/struct/let.wgsl.expected.glsl +++ b/test/shadowing/struct/let.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct a { int a; }; @@ -23,3 +22,4 @@ void f() { a a_2 = a(0); a b = a_2; } + diff --git a/test/shadowing/struct/param.wgsl.expected.glsl b/test/shadowing/struct/param.wgsl.expected.glsl index 0a9a3e77f5..e039dded5a 100644 --- a/test/shadowing/struct/param.wgsl.expected.glsl +++ b/test/shadowing/struct/param.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct a { int a; }; @@ -18,3 +17,4 @@ struct a { void f(a a_1) { a b = a_1; } + diff --git a/test/shadowing/struct/var.wgsl.expected.glsl b/test/shadowing/struct/var.wgsl.expected.glsl index 4ed4b3dbdd..6b283c8a08 100644 --- a/test/shadowing/struct/var.wgsl.expected.glsl +++ b/test/shadowing/struct/var.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct a { int a; }; @@ -23,3 +22,4 @@ void f() { a a_2 = a(0); a b = a_2; } + diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.glsl index 699277670c..a66dfcdaca 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8]; }; @@ -26,8 +28,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.glsl index c44c2ac388..4b6e2b5ea8 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8]; }; @@ -26,8 +28,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.glsl index f7baafeafc..ae870ac8a8 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8]; }; @@ -26,8 +28,8 @@ void tint_symbol() { } return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.glsl index b1f3cbb65f..6f268589af 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.glsl @@ -5,18 +5,20 @@ struct Uniforms { uint i; uint j; }; + struct InnerS { int v; }; + struct S1 { InnerS a2[8]; }; + struct OuterS { S1 a1[8]; }; uint nextIndex = 0u; - uint getNextIndex() { nextIndex = (nextIndex + 1u); return nextIndex; @@ -34,8 +36,8 @@ void tint_symbol() { s.a1[getNextIndex()].a2[uniforms.j] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.glsl index 996e147d23..3a11502990 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8]; }; @@ -22,8 +24,8 @@ void tint_symbol() { s1.a1[uniforms.i] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.glsl index 5d6ab47cb8..5a6cc5e985 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.glsl @@ -5,9 +5,11 @@ struct Uniforms { uint i; uint j; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8][8]; }; @@ -24,8 +26,8 @@ void tint_symbol() { s1.a1[uniforms.i][uniforms.j] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.glsl index 5658ddc01f..7501db286d 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.glsl @@ -4,12 +4,15 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct S1 { InnerS s2; }; + struct OuterS { S1 a1[8]; }; @@ -25,8 +28,8 @@ void tint_symbol() { s1.a1[uniforms.i].s2 = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.glsl index 0fa9785eb2..ac27dfdc1b 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.glsl @@ -5,12 +5,15 @@ struct Uniforms { uint i; uint j; }; + struct InnerS { int v; }; + struct S1 { InnerS a2[8]; }; + struct OuterS { S1 a1[8]; }; @@ -27,8 +30,8 @@ void tint_symbol() { s.a1[uniforms.i].a2[uniforms.j] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.glsl index 67fe10ca51..4d78cf61df 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; @@ -11,18 +12,18 @@ struct InnerS { layout(binding = 4) uniform Uniforms_1 { uint i; } uniforms; + layout(binding = 0) buffer OuterS_1 { InnerS a1[]; } s1; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { InnerS v = InnerS(0); s1.a1[uniforms.i] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.glsl index 97a4c656fd..f31f4e560d 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.glsl @@ -5,9 +5,11 @@ struct Uniforms { uint i; uint j; }; + struct InnerS { int v; }; + struct S1 { InnerS a2[8]; }; @@ -16,18 +18,18 @@ layout(binding = 4) uniform Uniforms_1 { uint i; uint j; } uniforms; + layout(binding = 0) buffer OuterS_1 { S1 a1[]; } s; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { InnerS v = InnerS(0); s.a1[uniforms.i].a2[uniforms.j] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.glsl index 1313d626ea..e950c13ad9 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Uniforms { uint i; }; + struct OuterS { mat2x4 m1; }; @@ -19,8 +20,8 @@ void tint_symbol() { s1.m1[uniforms.i][uniforms.i] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.glsl index 875997689a..f1183be611 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8]; InnerS a2[8]; @@ -24,8 +26,8 @@ void tint_symbol() { s1.a2[uniforms.i] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.glsl index e29c830c3a..9a696fbdf2 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.glsl @@ -4,12 +4,15 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct S1 { InnerS a[8]; }; + struct OuterS { S1 s2; }; @@ -25,8 +28,8 @@ void tint_symbol() { s1.s2.a[uniforms.i] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.glsl index 6b944b0913..d3ceff4598 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Uniforms { uint i; }; + struct OuterS { vec3 v1; }; @@ -18,8 +19,8 @@ void tint_symbol() { s1.v1[uniforms.i] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.glsl index 46da3d60ae..e6f7d4305c 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct Uniforms { uint i; }; + struct OuterS { uint a1[8]; }; @@ -24,8 +25,8 @@ void tint_symbol() { v[f(s1.a1[uniforms.i])] = 1.0f; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.glsl index 9a01505507..5f8a2aa753 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8]; }; @@ -23,8 +25,8 @@ void tint_symbol() { s1.a1[p_save] = v; return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.glsl b/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.glsl index 093159ea8a..c9b611c8b1 100644 --- a/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.glsl +++ b/test/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.glsl @@ -4,9 +4,11 @@ precision mediump float; struct Uniforms { uint i; }; + struct InnerS { int v; }; + struct OuterS { InnerS a1[8]; }; @@ -26,8 +28,8 @@ void tint_symbol() { f(s1); return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/phony/addr_of_non_constructable.wgsl.expected.glsl b/test/statements/assign/phony/addr_of_non_constructable.wgsl.expected.glsl index 08f6bb5be9..425e6a45c4 100644 --- a/test/statements/assign/phony/addr_of_non_constructable.wgsl.expected.glsl +++ b/test/statements/assign/phony/addr_of_non_constructable.wgsl.expected.glsl @@ -1,17 +1,15 @@ #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() { return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/phony/addr_of_runtime_array.wgsl.expected.glsl b/test/statements/assign/phony/addr_of_runtime_array.wgsl.expected.glsl index 08f6bb5be9..425e6a45c4 100644 --- a/test/statements/assign/phony/addr_of_runtime_array.wgsl.expected.glsl +++ b/test/statements/assign/phony/addr_of_runtime_array.wgsl.expected.glsl @@ -1,17 +1,15 @@ #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() { return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/phony/call.wgsl.expected.glsl b/test/statements/assign/phony/call.wgsl.expected.glsl index 777f22252a..2d825c68f8 100644 --- a/test/statements/assign/phony/call.wgsl.expected.glsl +++ b/test/statements/assign/phony/call.wgsl.expected.glsl @@ -10,8 +10,8 @@ void tint_symbol() { f(1, 2, 3); return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/phony/multiple_side_effects.wgsl.expected.glsl b/test/statements/assign/phony/multiple_side_effects.wgsl.expected.glsl index a1fc4c9e5e..e615282a67 100644 --- a/test/statements/assign/phony/multiple_side_effects.wgsl.expected.glsl +++ b/test/statements/assign/phony/multiple_side_effects.wgsl.expected.glsl @@ -13,8 +13,8 @@ void tint_symbol() { phony_sink(f(1, 2, 3), f(4, 5, 6), f(7, f(8, 9, 10), 11)); return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/phony/storage_buffer.wgsl.expected.glsl b/test/statements/assign/phony/storage_buffer.wgsl.expected.glsl index 2dd86379d1..1e69b6965a 100644 --- a/test/statements/assign/phony/storage_buffer.wgsl.expected.glsl +++ b/test/statements/assign/phony/storage_buffer.wgsl.expected.glsl @@ -8,13 +8,12 @@ struct S { 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() { return; } + void main() { tint_symbol(); } - diff --git a/test/statements/assign/phony/uniform_buffer.wgsl.expected.glsl b/test/statements/assign/phony/uniform_buffer.wgsl.expected.glsl index 838f917e2f..709afc7ba7 100644 --- a/test/statements/assign/phony/uniform_buffer.wgsl.expected.glsl +++ b/test/statements/assign/phony/uniform_buffer.wgsl.expected.glsl @@ -13,8 +13,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/statements/for/basic.wgsl.expected.glsl b/test/statements/for/basic.wgsl.expected.glsl index 7459c6b1a4..b76e0d45ec 100644 --- a/test/statements/for/basic.wgsl.expected.glsl +++ b/test/statements/for/basic.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void some_loop_body() { } @@ -21,3 +20,4 @@ void f() { } } } + diff --git a/test/statements/for/complex.wgsl.expected.glsl b/test/statements/for/complex.wgsl.expected.glsl index 96191a7d24..14f0d9f268 100644 --- a/test/statements/for/complex.wgsl.expected.glsl +++ b/test/statements/for/complex.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void some_loop_body() { } @@ -30,3 +29,4 @@ void f() { } } } + diff --git a/test/statements/for/condition/array_ctor.wgsl.expected.glsl b/test/statements/for/condition/array_ctor.wgsl.expected.glsl index 07cdfb759f..0bf1e030f6 100644 --- a/test/statements/for/condition/array_ctor.wgsl.expected.glsl +++ b/test/statements/for/condition/array_ctor.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int i = 0; while (true) { @@ -20,3 +19,4 @@ void f() { } } } + diff --git a/test/statements/for/condition/basic.wgsl.expected.glsl b/test/statements/for/condition/basic.wgsl.expected.glsl index 640d2bb5be..fb35e67248 100644 --- a/test/statements/for/condition/basic.wgsl.expected.glsl +++ b/test/statements/for/condition/basic.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int i = 0; { @@ -18,3 +17,4 @@ void f() { } } } + diff --git a/test/statements/for/condition/struct_ctor.wgsl.expected.glsl b/test/statements/for/condition/struct_ctor.wgsl.expected.glsl index 8ae3445c9f..10033aa54f 100644 --- a/test/statements/for/condition/struct_ctor.wgsl.expected.glsl +++ b/test/statements/for/condition/struct_ctor.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { int i; }; @@ -24,3 +23,4 @@ void f() { } } } + diff --git a/test/statements/for/continuing/array_ctor.wgsl.expected.glsl b/test/statements/for/continuing/array_ctor.wgsl.expected.glsl index 4269ffe512..35bd624d43 100644 --- a/test/statements/for/continuing/array_ctor.wgsl.expected.glsl +++ b/test/statements/for/continuing/array_ctor.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int i = 0; while (true) { @@ -23,3 +22,4 @@ void f() { } } } + diff --git a/test/statements/for/continuing/basic.wgsl.expected.glsl b/test/statements/for/continuing/basic.wgsl.expected.glsl index 61e828e02e..812cf5c664 100644 --- a/test/statements/for/continuing/basic.wgsl.expected.glsl +++ b/test/statements/for/continuing/basic.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int i = 0; { @@ -18,3 +17,4 @@ void f() { } } } + diff --git a/test/statements/for/continuing/struct_ctor.wgsl.expected.glsl b/test/statements/for/continuing/struct_ctor.wgsl.expected.glsl index 768964e81d..89e6829be5 100644 --- a/test/statements/for/continuing/struct_ctor.wgsl.expected.glsl +++ b/test/statements/for/continuing/struct_ctor.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { int i; }; @@ -29,3 +28,4 @@ void f() { } } } + diff --git a/test/statements/for/empty.wgsl.expected.glsl b/test/statements/for/empty.wgsl.expected.glsl index 943d71e3f1..65c9bf36c1 100644 --- a/test/statements/for/empty.wgsl.expected.glsl +++ b/test/statements/for/empty.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { { for(; false; ) { } } } + diff --git a/test/statements/for/initializer/array_ctor.wgsl.expected.glsl b/test/statements/for/initializer/array_ctor.wgsl.expected.glsl index 4ce3c59212..f91ffbf615 100644 --- a/test/statements/for/initializer/array_ctor.wgsl.expected.glsl +++ b/test/statements/for/initializer/array_ctor.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { int tint_symbol[1] = int[1](1); { @@ -18,3 +17,4 @@ void f() { } } } + diff --git a/test/statements/for/initializer/basic.wgsl.expected.glsl b/test/statements/for/initializer/basic.wgsl.expected.glsl index ff1d58f83d..f65c124346 100644 --- a/test/statements/for/initializer/basic.wgsl.expected.glsl +++ b/test/statements/for/initializer/basic.wgsl.expected.glsl @@ -5,15 +5,15 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { { for(int i = 0; false; ) { } } } + diff --git a/test/statements/for/initializer/struct_ctor.wgsl.expected.glsl b/test/statements/for/initializer/struct_ctor.wgsl.expected.glsl index 39e137a813..330a47c5d4 100644 --- a/test/statements/for/initializer/struct_ctor.wgsl.expected.glsl +++ b/test/statements/for/initializer/struct_ctor.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - struct S { int i; }; @@ -22,3 +21,4 @@ void f() { } } } + diff --git a/test/statements/for/scoping.wgsl.expected.glsl b/test/statements/for/scoping.wgsl.expected.glsl index 1c8d750463..3d8df6a180 100644 --- a/test/statements/for/scoping.wgsl.expected.glsl +++ b/test/statements/for/scoping.wgsl.expected.glsl @@ -5,12 +5,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void unused_entry_point() { return; } + void main() { unused_entry_point(); } - - void f() { { for(int must_not_collide = 0; ; ) { @@ -19,3 +18,4 @@ void f() { } int must_not_collide = 0; } + diff --git a/test/statements/switch/common.wgsl.expected.glsl b/test/statements/switch/common.wgsl.expected.glsl index 745034882b..c0345aa4ca 100644 --- a/test/statements/switch/common.wgsl.expected.glsl +++ b/test/statements/switch/common.wgsl.expected.glsl @@ -25,8 +25,8 @@ void f() { } return; } + void main() { f(); } - diff --git a/test/statements/switch/fallthrough.wgsl.expected.glsl b/test/statements/switch/fallthrough.wgsl.expected.glsl index 6302c003b6..f5215bf4e9 100644 --- a/test/statements/switch/fallthrough.wgsl.expected.glsl +++ b/test/statements/switch/fallthrough.wgsl.expected.glsl @@ -14,8 +14,8 @@ void f() { } return; } + void main() { f(); } - diff --git a/test/statements/switch/only_default_case.wgsl.expected.glsl b/test/statements/switch/only_default_case.wgsl.expected.glsl index 029765cd4c..e1cb68be46 100644 --- a/test/statements/switch/only_default_case.wgsl.expected.glsl +++ b/test/statements/switch/only_default_case.wgsl.expected.glsl @@ -13,8 +13,8 @@ void f() { } return; } + void main() { f(); } - diff --git a/test/struct/type_constructor.wgsl.expected.glsl b/test/struct/type_constructor.wgsl.expected.glsl index be5a089130..f32e92ee2d 100644 --- a/test/struct/type_constructor.wgsl.expected.glsl +++ b/test/struct/type_constructor.wgsl.expected.glsl @@ -7,15 +7,18 @@ struct S1 { int c; int d; }; + struct S2 { int e; S1 f; }; + struct S3 { int g; S1 h; S2 i; }; + struct T { int a[2]; }; @@ -59,8 +62,8 @@ void tint_symbol() { T aosoa_nonempty_with_expr[2] = T[2](tint_symbol_19, aosoa_nonempty[1]); return; } + void main() { tint_symbol(); } - diff --git a/test/types/function_scope_declarations.wgsl.expected.glsl b/test/types/function_scope_declarations.wgsl.expected.glsl index adf62b7a88..735d21526a 100644 --- a/test/types/function_scope_declarations.wgsl.expected.glsl +++ b/test/types/function_scope_declarations.wgsl.expected.glsl @@ -29,8 +29,8 @@ void tint_symbol() { S struct_let = S(0.0f); return; } + void main() { tint_symbol(); } - diff --git a/test/types/function_scope_var_conversions.wgsl.expected.glsl b/test/types/function_scope_var_conversions.wgsl.expected.glsl index 088c30bfeb..b42e9ae4bc 100644 --- a/test/types/function_scope_var_conversions.wgsl.expected.glsl +++ b/test/types/function_scope_var_conversions.wgsl.expected.glsl @@ -26,8 +26,8 @@ void tint_symbol() { bvec4 v4bool_var5 = bvec4(bvec2(vec2(123.0f, 0.0f)), bvec2(true, bool(float(0.0f)))); return; } + void main() { tint_symbol(); } - diff --git a/test/types/module_scope_let.wgsl.expected.glsl b/test/types/module_scope_let.wgsl.expected.glsl index 166c6c7fe4..aca7b1680e 100644 --- a/test/types/module_scope_let.wgsl.expected.glsl +++ b/test/types/module_scope_let.wgsl.expected.glsl @@ -9,8 +9,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/module_scope_var.wgsl.expected.glsl b/test/types/module_scope_var.wgsl.expected.glsl index 450d5cdc6b..06071a3839 100644 --- a/test/types/module_scope_var.wgsl.expected.glsl +++ b/test/types/module_scope_var.wgsl.expected.glsl @@ -15,7 +15,6 @@ vec4 v4f32_var = vec4(0.0f, 0.0f, 0.0f, 0.0f); mat2x3 m2x3_var = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); float arr_var[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f); S struct_var = S(0.0f); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { bool_var = false; @@ -32,8 +31,8 @@ void tint_symbol() { struct_var = tint_symbol_2; return; } + void main() { tint_symbol(); } - diff --git a/test/types/module_scope_var_conversions.wgsl.expected.glsl b/test/types/module_scope_var_conversions.wgsl.expected.glsl index 422c557cce..14db4ac70e 100644 --- a/test/types/module_scope_var_conversions.wgsl.expected.glsl +++ b/test/types/module_scope_var_conversions.wgsl.expected.glsl @@ -21,7 +21,6 @@ uvec3 v3u32_var2 = uvec3(vec3(1.0f)); uvec3 v3u32_var3 = uvec3(bvec3(true)); bvec3 v3bool_var4 = bvec3(bvec2(vec2(123.0f)), true); bvec4 v4bool_var5 = bvec4(bvec2(vec2(123.0f, 0.0f)), bvec2(true, bool(float(0.0f)))); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { bool_var1 = false; @@ -46,8 +45,8 @@ void tint_symbol() { v3u32_var3 = uvec3(0u, 0u, 0u); return; } + void main() { tint_symbol(); } - diff --git a/test/types/module_scope_var_initializers.wgsl.expected.glsl b/test/types/module_scope_var_initializers.wgsl.expected.glsl index 450d5cdc6b..06071a3839 100644 --- a/test/types/module_scope_var_initializers.wgsl.expected.glsl +++ b/test/types/module_scope_var_initializers.wgsl.expected.glsl @@ -15,7 +15,6 @@ vec4 v4f32_var = vec4(0.0f, 0.0f, 0.0f, 0.0f); mat2x3 m2x3_var = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); float arr_var[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f); S struct_var = S(0.0f); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { bool_var = false; @@ -32,8 +31,8 @@ void tint_symbol() { struct_var = tint_symbol_2; return; } + void main() { tint_symbol(); } - diff --git a/test/types/parameters.wgsl.expected.glsl b/test/types/parameters.wgsl.expected.glsl index 166c6c7fe4..aca7b1680e 100644 --- a/test/types/parameters.wgsl.expected.glsl +++ b/test/types/parameters.wgsl.expected.glsl @@ -9,8 +9,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/return_types.wgsl.expected.glsl b/test/types/return_types.wgsl.expected.glsl index 166c6c7fe4..aca7b1680e 100644 --- a/test/types/return_types.wgsl.expected.glsl +++ b/test/types/return_types.wgsl.expected.glsl @@ -9,8 +9,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/sampler.wgsl.expected.glsl b/test/types/sampler.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/sampler.wgsl.expected.glsl +++ b/test/types/sampler.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/struct_members.wgsl.expected.glsl b/test/types/struct_members.wgsl.expected.glsl index 58b993d984..d123ec4a69 100644 --- a/test/types/struct_members.wgsl.expected.glsl +++ b/test/types/struct_members.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct S_inner { float a; }; + struct S { bool member_bool; int member_i32; @@ -22,8 +23,8 @@ void tint_symbol() { S s = S(false, 0, 0u, 0.0f, ivec2(0, 0), uvec3(0u, 0u, 0u), vec4(0.0f, 0.0f, 0.0f, 0.0f), mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f), float[4](0.0f, 0.0f, 0.0f, 0.0f), S_inner(0.0f)); return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/depth/2d.wgsl.expected.glsl b/test/types/texture/depth/2d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/depth/2d.wgsl.expected.glsl +++ b/test/types/texture/depth/2d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/depth/2d_array.wgsl.expected.glsl b/test/types/texture/depth/2d_array.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/depth/2d_array.wgsl.expected.glsl +++ b/test/types/texture/depth/2d_array.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/depth/cube.wgsl.expected.glsl b/test/types/texture/depth/cube.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/depth/cube.wgsl.expected.glsl +++ b/test/types/texture/depth/cube.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/depth/cube_array.wgsl.expected.glsl b/test/types/texture/depth/cube_array.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/depth/cube_array.wgsl.expected.glsl +++ b/test/types/texture/depth/cube_array.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/multisampled/2d.wgsl.expected.glsl b/test/types/texture/multisampled/2d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/multisampled/2d.wgsl.expected.glsl +++ b/test/types/texture/multisampled/2d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/sampled/1d.wgsl.expected.glsl b/test/types/texture/sampled/1d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/sampled/1d.wgsl.expected.glsl +++ b/test/types/texture/sampled/1d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/sampled/2d.wgsl.expected.glsl b/test/types/texture/sampled/2d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/sampled/2d.wgsl.expected.glsl +++ b/test/types/texture/sampled/2d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/sampled/2d_array.wgsl.expected.glsl b/test/types/texture/sampled/2d_array.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/sampled/2d_array.wgsl.expected.glsl +++ b/test/types/texture/sampled/2d_array.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/sampled/3d.wgsl.expected.glsl b/test/types/texture/sampled/3d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/sampled/3d.wgsl.expected.glsl +++ b/test/types/texture/sampled/3d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/sampled/cube.wgsl.expected.glsl b/test/types/texture/sampled/cube.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/sampled/cube.wgsl.expected.glsl +++ b/test/types/texture/sampled/cube.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/sampled/cube_array.wgsl.expected.glsl b/test/types/texture/sampled/cube_array.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/sampled/cube_array.wgsl.expected.glsl +++ b/test/types/texture/sampled/cube_array.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/storage/1d.wgsl.expected.glsl b/test/types/texture/storage/1d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/storage/1d.wgsl.expected.glsl +++ b/test/types/texture/storage/1d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/storage/2d.wgsl.expected.glsl b/test/types/texture/storage/2d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/storage/2d.wgsl.expected.glsl +++ b/test/types/texture/storage/2d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/storage/2d_array.wgsl.expected.glsl b/test/types/texture/storage/2d_array.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/storage/2d_array.wgsl.expected.glsl +++ b/test/types/texture/storage/2d_array.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/types/texture/storage/3d.wgsl.expected.glsl b/test/types/texture/storage/3d.wgsl.expected.glsl index e27344deb5..4be746b236 100644 --- a/test/types/texture/storage/3d.wgsl.expected.glsl +++ b/test/types/texture/storage/3d.wgsl.expected.glsl @@ -5,8 +5,8 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl index 954dacb59b..4121e4da77 100644 --- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D x_20_1; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -28,11 +27,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl index 2a1640ae29..70cdb2d5eb 100644 --- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D x_20_1; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -28,11 +27,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl index 1432f94bfe..e4b3e9de11 100644 --- a/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32f) uniform highp writeonly image1D x_20_1; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -28,11 +27,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl index 72425bb68e..91e212b2f3 100644 --- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler1D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,11 +28,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl index a421115974..d84e95964a 100644 --- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler1D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,11 +28,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl index d1f3ab8e16..f1b5383c18 100644 --- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler1D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,11 +28,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.glsl b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.glsl index 3931b9532d..4dafa7f081 100644 --- a/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler1D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,11 +28,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl b/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl index 6b4d81a5da..e5c74b4354 100644 --- a/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,11 +28,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index 6e04e7fff3..8f33cd37ac 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2D x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl index 7589e0e6fe..5630b464c2 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl index 3a5ee1ddb0..7dd285878e 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler3D x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl index 49d98ce886..c13536d70b 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCube x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl index 75e87cbbb4..c3233edd4e 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,11 +30,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl index 6e04e7fff3..8f33cd37ac 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2D x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.glsl index 7589e0e6fe..5630b464c2 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.glsl index 49d98ce886..c13536d70b 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCube x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.glsl index 75e87cbbb4..c3233edd4e 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,11 +30,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index b90eca46eb..e9dcdc167a 100644 --- a/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2D x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index d6fcba309a..f3fde9143b 100644 --- a/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DMS x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,15 +30,15 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureSamples' : no matching overloaded function found -ERROR: 0:24: '=' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureSamples' : no matching overloaded function found +ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:23: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index 1ed30a9c28..4ff11e5bf0 100644 --- a/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DMS x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureSamples' : no matching overloaded function found -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureSamples' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index fc93ba19dd..79328513cf 100644 --- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl index f57af6e915..3e63cc0ec0 100644 --- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,11 +30,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl index fc93ba19dd..79328513cf 100644 --- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl index f57af6e915..3e63cc0ec0 100644 --- a/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp samplerCubeArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,11 +30,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index cea9b02850..fe1fc27e97 100644 --- a/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DArray x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index 0d5fe72eec..050e16096c 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl index c7eaa89c84..05602d7b65 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:25: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:25: '' : compilation terminated +ERROR: 0:24: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:24: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl index 3c3aa8a08d..ed9e982f18 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureOffset' : no matching overloaded function found -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureOffset' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl index abcde0de83..04b51c2866 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:25: 'textureOffset' : no matching overloaded function found -ERROR: 0:25: '' : compilation terminated +ERROR: 0:24: 'textureOffset' : no matching overloaded function found +ERROR: 0:24: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl index 4c5161fc8e..ccdcc0d998 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCube x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl index 5d1e906b4f..39ad56a0f3 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp samplerCubeArray x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,11 +31,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'samplerCubeArray' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index 0d5fe72eec..050e16096c 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl index c7eaa89c84..05602d7b65 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:25: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:25: '' : compilation terminated +ERROR: 0:24: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:24: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl index 3c3aa8a08d..ed9e982f18 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -31,14 +30,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:24: 'textureOffset' : no matching overloaded function found -ERROR: 0:24: '' : compilation terminated +ERROR: 0:23: 'textureOffset' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl index abcde0de83..04b51c2866 100644 --- a/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:25: 'textureOffset' : no matching overloaded function found -ERROR: 0:25: '' : compilation terminated +ERROR: 0:24: 'textureOffset' : no matching overloaded function found +ERROR: 0:24: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl index 28d06740d1..b41b32e8c8 100644 --- a/test/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:25: 'textureLod' : no matching overloaded function found -ERROR: 0:25: '' : compilation terminated +ERROR: 0:24: 'textureLod' : no matching overloaded function found +ERROR: 0:24: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index 44e2600861..cb7959bb32 100644 --- a/test/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -7,7 +7,6 @@ uniform highp sampler2D x_20_x_10; uniform highp sampler2D x_20_x_30; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -35,14 +34,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:28: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:28: '' : compilation terminated +ERROR: 0:27: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl index cee1442953..c2929f1a61 100644 --- a/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,14 +28,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:21: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:21: '' : compilation terminated +ERROR: 0:20: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:20: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl index cee1442953..c2929f1a61 100644 --- a/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,14 +28,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:21: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:21: '' : compilation terminated +ERROR: 0:20: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:20: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index f3758a7e7c..022fec9cb8 100644 --- a/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:25: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:25: '' : compilation terminated +ERROR: 0:24: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:24: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl index f105e43000..bbf595c857 100644 --- a/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,14 +31,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:25: 'textureOffset' : no matching overloaded function found -ERROR: 0:25: '' : compilation terminated +ERROR: 0:24: 'textureOffset' : no matching overloaded function found +ERROR: 0:24: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl index 8810a0c6f9..b939ed558f 100644 --- a/test/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler1D x_20_x_10; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -32,11 +31,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.glsl index d0a6ee9cf3..7b1704870d 100644 --- a/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2D x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -27,11 +26,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.glsl index f78f060c0b..4521389667 100644 --- a/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2D x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -27,11 +26,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.glsl b/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.glsl index 49e66b84d8..7af7e0210d 100644 --- a/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image2D x_20_1; - void main_1() { float f1 = 1.0f; vec2 vf12 = vec2(1.0f, 2.0f); @@ -27,11 +26,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.glsl b/test/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.glsl index f48e7483fe..ef37dc3bcd 100644 --- a/test/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DMS x_20_1; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -28,14 +27,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:20: 'textureSamples' : no matching overloaded function found -ERROR: 0:20: '' : compilation terminated +ERROR: 0:19: 'textureSamples' : no matching overloaded function found +ERROR: 0:19: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl b/test/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl index d87e9a9788..c7d6336b6d 100644 --- a/test/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2DArray x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,14 +28,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:21: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:21: '' : compilation terminated +ERROR: 0:20: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:20: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl b/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl index 72425bb68e..91e212b2f3 100644 --- a/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler1D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,11 +28,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.glsl b/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.glsl index f4f90ff940..c44d565c0f 100644 --- a/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -29,14 +28,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:21: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' -ERROR: 0:21: '' : compilation terminated +ERROR: 0:20: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:20: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl b/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl index 944b571982..1c639c921b 100644 --- a/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D x_20_1; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -28,11 +27,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl b/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl index 972196664d..f8adcc29a7 100644 --- a/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D x_20_1; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -28,11 +27,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl b/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl index b259848ea6..6321d0e94e 100644 --- a/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(r32f) uniform highp writeonly image1D x_20_1; - void main_1() { float float_var = 0.0f; int i1 = 1; @@ -28,11 +27,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'image1D' : Reserved word. WARNING: 0:4: 'layout' : useless application of layout qualifier diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.glsl index 87536a1399..25158b4a2a 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D x_20_1; - void main_1() { vec4 x_125 = texelFetch(x_20_1, int(1u), 0); return; @@ -14,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.glsl index c6ae7dc157..d49cbd427f 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; layout(rg32f) uniform highp writeonly image1D x_20_1; - void main_1() { imageStore(x_20_1, int(1u), vec4(0.0f, 0.0f, 0.0f, 0.0f)); return; @@ -14,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'image load-store format' : not supported with this profile: es ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.glsl index 7e328eca8e..e6d0619e37 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler1D x_20_1; - void main_1() { vec4 x_125 = texelFetch(x_20_1, int(0u), 0); return; @@ -14,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:4: 'sampler1D' : Reserved word. ERROR: 0:4: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.glsl index 1f16d62f42..a9954156dc 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2D x_20_1; - void main_1() { uint x_125 = uint(textureQueryLevels(x_20_1);); return; @@ -14,14 +13,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:7: 'textureQueryLevels' : no matching overloaded function found -ERROR: 0:7: '' : compilation terminated +ERROR: 0:6: 'textureQueryLevels' : no matching overloaded function found +ERROR: 0:6: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.glsl index 03a41ae6c2..c0765369b3 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uniform highp sampler2DMS x_20_1; - void main_1() { uint x_125 = uint(textureSamples(x_20_1);); return; @@ -14,14 +13,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:7: 'textureSamples' : no matching overloaded function found -ERROR: 0:7: '' : compilation terminated +ERROR: 0:6: 'textureSamples' : no matching overloaded function found +ERROR: 0:6: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.glsl index 6f9189fb13..b8cfc8b866 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float x_131 = texture(x_20_x_10, vec2(0.0f, 0.0f), 0.200000003f); return; @@ -15,14 +14,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.glsl index bdd4ebd84d..69330dcddf 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float x_131 = texture(x_20_x_10, (vec3(0.0f, 0.0f, 0.0f).xy / vec3(0.0f, 0.0f, 0.0f).z), 0.200000003f); return; @@ -15,14 +14,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.glsl index bdd4ebd84d..69330dcddf 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; uniform highp sampler2D x_20_x_10; - void main_1() { float x_131 = texture(x_20_x_10, (vec3(0.0f, 0.0f, 0.0f).xy / vec3(0.0f, 0.0f, 0.0f).z), 0.200000003f); return; @@ -15,14 +14,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - 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: 0:7: '=' : cannot convert from ' global highp 4-component vector of float' to ' temp mediump float' +ERROR: 0:7: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_0.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_0.spvasm.expected.glsl index 1db22da2ac..ab58934540 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_0.spvasm.expected.glsl @@ -41,11 +41,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'int4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_1.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_1.spvasm.expected.glsl index 76280e7fb7..65c3ce5a22 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_1.spvasm.expected.glsl @@ -41,11 +41,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'uint4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_2.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_2.spvasm.expected.glsl index 55afea21d6..25b1438936 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_2.spvasm.expected.glsl @@ -41,11 +41,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'int2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_3.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_3.spvasm.expected.glsl index 74e88bccb4..e8c6e78000 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_3.spvasm.expected.glsl @@ -41,11 +41,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_4.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_4.spvasm.expected.glsl index 8ce76c9a6e..b616d815b7 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataPacking_Valid_4.spvasm.expected.glsl @@ -41,11 +41,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_0.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_0.spvasm.expected.glsl index 7081858634..7f7f710308 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_0.spvasm.expected.glsl @@ -42,11 +42,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'int4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_1.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_1.spvasm.expected.glsl index 0f28621425..ace2c18257 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_1.spvasm.expected.glsl @@ -42,11 +42,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'uint4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_2.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_2.spvasm.expected.glsl index 961eccfea1..37d9b1a15c 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_2.spvasm.expected.glsl @@ -42,11 +42,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'int2' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_3.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_3.spvasm.expected.glsl index 9821c7e8e1..42eaecc6f7 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_3.spvasm.expected.glsl @@ -42,11 +42,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'uint2' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_4.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_4.spvasm.expected.glsl index e4ede4b43c..e9c3f07692 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_DataUnpacking_Valid_4.spvasm.expected.glsl @@ -41,11 +41,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - 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 diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Scalar_2.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Scalar_2.spvasm.expected.glsl index 509a7a915e..f3abfdf337 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Scalar_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Scalar_2.spvasm.expected.glsl @@ -35,11 +35,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:27: 'mad' : no matching overloaded function found ERROR: 0:27: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Vector_2.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Vector_2.spvasm.expected.glsl index 15652f62ef..c8d0e8cbd0 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Vector_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_FloatingFloatingFloating_Vector_2.spvasm.expected.glsl @@ -35,11 +35,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:27: 'mad' : no matching overloaded function found ERROR: 0:27: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_11.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_11.spvasm.expected.glsl index 43605c7424..e77fb64f25 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_11.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_11.spvasm.expected.glsl @@ -35,11 +35,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:27: 'frac' : no matching overloaded function found ERROR: 0:27: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_12.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_12.spvasm.expected.glsl index 2705831340..924627a464 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_12.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Scalar_12.spvasm.expected.glsl @@ -35,11 +35,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:27: 'rsqrt' : no matching overloaded function found ERROR: 0:27: '' : compilation terminated diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_11.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_11.spvasm.expected.glsl index bc1cd5249b..f6462e6a02 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_11.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_11.spvasm.expected.glsl @@ -35,11 +35,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:27: 'frac' : no matching overloaded function found ERROR: 0:27: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_12.spvasm.expected.glsl b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_12.spvasm.expected.glsl index 9e1f12d949..441335c706 100644 --- a/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_12.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/Samples_SpvParserTest_GlslStd450_Floating_Floating_Vector_12.spvasm.expected.glsl @@ -35,11 +35,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:27: 'rsqrt' : no matching overloaded function found ERROR: 0:27: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_0.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_0.spvasm.expected.glsl index 1d906ca1a3..4c9e1f9979 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_0.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'ddx' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_1.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_1.spvasm.expected.glsl index a1105e43be..4a7faf0dd5 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_1.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddx' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_10.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_10.spvasm.expected.glsl index 3456486568..2256d98f86 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_10.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_10.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddx_fine' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_11.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_11.spvasm.expected.glsl index 29974e712e..c0e2e14a1a 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_11.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_11.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddx_fine' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_12.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_12.spvasm.expected.glsl index fd3597d977..dc514d8c19 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_12.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_12.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'ddy_fine' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_13.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_13.spvasm.expected.glsl index 1b9ae9b6b8..fda6138c96 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_13.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_13.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddy_fine' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_14.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_14.spvasm.expected.glsl index 1f87b8ffd6..635aeac72d 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_14.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_14.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddy_fine' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_18.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_18.spvasm.expected.glsl index bb31c488e4..7337c86de8 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_18.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_18.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'ddx_coarse' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_19.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_19.spvasm.expected.glsl index b3e61a95c1..dac0f4cf68 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_19.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_19.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddx_coarse' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_2.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_2.spvasm.expected.glsl index f1a003d27d..f05af780c5 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_2.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_2.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddx' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_20.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_20.spvasm.expected.glsl index 5c76fe2901..6542079d31 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_20.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_20.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddx_coarse' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_21.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_21.spvasm.expected.glsl index 01e265275e..ff0447fe41 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_21.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_21.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'ddy_coarse' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_22.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_22.spvasm.expected.glsl index 83646e2f0d..caa15308aa 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_22.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_22.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddy_coarse' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_23.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_23.spvasm.expected.glsl index 226a2b7eb7..144461ce1e 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_23.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_23.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddy_coarse' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_3.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_3.spvasm.expected.glsl index b19185c600..545205b294 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_3.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_3.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'ddy' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_4.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_4.spvasm.expected.glsl index 862536ea0c..3ba58ceffb 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_4.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_4.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddy' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_5.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_5.spvasm.expected.glsl index 1572671a9a..78db9a9054 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_5.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_5.spvasm.expected.glsl @@ -13,11 +13,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: 'ddy' : no matching overloaded function found ERROR: 0:6: '=' : cannot convert from ' const float' to ' temp mediump 3-component vector of float' diff --git a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_9.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_9.spvasm.expected.glsl index 9436845a67..6e3763e7a1 100644 --- a/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_9.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvBinaryDerivativeTest_SpvBinaryDerivativeTest_Derivatives_9.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: 'ddx_fine' : no matching overloaded function found ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvFUnordTest_FUnordEqual_Vector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvFUnordTest_FUnordEqual_Vector.spvasm.expected.glsl index a766f4751d..052c8ca076 100644 --- a/test/unittest/reader/spirv/SpvFUnordTest_FUnordEqual_Vector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvFUnordTest_FUnordEqual_Vector.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '!' : wrong operand type no operation '!' exists that takes an operand of type const 2-component vector of bool (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThanEqual_Vector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThanEqual_Vector.spvasm.expected.glsl index 164f83e7c4..a98df47ca1 100644 --- a/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThanEqual_Vector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThanEqual_Vector.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '!' : wrong operand type no operation '!' exists that takes an operand of type const 2-component vector of bool (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThan_Vector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThan_Vector.spvasm.expected.glsl index f2de517a7e..99e7ee9a2c 100644 --- a/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThan_Vector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvFUnordTest_FUnordGreaterThan_Vector.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '!' : wrong operand type no operation '!' exists that takes an operand of type const 2-component vector of bool (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThanEqual_Vector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThanEqual_Vector.spvasm.expected.glsl index 2951a83077..eee2525bb8 100644 --- a/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThanEqual_Vector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThanEqual_Vector.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '!' : wrong operand type no operation '!' exists that takes an operand of type const 2-component vector of bool (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThan_Vector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThan_Vector.spvasm.expected.glsl index b5884f8565..b64a1ec726 100644 --- a/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThan_Vector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvFUnordTest_FUnordLessThan_Vector.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '!' : wrong operand type no operation '!' exists that takes an operand of type const 2-component vector of bool (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvFUnordTest_FUnordNotEqual_Vector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvFUnordTest_FUnordNotEqual_Vector.spvasm.expected.glsl index dbca9a2a4e..13dcb9a102 100644 --- a/test/unittest/reader/spirv/SpvFUnordTest_FUnordNotEqual_Vector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvFUnordTest_FUnordNotEqual_Vector.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '!' : wrong operand type no operation '!' exists that takes an operand of type const 2-component vector of bool (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvLogicalTest_Select_VecBoolCond_VectorParams.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvLogicalTest_Select_VecBoolCond_VectorParams.spvasm.expected.glsl index 39dbc4e43a..4bcaaf7191 100644 --- a/test/unittest/reader/spirv/SpvLogicalTest_Select_VecBoolCond_VectorParams.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvLogicalTest_Select_VecBoolCond_VectorParams.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '' : boolean expression expected ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.glsl index 8c3b3f543e..7e97341d30 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { return; } @@ -22,16 +21,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:25: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:25: '' : compilation terminated +ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:26: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.glsl index 637586c8b7..3e36874702 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { return; } @@ -22,16 +21,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:25: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:25: '' : compilation terminated +ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:26: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.glsl index bffe830605..8d3186a01a 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { return; } @@ -12,6 +11,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -28,16 +28,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:32: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:32: '' : compilation terminated +ERROR: 0:34: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.glsl index 6cd8aae3ee..4d43631602 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { return; } @@ -12,6 +11,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -28,16 +28,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:32: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:32: '' : compilation terminated +ERROR: 0:34: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.glsl index 92de96e36e..5286cdbe78 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1 = 0; - void main_1() { int x_2 = x_1; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleID); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.glsl index 92de96e36e..5286cdbe78 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1 = 0; - void main_1() { int x_2 = x_1; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleID); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.glsl index 92de96e36e..5286cdbe78 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1 = 0; - void main_1() { int x_2 = x_1; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleID); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.glsl index 6436f0c3b9..af4104a355 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1 = 0u; - void main_1() { uint x_2 = x_1; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleID); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.glsl index 6436f0c3b9..af4104a355 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1 = 0u; - void main_1() { uint x_2 = x_1; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleID); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.glsl index 6436f0c3b9..af4104a355 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1 = 0u; - void main_1() { uint x_2 = x_1; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleID); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.glsl index de101d61be..0e69117839 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { int x_4 = x_1[0]; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.glsl index de101d61be..0e69117839 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { int x_4 = x_1[0]; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.glsl index 6c0bae1236..26c9ad079f 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { int x_3 = x_1[0]; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.glsl index f4ee4373dd..21b026787b 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { uint x_4 = x_1[0]; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.glsl index f4ee4373dd..21b026787b 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { uint x_4 = x_1[0]; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.glsl index d635d56e6e..545c475434 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { uint x_3 = x_1[0]; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.glsl index d635d56e6e..545c475434 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { uint x_3 = x_1[0]; return; @@ -23,16 +22,17 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_1_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_1_param = uint(gl_SampleMask); tint_symbol(inputs); } - Error parsing GLSL shader: -ERROR: 0:26: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:26: '' : compilation terminated +ERROR: 0:27: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:27: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.glsl index 379bae10c1..a71ff026e2 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { x_1[0] = 12; return; @@ -13,6 +12,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -29,16 +29,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:35: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:35: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.glsl index 379bae10c1..a71ff026e2 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { x_1[0] = 12; return; @@ -13,6 +12,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -29,16 +29,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:35: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:35: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.glsl index 379bae10c1..a71ff026e2 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; int x_1[1] = int[1](0); - void main_1() { x_1[0] = 12; return; @@ -13,6 +12,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -29,16 +29,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:35: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:35: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.glsl index ba1f6fe952..c37a82a7d6 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { x_1[0] = 0u; return; @@ -13,6 +12,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -29,16 +29,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:35: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:35: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.glsl index ba1f6fe952..c37a82a7d6 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { x_1[0] = 0u; return; @@ -13,6 +12,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -29,16 +29,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:35: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:35: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.glsl index ba1f6fe952..c37a82a7d6 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { x_1[0] = 0u; return; @@ -13,6 +12,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -29,16 +29,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:35: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:35: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.glsl index ba1f6fe952..c37a82a7d6 100644 --- a/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; uint x_1[1] = uint[1](0u); - void main_1() { x_1[0] = 0u; return; @@ -13,6 +12,7 @@ void main_1() { struct main_out { uint x_1_1; }; + struct tint_symbol_1 { uint x_1_1; }; @@ -29,16 +29,17 @@ tint_symbol_1 tint_symbol() { wrapper_result.x_1_1 = inner_result.x_1_1; return wrapper_result; } + + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); gl_SampleMask = outputs.x_1_1; } - Error parsing GLSL shader: -ERROR: 0:33: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables -ERROR: 0:33: '' : compilation terminated +ERROR: 0:35: 'gl_SampleMask' : required extension not requested: GL_OES_sample_variables +ERROR: 0:35: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_UseInPhiCountsAsUse.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_UseInPhiCountsAsUse.spvasm.expected.glsl index 30bfae9934..c2423a3950 100644 --- a/test/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_UseInPhiCountsAsUse.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_UseInPhiCountsAsUse.spvasm.expected.glsl @@ -25,11 +25,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:12: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' const bool' (or there is no acceptable conversion) ERROR: 0:12: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.glsl index 138588b57f..ff5659a645 100644 --- a/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.glsl @@ -12,7 +12,6 @@ layout(binding = 0) buffer S_1 { uint first; uint rtarr[]; } myvar; - void main_1() { uint tint_symbol_2 = 0u; myvar.GetDimensions(tint_symbol_2); @@ -25,11 +24,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.glsl index 138588b57f..ff5659a645 100644 --- a/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.glsl @@ -12,7 +12,6 @@ layout(binding = 0) buffer S_1 { uint first; uint rtarr[]; } myvar; - void main_1() { uint tint_symbol_2 = 0u; myvar.GetDimensions(tint_symbol_2); @@ -25,11 +24,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserMemoryTest_EmitStatement_AccessChain_Struct_RuntimeArray.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserMemoryTest_EmitStatement_AccessChain_Struct_RuntimeArray.spvasm.expected.glsl index 7ab38e00b2..e499bff8d1 100644 --- a/test/unittest/reader/spirv/SpvParserMemoryTest_EmitStatement_AccessChain_Struct_RuntimeArray.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserMemoryTest_EmitStatement_AccessChain_Struct_RuntimeArray.spvasm.expected.glsl @@ -12,7 +12,6 @@ layout(binding = 0) buffer S_1 { float field0; float age[]; } myvar; - void main_1() { myvar.age[2u] = 42.0f; return; @@ -22,11 +21,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_Cascaded.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_Cascaded.spvasm.expected.glsl index 142d3412f4..87c2d6d8cd 100644 --- a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_Cascaded.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_Cascaded.spvasm.expected.glsl @@ -12,7 +12,6 @@ layout(binding = 0) buffer S_1 { uint field0; uint field1[]; } myvar; - void main_1() { myvar.field1[1u] = 0u; return; @@ -22,11 +21,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded.spvasm.expected.glsl index 9805c90c30..f8e81e7d6f 100644 --- a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded.spvasm.expected.glsl @@ -12,7 +12,6 @@ layout(binding = 0) buffer S_1 { uint field0; uint field1[]; } myvar; - void main_1() { myvar.field0 = 0u; myvar.field1[1u] = 0u; @@ -23,11 +22,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded_InBoundsAccessChain.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded_InBoundsAccessChain.spvasm.expected.glsl index 9805c90c30..f8e81e7d6f 100644 --- a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded_InBoundsAccessChain.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded_InBoundsAccessChain.spvasm.expected.glsl @@ -12,7 +12,6 @@ layout(binding = 0) buffer S_1 { uint field0; uint field1[]; } myvar; - void main_1() { myvar.field0 = 0u; myvar.field1[1u] = 0u; @@ -23,11 +22,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_TypesAndVarDeclarations.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_TypesAndVarDeclarations.spvasm.expected.glsl index 4eb2657c8c..894d2d77d6 100644 --- a/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_TypesAndVarDeclarations.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserMemoryTest_RemapStorageBuffer_TypesAndVarDeclarations.spvasm.expected.glsl @@ -16,11 +16,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_0.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_0.spvasm.expected.glsl index 4e6c407a40..de6fcdd122 100644 --- a/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_0.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_1.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_1.spvasm.expected.glsl index 745736ce1b..c8111692cc 100644 --- a/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserTest_FRem_SpvBinaryArithTest_EmitExpression_1.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const 2-component vector of float' and a right operand of type ' const 2-component vector of float' (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl index 95c53e7d28..038414feab 100644 --- a/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' const bool' (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl index ffdfd77430..ff590fa151 100644 --- a/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserTest_LogicalAnd_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const 2-component vector of bool' and a right operand of type ' const 2-component vector of bool' (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl index 0096563a45..cef60d7f1b 100644 --- a/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_0.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' const bool' (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl index 40e361951e..13a2f5c10f 100644 --- a/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvParserTest_LogicalOr_SpvBinaryLogicalTest_EmitExpression_1.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' const 2-component vector of bool' and a right operand of type ' const 2-component vector of bool' (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_IntVector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_IntVector.spvasm.expected.glsl index 0cdf61d9f9..cbeafe1907 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_IntVector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_IntVector.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int' diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_UintVector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_UintVector.spvasm.expected.glsl index ae0458c08c..b468bf0f11 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_UintVector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_IntVector_UintVector.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Int.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Int.spvasm.expected.glsl index 4e6f39efd2..0b2857699d 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Int.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Int.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp int' diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Uint.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Uint.spvasm.expected.glsl index f2fd90c527..d05dca25cf 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Uint.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Int_Uint.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_IntVector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_IntVector.spvasm.expected.glsl index 1eb004d5fd..40403394d2 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_IntVector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_IntVector.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_UintVector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_UintVector.spvasm.expected.glsl index 3eb3c66c77..77c801ee72 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_UintVector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_UintVector_UintVector.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint' diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Int.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Int.spvasm.expected.glsl index 43f8422d8e..4c2933cbc2 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Int.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Int.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '' : compilation terminated diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Uint.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Uint.spvasm.expected.glsl index 5bd9c57da9..aa5b9c3d1a 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Uint.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitCount_Uint_Uint.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'countbits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp uint' diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_IntVector_IntVector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_IntVector_IntVector.spvasm.expected.glsl index a16703ad50..d944a7f35a 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_IntVector_IntVector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_IntVector_IntVector.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'reversebits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of int' diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Int_Int.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Int_Int.spvasm.expected.glsl index 3b1ac96249..dfc6bce79e 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Int_Int.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Int_Int.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'reversebits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp int' diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_UintVector_UintVector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_UintVector_UintVector.spvasm.expected.glsl index 718f4a6350..e600c81868 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_UintVector_UintVector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_UintVector_UintVector.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'reversebits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 2-component vector of uint' diff --git a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Uint_Uint.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Uint_Uint.spvasm.expected.glsl index b4f442db9a..c42716262f 100644 --- a/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Uint_Uint.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryBitTest_BitReverse_Uint_Uint.spvasm.expected.glsl @@ -17,11 +17,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:9: 'reversebits' : no matching overloaded function found ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp uint' diff --git a/test/unittest/reader/spirv/SpvUnaryLogicalTest_LogicalNot_Vector.spvasm.expected.glsl b/test/unittest/reader/spirv/SpvUnaryLogicalTest_LogicalNot_Vector.spvasm.expected.glsl index 4782c6fc41..b2641fdf9e 100644 --- a/test/unittest/reader/spirv/SpvUnaryLogicalTest_LogicalNot_Vector.spvasm.expected.glsl +++ b/test/unittest/reader/spirv/SpvUnaryLogicalTest_LogicalNot_Vector.spvasm.expected.glsl @@ -12,11 +12,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '!' : wrong operand type no operation '!' exists that takes an operand of type const 2-component vector of bool (or there is no acceptable conversion) ERROR: 0:5: '' : compilation terminated diff --git a/test/var/inferred/function.wgsl.expected.glsl b/test/var/inferred/function.wgsl.expected.glsl index 247d694b3f..ec327ce2ab 100644 --- a/test/var/inferred/function.wgsl.expected.glsl +++ b/test/var/inferred/function.wgsl.expected.glsl @@ -4,6 +4,7 @@ precision mediump float; struct MyStruct { float f1; }; + struct tint_symbol_1 { vec4 value; }; @@ -19,10 +20,10 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 value; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); value = outputs.value; } - diff --git a/test/var/initialization/function/array.wgsl.expected.glsl b/test/var/initialization/function/array.wgsl.expected.glsl index 7146e7d200..f3c3ba7dd8 100644 --- a/test/var/initialization/function/array.wgsl.expected.glsl +++ b/test/var/initialization/function/array.wgsl.expected.glsl @@ -6,8 +6,8 @@ void tint_symbol() { int v[3] = int[3](0, 0, 0); return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/function/matrix.wgsl.expected.glsl b/test/var/initialization/function/matrix.wgsl.expected.glsl index 34d0c8a0e2..9c74a59134 100644 --- a/test/var/initialization/function/matrix.wgsl.expected.glsl +++ b/test/var/initialization/function/matrix.wgsl.expected.glsl @@ -6,8 +6,8 @@ void tint_symbol() { mat2x3 v = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/function/scalar.wgsl.expected.glsl b/test/var/initialization/function/scalar.wgsl.expected.glsl index 8307587066..159b09230a 100644 --- a/test/var/initialization/function/scalar.wgsl.expected.glsl +++ b/test/var/initialization/function/scalar.wgsl.expected.glsl @@ -6,8 +6,8 @@ void tint_symbol() { int v = 0; return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/function/struct.wgsl.expected.glsl b/test/var/initialization/function/struct.wgsl.expected.glsl index a81c735fa2..2062576329 100644 --- a/test/var/initialization/function/struct.wgsl.expected.glsl +++ b/test/var/initialization/function/struct.wgsl.expected.glsl @@ -11,8 +11,8 @@ void tint_symbol() { S v = S(0, 0.0f); return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/function/vector.wgsl.expected.glsl b/test/var/initialization/function/vector.wgsl.expected.glsl index f475c7c844..ed2c8d1993 100644 --- a/test/var/initialization/function/vector.wgsl.expected.glsl +++ b/test/var/initialization/function/vector.wgsl.expected.glsl @@ -6,8 +6,8 @@ void tint_symbol() { ivec3 v = ivec3(0, 0, 0); return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/private/array.wgsl.expected.glsl b/test/var/initialization/private/array.wgsl.expected.glsl index e5de39bd32..05a9731eed 100644 --- a/test/var/initialization/private/array.wgsl.expected.glsl +++ b/test/var/initialization/private/array.wgsl.expected.glsl @@ -2,13 +2,12 @@ precision mediump float; int v[3] = int[3](0, 0, 0); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/private/matrix.wgsl.expected.glsl b/test/var/initialization/private/matrix.wgsl.expected.glsl index 3771d7bfd0..f9b2340098 100644 --- a/test/var/initialization/private/matrix.wgsl.expected.glsl +++ b/test/var/initialization/private/matrix.wgsl.expected.glsl @@ -2,13 +2,12 @@ precision mediump float; mat2x3 v = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/private/scalar.wgsl.expected.glsl b/test/var/initialization/private/scalar.wgsl.expected.glsl index 4e93b5e484..4c2177862b 100644 --- a/test/var/initialization/private/scalar.wgsl.expected.glsl +++ b/test/var/initialization/private/scalar.wgsl.expected.glsl @@ -2,13 +2,12 @@ precision mediump float; int v = 0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/private/struct.wgsl.expected.glsl b/test/var/initialization/private/struct.wgsl.expected.glsl index 5d17f805f5..8bb397c630 100644 --- a/test/var/initialization/private/struct.wgsl.expected.glsl +++ b/test/var/initialization/private/struct.wgsl.expected.glsl @@ -7,13 +7,12 @@ struct S { }; S v = S(0, 0.0f); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/private/vector.wgsl.expected.glsl b/test/var/initialization/private/vector.wgsl.expected.glsl index ff32b2e042..d894156c8d 100644 --- a/test/var/initialization/private/vector.wgsl.expected.glsl +++ b/test/var/initialization/private/vector.wgsl.expected.glsl @@ -2,13 +2,12 @@ precision mediump float; ivec3 v = ivec3(0, 0, 0); - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/initialization/workgroup/array.wgsl.expected.glsl b/test/var/initialization/workgroup/array.wgsl.expected.glsl index c53f318f29..61851d8e0c 100644 --- a/test/var/initialization/workgroup/array.wgsl.expected.glsl +++ b/test/var/initialization/workgroup/array.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int v[3]; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -22,10 +21,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/var/initialization/workgroup/matrix.wgsl.expected.glsl b/test/var/initialization/workgroup/matrix.wgsl.expected.glsl index 8ea3faa2f5..facd6b06ed 100644 --- a/test/var/initialization/workgroup/matrix.wgsl.expected.glsl +++ b/test/var/initialization/workgroup/matrix.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared mat2x3 v; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -19,10 +18,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/var/initialization/workgroup/scalar.wgsl.expected.glsl b/test/var/initialization/workgroup/scalar.wgsl.expected.glsl index 51471caffb..6e9244b9e4 100644 --- a/test/var/initialization/workgroup/scalar.wgsl.expected.glsl +++ b/test/var/initialization/workgroup/scalar.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int v; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -19,10 +18,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/var/initialization/workgroup/struct.wgsl.expected.glsl b/test/var/initialization/workgroup/struct.wgsl.expected.glsl index bb6cf9201d..a0db087fa6 100644 --- a/test/var/initialization/workgroup/struct.wgsl.expected.glsl +++ b/test/var/initialization/workgroup/struct.wgsl.expected.glsl @@ -7,7 +7,6 @@ struct S { }; shared S v; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -25,10 +24,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/var/initialization/workgroup/vector.wgsl.expected.glsl b/test/var/initialization/workgroup/vector.wgsl.expected.glsl index af1722c651..e710bb2907 100644 --- a/test/var/initialization/workgroup/vector.wgsl.expected.glsl +++ b/test/var/initialization/workgroup/vector.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared ivec3 v; - struct tint_symbol_2 { uint local_invocation_index; }; @@ -19,10 +18,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.local_invocation_index); return; } + + void main() { tint_symbol_2 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/var/override/named/no_init/bool.wgsl.expected.glsl b/test/var/override/named/no_init/bool.wgsl.expected.glsl index da1fd244ac..788b030f71 100644 --- a/test/var/override/named/no_init/bool.wgsl.expected.glsl +++ b/test/var/override/named/no_init/bool.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 0 #endif const bool o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 0 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/named/no_init/f32.wgsl.expected.glsl b/test/var/override/named/no_init/f32.wgsl.expected.glsl index 0f71961056..ba600558b3 100644 --- a/test/var/override/named/no_init/f32.wgsl.expected.glsl +++ b/test/var/override/named/no_init/f32.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 0 #endif const float o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 0 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/named/no_init/i32.wgsl.expected.glsl b/test/var/override/named/no_init/i32.wgsl.expected.glsl index 0f490bec88..f2096f52be 100644 --- a/test/var/override/named/no_init/i32.wgsl.expected.glsl +++ b/test/var/override/named/no_init/i32.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 0 #endif const int o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 0 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/named/no_init/u32.wgsl.expected.glsl b/test/var/override/named/no_init/u32.wgsl.expected.glsl index 776a083302..94bdd23d0c 100644 --- a/test/var/override/named/no_init/u32.wgsl.expected.glsl +++ b/test/var/override/named/no_init/u32.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 0 #endif const uint o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 0 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/named/val_init/bool.wgsl.expected.glsl b/test/var/override/named/val_init/bool.wgsl.expected.glsl index b1c7c0a069..44a7de1108 100644 --- a/test/var/override/named/val_init/bool.wgsl.expected.glsl +++ b/test/var/override/named/val_init/bool.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 true #endif const bool o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/named/val_init/f32.wgsl.expected.glsl b/test/var/override/named/val_init/f32.wgsl.expected.glsl index 29dff55d50..a0849a3dd7 100644 --- a/test/var/override/named/val_init/f32.wgsl.expected.glsl +++ b/test/var/override/named/val_init/f32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 1.0f #endif const float o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/named/val_init/i32.wgsl.expected.glsl b/test/var/override/named/val_init/i32.wgsl.expected.glsl index edfc48cc11..5d536fce0a 100644 --- a/test/var/override/named/val_init/i32.wgsl.expected.glsl +++ b/test/var/override/named/val_init/i32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 1 #endif const int o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/named/val_init/u32.wgsl.expected.glsl b/test/var/override/named/val_init/u32.wgsl.expected.glsl index 65314db087..fd5bad1888 100644 --- a/test/var/override/named/val_init/u32.wgsl.expected.glsl +++ b/test/var/override/named/val_init/u32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 1u #endif const uint o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/named/zero_init/bool.wgsl.expected.glsl b/test/var/override/named/zero_init/bool.wgsl.expected.glsl index 99475b93b7..fc98806442 100644 --- a/test/var/override/named/zero_init/bool.wgsl.expected.glsl +++ b/test/var/override/named/zero_init/bool.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 false #endif const bool o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/named/zero_init/f32.wgsl.expected.glsl b/test/var/override/named/zero_init/f32.wgsl.expected.glsl index 13b7b8461a..0f0bfb3d16 100644 --- a/test/var/override/named/zero_init/f32.wgsl.expected.glsl +++ b/test/var/override/named/zero_init/f32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 0.0f #endif const float o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/named/zero_init/i32.wgsl.expected.glsl b/test/var/override/named/zero_init/i32.wgsl.expected.glsl index 40ad1aca9d..c2c5f490a7 100644 --- a/test/var/override/named/zero_init/i32.wgsl.expected.glsl +++ b/test/var/override/named/zero_init/i32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 0 #endif const int o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/named/zero_init/u32.wgsl.expected.glsl b/test/var/override/named/zero_init/u32.wgsl.expected.glsl index 90c4e53f5f..962eeeef70 100644 --- a/test/var/override/named/zero_init/u32.wgsl.expected.glsl +++ b/test/var/override/named/zero_init/u32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_0 0u #endif const uint o = WGSL_SPEC_CONSTANT_0; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/no_init/bool.wgsl.expected.glsl b/test/var/override/numbered/no_init/bool.wgsl.expected.glsl index caf27dea16..a1fd32ce23 100644 --- a/test/var/override/numbered/no_init/bool.wgsl.expected.glsl +++ b/test/var/override/numbered/no_init/bool.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 1234 #endif const bool o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 1234 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/numbered/no_init/f32.wgsl.expected.glsl b/test/var/override/numbered/no_init/f32.wgsl.expected.glsl index fc99ef99ca..ace6cfeb05 100644 --- a/test/var/override/numbered/no_init/f32.wgsl.expected.glsl +++ b/test/var/override/numbered/no_init/f32.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 1234 #endif const float o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 1234 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/numbered/no_init/i32.wgsl.expected.glsl b/test/var/override/numbered/no_init/i32.wgsl.expected.glsl index 54222e3dcc..7ba93a5168 100644 --- a/test/var/override/numbered/no_init/i32.wgsl.expected.glsl +++ b/test/var/override/numbered/no_init/i32.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 1234 #endif const int o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 1234 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/numbered/no_init/u32.wgsl.expected.glsl b/test/var/override/numbered/no_init/u32.wgsl.expected.glsl index 631b5f4aa3..80d9e41085 100644 --- a/test/var/override/numbered/no_init/u32.wgsl.expected.glsl +++ b/test/var/override/numbered/no_init/u32.wgsl.expected.glsl @@ -7,16 +7,15 @@ precision mediump float; #error spec constant required for constant id 1234 #endif const uint o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '#error' : spec constant required for constant id 1234 ERROR: 0:6: '' : missing #endif diff --git a/test/var/override/numbered/val_init/bool.wgsl.expected.glsl b/test/var/override/numbered/val_init/bool.wgsl.expected.glsl index 8991843f55..e72288d1da 100644 --- a/test/var/override/numbered/val_init/bool.wgsl.expected.glsl +++ b/test/var/override/numbered/val_init/bool.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 true #endif const bool o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/val_init/f32.wgsl.expected.glsl b/test/var/override/numbered/val_init/f32.wgsl.expected.glsl index 3e56eb0759..264a4819ba 100644 --- a/test/var/override/numbered/val_init/f32.wgsl.expected.glsl +++ b/test/var/override/numbered/val_init/f32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 1.0f #endif const float o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/val_init/i32.wgsl.expected.glsl b/test/var/override/numbered/val_init/i32.wgsl.expected.glsl index 99a03ef46f..ff99d268f9 100644 --- a/test/var/override/numbered/val_init/i32.wgsl.expected.glsl +++ b/test/var/override/numbered/val_init/i32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 1 #endif const int o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/val_init/u32.wgsl.expected.glsl b/test/var/override/numbered/val_init/u32.wgsl.expected.glsl index ab1ec9389d..a6d6f0b622 100644 --- a/test/var/override/numbered/val_init/u32.wgsl.expected.glsl +++ b/test/var/override/numbered/val_init/u32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 1u #endif const uint o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/zero_init/bool.wgsl.expected.glsl b/test/var/override/numbered/zero_init/bool.wgsl.expected.glsl index 4f1f5d0dab..55bbfa4e2c 100644 --- a/test/var/override/numbered/zero_init/bool.wgsl.expected.glsl +++ b/test/var/override/numbered/zero_init/bool.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 false #endif const bool o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/zero_init/f32.wgsl.expected.glsl b/test/var/override/numbered/zero_init/f32.wgsl.expected.glsl index b108b604f2..21bf19f437 100644 --- a/test/var/override/numbered/zero_init/f32.wgsl.expected.glsl +++ b/test/var/override/numbered/zero_init/f32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 0.0f #endif const float o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/zero_init/i32.wgsl.expected.glsl b/test/var/override/numbered/zero_init/i32.wgsl.expected.glsl index bece0634b7..dabd0b77ab 100644 --- a/test/var/override/numbered/zero_init/i32.wgsl.expected.glsl +++ b/test/var/override/numbered/zero_init/i32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 0 #endif const int o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/override/numbered/zero_init/u32.wgsl.expected.glsl b/test/var/override/numbered/zero_init/u32.wgsl.expected.glsl index 34d04323f2..80421e97d8 100644 --- a/test/var/override/numbered/zero_init/u32.wgsl.expected.glsl +++ b/test/var/override/numbered/zero_init/u32.wgsl.expected.glsl @@ -5,13 +5,12 @@ precision mediump float; #define WGSL_SPEC_CONSTANT_1234 0u #endif const uint o = WGSL_SPEC_CONSTANT_1234; - layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void tint_symbol() { return; } + void main() { tint_symbol(); } - diff --git a/test/var/uses/many_workgroup_vars.wgsl.expected.glsl b/test/var/uses/many_workgroup_vars.wgsl.expected.glsl index 42cbfeb1bb..a81184b5e6 100644 --- a/test/var/uses/many_workgroup_vars.wgsl.expected.glsl +++ b/test/var/uses/many_workgroup_vars.wgsl.expected.glsl @@ -101,7 +101,6 @@ shared mat2 m96; shared mat2 m97; shared mat2 m98; shared mat2 m99; - struct tint_symbol_2 { uint idx; }; @@ -317,10 +316,11 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.idx); return; } + + void main() { tint_symbol_2 inputs; inputs.idx = uint(gl_LocalInvocationIndex); tint_symbol(inputs); } - diff --git a/test/var/uses/private.wgsl.expected.glsl b/test/var/uses/private.wgsl.expected.glsl index f2d75e9124..a02a261005 100644 --- a/test/var/uses/private.wgsl.expected.glsl +++ b/test/var/uses/private.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; int a = 0; - void uses_a() { a = (a + 1); } @@ -13,16 +12,15 @@ void main1() { uses_a(); return; } + void main() { main1(); } - #version 310 es precision mediump float; int b = 0; - void uses_b() { b = (b * 2); } @@ -33,17 +31,16 @@ void main2() { uses_b(); return; } + void main() { main2(); } - #version 310 es precision mediump float; int a = 0; int b = 0; - void uses_a() { a = (a + 1); } @@ -73,11 +70,11 @@ void main3() { no_uses(); return; } + void main() { main3(); } - #version 310 es precision mediump float; @@ -89,8 +86,8 @@ void main4() { no_uses(); return; } + void main() { main4(); } - diff --git a/test/var/uses/workgroup.wgsl.expected.glsl b/test/var/uses/workgroup.wgsl.expected.glsl index b577200a92..d2c86cae3c 100644 --- a/test/var/uses/workgroup.wgsl.expected.glsl +++ b/test/var/uses/workgroup.wgsl.expected.glsl @@ -2,7 +2,6 @@ precision mediump float; shared int a; - void uses_a() { a = (a + 1); } @@ -23,6 +22,7 @@ void main1_inner(uint local_invocation_index) { struct tint_symbol_3 { uint local_invocation_index_1; }; + struct tint_symbol_5 { uint local_invocation_index_2; }; @@ -32,18 +32,18 @@ void main1(tint_symbol_1 tint_symbol) { main1_inner(tint_symbol.local_invocation_index); return; } + + void main() { tint_symbol_1 inputs; inputs.local_invocation_index = uint(gl_LocalInvocationIndex); main1(inputs); } - #version 310 es precision mediump float; shared int b; - void uses_b() { b = (b * 2); } @@ -51,6 +51,7 @@ void uses_b() { struct tint_symbol_1 { uint local_invocation_index; }; + struct tint_symbol_3 { uint local_invocation_index_1; }; @@ -73,19 +74,19 @@ void main2(tint_symbol_3 tint_symbol_2) { main2_inner(tint_symbol_2.local_invocation_index_1); return; } + + void main() { tint_symbol_3 inputs; inputs.local_invocation_index_1 = uint(gl_LocalInvocationIndex); main2(inputs); } - #version 310 es precision mediump float; shared int a; shared int b; - void uses_a() { a = (a + 1); } @@ -112,9 +113,11 @@ void outer() { struct tint_symbol_1 { uint local_invocation_index; }; + struct tint_symbol_3 { uint local_invocation_index_1; }; + struct tint_symbol_5 { uint local_invocation_index_2; }; @@ -134,13 +137,14 @@ void main3(tint_symbol_5 tint_symbol_4) { main3_inner(tint_symbol_4.local_invocation_index_2); return; } + + void main() { tint_symbol_5 inputs; inputs.local_invocation_index_2 = uint(gl_LocalInvocationIndex); main3(inputs); } - #version 310 es precision mediump float; @@ -150,9 +154,11 @@ void no_uses() { struct tint_symbol_1 { uint local_invocation_index; }; + struct tint_symbol_3 { uint local_invocation_index_1; }; + struct tint_symbol_5 { uint local_invocation_index_2; }; @@ -162,8 +168,8 @@ void main4() { no_uses(); return; } + void main() { main4(); } - diff --git a/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.spvasm.expected.glsl index e9b11aa804..93c8bb356c 100644 --- a/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.spvasm.expected.glsl @@ -7,6 +7,7 @@ struct doesNotMatter { int global_seed; int data[]; }; + struct buf1 { vec2 injectionSwitch; }; @@ -62,13 +63,14 @@ void tint_symbol_1(tint_symbol_4 tint_symbol_3) { tint_symbol_1_inner(tint_symbol_3.tint_symbol_2); return; } + + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_LocalInvocationID; tint_symbol_1(inputs); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl.expected.glsl index 64cd1b0aee..ff8ddc5ab5 100644 --- a/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl.expected.glsl @@ -11,6 +11,7 @@ struct doesNotMatter { int global_seed; int data[]; }; + struct buf1 { vec2 injectionSwitch; }; @@ -66,13 +67,14 @@ void tint_symbol_1(tint_symbol_4 tint_symbol_3) { tint_symbol_1_inner(tint_symbol_3.tint_symbol_2); return; } + + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_LocalInvocationID; tint_symbol_1(inputs); } - Error parsing GLSL shader: ERROR: 0:6: '' : array size required ERROR: 0:7: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.glsl index 5f47c2e412..e03004c065 100644 --- a/test/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_25; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - vec3 drawShape_vf2_(inout vec2 pos) { bool c2 = false; bool c3 = false; @@ -193,9 +193,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -213,7 +215,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -222,7 +226,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:104: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:104: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl.expected.glsl index 4f456a195a..c39a0db3f3 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[3]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[1]; }; @@ -27,11 +30,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_int_values[3]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[1]; } x_8; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float undefined = 0.0f; bool x_51 = false; @@ -65,6 +69,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -82,16 +87,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:29: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) -ERROR: 0:29: '' : compilation terminated +ERROR: 0:33: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) +ERROR: 0:33: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl index d2367173ee..932f6e3013 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.spvasm.expected.glsl @@ -7,12 +7,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[1]; }; @@ -74,6 +77,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -91,16 +95,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:39: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:39: '' : compilation terminated +ERROR: 0:42: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:42: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl index 1dd827910b..990ae876c8 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-module-small-number/0-opt.wgsl.expected.glsl @@ -18,12 +18,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[1]; }; @@ -100,6 +103,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -117,16 +121,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:28: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) -ERROR: 0:28: '' : compilation terminated +ERROR: 0:31: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) +ERROR: 0:31: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.glsl index 2af44269c0..08ce5c5b45 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); float dist1 = 0.0f; @@ -23,6 +22,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -40,16 +40,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:13: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:13: '' : compilation terminated +ERROR: 0:12: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:12: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.spvasm.expected.glsl index f96b1ee330..240e0313d2 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.spvasm.expected.glsl @@ -13,6 +13,7 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[3]; }; @@ -20,8 +21,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[3]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int i = 0; vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -57,6 +58,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -74,13 +76,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:6: 'uint4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl.expected.glsl index f1e2c9615e..61674516a4 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl.expected.glsl @@ -17,6 +17,7 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[3]; }; @@ -24,8 +25,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[3]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int i = 0; vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -61,6 +62,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -78,13 +80,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:6: 'uint4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.spvasm.expected.glsl index 390a73f301..2e0d58b8a6 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[1]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; @@ -20,11 +23,12 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[1]; } x_8; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_11; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); int f1_() { int a = 0; int i = 0; @@ -67,9 +71,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -87,7 +93,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -96,11 +104,10 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:35: 'countbits' : no matching overloaded function found -ERROR: 0:35: 'assign' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:35: '' : compilation terminated +ERROR: 0:39: 'countbits' : no matching overloaded function found +ERROR: 0:39: 'assign' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:39: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl.expected.glsl index d319728885..29f6381622 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[1]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; @@ -28,11 +31,12 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[1]; } x_8; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_11; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); int f1_() { int a = 0; int i = 0; @@ -75,9 +79,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -95,7 +101,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -104,11 +112,10 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:35: 'countbits' : no matching overloaded function found -ERROR: 0:35: 'assign' : cannot convert from ' const float' to ' temp mediump int' -ERROR: 0:35: '' : compilation terminated +ERROR: 0:39: 'countbits' : no matching overloaded function found +ERROR: 0:39: 'assign' : cannot convert from ' const float' to ' temp mediump int' +ERROR: 0:39: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.spvasm.expected.glsl index 85ff02e2fc..45603042fa 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_5; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int x_28 = 0; int x_29 = 0; @@ -65,6 +66,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -82,16 +84,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:22: 'reversebits' : no matching overloaded function found -ERROR: 0:22: '' : compilation terminated +ERROR: 0:23: 'reversebits' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.glsl index fead835fd1..31c8c48939 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; @@ -17,8 +18,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_5; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int x_28 = 0; int x_29 = 0; @@ -69,6 +70,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -86,16 +88,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:22: 'reversebits' : no matching overloaded function found -ERROR: 0:22: '' : compilation terminated +ERROR: 0:23: 'reversebits' : no matching overloaded function found +ERROR: 0:23: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.spvasm.expected.glsl index a623f5547e..ebf33124be 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.spvasm.expected.glsl @@ -13,21 +13,27 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[3]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf2 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; + struct buf3 { int three; }; + struct tint_padded_array_element_2 { uint el; }; + struct buf0 { tint_padded_array_element_2 x_GLF_uniform_uint_values[1]; }; @@ -36,13 +42,16 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[3]; } x_8; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 2) uniform buf2_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_12; + layout(binding = 3) uniform buf3_1 { int three; } x_14; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_2 x_GLF_uniform_uint_values[1]; } x_16; @@ -125,9 +134,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -145,7 +156,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -154,7 +167,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:6: 'int4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl.expected.glsl index 0d4da519c9..2259446db8 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl.expected.glsl @@ -25,21 +25,27 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[3]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf2 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; + struct buf3 { int three; }; + struct tint_padded_array_element_2 { uint el; }; + struct buf0 { tint_padded_array_element_2 x_GLF_uniform_uint_values[1]; }; @@ -48,13 +54,16 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[3]; } x_8; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 2) uniform buf2_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_12; + layout(binding = 3) uniform buf3_1 { int three; } x_14; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_2 x_GLF_uniform_uint_values[1]; } x_16; @@ -137,9 +146,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -157,7 +168,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -166,7 +179,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:6: 'int4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.glsl index 56aa8c4368..64413c4a04 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { int i = 0; int j = 0; @@ -29,6 +28,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -46,16 +46,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:19: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:19: '' : compilation terminated +ERROR: 0:18: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:18: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl.expected.glsl index d3bc8bed09..900486a4e5 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; @@ -36,6 +37,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -53,16 +55,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:17: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) -ERROR: 0:17: '' : compilation terminated +ERROR: 0:18: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' const float' and a right operand of type ' const float' (or there is no acceptable conversion) +ERROR: 0:18: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.glsl index 85ecb2fb8f..82ba3e22b9 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { float f = 0.0f; f = atan(1.0f, tanh(1.0f)); @@ -19,6 +18,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -36,16 +36,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:9: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:9: '' : compilation terminated +ERROR: 0:8: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:8: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.spvasm.expected.glsl index 6ba4f24b1c..e676744175 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int a = 0; int i = 0; @@ -51,6 +52,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -68,16 +70,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:27: 'reversebits' : no matching overloaded function found -ERROR: 0:27: '' : compilation terminated +ERROR: 0:28: 'reversebits' : no matching overloaded function found +ERROR: 0:28: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl.expected.glsl index 7bb7851923..270ef81706 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; @@ -17,8 +18,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int a = 0; int i = 0; @@ -55,6 +56,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -72,16 +74,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:27: 'reversebits' : no matching overloaded function found -ERROR: 0:27: '' : compilation terminated +ERROR: 0:28: 'reversebits' : no matching overloaded function found +ERROR: 0:28: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.spvasm.expected.glsl index b8a9e31f9f..ff629a419a 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.spvasm.expected.glsl @@ -6,15 +6,19 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; + struct buf2 { vec2 injectionSwitch; }; @@ -23,14 +27,16 @@ int x_GLF_global_loop_count = 0; layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_7; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_10; + layout(binding = 2) uniform buf2_1 { vec2 injectionSwitch; } x_12; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float f = 0.0f; int r = 0; @@ -81,6 +87,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -98,16 +105,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:49: 'ddx' : no matching overloaded function found -ERROR: 0:49: '' : compilation terminated +ERROR: 0:55: 'ddx' : no matching overloaded function found +ERROR: 0:55: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl.expected.glsl index 37216d1f1e..a1dd337398 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl.expected.glsl @@ -14,15 +14,19 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; + struct buf2 { vec2 injectionSwitch; }; @@ -31,14 +35,16 @@ int x_GLF_global_loop_count = 0; layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_7; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_10; + layout(binding = 2) uniform buf2_1 { vec2 injectionSwitch; } x_12; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float f = 0.0f; int r = 0; @@ -89,6 +95,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -106,16 +113,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:49: 'ddx' : no matching overloaded function found -ERROR: 0:49: '' : compilation terminated +ERROR: 0:55: 'ddx' : no matching overloaded function found +ERROR: 0:55: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.glsl index 6d1de6faf7..6320755cbf 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { mat2 m = mat2(0.0f, 0.0f, 0.0f, 0.0f); m = (transpose(mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f))) * (1.0f / 2.0f)); @@ -20,6 +19,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -37,16 +37,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:10: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) -ERROR: 0:10: '' : compilation terminated +ERROR: 0:9: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) +ERROR: 0:9: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.glsl index 13968b5a15..bb9081f665 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { bool a = false; a = false; @@ -19,6 +18,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -36,16 +36,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:9: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:9: '' : compilation terminated +ERROR: 0:8: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:8: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.glsl index 552eb47d7b..1ac4916fe0 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { int i = 0; i = 2; @@ -30,9 +29,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -50,7 +51,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -59,10 +62,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:14: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion) -ERROR: 0:14: '' : compilation terminated +ERROR: 0:13: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion) +ERROR: 0:13: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.glsl index 49338f435c..621b4bbc8f 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { float x_22 = tint_symbol.x; if (((x_22 < 0.0f) | true)) { @@ -19,9 +18,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -39,7 +40,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -48,10 +51,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:9: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion) -ERROR: 0:9: '' : compilation terminated +ERROR: 0:8: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion) +ERROR: 0:8: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.spvasm.expected.glsl index 8d054187ba..6c4965b66b 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { uint one; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; uint b = 0u; @@ -60,6 +60,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -77,13 +78,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:50: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:50: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.glsl index 961fcfb3d8..c3ca7d7af8 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { float one; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float f = 0.0f; float x_28 = x_6.one; @@ -27,6 +27,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -44,13 +45,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:17: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:17: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.glsl index 6a250ee793..8be8ca8430 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { float four; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float a = 0.0f; float x_27 = x_6.four; @@ -27,6 +27,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -44,13 +45,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:17: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:17: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.glsl index fa0eab9297..abd1a1e143 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { float one; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float f = 0.0f; float x_28 = x_6.one; @@ -27,6 +27,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -44,13 +45,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:17: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:17: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.spvasm.expected.glsl index 4c8a214490..df8d742dc5 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_5; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec2 x_29 = x_5.injectionSwitch; if (((bvec2(false, false) ? vec2(1.0f, 1.0f) : x_29).x == 0.0f)) { @@ -25,6 +25,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -42,13 +43,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:15: '' : boolean expression expected ERROR: 0:15: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl.expected.glsl index 4c8a214490..df8d742dc5 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_5; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec2 x_29 = x_5.injectionSwitch; if (((bvec2(false, false) ? vec2(1.0f, 1.0f) : x_29).x == 0.0f)) { @@ -25,6 +25,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -42,13 +43,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:15: '' : boolean expression expected ERROR: 0:15: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.glsl index a7344c5fef..7f816f4ec3 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 threeandfour; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); v = vec4(2.0f, 3.0f, 4.0f, 5.0f); @@ -30,6 +30,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -47,13 +48,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:17: '' : boolean expression expected ERROR: 0:17: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.glsl index a7344c5fef..7f816f4ec3 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 threeandfour; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); v = vec4(2.0f, 3.0f, 4.0f, 5.0f); @@ -30,6 +30,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -47,13 +48,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:17: '' : boolean expression expected ERROR: 0:17: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.spvasm.expected.glsl index 87aa1ed1dd..745c67ca3d 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[1]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; }; @@ -20,6 +23,7 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[1]; } x_8; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; @@ -48,9 +52,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -68,7 +74,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -77,10 +85,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:30: 'frac' : no matching overloaded function found -ERROR: 0:30: '' : compilation terminated +ERROR: 0:34: 'frac' : no matching overloaded function found +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl.expected.glsl index 0946941738..4d08ecf28d 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[1]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; }; @@ -28,6 +31,7 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[1]; } x_8; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; @@ -56,9 +60,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -76,7 +82,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -85,10 +93,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:30: 'frac' : no matching overloaded function found -ERROR: 0:30: '' : compilation terminated +ERROR: 0:34: 'frac' : no matching overloaded function found +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.spvasm.expected.glsl index bfff2e3285..cd589ef97d 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[1]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[1]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec2 v1 = vec2(0.0f, 0.0f); vec2 b = vec2(0.0f, 0.0f); @@ -54,6 +55,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -71,17 +73,17 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:24: 'frac' : no matching overloaded function found -ERROR: 0:24: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:25: 'frac' : no matching overloaded function found +ERROR: 0:25: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' +ERROR: 0:25: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl.expected.glsl index 5f3f1a2a61..3eb01e8619 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[1]; }; @@ -17,8 +18,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[1]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec2 v1 = vec2(0.0f, 0.0f); vec2 b = vec2(0.0f, 0.0f); @@ -58,6 +59,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -75,17 +77,17 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:24: 'frac' : no matching overloaded function found -ERROR: 0:24: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' -ERROR: 0:24: '' : compilation terminated +ERROR: 0:25: 'frac' : no matching overloaded function found +ERROR: 0:25: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' +ERROR: 0:25: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.glsl index 723fe04c1a..948c9ace13 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[3]; }; @@ -14,8 +15,8 @@ int x_GLF_global_loop_count = 0; layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[3]; } x_7; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); int func_() { while (true) { if ((x_GLF_global_loop_count < 100)) { @@ -66,6 +67,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -83,16 +85,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:40: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:40: '' : compilation terminated +ERROR: 0:41: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.glsl index f86ebbe339..a7a4d1186d 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[5]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[5]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int a = 0; int b = 0; @@ -88,6 +89,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -105,16 +107,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:32: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:32: '' : compilation terminated +ERROR: 0:33: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:33: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.spvasm.expected.glsl index 448c70aae0..924667ccd0 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.spvasm.expected.glsl @@ -18,12 +18,15 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -31,11 +34,12 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_6; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -109,6 +113,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -126,13 +131,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl.expected.glsl index 8e61de0999..6f2da3872e 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl.expected.glsl @@ -26,12 +26,15 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -39,11 +42,12 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_6; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -117,6 +121,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -134,13 +139,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.spvasm.expected.glsl index 2b5249fdae..4097def644 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; }; @@ -20,6 +23,7 @@ vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[2]; } x_8; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; @@ -72,9 +76,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -92,7 +98,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -101,10 +109,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:28: 'ddx' : no matching overloaded function found -ERROR: 0:28: '' : compilation terminated +ERROR: 0:32: 'ddx' : no matching overloaded function found +ERROR: 0:32: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl.expected.glsl index acd0fcc7cf..0bd2ff4d82 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; }; @@ -28,6 +31,7 @@ vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[2]; } x_8; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; @@ -80,9 +84,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -100,7 +106,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -109,10 +117,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:28: 'ddx' : no matching overloaded function found -ERROR: 0:28: '' : compilation terminated +ERROR: 0:32: 'ddx' : no matching overloaded function found +ERROR: 0:32: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.spvasm.expected.glsl index 42429fe138..68c29918c8 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.spvasm.expected.glsl @@ -18,12 +18,15 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[7]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -31,11 +34,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[7]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -101,6 +105,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -118,13 +123,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl.expected.glsl index a80bee34c7..578af5fb88 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl.expected.glsl @@ -26,12 +26,15 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[7]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -39,11 +42,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[7]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -109,6 +113,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -126,13 +131,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.spvasm.expected.glsl index 0e38b18e49..dc10b7c731 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[3]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; }; @@ -19,11 +22,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_int_values[3]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int A[2] = int[2](0, 0); int i = 0; @@ -89,6 +93,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -106,16 +111,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:59: '' : boolean expression expected -ERROR: 0:59: '' : compilation terminated +ERROR: 0:63: '' : boolean expression expected +ERROR: 0:63: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl.expected.glsl index 9f54f3b605..34dee10698 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[3]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; }; @@ -27,11 +30,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_int_values[3]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int A[2] = int[2](0, 0); int i = 0; @@ -97,6 +101,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -114,16 +119,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:59: '' : boolean expression expected -ERROR: 0:59: '' : compilation terminated +ERROR: 0:63: '' : boolean expression expected +ERROR: 0:63: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.spvasm.expected.glsl index cb8131bb4e..c01ff1b0c4 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.spvasm.expected.glsl @@ -18,12 +18,15 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[3]; }; @@ -31,11 +34,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_8; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[3]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -100,6 +104,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -117,13 +122,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl.expected.glsl index a5e024b0dd..1f2976fb34 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl.expected.glsl @@ -26,12 +26,15 @@ vec4 tint_unpack4x8snorm(uint param_0) { struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[3]; }; @@ -39,11 +42,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_8; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[3]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -108,6 +112,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -125,13 +130,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.spvasm.expected.glsl index b5da1b7da7..daf4a25c6f 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.spvasm.expected.glsl @@ -18,12 +18,15 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[4]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -31,11 +34,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[4]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -102,6 +106,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -119,13 +124,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'int4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl.expected.glsl index 0dca1d589c..bb34234fea 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl.expected.glsl @@ -26,12 +26,15 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[4]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -39,11 +42,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[4]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 v1 = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -110,6 +114,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -127,13 +132,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'int4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.spvasm.expected.glsl index f444b77c8c..6e9c639615 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_5; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float x_23 = x_5.x_GLF_uniform_float_values[1].el; if ((rsqrt(x_23) < -1.0f)) { @@ -33,6 +34,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -50,16 +52,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:18: 'rsqrt' : no matching overloaded function found -ERROR: 0:18: '' : compilation terminated +ERROR: 0:19: 'rsqrt' : no matching overloaded function found +ERROR: 0:19: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl.expected.glsl index 0f31772963..7412095786 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; @@ -17,8 +18,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_5; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float x_23 = x_5.x_GLF_uniform_float_values[1].el; if ((rsqrt(x_23) < -1.0f)) { @@ -37,6 +38,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -54,16 +56,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:18: 'rsqrt' : no matching overloaded function found -ERROR: 0:18: '' : compilation terminated +ERROR: 0:19: 'rsqrt' : no matching overloaded function found +ERROR: 0:19: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl.expected.glsl index 958bf9111f..a24ab1bcd0 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; }; @@ -28,6 +31,7 @@ vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[2]; } x_5; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; } x_8; @@ -53,6 +57,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -70,16 +75,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:33: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' global highp float' (or there is no acceptable conversion) -ERROR: 0:33: '' : compilation terminated +ERROR: 0:37: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' global highp float' (or there is no acceptable conversion) +ERROR: 0:37: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl.expected.glsl index 9376c83687..a4101cc725 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; }; @@ -28,6 +31,7 @@ vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[2]; } x_5; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[2]; } x_8; @@ -53,6 +57,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -70,16 +75,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:33: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' global highp float' and a right operand of type ' temp mediump float' (or there is no acceptable conversion) -ERROR: 0:33: '' : compilation terminated +ERROR: 0:37: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' global highp float' and a right operand of type ' temp mediump float' (or there is no acceptable conversion) +ERROR: 0:37: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.glsl index c27b4d1ad9..d0d142749e 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[6]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[6]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int arr[3] = int[3](0, 0, 0); int index = 0; @@ -84,6 +85,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -101,16 +103,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:35: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:35: '' : compilation terminated +ERROR: 0:36: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:36: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.spvasm.expected.glsl index fec84912e3..b3674d4d5d 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; @@ -19,11 +22,12 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_6; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_11; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float a = 0.0f; float b = 0.0f; @@ -76,6 +80,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -93,16 +98,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:50: 'ddx' : no matching overloaded function found -ERROR: 0:50: '' : compilation terminated +ERROR: 0:54: 'ddx' : no matching overloaded function found +ERROR: 0:54: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl.expected.glsl index 54385d6ec9..3480250fee 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; @@ -27,11 +30,12 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_6; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_11; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float a = 0.0f; float b = 0.0f; @@ -84,6 +88,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -101,16 +106,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:50: 'ddx' : no matching overloaded function found -ERROR: 0:50: '' : compilation terminated +ERROR: 0:54: 'ddx' : no matching overloaded function found +ERROR: 0:54: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.glsl index 00a633d768..c262568b20 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -19,12 +22,13 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_7; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { mat2x3 m23 = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); int i = 0; @@ -87,9 +91,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -107,7 +113,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -116,10 +124,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:71: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) -ERROR: 0:71: '' : compilation terminated +ERROR: 0:75: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) +ERROR: 0:75: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.glsl index 25e9b5dd3b..3517d054e4 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[2]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[2]; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { mat2 m = mat2(0.0f, 0.0f, 0.0f, 0.0f); int x_29 = x_6.x_GLF_uniform_int_values[0].el; @@ -41,6 +42,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -58,16 +60,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:25: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) -ERROR: 0:25: '' : compilation terminated +ERROR: 0:26: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) +ERROR: 0:26: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.spvasm.expected.glsl index b79327f486..159f5ebcea 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.spvasm.expected.glsl @@ -12,9 +12,11 @@ uint tint_pack4x8unorm(vec4 param_0) { struct buf1 { uint one; }; + struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[1]; }; @@ -23,6 +25,7 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { uint one; } x_8; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[1]; @@ -66,9 +69,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -86,7 +91,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -95,7 +102,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl.expected.glsl index 97b3d890b0..580bf97dea 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl.expected.glsl @@ -16,9 +16,11 @@ uint tint_pack4x8unorm(vec4 param_0) { struct buf1 { uint one; }; + struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[1]; }; @@ -27,6 +29,7 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { uint one; } x_8; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[1]; @@ -70,9 +73,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -90,7 +95,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -99,7 +106,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint4' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl.expected.glsl index 2eea2bf6f2..7a79be9463 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[3]; }; @@ -39,6 +40,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -56,16 +58,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:18: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' global highp float' and a right operand of type ' const float' (or there is no acceptable conversion) -ERROR: 0:18: '' : compilation terminated +ERROR: 0:19: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' global highp float' and a right operand of type ' const float' (or there is no acceptable conversion) +ERROR: 0:19: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.glsl index 0c6fdceaa0..5da05158e6 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.glsl @@ -6,15 +6,19 @@ precision mediump float; struct buf2 { float one; }; + struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[1]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -23,15 +27,17 @@ mat4x2 m = mat4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 2) uniform buf2_1 { float one; } x_10; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[1]; } x_12; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_16; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void func0_i1_(inout int x) { int i = 0; bool x_137 = false; @@ -122,9 +128,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -142,7 +150,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -151,10 +161,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:106: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) -ERROR: 0:106: '' : compilation terminated +ERROR: 0:112: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) +ERROR: 0:112: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.spvasm.expected.glsl index d1b75ca1c2..0db518ee86 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.spvasm.expected.glsl @@ -18,12 +18,15 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[4]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -31,11 +34,12 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[4]; } x_8; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 values = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -111,6 +115,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -128,13 +133,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl.expected.glsl index 9594d1a3ca..6e1e672c0f 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl.expected.glsl @@ -26,12 +26,15 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[4]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -39,11 +42,12 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[4]; } x_8; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { uint a = 0u; vec4 values = vec4(0.0f, 0.0f, 0.0f, 0.0f); @@ -119,6 +123,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -136,13 +141,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:5: 'uint2' : undeclared identifier ERROR: 0:5: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.glsl index ab1bb8ab02..7554d6371b 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; @@ -40,6 +41,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -57,16 +59,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:25: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:25: '' : compilation terminated +ERROR: 0:26: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:26: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.glsl index 930cc2b44b..fcb1f4334d 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.glsl @@ -39,6 +39,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -56,13 +57,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:29: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:29: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.glsl index 8b5d662f60..3aa7fe48d1 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; @@ -13,8 +14,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_5; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { mat2 m = mat2(0.0f, 0.0f, 0.0f, 0.0f); float f = 0.0f; @@ -79,6 +80,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -96,16 +98,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:63: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) -ERROR: 0:63: '' : compilation terminated +ERROR: 0:64: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) +ERROR: 0:64: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl.expected.glsl index 1cfffa8b63..5243039138 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[1]; }; @@ -27,6 +30,7 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_6; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[1]; @@ -54,6 +58,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -71,16 +76,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:28: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' const float' (or there is no acceptable conversion) -ERROR: 0:28: '' : compilation terminated +ERROR: 0:32: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp mediump float' and a right operand of type ' const float' (or there is no acceptable conversion) +ERROR: 0:32: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.glsl index 8a03a1bcf4..fdb27df09d 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { float two; } x_8; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float a = 0.0f; float b = 0.0f; @@ -31,9 +31,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -51,7 +53,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -60,7 +64,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:18: 'ddx' : no matching overloaded function found ERROR: 0:18: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.glsl index 3b423b82fe..93fdda15a2 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { float two; } x_8; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { float a = 0.0f; float b = 0.0f; @@ -35,9 +35,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -55,7 +57,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -64,7 +68,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:18: 'ddx' : no matching overloaded function found ERROR: 0:18: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.glsl index 4256c8da32..d2284c07fc 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { mat2 m = mat2(0.0f, 0.0f, 0.0f, 0.0f); m = mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f)); @@ -21,6 +20,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -38,16 +38,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:11: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) -ERROR: 0:11: '' : compilation terminated +ERROR: 0:10: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.spvasm.expected.glsl index ac647207ad..24ddbb4576 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; }; @@ -20,6 +23,7 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_7; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; @@ -49,9 +53,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -69,7 +75,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -78,10 +86,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:30: 'frac' : no matching overloaded function found -ERROR: 0:30: '' : compilation terminated +ERROR: 0:34: 'frac' : no matching overloaded function found +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl.expected.glsl index 5796d7084f..1eb2456ccc 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; }; @@ -28,6 +31,7 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_7; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; @@ -57,9 +61,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -77,7 +83,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -86,10 +94,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:30: 'frac' : no matching overloaded function found -ERROR: 0:30: '' : compilation terminated +ERROR: 0:34: 'frac' : no matching overloaded function found +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.spvasm.expected.glsl index 875d5e0923..e012d939f6 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.spvasm.expected.glsl @@ -13,18 +13,23 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { uint el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_uint_values[1]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_2 { float el; }; + struct buf2 { tint_padded_array_element_2 x_GLF_uniform_float_values[3]; }; @@ -32,14 +37,16 @@ struct buf2 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_uint_values[1]; } x_6; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; } x_8; + layout(binding = 2) uniform buf2_1 { tint_padded_array_element_2 x_GLF_uniform_float_values[3]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); uint x_39 = x_6.x_GLF_uniform_uint_values[0].el; @@ -69,6 +76,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -86,13 +94,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:6: 'uint4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl.expected.glsl index e9da9185e7..2e45df0657 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl.expected.glsl @@ -25,18 +25,23 @@ vec4 tint_unpack4x8unorm(uint param_0) { struct tint_padded_array_element { uint el; }; + struct buf0 { tint_padded_array_element x_GLF_uniform_uint_values[1]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; }; + struct tint_padded_array_element_2 { float el; }; + struct buf2 { tint_padded_array_element_2 x_GLF_uniform_float_values[3]; }; @@ -44,14 +49,16 @@ struct buf2 { layout(binding = 0) uniform buf0_1 { tint_padded_array_element x_GLF_uniform_uint_values[1]; } x_6; + layout(binding = 1) uniform buf1_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[2]; } x_8; + layout(binding = 2) uniform buf2_1 { tint_padded_array_element_2 x_GLF_uniform_float_values[3]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f); uint x_39 = x_6.x_GLF_uniform_uint_values[0].el; @@ -81,6 +88,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -98,13 +106,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:6: 'uint4' : undeclared identifier ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.glsl index 97444b3658..8d9cc95fa7 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[3]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -19,11 +22,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[3]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_8; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { mat4x3 m43 = 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); tint_padded_array_element sums[3] = tint_padded_array_element[3](tint_padded_array_element(0.0f), tint_padded_array_element(0.0f), tint_padded_array_element(0.0f)); @@ -94,6 +98,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -111,17 +116,17 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:69: '[' : matrix index out of range '4' -ERROR: 0:69: '=' : cannot convert from ' temp mediump 3-component vector of float' to ' temp mediump float' -ERROR: 0:69: '' : compilation terminated +ERROR: 0:73: '[' : matrix index out of range '4' +ERROR: 0:73: '=' : cannot convert from ' temp mediump 3-component vector of float' to ' temp mediump float' +ERROR: 0:73: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.glsl index 8ebaef2a2d..e8a53f79e0 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[3]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; }; @@ -27,11 +30,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[3]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[4]; } x_8; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { mat4x3 m43 = 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); tint_padded_array_element sums[3] = tint_padded_array_element[3](tint_padded_array_element(0.0f), tint_padded_array_element(0.0f), tint_padded_array_element(0.0f)); @@ -102,6 +106,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -119,17 +124,17 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:69: '[' : matrix index out of range '4' -ERROR: 0:69: '=' : cannot convert from ' temp mediump 3-component vector of float' to ' temp mediump float' -ERROR: 0:69: '' : compilation terminated +ERROR: 0:73: '[' : matrix index out of range '4' +ERROR: 0:73: '=' : cannot convert from ' temp mediump 3-component vector of float' to ' temp mediump float' +ERROR: 0:73: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.glsl index f6ab9a518d..229597bb4f 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { int el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_int_values[4]; }; + struct tint_padded_array_element_1 { float el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_float_values[1]; }; @@ -19,11 +22,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_int_values[4]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_float_values[1]; } x_10; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { mat4 m0 = 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); int c = 0; @@ -90,6 +94,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -107,16 +112,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:74: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) -ERROR: 0:74: '' : compilation terminated +ERROR: 0:78: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' global bool' and a right operand of type ' global bool' (or there is no acceptable conversion) +ERROR: 0:78: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.spvasm.expected.glsl index b83041092e..89aaf528eb 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { vec2 a = vec2(0.0f, 0.0f); vec2 b = vec2(0.0f, 0.0f); @@ -24,6 +23,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -41,17 +41,17 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:12: 'frac' : no matching overloaded function found -ERROR: 0:12: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' -ERROR: 0:12: '' : compilation terminated +ERROR: 0:11: 'frac' : no matching overloaded function found +ERROR: 0:11: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' +ERROR: 0:11: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl.expected.glsl index b83041092e..89aaf528eb 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { vec2 a = vec2(0.0f, 0.0f); vec2 b = vec2(0.0f, 0.0f); @@ -24,6 +23,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -41,17 +41,17 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:12: 'frac' : no matching overloaded function found -ERROR: 0:12: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' -ERROR: 0:12: '' : compilation terminated +ERROR: 0:11: 'frac' : no matching overloaded function found +ERROR: 0:11: 'assign' : cannot convert from ' const float' to ' temp mediump 2-component vector of float' +ERROR: 0:11: '' : compilation terminated ERROR: 3 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.spvasm.expected.glsl index ce810c8bf1..5f684ce7dc 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.spvasm.expected.glsl @@ -6,12 +6,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; @@ -19,11 +22,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_8; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { mat3x2 m32 = mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); float sums[3] = float[3](0.0f, 0.0f, 0.0f); @@ -65,6 +69,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -82,16 +87,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:33: '[' : matrix index out of range '3' -ERROR: 0:33: '' : compilation terminated +ERROR: 0:37: '[' : matrix index out of range '3' +ERROR: 0:37: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl.expected.glsl index 09fb7a94d4..69875f3dfd 100644 --- a/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl.expected.glsl @@ -14,12 +14,15 @@ precision mediump float; struct tint_padded_array_element { float el; }; + struct buf1 { tint_padded_array_element x_GLF_uniform_float_values[2]; }; + struct tint_padded_array_element_1 { int el; }; + struct buf0 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; }; @@ -27,11 +30,12 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { tint_padded_array_element x_GLF_uniform_float_values[2]; } x_6; + layout(binding = 0) uniform buf0_1 { tint_padded_array_element_1 x_GLF_uniform_int_values[3]; } x_8; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { mat3x2 m32 = mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); float sums[3] = float[3](0.0f, 0.0f, 0.0f); @@ -73,6 +77,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -90,16 +95,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:33: '[' : matrix index out of range '3' -ERROR: 0:33: '' : compilation terminated +ERROR: 0:37: '[' : matrix index out of range '3' +ERROR: 0:37: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.glsl index f096729f31..2a18332639 100644 --- a/test/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int k = 0; int GLF_dead0j = 0; @@ -60,6 +60,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -77,13 +78,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:34: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:34: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.glsl index a368ca2704..980e746192 100644 --- a/test/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_6; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int i = 0; int GLF_dead5cols = 0; @@ -78,6 +78,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -95,13 +96,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:45: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:45: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.glsl index 00be6d8417..bfeab0a043 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf0 { vec2 injectionSwitch; }; + struct buf1 { vec2 resolution; }; @@ -15,9 +16,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -255,9 +256,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -275,7 +278,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -284,10 +289,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:35: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:35: '' : compilation terminated +ERROR: 0:36: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:36: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.glsl index f4467f06a9..728e211e16 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf0 { vec2 injectionSwitch; }; + struct buf1 { vec2 resolution; }; @@ -15,9 +16,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -265,9 +266,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -285,7 +288,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -294,10 +299,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:35: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:35: '' : compilation terminated +ERROR: 0:36: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:36: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.glsl index 9406cd2139..a8566edaff 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf0 { vec2 injectionSwitch; }; + struct buf1 { vec2 resolution; }; @@ -15,9 +16,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -259,9 +260,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -279,7 +282,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -288,10 +293,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:35: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:35: '' : compilation terminated +ERROR: 0:36: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:36: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.glsl index 67b5afd8ab..26f8b155f2 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_8; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); @@ -340,9 +340,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -360,7 +362,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -369,7 +373,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:173: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:173: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.glsl index d17ec3d286..34de0dbcf3 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_8; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); @@ -336,9 +336,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -356,7 +358,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -365,7 +369,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:169: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:169: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.glsl index 3f983377de..c4596a57d8 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.glsl @@ -12,9 +12,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -252,9 +252,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -272,7 +274,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -281,7 +285,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:32: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:32: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.glsl index c2247dfd8f..9125dea01c 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.glsl @@ -12,9 +12,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -272,9 +272,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -292,7 +294,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -301,7 +305,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:32: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:32: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.glsl index d6a5651905..26d72157e0 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.glsl @@ -12,9 +12,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -357,9 +357,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -377,7 +379,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -386,7 +390,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:55: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:55: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.glsl index 27dce67042..76950a8242 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.glsl @@ -12,9 +12,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -356,9 +356,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -376,7 +378,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -385,7 +389,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:54: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:54: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.glsl index cb10bc6a19..f03d8f4bd7 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.glsl @@ -12,9 +12,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -253,9 +253,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -273,7 +275,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -282,7 +286,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:32: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:32: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.glsl index 527eab9a32..99425f8ee9 100644 --- a/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.glsl @@ -12,9 +12,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -247,9 +247,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -267,7 +269,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -276,7 +280,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:32: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:32: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.glsl index 622a1cb746..f062c66a29 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_13; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - float compute_value_f1_f1_(inout float limit, inout float thirty_two) { float result = 0.0f; int i = 0; @@ -83,9 +83,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -103,7 +105,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -112,7 +116,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:26: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp float' and a right operand of type ' global mediump float' (or there is no acceptable conversion) ERROR: 0:26: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.glsl index da6a17e5f1..b4f5b644b3 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf0 { vec2 resolution; }; + struct buf1 { vec2 injectionSwitch; }; @@ -13,6 +14,7 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_13; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { @@ -97,9 +99,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -117,7 +121,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -126,10 +132,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:32: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp float' and a right operand of type ' global mediump float' (or there is no acceptable conversion) -ERROR: 0:32: '' : compilation terminated +ERROR: 0:34: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp float' and a right operand of type ' global mediump float' (or there is no acceptable conversion) +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.glsl index 8909a82197..ebadc4014c 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf0 { vec2 resolution; }; + struct buf1 { vec2 injectionSwitch; }; @@ -13,12 +14,13 @@ struct buf1 { layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_13; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf1_1 { vec2 injectionSwitch; } x_19; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); float compute_value_f1_f1_(inout float limit, inout float thirty_two) { float result = 0.0f; int i = 0; @@ -113,9 +115,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -133,7 +137,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -142,10 +148,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:32: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp float' and a right operand of type ' global mediump float' (or there is no acceptable conversion) -ERROR: 0:32: '' : compilation terminated +ERROR: 0:34: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp float' and a right operand of type ' global mediump float' (or there is no acceptable conversion) +ERROR: 0:34: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.glsl index 9c0f1e35f0..80288d17a3 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_13; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - float compute_value_f1_f1_(inout float limit, inout float thirty_two) { float result = 0.0f; int i = 0; @@ -88,9 +88,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -108,7 +110,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -117,7 +121,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:26: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' temp float' and a right operand of type ' global mediump float' (or there is no acceptable conversion) ERROR: 0:26: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.glsl index bbf17e1bdf..b8e2a5bb1a 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.glsl @@ -13,8 +13,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_34; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -286,9 +286,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -306,7 +308,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -315,7 +319,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:32: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:32: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.glsl index 994f694d25..8f5b8b2240 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_8; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); @@ -341,9 +341,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -361,7 +363,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -370,7 +374,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:136: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:136: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.glsl index 14f2ee7119..1b2c1b295e 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.glsl @@ -12,9 +12,9 @@ int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_28; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void merge_i1_i1_i1_(inout int from, inout int mid, inout int to) { int k = 0; int i = 0; @@ -262,9 +262,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -282,7 +284,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -291,7 +295,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:32: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:32: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.glsl index 13a0db3dc5..c0b137cbb8 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_24; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) { float x_79 = a.x; float x_81 = b.y; @@ -135,9 +135,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -155,7 +157,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -164,7 +168,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:65: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:65: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.glsl index 13a0db3dc5..c0b137cbb8 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_24; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) { float x_79 = a.x; float x_81 = b.y; @@ -135,9 +135,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -155,7 +157,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -164,7 +168,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:65: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:65: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.glsl index dc9973c39d..6a8426fa31 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_24; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) { float x_76 = a.x; float x_78 = b.y; @@ -117,9 +117,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -137,7 +139,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -146,7 +150,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:60: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:60: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.glsl index dc9973c39d..6a8426fa31 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_24; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) { float x_76 = a.x; float x_78 = b.y; @@ -117,9 +117,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -137,7 +139,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -146,7 +150,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:60: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:60: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.glsl index cbbffdbe94..e57336b094 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_15; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) { float x_85 = a.x; float x_87 = b.y; @@ -144,9 +144,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -164,7 +166,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -173,7 +177,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:87: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:87: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.glsl index cbbffdbe94..e57336b094 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.glsl @@ -10,9 +10,9 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_15; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) { float x_85 = a.x; float x_87 = b.y; @@ -144,9 +144,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -164,7 +166,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -173,7 +177,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:87: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:87: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.glsl index 4469a2d36b..0389bd3e6f 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_24; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) { float x_76 = a.x; float x_78 = b.y; @@ -117,9 +117,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -137,7 +139,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -146,7 +150,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:60: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:60: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.glsl index cb8ad32965..908ee2c52d 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_17; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); int pointInTriangle_vf2_vf2_vf2_vf2_(inout vec2 p, inout vec2 a, inout vec2 b, inout vec2 c) { float x_66 = 0.0f; float x_67 = 0.0f; @@ -120,9 +120,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -140,7 +142,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -149,7 +153,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:61: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:61: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.glsl index cb8ad32965..908ee2c52d 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.glsl @@ -11,8 +11,8 @@ vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { vec2 resolution; } x_17; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); int pointInTriangle_vf2_vf2_vf2_vf2_(inout vec2 p, inout vec2 a, inout vec2 b, inout vec2 c) { float x_66 = 0.0f; float x_67 = 0.0f; @@ -120,9 +120,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -140,7 +142,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -149,7 +153,6 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:61: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:61: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.glsl index 978d47d53a..6c3fdebb51 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf1 { vec2 injectionSwitch; }; + struct buf0 { vec2 resolution; }; @@ -13,6 +14,7 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { vec2 injectionSwitch; } x_11; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { @@ -162,9 +164,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -182,7 +186,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -191,10 +197,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:67: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:67: '' : compilation terminated +ERROR: 0:69: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:69: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.glsl index 978d47d53a..6c3fdebb51 100644 --- a/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf1 { vec2 injectionSwitch; }; + struct buf0 { vec2 resolution; }; @@ -13,6 +14,7 @@ struct buf0 { layout(binding = 1) uniform buf1_1 { vec2 injectionSwitch; } x_11; + vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 0) uniform buf0_1 { @@ -162,9 +164,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -182,7 +186,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -191,10 +197,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:67: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:67: '' : compilation terminated +ERROR: 0:69: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:69: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.spvasm.expected.glsl index df1b46e8fb..d038c4eecd 100644 --- a/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct buf0 { vec2 injectionSwitch; }; + struct doesNotMatter { uint x_compute_data[]; }; @@ -14,10 +15,10 @@ vec4 GLF_live2gl_FragCoord = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf0_1 { vec2 injectionSwitch; } x_9; + layout(binding = 0) buffer doesNotMatter_1 { uint x_compute_data[]; } x_12; - void main_1() { int GLF_live2_looplimiter1 = 0; int i = 0; @@ -73,14 +74,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:8: '' : array size required -ERROR: 0:9: '' : compilation terminated +ERROR: 0:9: '' : array size required +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl.expected.glsl index 1460a721f4..21e02c0819 100644 --- a/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct buf0 { vec2 injectionSwitch; }; + struct doesNotMatter { uint x_compute_data[]; }; @@ -18,10 +19,10 @@ vec4 GLF_live2gl_FragCoord = vec4(0.0f, 0.0f, 0.0f, 0.0f); layout(binding = 1) uniform buf0_1 { vec2 injectionSwitch; } x_9; + layout(binding = 0) buffer doesNotMatter_1 { uint x_compute_data[]; } x_12; - void main_1() { int GLF_live2_looplimiter1 = 0; int i = 0; @@ -77,14 +78,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:8: '' : array size required -ERROR: 0:9: '' : compilation terminated +ERROR: 0:9: '' : array size required +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.spvasm.expected.glsl index 42fd43ad01..56002107d2 100644 --- a/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.spvasm.expected.glsl @@ -10,7 +10,6 @@ struct doesNotMatter { layout(binding = 0) buffer doesNotMatter_1 { float x_compute_data[]; } x_9; - float nb_mod_() { float s = 0.0f; int i = 0; @@ -64,11 +63,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl.expected.glsl index dfa80b0ad2..a5d62b9bbd 100644 --- a/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl.expected.glsl @@ -14,7 +14,6 @@ struct doesNotMatter { layout(binding = 0) buffer doesNotMatter_1 { float x_compute_data[]; } x_9; - float nb_mod_() { float s = 0.0f; int i = 0; @@ -68,11 +67,11 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.spvasm.expected.glsl index 945df04c29..4479befb7f 100644 --- a/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.spvasm.expected.glsl @@ -6,9 +6,11 @@ precision mediump float; struct buf1 { vec2 injectionSwitch; }; + struct buf2 { vec2 resolution; }; + struct doesNotMatter { int x_compute_data[]; }; @@ -17,13 +19,14 @@ uvec3 tint_symbol = uvec3(0u, 0u, 0u); layout(binding = 1) uniform buf1_1 { vec2 injectionSwitch; } x_10; + layout(binding = 2) uniform buf2_1 { vec2 resolution; } x_13; + layout(binding = 0) buffer doesNotMatter_1 { int x_compute_data[]; } x_15; - void main_1() { float A[1] = float[1](0.0f); int i = 0; @@ -125,16 +128,17 @@ void tint_symbol_1(tint_symbol_4 tint_symbol_3) { tint_symbol_1_inner(tint_symbol_3.tint_symbol_2); return; } + + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_GlobalInvocationID; tint_symbol_1(inputs); } - Error parsing GLSL shader: -ERROR: 0:11: '' : array size required -ERROR: 0:12: '' : compilation terminated +ERROR: 0:13: '' : array size required +ERROR: 0:14: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl.expected.glsl index 6ab2068e04..e1a3cee149 100644 --- a/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl.expected.glsl @@ -10,9 +10,11 @@ precision mediump float; struct buf1 { vec2 injectionSwitch; }; + struct buf2 { vec2 resolution; }; + struct doesNotMatter { int x_compute_data[]; }; @@ -21,13 +23,14 @@ uvec3 tint_symbol = uvec3(0u, 0u, 0u); layout(binding = 1) uniform buf1_1 { vec2 injectionSwitch; } x_10; + layout(binding = 2) uniform buf2_1 { vec2 resolution; } x_13; + layout(binding = 0) buffer doesNotMatter_1 { int x_compute_data[]; } x_15; - void main_1() { float A[1] = float[1](0.0f); int i = 0; @@ -129,16 +132,17 @@ void tint_symbol_1(tint_symbol_4 tint_symbol_3) { tint_symbol_1_inner(tint_symbol_3.tint_symbol_2); return; } + + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_GlobalInvocationID; tint_symbol_1(inputs); } - Error parsing GLSL shader: -ERROR: 0:11: '' : array size required -ERROR: 0:12: '' : compilation terminated +ERROR: 0:13: '' : array size required +ERROR: 0:14: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.glsl index 1fd1e71959..69805a7578 100644 --- a/test/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.glsl @@ -10,8 +10,8 @@ struct buf0 { layout(binding = 0) uniform buf0_1 { int injected; } x_9; -vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); +vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { int idx = 0; mat4x3 m43 = 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); @@ -72,6 +72,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -89,13 +90,13 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: ERROR: 0:56: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) ERROR: 0:56: '' : compilation terminated diff --git a/test/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.glsl index 52969dce24..3f193c3e82 100644 --- a/test/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.glsl @@ -8,9 +8,11 @@ struct BST { int leftIndex; int rightIndex; }; + struct buf0 { vec2 injectionSwitch; }; + struct Obj { float odd_numbers[10]; float even_numbers[10]; @@ -20,9 +22,9 @@ BST tree_1[10] = BST[10](BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), layout(binding = 0) uniform buf0_1 { vec2 injectionSwitch; } x_27; + vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void makeTreeNode_struct_BST_i1_i1_i11_i1_(inout BST tree, inout int data) { int x_74 = data; tree.data = x_74; @@ -343,9 +345,11 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { vec4 x_GLF_color_1; }; @@ -363,7 +367,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } + layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -372,10 +378,9 @@ void main() { x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:85: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:85: '' : compilation terminated +ERROR: 0:87: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:87: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.glsl index acb8eb2d79..6a5e24a47b 100644 --- a/test/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.glsl @@ -4,7 +4,6 @@ SKIP: FAILED precision mediump float; vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f); - void main_1() { mat4x3 m43 = 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); int ll1 = 0; @@ -62,6 +61,7 @@ void main_1() { struct main_out { vec4 x_GLF_color_1; }; + struct tint_symbol_1 { vec4 x_GLF_color_1; }; @@ -79,16 +79,16 @@ tint_symbol_1 tint_symbol() { return wrapper_result; } layout(location = 0) out vec4 x_GLF_color_1; + void main() { tint_symbol_1 outputs; outputs = tint_symbol(); x_GLF_color_1 = outputs.x_GLF_color_1; } - Error parsing GLSL shader: -ERROR: 0:46: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:46: '' : compilation terminated +ERROR: 0:45: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:45: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.spvasm.expected.glsl index 02f715fe81..7b9fd6ba51 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.spvasm.expected.glsl @@ -6,6 +6,7 @@ precision mediump float; struct Buf1 { int result; }; + struct Buf0 { uint values[]; }; @@ -16,7 +17,6 @@ layout(binding = 1) buffer Buf1_1 { layout(binding = 0) buffer Buf0_1 { uint values[]; } x_7; - void main_1() { uint i = 0u; x_4.result = 1; @@ -37,14 +37,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:8: '' : array size required -ERROR: 0:9: '' : compilation terminated +ERROR: 0:9: '' : array size required +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl.expected.glsl index 326651d7b4..65245571d3 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl.expected.glsl @@ -10,6 +10,7 @@ precision mediump float; struct Buf1 { int result; }; + struct Buf0 { uint values[]; }; @@ -20,7 +21,6 @@ layout(binding = 1) buffer Buf1_1 { layout(binding = 0) buffer Buf0_1 { uint values[]; } x_7; - void main_1() { uint i = 0u; x_4.result = 1; @@ -41,14 +41,14 @@ void tint_symbol() { main_1(); return; } + void main() { tint_symbol(); } - Error parsing GLSL shader: -ERROR: 0:8: '' : array size required -ERROR: 0:9: '' : compilation terminated +ERROR: 0:9: '' : array size required +ERROR: 0:10: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.glsl index 1c5a1d0f0a..ad6293e250 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.glsl @@ -17,7 +17,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.glsl index adb3811cca..a2e99dfd1d 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.glsl @@ -21,7 +21,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.glsl index 22826d7870..d1c0197701 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.glsl @@ -17,7 +17,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.glsl index 1286ac5b1c..7c584e0a67 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.glsl @@ -21,7 +21,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.glsl index 92d374d759..422e6c1e09 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.glsl @@ -17,7 +17,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.glsl index 27702e2787..12d5533b97 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.glsl @@ -21,7 +21,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.glsl index 873316bba0..779119773a 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.glsl @@ -17,7 +17,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.glsl index 3276da59a0..2ebdf5b9c2 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.glsl @@ -21,7 +21,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_2.x; uint x_23 = x_5.field0[x_21]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.glsl index 242678e55d..0167827e02 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.glsl @@ -20,7 +20,6 @@ layout(binding = 2) buffer S_3 { layout(binding = 3) buffer S_4 { int field0[]; } x_9; - void main_1() { uint x_26 = x_3.x; int x_28 = x_6.field0[x_26]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.glsl index 1a3985b0c1..2a69831928 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.glsl @@ -24,7 +24,6 @@ layout(binding = 2) buffer S_3 { layout(binding = 3) buffer S_4 { int field0[]; } x_9; - void main_1() { uint x_26 = x_3.x; int x_28 = x_6.field0[x_26]; @@ -48,13 +47,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.glsl index dc137efeb6..60f5ad6bdf 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.glsl @@ -14,7 +14,6 @@ layout(binding = 0) buffer S_1 { layout(binding = 1) buffer S_2 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_3.x; uint x_23 = x_6.field0[x_21]; @@ -36,13 +35,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.glsl index 86c90af28e..74c1e3a3d1 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.glsl @@ -18,7 +18,6 @@ layout(binding = 0) buffer S_1 { layout(binding = 1) buffer S_2 { uint field0[]; } x_7; - void main_1() { uint x_21 = x_3.x; uint x_23 = x_6.field0[x_21]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.glsl index 0f91576ce4..daadbfb954 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.glsl @@ -20,7 +20,6 @@ layout(binding = 2) buffer S_3 { layout(binding = 3) buffer S_4 { uint field0[]; } x_9; - void main_1() { uint x_23 = x_3.x; uint x_25 = x_6.field0[x_23]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.glsl index 0bb536432a..44485c95c6 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.glsl @@ -24,7 +24,6 @@ layout(binding = 2) buffer S_3 { layout(binding = 3) buffer S_4 { uint field0[]; } x_9; - void main_1() { uint x_23 = x_3.x; uint x_25 = x_6.field0[x_23]; @@ -48,13 +47,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.glsl index 39e0b8a4e7..ab97231030 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.glsl @@ -17,7 +17,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_8; - void main_1() { uint x_21 = x_3.x; uint x_23 = x_6.field0[x_21]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.glsl index c096bc4bdc..faef5335f3 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.glsl @@ -21,7 +21,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_8; - void main_1() { uint x_21 = x_3.x; uint x_23 = x_6.field0[x_21]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.glsl index 3e239cb928..80abfcfe3c 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.glsl @@ -17,7 +17,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_8; - void main_1() { uint x_21 = x_3.x; uint x_23 = x_6.field0[x_21]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.glsl index 0e5cbbdc90..09b6341dd9 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.glsl @@ -21,7 +21,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_8; - void main_1() { uint x_21 = x_3.x; uint x_23 = x_6.field0[x_21]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_3_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_3_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.glsl index 363699a695..74afb3ce8a 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.glsl @@ -17,7 +17,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_20 = x_2.x; uint x_22 = x_5.field0[x_20]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.glsl index a3952069bf..9db4599b17 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.glsl @@ -21,7 +21,6 @@ layout(binding = 1) buffer S_2 { layout(binding = 2) buffer S_3 { uint field0[]; } x_7; - void main_1() { uint x_20 = x_2.x; uint x_22 = x_5.field0[x_20]; @@ -44,13 +43,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.glsl index 58f47fc57a..09af2540f6 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.glsl @@ -14,7 +14,6 @@ layout(binding = 0) buffer S_1 { layout(binding = 1) buffer S_2 { uint field0[]; } x_6; - void main_1() { uint x_20 = x_2.x; uint x_22 = x_5.field0[x_20]; @@ -36,13 +35,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.glsl index 46b371d272..5784b16c61 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.glsl @@ -18,7 +18,6 @@ layout(binding = 0) buffer S_1 { layout(binding = 1) buffer S_2 { uint field0[]; } x_6; - void main_1() { uint x_20 = x_2.x; uint x_22 = x_5.field0[x_20]; @@ -40,13 +39,14 @@ void tint_symbol(tint_symbol_2 tint_symbol_1) { tint_symbol_inner(tint_symbol_1.x_2_param); return; } + + void main() { tint_symbol_2 inputs; inputs.x_2_param = gl_GlobalInvocationID; tint_symbol(inputs); } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.glsl index 5fdcb38745..cda39d28bb 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.glsl @@ -5,7 +5,6 @@ precision mediump float; vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); int out_data = 0; - void main_1() { bool x_is_odd = false; bool y_is_odd = false; @@ -20,9 +19,11 @@ void main_1() { struct main_out { int out_data_1; }; + struct tint_symbol_4 { vec4 tint_symbol_2; }; + struct tint_symbol_5 { int out_data_1; }; @@ -40,7 +41,9 @@ tint_symbol_5 tint_symbol_1(tint_symbol_4 tint_symbol_3) { wrapper_result.out_data_1 = inner_result.out_data_1; return wrapper_result; } + layout(location = 0) out int out_data_1; + void main() { tint_symbol_4 inputs; inputs.tint_symbol_2 = gl_FragCoord; @@ -49,10 +52,9 @@ void main() { out_data_1 = outputs.out_data_1; } - Error parsing GLSL shader: -ERROR: 0:14: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) -ERROR: 0:14: '' : compilation terminated +ERROR: 0:13: '|' : wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) +ERROR: 0:13: '' : compilation terminated ERROR: 2 compilation errors. No code generated. diff --git a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.spvasm.expected.glsl index c06c74435d..fe71638056 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.spvasm.expected.glsl @@ -13,7 +13,6 @@ int x_4 = 0; layout(binding = 0) buffer S_1 { int field0[]; } x_5; - void main_1() { x_4 = 1; vec4 x_23 = x_2; @@ -28,10 +27,12 @@ void main_1() { struct main_out { int x_4_1; }; + struct tint_symbol_2 { int x_3_param; vec4 x_2_param; }; + struct tint_symbol_3 { int x_4_1; }; @@ -51,7 +52,9 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { return wrapper_result; } layout(location = 0) flat in int x_3_param; + layout(location = 0) out int x_4_1; + void main() { tint_symbol_2 inputs; inputs.x_3_param = x_3_param; @@ -61,7 +64,6 @@ void main() { x_4_1 = outputs.x_4_1; } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl.expected.glsl index cf3ecc7193..7b5ffa58c4 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl.expected.glsl @@ -17,7 +17,6 @@ int x_4 = 0; layout(binding = 0) buffer S_1 { int field0[]; } x_5; - void main_1() { x_4 = 1; vec4 x_23 = x_2; @@ -32,10 +31,12 @@ void main_1() { struct main_out { int x_4_1; }; + struct tint_symbol_2 { int x_3_param; vec4 x_2_param; }; + struct tint_symbol_3 { int x_4_1; }; @@ -55,7 +56,9 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { return wrapper_result; } layout(location = 0) flat in int x_3_param; + layout(location = 0) out int x_4_1; + void main() { tint_symbol_2 inputs; inputs.x_3_param = x_3_param; @@ -65,7 +68,6 @@ void main() { x_4_1 = outputs.x_4_1; } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.spvasm.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.spvasm.expected.glsl index 18cb20e058..82201ade56 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.spvasm.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.spvasm.expected.glsl @@ -13,7 +13,6 @@ int x_4 = 0; layout(binding = 0) buffer S_1 { int field0[]; } x_5; - void main_1() { x_4 = 1; vec4 x_23 = x_2; @@ -29,10 +28,12 @@ void main_1() { struct main_out { int x_4_1; }; + struct tint_symbol_2 { int x_3_param; vec4 x_2_param; }; + struct tint_symbol_3 { int x_4_1; }; @@ -52,7 +53,9 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { return wrapper_result; } layout(location = 0) flat in int x_3_param; + layout(location = 0) out int x_4_1; + void main() { tint_symbol_2 inputs; inputs.x_3_param = x_3_param; @@ -62,7 +65,6 @@ void main() { x_4_1 = outputs.x_4_1; } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated diff --git a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl.expected.glsl b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl.expected.glsl index 133921cb0f..e196f128ce 100644 --- a/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl.expected.glsl +++ b/test/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl.expected.glsl @@ -17,7 +17,6 @@ int x_4 = 0; layout(binding = 0) buffer S_1 { int field0[]; } x_5; - void main_1() { x_4 = 1; vec4 x_23 = x_2; @@ -33,10 +32,12 @@ void main_1() { struct main_out { int x_4_1; }; + struct tint_symbol_2 { int x_3_param; vec4 x_2_param; }; + struct tint_symbol_3 { int x_4_1; }; @@ -56,7 +57,9 @@ tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) { return wrapper_result; } layout(location = 0) flat in int x_3_param; + layout(location = 0) out int x_4_1; + void main() { tint_symbol_2 inputs; inputs.x_3_param = x_3_param; @@ -66,7 +69,6 @@ void main() { x_4_1 = outputs.x_4_1; } - Error parsing GLSL shader: ERROR: 0:5: '' : array size required ERROR: 0:6: '' : compilation terminated