Update Tint GLSL expected results.
Change-Id: I4724ed45c65ed56a8b7c071f5da4120a427bdf19
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/153140
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
diff --git a/test/tint/bug/tint/749.spvasm.expected.glsl b/test/tint/bug/tint/749.spvasm.expected.glsl
index b2f6595..87b3373 100644
--- a/test/tint/bug/tint/749.spvasm.expected.glsl
+++ b/test/tint/bug/tint/749.spvasm.expected.glsl
@@ -1,4 +1,1497 @@
SKIP: FAILED
-input program is not valid
+
+struct QuicksortObject {
+ numbers : array<i32, 10u>,
+}
+
+struct buf0 {
+ /* @offset(0) */
+ resolution : vec2f,
+}
+
+var<private> obj : QuicksortObject;
+
+var<private> gl_FragCoord : vec4f;
+
+@group(0) @binding(0) var<uniform> x_188 : buf0;
+
+var<private> x_GLF_color : vec4f;
+
+const x_199 = vec3f(1.0f, 2.0f, 3.0f);
+
+fn swap_i1_i1_(i : ptr<function, i32>, j : ptr<function, i32>) {
+ var temp : i32;
+ let x_932 = temp;
+ temp = 0i;
+ temp = x_932;
+ let x_523 = x_199.zyz;
+ let x_933 = *(i);
+ *(i) = 0i;
+ *(i) = x_933;
+ let x_28 = *(i);
+ let x_934 = *(j);
+ *(j) = 0i;
+ *(j) = x_934;
+ let x_524 = x_523.yxy;
+ let x_935 = temp;
+ temp = 0i;
+ temp = x_935;
+ let x_30 = &(obj.numbers[x_28]);
+ let x_936 = *(x_30);
+ *(x_30) = 0i;
+ *(x_30) = x_936;
+ let x_31 = *(x_30);
+ let x_937 = temp;
+ temp = 0i;
+ temp = x_937;
+ temp = x_31;
+ let x_938 = *(j);
+ *(j) = 0i;
+ *(j) = x_938;
+ let x_525 = vec3f(x_523.z, x_199.x, x_523.y);
+ let x_939 = *(i);
+ *(i) = 0i;
+ *(i) = x_939;
+ let x_32 = *(i);
+ let x_940 = *(x_30);
+ *(x_30) = 0i;
+ *(x_30) = x_940;
+ let x_33 = *(j);
+ let x_941 = *(i);
+ *(i) = 0i;
+ *(i) = x_941;
+ let x_526 = x_525.xzz;
+ let x_942 = *(x_30);
+ *(x_30) = 0i;
+ *(x_30) = x_942;
+ let x_34 = &(obj.numbers[x_33]);
+ let x_35 = *(x_34);
+ let x_943 = obj;
+ obj = QuicksortObject();
+ obj = x_943;
+ let x_527 = x_526.xx;
+ let x_36 = &(obj.numbers[x_32]);
+ let x_528 = x_524.xzx;
+ *(x_36) = x_35;
+ let x_944 = obj;
+ obj = QuicksortObject();
+ obj = x_944;
+ let x_529 = x_526.yzx;
+ let x_945 = *(i);
+ *(i) = 0i;
+ *(i) = x_945;
+ let x_37 = *(j);
+ let x_946 = temp;
+ temp = 0i;
+ temp = x_946;
+ let x_530 = x_529.zy;
+ let x_947 = *(x_34);
+ *(x_34) = 0i;
+ *(x_34) = x_947;
+ let x_38 = temp;
+ let x_948 = *(j);
+ *(j) = 0i;
+ *(j) = x_948;
+ let x_531 = vec3f(x_527.x, x_526.yx);
+ let x_949 = *(x_36);
+ *(x_36) = 0i;
+ *(x_36) = x_949;
+ let x_950 = obj;
+ obj = QuicksortObject();
+ obj = x_950;
+ let x_532 = x_528.xyx;
+ let x_951 = *(x_34);
+ *(x_34) = 0i;
+ *(x_34) = x_951;
+ obj.numbers[x_37] = x_38;
+ return;
+}
+
+fn performPartition_i1_i1_(l : ptr<function, i32>, h : ptr<function, i32>) -> i32 {
+ var param_3 : i32;
+ var i_1 : i32;
+ var j_1 : i32;
+ var param_2 : i32;
+ var param_1 : i32;
+ var param : i32;
+ var pivot : i32;
+ var x_537 : vec2f;
+ var x_538 : vec3f;
+ let x_952 = *(h);
+ *(h) = 0i;
+ *(h) = x_952;
+ let x_41 = *(h);
+ let x_953 = *(l);
+ *(l) = 0i;
+ *(l) = x_953;
+ let x_42 = &(obj.numbers[x_41]);
+ let x_954 = *(x_42);
+ *(x_42) = 0i;
+ *(x_42) = x_954;
+ let x_43 = *(x_42);
+ let x_955 = param_3;
+ param_3 = 0i;
+ param_3 = x_955;
+ let x_534 = x_199.zxz;
+ let x_956 = param_1;
+ param_1 = 0i;
+ param_1 = x_956;
+ pivot = x_43;
+ let x_45 = *(l);
+ let x_957 = *(h);
+ *(h) = 0i;
+ *(h) = x_957;
+ let x_958 = j_1;
+ j_1 = 0i;
+ j_1 = x_958;
+ let x_535 = x_534.yzy;
+ let x_959 = *(l);
+ *(l) = 0i;
+ *(l) = x_959;
+ i_1 = (x_45 - bitcast<i32>(1u));
+ let x_49 = *(l);
+ let x_536 = vec3f(x_534.xz, x_535.x);
+ j_1 = 10i;
+ let x_960 = obj;
+ obj = QuicksortObject();
+ obj = x_960;
+ loop {
+ var x_61 : ptr<private, i32>;
+ var x_539 : vec3f;
+ var x_541 : vec3f;
+ let x_961 = pivot;
+ pivot = 0i;
+ pivot = x_961;
+ let x_962 = param_1;
+ param_1 = 0i;
+ param_1 = x_962;
+ let x_55 = j_1;
+ let x_963 = pivot;
+ pivot = 0i;
+ pivot = x_963;
+ x_537 = x_199.yz;
+ let x_964 = obj;
+ obj = QuicksortObject();
+ obj = x_964;
+ let x_56 = *(h);
+ let x_965 = *(h);
+ *(h) = 0i;
+ *(h) = x_965;
+ let x_966 = param;
+ param = 0i;
+ param = x_966;
+ let x_967 = j_1;
+ j_1 = 0i;
+ j_1 = x_967;
+ x_538 = vec3f(x_534.x, x_537.y, x_534.z);
+ let x_968 = param;
+ param = 0i;
+ param = x_968;
+ if ((x_55 <= (x_56 - bitcast<i32>(1u)))) {
+ } else {
+ break;
+ }
+ let x_60 = j_1;
+ let x_969 = *(x_42);
+ *(x_42) = 0i;
+ *(x_42) = x_969;
+ x_61 = obj.numbers[x_60];
+ let x_970 = *(h);
+ *(h) = 0i;
+ *(h) = x_970;
+ x_539 = vec3f(x_537.x, x_535.z, x_537.x);
+ let x_971 = param_1;
+ param_1 = 0i;
+ param_1 = x_971;
+ let x_62 = x_61;
+ let x_972 = obj;
+ obj = QuicksortObject();
+ obj = x_972;
+ let x_63 = pivot;
+ let x_540 = vec2f(x_199.y, x_534.z);
+ let x_973 = i_1;
+ i_1 = 0i;
+ i_1 = x_973;
+ let x_974 = *(l);
+ *(l) = 0i;
+ *(l) = x_974;
+ x_541 = x_534.yxy;
+ let x_975 = pivot;
+ pivot = 0i;
+ pivot = x_975;
+ if ((x_62 <= x_63)) {
+ let x_542 = x_541.zxx;
+ let x_976 = param_3;
+ param_3 = 0i;
+ param_3 = x_976;
+ let x_67 = i_1;
+ let x_977 = pivot;
+ pivot = 0i;
+ pivot = x_977;
+ let x_543 = vec2f(x_539.x, x_541.y);
+ let x_978 = i_1;
+ i_1 = 0i;
+ i_1 = x_978;
+ let x_979 = param;
+ param = 0i;
+ param = x_979;
+ i_1 = (x_67 + bitcast<i32>(1u));
+ let x_980 = *(l);
+ *(l) = 0i;
+ *(l) = x_980;
+ let x_544 = vec3f(x_199.zy, x_540.x);
+ let x_70 = i_1;
+ let x_545 = vec2f(x_537.y, x_538.x);
+ let x_981 = param;
+ param = 0i;
+ param = x_981;
+ param = x_70;
+ let x_982 = param;
+ param = 0i;
+ param = x_982;
+ let x_546 = x_545.xx;
+ let x_983 = i_1;
+ i_1 = 0i;
+ i_1 = x_983;
+ let x_72 = j_1;
+ param_1 = x_72;
+ let x_984 = param_3;
+ param_3 = 0i;
+ param_3 = x_984;
+ swap_i1_i1_(&(param), &(param_1));
+ let x_985 = param_1;
+ param_1 = 0i;
+ param_1 = x_985;
+ }
+ let x_986 = obj;
+ obj = QuicksortObject();
+ obj = x_986;
+
+ continuing {
+ let x_987 = *(h);
+ *(h) = 0i;
+ *(h) = x_987;
+ let x_74 = j_1;
+ let x_988 = *(h);
+ *(h) = 0i;
+ *(h) = x_988;
+ let x_547 = vec3f(x_539.x, x_541.zz);
+ let x_989 = x_61;
+ x_61 = 0i;
+ x_61 = x_989;
+ let x_990 = param;
+ param = 0i;
+ param = x_990;
+ j_1 = (1i + x_74);
+ let x_991 = param_1;
+ param_1 = 0i;
+ param_1 = x_991;
+ let x_548 = x_541.yzx;
+ let x_992 = x_61;
+ x_61 = 0i;
+ x_61 = x_992;
+ }
+ }
+ let x_76 = i_1;
+ let x_993 = *(x_42);
+ *(x_42) = 0i;
+ *(x_42) = x_993;
+ let x_549 = x_534.xy;
+ let x_994 = obj;
+ obj = QuicksortObject();
+ obj = x_994;
+ let x_995 = *(h);
+ *(h) = 0i;
+ *(h) = x_995;
+ i_1 = (1i + x_76);
+ let x_996 = param_1;
+ param_1 = 0i;
+ param_1 = x_996;
+ let x_79 = i_1;
+ let x_997 = j_1;
+ j_1 = 0i;
+ j_1 = x_997;
+ let x_550 = x_534.xx;
+ let x_998 = param_1;
+ param_1 = 0i;
+ param_1 = x_998;
+ param_2 = x_79;
+ let x_551 = vec2f(x_534.y, x_536.x);
+ let x_999 = pivot;
+ pivot = 0i;
+ pivot = x_999;
+ let x_81 = *(h);
+ let x_552 = vec2f(x_550.x, x_549.y);
+ let x_1000 = *(h);
+ *(h) = 0i;
+ *(h) = x_1000;
+ param_3 = x_81;
+ let x_1001 = i_1;
+ i_1 = 0i;
+ i_1 = x_1001;
+ let x_553 = vec2f(x_549.y, x_552.x);
+ let x_1002 = *(h);
+ *(h) = 0i;
+ *(h) = x_1002;
+ swap_i1_i1_(&(param_2), &(param_3));
+ let x_1003 = *(l);
+ *(l) = 0i;
+ *(l) = x_1003;
+ let x_554 = vec2f(x_536.z, x_199.y);
+ let x_1004 = param_1;
+ param_1 = 0i;
+ param_1 = x_1004;
+ let x_83 = i_1;
+ let x_1005 = param;
+ param = 0i;
+ param = x_1005;
+ let x_555 = x_534.yx;
+ let x_1006 = j_1;
+ j_1 = 0i;
+ j_1 = x_1006;
+ return x_83;
+}
+
+fn quicksort_() {
+ var param_4 : i32;
+ var h_1 : i32;
+ var p : i32;
+ var l_1 : i32;
+ var top : i32;
+ var stack : array<i32, 10u>;
+ var param_5 : i32;
+ l_1 = 0i;
+ let x_1007 = param_5;
+ param_5 = 0i;
+ param_5 = x_1007;
+ h_1 = 9i;
+ let x_1008 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1008;
+ let x_556 = x_199.yy;
+ let x_1009 = param_5;
+ param_5 = 0i;
+ param_5 = x_1009;
+ top = -1i;
+ let x_1010 = p;
+ p = 0i;
+ p = x_1010;
+ let x_93 = top;
+ let x_557 = x_199.xx;
+ let x_1011 = p;
+ p = 0i;
+ p = x_1011;
+ let x_94 = (x_93 + bitcast<i32>(1u));
+ let x_1012 = top;
+ top = 0i;
+ top = x_1012;
+ let x_558 = vec2f(x_556.y, x_557.y);
+ let x_1013 = param_4;
+ param_4 = 0i;
+ param_4 = x_1013;
+ top = x_94;
+ let x_1014 = h_1;
+ h_1 = 0i;
+ h_1 = x_1014;
+ let x_559 = x_557.yxx;
+ let x_1015 = param_4;
+ param_4 = 0i;
+ param_4 = x_1015;
+ let x_95 = l_1;
+ let x_1016 = obj;
+ obj = QuicksortObject();
+ obj = x_1016;
+ let x_560 = vec3f(x_559.yx, x_557.x);
+ let x_96 = &(stack[x_94]);
+ let x_1017 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1017;
+ let x_561 = x_556.yyy;
+ let x_1018 = l_1;
+ l_1 = 0i;
+ l_1 = 0i;
+ *(x_96) = x_95;
+ let x_1019 = param_5;
+ param_5 = 0i;
+ param_5 = x_1019;
+ let x_97 = top;
+ let x_1020 = param_4;
+ param_4 = 0i;
+ param_4 = x_1020;
+ let x_562 = vec3f(x_199.z, x_558.y, x_199.y);
+ let x_1021 = *(x_96);
+ *(x_96) = 0i;
+ *(x_96) = x_1021;
+ let x_98 = (x_97 + 1i);
+ let x_1022 = *(x_96);
+ *(x_96) = 0i;
+ *(x_96) = x_1022;
+ let x_563 = vec3f(x_559.xz, x_556.y);
+ top = x_98;
+ let x_1023 = param_4;
+ param_4 = 0i;
+ param_4 = x_1023;
+ let x_99 = h_1;
+ let x_1024 = param_4;
+ param_4 = 0i;
+ param_4 = x_1024;
+ let x_564 = vec3f(x_558.x, x_561.x, x_558.y);
+ let x_1025 = l_1;
+ l_1 = 0i;
+ l_1 = x_1025;
+ let x_100 = &(stack[x_98]);
+ let x_1026 = param_5;
+ param_5 = 0i;
+ param_5 = x_1026;
+ let x_565 = x_564.zz;
+ let x_1027 = p;
+ p = 0i;
+ p = x_1027;
+ *(x_100) = x_99;
+ loop {
+ let x_566 = x_563.xxx;
+ let x_1028 = h_1;
+ h_1 = 0i;
+ h_1 = x_1028;
+ let x_1029 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1029;
+ let x_106 = top;
+ let x_1030 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1030;
+ let x_567 = vec2f(x_558.x, x_564.z);
+ let x_1031 = param_4;
+ param_4 = 0i;
+ param_4 = x_1031;
+ if ((x_106 >= bitcast<i32>(0u))) {
+ } else {
+ break;
+ }
+ let x_1032 = obj;
+ obj = QuicksortObject();
+ obj = x_1032;
+ let x_568 = vec3f(x_559.yx, x_563.y);
+ let x_1033 = param_4;
+ param_4 = 0i;
+ param_4 = x_1033;
+ let x_108 = top;
+ let x_569 = vec3f(x_565.x, x_567.y, x_565.x);
+ let x_1034 = h_1;
+ h_1 = 0i;
+ h_1 = x_1034;
+ let x_570 = x_556.xx;
+ let x_1035 = p;
+ p = 0i;
+ p = x_1035;
+ top = (x_108 - bitcast<i32>(1u));
+ let x_1036 = p;
+ p = 0i;
+ p = x_1036;
+ let x_110 = &(stack[x_108]);
+ let x_1037 = *(x_96);
+ *(x_96) = 0i;
+ *(x_96) = x_1037;
+ let x_111 = *(x_110);
+ let x_1038 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1038;
+ let x_571 = vec3f(x_559.yx, x_564.y);
+ let x_1039 = l_1;
+ l_1 = 0i;
+ l_1 = x_1039;
+ h_1 = x_111;
+ let x_1040 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1040;
+ let x_572 = vec2f(x_562.y, x_561.y);
+ let x_1041 = p;
+ p = 0i;
+ p = x_1041;
+ let x_112 = top;
+ let x_1042 = param_4;
+ param_4 = 0i;
+ param_4 = x_1042;
+ let x_1043 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1043;
+ let x_573 = x_199.yz;
+ top = (x_112 - 1i);
+ let x_1044 = param_5;
+ param_5 = 0i;
+ param_5 = x_1044;
+ let x_574 = vec3f(x_570.y, x_565.x, x_570.y);
+ let x_1045 = h_1;
+ h_1 = 0i;
+ h_1 = x_1045;
+ let x_114 = &(stack[x_112]);
+ let x_575 = x_564.yz;
+ let x_1046 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1046;
+ let x_115 = *(x_114);
+ let x_1047 = p;
+ p = 0i;
+ p = x_1047;
+ let x_576 = vec3f(x_573.yy, x_565.x);
+ let x_1048 = param_5;
+ param_5 = 0i;
+ param_5 = x_1048;
+ l_1 = x_115;
+ let x_1049 = top;
+ top = 0i;
+ top = x_1049;
+ let x_118 = l_1;
+ param_4 = x_118;
+ let x_1050 = *(x_110);
+ *(x_110) = 0i;
+ *(x_110) = x_1050;
+ let x_577 = x_569.yz;
+ let x_120 = h_1;
+ let x_578 = vec2f(x_558.x, x_199.y);
+ param_5 = x_120;
+ let x_1051 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1051;
+ let x_121 = performPartition_i1_i1_(&(param_4), &(param_5));
+ let x_579 = vec2f(x_567.x, x_568.x);
+ let x_1052 = param_5;
+ param_5 = 0i;
+ param_5 = x_1052;
+ p = x_121;
+ let x_1053 = param_4;
+ param_4 = 0i;
+ param_4 = x_1053;
+ let x_122 = p;
+ let x_1054 = h_1;
+ h_1 = 0i;
+ h_1 = x_1054;
+ let x_580 = x_568.yy;
+ let x_1055 = l_1;
+ l_1 = 0i;
+ l_1 = x_1055;
+ let x_1056 = h_1;
+ h_1 = 0i;
+ h_1 = x_1056;
+ let x_124 = l_1;
+ let x_1057 = *(x_110);
+ *(x_110) = 0i;
+ *(x_110) = x_1057;
+ let x_1058 = h_1;
+ h_1 = 0i;
+ h_1 = x_1058;
+ let x_582 = vec2f(x_567.y, x_573.x);
+ let x_1059 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1059;
+ if (((x_122 - bitcast<i32>(1u)) > x_124)) {
+ let x_1060 = param_4;
+ param_4 = 0i;
+ param_4 = x_1060;
+ let x_128 = top;
+ let x_583 = vec2f(x_571.y, x_556.y);
+ let x_1061 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1061;
+ let x_1062 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1062;
+ let x_584 = x_569.zy;
+ let x_585 = vec3f(x_580.y, x_577.xx);
+ let x_130 = l_1;
+ let x_1063 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1063;
+ let x_586 = vec2f(x_564.x, x_585.x);
+ let x_1064 = param_5;
+ param_5 = 0i;
+ param_5 = x_1064;
+ let x_131 = &(stack[(1i + x_128)]);
+ let x_1065 = *(x_110);
+ *(x_110) = 0i;
+ *(x_110) = x_1065;
+ let x_587 = vec3f(x_566.yy, x_563.x);
+ let x_1066 = param_5;
+ param_5 = 0i;
+ param_5 = x_1066;
+ *(x_131) = x_130;
+ let x_132 = top;
+ let x_1067 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1067;
+ let x_588 = x_575.yx;
+ let x_1068 = *(x_131);
+ *(x_131) = 0i;
+ *(x_131) = x_1068;
+ let x_133 = bitcast<i32>((1u + bitcast<u32>(x_132)));
+ let x_1069 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1069;
+ let x_589 = vec3f(x_576.z, x_588.y, x_576.z);
+ let x_1070 = h_1;
+ h_1 = 0i;
+ h_1 = x_1070;
+ top = x_133;
+ let x_1071 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1071;
+ let x_134 = p;
+ let x_590 = vec2f(x_576.x, x_573.y);
+ let x_1072 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1072;
+ let x_136 = &(stack[x_133]);
+ let x_1073 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1073;
+ *(x_136) = (x_134 - bitcast<i32>(1u));
+ let x_1074 = *(x_96);
+ *(x_96) = 0i;
+ *(x_96) = x_1074;
+ let x_591 = x_569.zy;
+ let x_1075 = *(x_136);
+ *(x_136) = 0i;
+ *(x_136) = x_1075;
+ }
+ let x_1076 = *(x_96);
+ *(x_96) = 0i;
+ *(x_96) = x_1076;
+ let x_592 = x_199.xy;
+ let x_1077 = obj;
+ obj = QuicksortObject();
+ obj = x_1077;
+ let x_137 = p;
+ let x_1078 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1078;
+ let x_593 = vec3f(x_571.z, x_556.xy);
+ let x_1079 = p;
+ p = 0i;
+ p = x_1079;
+ let x_594 = vec3f(x_563.zx, x_575.x);
+ let x_1080 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1080;
+ let x_139 = h_1;
+ let x_1081 = top;
+ top = 0i;
+ top = x_1081;
+ let x_595 = vec3f(x_560.z, x_568.x, x_560.x);
+ let x_1082 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1082;
+ let x_1083 = p;
+ p = 0i;
+ p = x_1083;
+ if ((bitcast<i32>((1u + bitcast<u32>(x_137))) < x_139)) {
+ let x_1084 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1084;
+ let x_596 = vec2f(x_592.y, x_582.x);
+ let x_1085 = l_1;
+ l_1 = 0i;
+ l_1 = x_1085;
+ let x_143 = top;
+ let x_1086 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1086;
+ let x_597 = vec3f(x_562.y, x_560.yy);
+ let x_144 = (x_143 + 1i);
+ let x_1087 = param_5;
+ param_5 = 0i;
+ param_5 = x_1087;
+ top = x_144;
+ let x_1088 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1088;
+ let x_145 = p;
+ let x_1089 = param_5;
+ param_5 = 0i;
+ param_5 = x_1089;
+ let x_599 = vec3f(x_560.zx, x_568.x);
+ let x_1090 = p;
+ p = 0i;
+ p = x_1090;
+ let x_600 = vec3f(x_556.x, x_580.xx);
+ let x_1091 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1091;
+ let x_147 = &(stack[x_144]);
+ let x_1092 = *(x_110);
+ *(x_110) = 0i;
+ *(x_110) = x_1092;
+ let x_601 = x_563.xy;
+ *(x_147) = bitcast<i32>((1u + bitcast<u32>(x_145)));
+ let x_1093 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1093;
+ let x_148 = top;
+ let x_1094 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1094;
+ let x_602 = vec2f(x_565.y, x_599.y);
+ let x_1095 = stack;
+ stack = array<i32, 10u>();
+ stack = x_1095;
+ let x_149 = (x_148 + bitcast<i32>(1u));
+ let x_1096 = *(x_147);
+ *(x_147) = 0i;
+ *(x_147) = x_1096;
+ top = x_149;
+ let x_1097 = param_4;
+ param_4 = 0i;
+ param_4 = x_1097;
+ let x_150 = h_1;
+ let x_1098 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1098;
+ let x_1099 = *(x_96);
+ *(x_96) = 0i;
+ *(x_96) = x_1099;
+ stack[x_149] = x_150;
+ let x_1100 = *(x_114);
+ *(x_114) = 0i;
+ *(x_114) = x_1100;
+ let x_603 = vec3f(x_568.y, x_564.xx);
+ let x_1101 = l_1;
+ l_1 = 0i;
+ l_1 = x_1101;
+ }
+ let x_1102 = *(x_100);
+ *(x_100) = 0i;
+ *(x_100) = x_1102;
+
+ continuing {
+ let x_1103 = l_1;
+ l_1 = 0i;
+ l_1 = x_1103;
+ let x_604 = vec2f(x_563.z, x_564.x);
+ let x_1104 = obj;
+ obj = QuicksortObject();
+ obj = x_1104;
+ }
+ }
+ let x_1105 = h_1;
+ h_1 = 0i;
+ h_1 = x_1105;
+ return;
+}
+
+fn main_1() {
+ var color : vec3f;
+ var i_2 : i32;
+ var uv : vec2f;
+ let x_717 = uv;
+ uv = vec2f();
+ uv = x_717;
+ i_2 = 0i;
+ let x_721 = obj;
+ obj = QuicksortObject();
+ obj = x_721;
+ if (true) {
+ let x_722 = obj;
+ obj = QuicksortObject();
+ obj = x_722;
+ let x_431 = x_199.xx;
+ let x_158 = i_2;
+ let x_723 = uv;
+ uv = vec2f();
+ uv = x_723;
+ let x_725 = color;
+ color = vec3f();
+ color = x_725;
+ let x_432 = x_431.yy;
+ let x_726 = obj;
+ obj = QuicksortObject();
+ obj = x_726;
+ }
+ let x_756 = obj;
+ obj = QuicksortObject();
+ obj = x_756;
+ let x_446 = vec2f().xx;
+ let x_757 = i_2;
+ i_2 = 0i;
+ i_2 = x_757;
+ quicksort_();
+ let x_758 = obj;
+ obj = QuicksortObject();
+ obj = x_758;
+ let x_184 = gl_FragCoord;
+ let x_759 = uv;
+ uv = vec2f();
+ uv = x_759;
+ let x_447 = vec2f().yy;
+ let x_760 = uv;
+ uv = vec2f();
+ uv = x_760;
+ let x_185 = x_184.xy;
+ let x_448 = vec3f(x_185.y, x_446.yy);
+ let x_761 = obj;
+ obj = QuicksortObject();
+ obj = x_761;
+ let x_762 = uv;
+ uv = vec2f();
+ uv = x_762;
+ let x_191 = x_188.resolution;
+ let x_763 = obj;
+ obj = QuicksortObject();
+ obj = x_763;
+ let x_449 = vec3f(x_184.y, x_199.z, x_184.w);
+ let x_764 = color;
+ color = vec3f();
+ color = x_764;
+ let x_192 = (x_185 / x_191);
+ let x_765 = obj;
+ obj = QuicksortObject();
+ obj = x_765;
+ let x_450 = vec2f(x_447.x, x_185.y);
+ let x_766 = color;
+ color = vec3f();
+ let x_767 = color;
+ color = vec3f();
+ color = x_767;
+ color = x_766;
+ uv = x_192;
+ color = x_199;
+ let x_768 = color;
+ color = vec3f();
+ color = x_768;
+ let x_451 = vec3f(x_185.xy, x_446.y);
+ let x_769 = obj;
+ obj = QuicksortObject();
+ obj = x_769;
+ let x_200 = &(obj.numbers[0u]);
+ let x_770 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_770;
+ let x_201 = *(x_200);
+ let x_771 = obj;
+ obj = QuicksortObject();
+ obj = x_771;
+ let x_772 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_772;
+ let x_206 = color.x;
+ let x_773 = color.x;
+ color.x = 0.0f;
+ color.x = x_773;
+ let x_452 = x_199.zy;
+ let x_774 = i_2;
+ i_2 = 0i;
+ i_2 = x_774;
+ let x_775 = obj;
+ obj = QuicksortObject();
+ obj = x_775;
+ let x_453 = vec3f(x_451.x, x_450.xy);
+ color.x = (x_206 + f32(x_201));
+ let x_776 = uv;
+ uv = vec2f();
+ uv = x_776;
+ let x_777 = uv;
+ uv = vec2f();
+ uv = x_777;
+ let x_454 = x_184.yy;
+ let x_210 = uv.x;
+ let x_455 = x_192.yx;
+ let x_778 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_778;
+ let x_779 = obj;
+ obj = QuicksortObject();
+ obj = x_779;
+ if ((x_210 > 0.25f)) {
+ let x_780 = i_2;
+ i_2 = 0i;
+ i_2 = x_780;
+ let x_781 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_781;
+ let x_456 = vec3f(vec2f().y, x_448.yy);
+ let x_782 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_782;
+ let x_216 = obj.numbers[1i];
+ let x_783 = obj;
+ obj = QuicksortObject();
+ obj = x_783;
+ let x_457 = x_454.xx;
+ let x_784 = uv;
+ uv = vec2f();
+ uv = x_784;
+ let x_785 = obj;
+ obj = QuicksortObject();
+ obj = x_785;
+ let x_458 = vec2f(x_199.z, vec2f().y);
+ let x_786 = i_2;
+ i_2 = 0i;
+ i_2 = x_786;
+ let x_219 = color[0i];
+ let x_787 = color[0i];
+ color[0i] = 0.0f;
+ color[0i] = x_787;
+ let x_788 = color;
+ color = vec3f();
+ color = x_788;
+ let x_789 = color;
+ color = vec3f();
+ color = x_789;
+ let x_459 = vec3f(x_454.yy, x_447.y);
+ let x_790 = color[0i];
+ color[0i] = 0.0f;
+ color[0i] = x_790;
+ color.x = (f32(x_216) + x_219);
+ let x_791 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_791;
+ }
+ let x_792 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_792;
+ let x_793 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_793;
+ let x_223 = uv.x;
+ let x_794 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_794;
+ let x_460 = x_453.zyy;
+ let x_795 = uv;
+ uv = vec2f();
+ uv = x_795;
+ let x_796 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_796;
+ let x_461 = vec2f().yy;
+ let x_797 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_797;
+ if ((x_223 > 0.5f)) {
+ let x_798 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_798;
+ let x_462 = x_446.xx;
+ let x_799 = color.x;
+ color.x = 0.0f;
+ color.x = x_799;
+ let x_229 = &(obj.numbers[2u]);
+ let x_800 = color.x;
+ color.x = 0.0f;
+ color.x = x_800;
+ let x_463 = vec3f(x_453.xz, x_461.y);
+ let x_801 = color.x;
+ color.x = 0.0f;
+ color.x = x_801;
+ let x_230 = *(x_229);
+ let x_802 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_802;
+ let x_803 = color.x;
+ color.x = 0.0f;
+ color.x = x_803;
+ let x_804 = *(x_229);
+ *(x_229) = 0i;
+ *(x_229) = x_804;
+ let x_464 = vec2f(x_450.y, x_191.x);
+ let x_805 = color.y;
+ color.y = 0.0f;
+ color.y = x_805;
+ let x_234 = color.y;
+ let x_806 = *(x_229);
+ *(x_229) = 0i;
+ *(x_229) = x_806;
+ let x_465 = vec2f(x_463.x, x_185.x);
+ let x_807 = color.x;
+ color.x = 0.0f;
+ color.x = x_807;
+ let x_808 = i_2;
+ i_2 = 0i;
+ i_2 = x_808;
+ let x_466 = vec2f(x_455.y, vec2f().y);
+ let x_809 = i_2;
+ i_2 = 0i;
+ i_2 = x_809;
+ color.y = (f32(x_230) + x_234);
+ let x_810 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_810;
+ }
+ let x_811 = i_2;
+ i_2 = 0i;
+ i_2 = x_811;
+ let x_467 = x_191.xx;
+ let x_812 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_812;
+ let x_238 = uv[0i];
+ let x_813 = color;
+ color = vec3f();
+ color = x_813;
+ let x_814 = color.x;
+ color.x = 0.0f;
+ color.x = x_814;
+ if ((x_238 > 0.75f)) {
+ let x_815 = color.x;
+ color.x = 0.0f;
+ color.x = x_815;
+ let x_245 = obj.numbers[3i];
+ let x_816 = color.x;
+ color.x = 0.0f;
+ color.x = x_816;
+ let x_817 = obj;
+ obj = QuicksortObject();
+ obj = x_817;
+ let x_468 = x_467.xxx;
+ let x_818 = uv[0i];
+ uv[0i] = 0.0f;
+ uv[0i] = x_818;
+ let x_819 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_819;
+ let x_249 = color.z;
+ let x_820 = color;
+ color = vec3f();
+ color = x_820;
+ let x_469 = vec3f(x_467.x, x_191.y, x_467.y);
+ let x_821 = color.z;
+ color.z = 0.0f;
+ color.z = x_821;
+ let x_822 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_822;
+ let x_470 = vec2f().xy;
+ let x_823 = color.z;
+ color.z = 0.0f;
+ color.z = x_823;
+ color.z = (x_249 + f32(x_245));
+ let x_824 = uv;
+ uv = vec2f();
+ uv = x_824;
+ let x_471 = x_470.yy;
+ }
+ let x_825 = uv[0i];
+ uv[0i] = 0.0f;
+ uv[0i] = x_825;
+ let x_472 = x_454.xyy;
+ let x_253 = &(obj.numbers[4i]);
+ let x_254 = *(x_253);
+ let x_826 = uv[0i];
+ uv[0i] = 0.0f;
+ uv[0i] = x_826;
+ let x_827 = color;
+ color = vec3f();
+ color = x_827;
+ let x_473 = vec3f(x_446.y, x_453.xx);
+ let x_828 = *(x_253);
+ *(x_253) = 0i;
+ *(x_253) = x_828;
+ let x_474 = vec2f(x_191.x, x_184.z);
+ let x_829 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_829;
+ let x_257 = color.y;
+ let x_830 = color.y;
+ color.y = 0.0f;
+ color.y = x_830;
+ let x_475 = vec2f(x_467.x, x_450.x);
+ let x_831 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_831;
+ let x_832 = color.x;
+ color.x = 0.0f;
+ color.x = x_832;
+ let x_476 = vec2f(x_451.z, x_460.y);
+ color.y = (x_257 + f32(x_254));
+ let x_477 = vec3f(vec2f().x, x_472.x, vec2f().y);
+ let x_833 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_833;
+ let x_834 = color.x;
+ color.x = 0.0f;
+ color.x = x_834;
+ let x_478 = x_472.xy;
+ let x_835 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_835;
+ let x_261 = uv.y;
+ let x_836 = i_2;
+ i_2 = 0i;
+ i_2 = x_836;
+ let x_479 = vec3f(vec2f().y, x_454.y, vec2f().x);
+ let x_837 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_837;
+ let x_838 = color.y;
+ color.y = 0.0f;
+ color.y = x_838;
+ let x_480 = vec3f(x_446.xx, vec2f().y);
+ let x_839 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_839;
+ if ((x_261 > 0.25f)) {
+ let x_481 = vec2f(x_447.x, x_480.z);
+ let x_840 = color;
+ color = vec3f();
+ color = x_840;
+ let x_267 = obj.numbers[5u];
+ let x_841 = color.x;
+ color.x = 0.0f;
+ color.x = x_841;
+ let x_842 = i_2;
+ i_2 = 0i;
+ i_2 = x_842;
+ let x_843 = i_2;
+ i_2 = 0i;
+ i_2 = x_843;
+ let x_270 = color.x;
+ let x_844 = uv[0i];
+ uv[0i] = 0.0f;
+ uv[0i] = x_844;
+ let x_482 = vec3f(x_455.x, x_475.y, x_455.y);
+ let x_845 = obj;
+ obj = QuicksortObject();
+ obj = x_845;
+ let x_846 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_846;
+ let x_847 = i_2;
+ i_2 = 0i;
+ i_2 = x_847;
+ let x_483 = vec3f(x_184.ww, x_192.x);
+ let x_848 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_848;
+ color.x = (f32(x_267) + x_270);
+ let x_484 = vec3f(x_454.y, x_450.x, x_454.y);
+ let x_849 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_849;
+ }
+ let x_850 = color.x;
+ color.x = 0.0f;
+ color.x = x_850;
+ let x_485 = vec3f(x_467.x, x_450.yx);
+ let x_851 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_851;
+ let x_852 = *(x_253);
+ *(x_253) = 0i;
+ *(x_253) = x_852;
+ let x_274 = uv.y;
+ let x_853 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_853;
+ if ((x_274 > 0.5f)) {
+ let x_854 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_854;
+ let x_486 = vec2f(x_480.y, x_455.y);
+ let x_279 = &(obj.numbers[6u]);
+ let x_855 = color.y;
+ color.y = 0.0f;
+ color.y = x_855;
+ let x_487 = x_449.zy;
+ let x_856 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_856;
+ let x_280 = *(x_279);
+ let x_857 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_857;
+ let x_858 = i_2;
+ i_2 = 0i;
+ i_2 = x_858;
+ let x_859 = *(x_253);
+ *(x_253) = 0i;
+ *(x_253) = x_859;
+ let x_488 = x_473.zy;
+ let x_283 = color.y;
+ let x_860 = uv;
+ uv = vec2f();
+ uv = x_860;
+ let x_861 = color.x;
+ color.x = 0.0f;
+ color.x = x_861;
+ let x_489 = x_475.yx;
+ let x_862 = *(x_279);
+ *(x_279) = 0i;
+ *(x_279) = x_862;
+ let x_863 = *(x_279);
+ *(x_279) = 0i;
+ *(x_279) = x_863;
+ let x_490 = x_480.zz;
+ let x_864 = obj;
+ obj = QuicksortObject();
+ obj = x_864;
+ color.y = (f32(x_280) + x_283);
+ let x_865 = color.x;
+ color.x = 0.0f;
+ color.x = x_865;
+ let x_491 = vec2f(x_199.y, x_454.x);
+ let x_866 = color.y;
+ color.y = 0.0f;
+ color.y = x_866;
+ }
+ let x_492 = x_455.yy;
+ let x_867 = color.x;
+ color.x = 0.0f;
+ color.x = x_867;
+ let x_287 = uv.y;
+ let x_868 = obj;
+ obj = QuicksortObject();
+ obj = x_868;
+ let x_493 = x_475.xy;
+ let x_869 = uv[0i];
+ uv[0i] = 0.0f;
+ uv[0i] = x_869;
+ let x_870 = color.y;
+ color.y = 0.0f;
+ color.y = x_870;
+ let x_494 = x_191.xyy;
+ let x_871 = *(x_253);
+ *(x_253) = 0i;
+ *(x_253) = x_871;
+ if ((x_287 > 0.75f)) {
+ let x_872 = color;
+ color = vec3f();
+ color = x_872;
+ let x_873 = color.x;
+ color.x = 0.0f;
+ color.x = x_873;
+ let x_495 = x_192.yxy;
+ let x_874 = color;
+ color = vec3f();
+ color = x_874;
+ let x_293 = obj.numbers[7i];
+ let x_875 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_875;
+ let x_496 = vec3f(x_475.x, x_467.yx);
+ let x_876 = color.y;
+ color.y = 0.0f;
+ color.y = x_876;
+ let x_497 = vec2f(x_477.x, x_461.y);
+ let x_877 = *(x_200);
+ *(x_200) = 0i;
+ *(x_200) = x_877;
+ let x_878 = color.y;
+ color.y = 0.0f;
+ color.y = x_878;
+ let x_498 = x_478.xyx;
+ let x_879 = color.x;
+ color.x = 0.0f;
+ color.x = x_879;
+ let x_296 = color.z;
+ let x_880 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_880;
+ let x_499 = x_184.xy;
+ let x_881 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_881;
+ let x_882 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_882;
+ let x_883 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_883;
+ let x_500 = vec3f(x_499.yy, x_494.z);
+ let x_884 = color.z;
+ color.z = 0.0f;
+ color.z = x_884;
+ color.z = (f32(x_293) + x_296);
+ let x_885 = color.y;
+ color.y = 0.0f;
+ color.y = x_885;
+ let x_501 = x_453.xz;
+ let x_886 = color.x;
+ color.x = 0.0f;
+ color.x = x_886;
+ }
+ let x_887 = i_2;
+ i_2 = 0i;
+ i_2 = x_887;
+ let x_502 = vec2f(x_451.y, x_192.y);
+ let x_888 = uv;
+ uv = vec2f();
+ uv = x_888;
+ let x_300 = &(obj.numbers[8i]);
+ let x_301 = *(x_300);
+ let x_889 = i_2;
+ i_2 = 0i;
+ i_2 = x_889;
+ let x_503 = vec2f(x_185.x, x_451.z);
+ let x_890 = *(x_300);
+ *(x_300) = 0i;
+ *(x_300) = x_890;
+ let x_891 = color.y;
+ color.y = 0.0f;
+ color.y = x_891;
+ let x_504 = vec2f(x_453.y, vec2f().x);
+ let x_892 = color.x;
+ color.x = 0.0f;
+ color.x = x_892;
+ let x_505 = x_504.xyx;
+ let x_893 = color.z;
+ color.z = 0.0f;
+ color.z = x_893;
+ let x_304 = color.z;
+ let x_894 = color.x;
+ color.x = 0.0f;
+ color.x = x_894;
+ let x_506 = vec2f(x_493.x, x_492.x);
+ let x_895 = *(x_253);
+ *(x_253) = 0i;
+ *(x_253) = x_895;
+ let x_896 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_896;
+ let x_507 = vec2f(x_461.x, x_447.x);
+ let x_897 = color.y;
+ color.y = 0.0f;
+ color.y = x_897;
+ color.z = (x_304 + f32(x_301));
+ let x_898 = uv;
+ uv = vec2f();
+ uv = x_898;
+ let x_899 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_899;
+ let x_508 = vec3f(x_461.yx, x_506.y);
+ let x_900 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_900;
+ let x_308 = uv.x;
+ let x_901 = color.y;
+ color.y = 0.0f;
+ color.y = x_901;
+ let x_509 = vec3f(x_503.yx, x_448.z);
+ let x_902 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_902;
+ let x_310 = uv.y;
+ let x_903 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_903;
+ let x_904 = color.z;
+ color.z = 0.0f;
+ color.z = x_904;
+ let x_510 = vec3f(x_199.y, x_485.yz);
+ let x_905 = color.z;
+ color.z = 0.0f;
+ color.z = x_905;
+ let x_906 = i_2;
+ i_2 = 0i;
+ i_2 = x_906;
+ let x_511 = x_485.zy;
+ let x_907 = color;
+ color = vec3f();
+ color = x_907;
+ let x_908 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_908;
+ let x_512 = x_455.yyy;
+ let x_909 = *(x_253);
+ *(x_253) = 0i;
+ *(x_253) = x_909;
+ if ((abs((x_308 - x_310)) < 0.25f)) {
+ let x_910 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_910;
+ let x_911 = obj;
+ obj = QuicksortObject();
+ obj = x_911;
+ let x_513 = vec3f(x_505.zx, x_448.x);
+ let x_912 = *(x_300);
+ *(x_300) = 0i;
+ *(x_300) = x_912;
+ let x_317 = obj.numbers[9u];
+ let x_514 = x_474.yyy;
+ let x_913 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_913;
+ let x_320 = color.x;
+ let x_914 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_914;
+ let x_515 = x_502.xy;
+ let x_915 = color.x;
+ color.x = 0.0f;
+ color.x = x_915;
+ let x_916 = color;
+ color = vec3f();
+ color = x_916;
+ let x_516 = x_452.xx;
+ let x_917 = uv;
+ uv = vec2f();
+ uv = x_917;
+ let x_918 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_918;
+ let x_517 = vec2f().xxy;
+ color.x = (f32(x_317) + x_320);
+ let x_919 = color.x;
+ color.x = 0.0f;
+ color.x = x_919;
+ let x_518 = vec3f(x_480.y, x_508.x, x_480.x);
+ let x_920 = color.x;
+ color.x = 0.0f;
+ color.x = x_920;
+ }
+ let x_921 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_921;
+ let x_325 = color;
+ let x_922 = uv[0i];
+ uv[0i] = 0.0f;
+ uv[0i] = x_922;
+ let x_519 = vec3f(x_447.x, x_446.xy);
+ let x_326 = normalize(x_325);
+ let x_923 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_923;
+ let x_924 = obj;
+ obj = QuicksortObject();
+ obj = x_924;
+ let x_925 = obj;
+ obj = QuicksortObject();
+ obj = x_925;
+ let x_926 = color.y;
+ color.y = 0.0f;
+ color.y = x_926;
+ let x_520 = vec2f(x_506.y, x_519.y);
+ let x_927 = color.y;
+ color.y = 0.0f;
+ color.y = x_927;
+ let x_330 = vec4f(x_326.x, x_326.y, x_326.z, 1.0f);
+ let x_928 = uv.y;
+ uv.y = 0.0f;
+ uv.y = x_928;
+ let x_521 = vec3f(x_199.yy, x_520.y);
+ let x_929 = uv.x;
+ uv.x = 0.0f;
+ uv.x = x_929;
+ x_GLF_color = x_330;
+ let x_930 = obj;
+ obj = QuicksortObject();
+ obj = x_930;
+ let x_522 = vec3f(x_330.wy, x_493.x);
+ let x_931 = color.x;
+ color.x = 0.0f;
+ color.x = x_931;
+ return;
+}
+
+struct main_out {
+ @location(0)
+ x_GLF_color_1 : vec4f,
+}
+
+@fragment
+fn main(@builtin(position) gl_FragCoord_param : vec4f) -> main_out {
+ gl_FragCoord = gl_FragCoord_param;
+ main_1();
+ return main_out(x_GLF_color);
+}
+
error: function-scope 'var' must have a constructible type
diff --git a/test/tint/builtins/gen/literal/subgroupBallot/7e6d0e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/subgroupBallot/7e6d0e.wgsl.expected.glsl
index bb208e9..6b2c472 100644
--- a/test/tint/builtins/gen/literal/subgroupBallot/7e6d0e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBallot/7e6d0e.wgsl.expected.glsl
@@ -15,4 +15,7 @@
subgroupBallot_7e6d0e();
}
-Failed to generate: error: Unknown builtin method: subgroupBallot
+Failed to generate: builtins/gen/literal/subgroupBallot/7e6d0e.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+enable chromium_experimental_subgroups;
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.glsl
index e13703d..3329fdb 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.glsl
@@ -15,7 +15,7 @@
subgroupBroadcast_08beca();
}
-Failed to generate: test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+Failed to generate: builtins/gen/literal/subgroupBroadcast/08beca.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
enable chromium_experimental_subgroups;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.glsl
index ad32a6b..d9e00b3 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.glsl
@@ -15,7 +15,7 @@
subgroupBroadcast_1d79c7();
}
-Failed to generate: test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+Failed to generate: builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
enable chromium_experimental_subgroups;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.glsl
index fa525a1..7eebe72 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.glsl
@@ -15,7 +15,7 @@
subgroupBroadcast_c36fe1();
}
-Failed to generate: test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+Failed to generate: builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
enable chromium_experimental_subgroups;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.glsl
index 88659b4..62a9c87 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.glsl
index 5933a64..21addfc 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.glsl
index 2996f87..f369c4e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.glsl
index d9cacc5..a27ef20 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.glsl
index d41c3b9..a2fb078 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.glsl
index a1ff628..54fa2c8 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.glsl
index 06ff76f..7739e97 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.glsl
index 0afad33..48f548c 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.glsl
index 90c03c9..ef21c92 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.glsl
index 04d337b..fbf1d86 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.glsl
index 2ca0e23..f9cf74e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.glsl
index cd058a0..1b0c8d1 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.glsl
index 692a3e2..44cd345 100644
--- a/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_012e11() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_012e11() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_012e11() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.glsl
index c2ea412..ad84536 100644
--- a/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_02c48d() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_02c48d() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_02c48d() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.glsl
index d5fe6a2..1813868 100644
--- a/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_03e03e() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_03e03e() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_03e03e() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.glsl
index 632eef8..32557ff 100644
--- a/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_050c33() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_050c33() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_050c33() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.glsl
index f6783ec..4410cad 100644
--- a/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_054350() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_054350() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_054350() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.glsl
index 0e418a8..459993b 100644
--- a/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_0b515a() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_0b515a() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_0b515a() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.glsl
index 09eb431..c186c03 100644
--- a/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_126466() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_126466() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_126466() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.glsl
index ea3c5be..6af689e 100644
--- a/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_143d84() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_143d84() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_143d84() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.glsl
index 8cb5bb2..22a5bfd 100644
--- a/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_14cc4c() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_14cc4c() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_14cc4c() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.glsl
index 17d42d0..dd72bab 100644
--- a/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_170593() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_170593() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_170593() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.glsl
index aebbd25..c1880aa 100644
--- a/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_17095b() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_17095b() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_17095b() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.glsl
index 351ba18..b6e8596 100644
--- a/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_18ac11() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_18ac11() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_18ac11() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.glsl
index 3b6d535..405a0cf 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_1bc5ab() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_1bc5ab() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_1bc5ab() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.glsl
index 5c75003..ff52227 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_1d43ae() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_1d43ae() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_1d43ae() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.glsl
index b460688..ed4e621 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_1e6baa() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_1e6baa() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_1e6baa() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.glsl
index e055011..f030362 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_1eb93f() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_1eb93f() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_1eb93f() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.glsl
index 150db65..616beb2 100644
--- a/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_20fa2f() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_20fa2f() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_20fa2f() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.glsl
index 31d35d7..9a5511f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_23007a() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_23007a() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_23007a() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.glsl
index 5005d61..2e42dc1 100644
--- a/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_25b67f() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_25b67f() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_25b67f() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.glsl
index 77882a0..f3281d4 100644
--- a/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_26b8f6() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_26b8f6() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_26b8f6() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.glsl
index 4545b1c..a427af4 100644
--- a/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_26d7f1() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_26d7f1() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_26d7f1() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.glsl
index 2288605..eb7beda 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_2cee30() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_2cee30() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_2cee30() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.glsl
index 1e53d85..5744c3c 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_2d6cf7() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_2d6cf7() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_2d6cf7() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.glsl
index 3613a32..d9dbe75 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_2dbfc2() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1)))).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_2dbfc2() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1)))).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_2dbfc2() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1)))).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.glsl
index c7500cc..061941d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_2eaf31() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_2eaf31() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_2eaf31() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.glsl
index b8d20ff..ed13a56 100644
--- a/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_32a7b8() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_32a7b8() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_32a7b8() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.glsl
index 81b13fb..1fb5627 100644
--- a/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_34d97c() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_34d97c() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_34d97c() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.glsl
index 348a003..7662191 100644
--- a/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_39016c() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_39016c() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_39016c() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.glsl
index 501fd05..e28793a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_395447() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_395447() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_395447() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.glsl
index f4eb8bc..9e2d82f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_3a2350() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_3a2350() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_3a2350() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.glsl
index 765c882..684bc3e 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_3cfb9c() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_3cfb9c() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_3cfb9c() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.glsl
index cb5d4c6..1e0d54c 100644
--- a/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_40ee8b() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_40ee8b() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_40ee8b() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.glsl
index f901d13..63e0978 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4212a1() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_4212a1() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_4212a1() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.glsl
index 218a63b..6240a40 100644
--- a/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_424afd() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_424afd() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_424afd() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.glsl
index 4f91121..308dcc8 100644
--- a/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_42a631() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_42a631() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_42a631() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.glsl
index 75363c9..62cb45f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_43cd86() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_43cd86() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_43cd86() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.glsl
index 0a0f978..03ffb38 100644
--- a/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_44c826() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_44c826() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_44c826() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.glsl
index ff98d3e..ace6e49 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4542ae() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_4542ae() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_4542ae() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.glsl
index 4a58a31..1181f0d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_469912() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_469912() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_469912() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.glsl
index eb4990b..eb5fe8f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_473d3e() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_473d3e() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_473d3e() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.glsl
index a6490b1..9e6ec21 100644
--- a/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_482627() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_482627() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_482627() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.glsl
index fb9c59a..223e117 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4a5c55() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_4a5c55() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_4a5c55() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.glsl
index 084e22b..5e9a8d0 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4c15b2() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_4c15b2() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_4c15b2() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.glsl
index 03bdee9..6f3b55f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4c1a1e() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_4c1a1e() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_4c1a1e() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.glsl
index 6c40df6..ecd9821 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4ccf9a() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_4ccf9a() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_4ccf9a() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.glsl
index 943c7b9..e801737 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4e2c5c() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_4e2c5c() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_4e2c5c() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.glsl
index 2151e9d..8a4443d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_4f90bb() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1)).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_4f90bb() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1)).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_4f90bb() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1)).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.glsl
index c1fb4ef..2879abd 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_5154e1() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_5154e1() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_5154e1() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.glsl
index be3092f..99930a4 100644
--- a/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_53378a() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_53378a() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_53378a() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.glsl
index 3259d55..b273e7d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_53941c() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_53941c() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_53941c() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.glsl
index a8ccc42..841d1b9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_54fb38() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_54fb38() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_54fb38() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.glsl
index 925018b..93cbd66 100644
--- a/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_56a000() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_56a000() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_56a000() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.glsl
index ecd500c..2dc5852 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_5abbf2() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_5abbf2() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_5abbf2() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.glsl
index c6553f9..f20f8c1 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_5b0f5b() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_5b0f5b() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_5b0f5b() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.glsl
index 970b909..5e3d574 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_5b4947() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1)).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_5b4947() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1)).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_5b4947() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1)).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.glsl
index 603ec2f..1b25589 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_5bb7fb() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_5bb7fb() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_5bb7fb() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.glsl
index 31f9589..6cf6a73 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_5c69f8() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u))).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_5c69f8() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u))).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_5c69f8() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u))).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.glsl
index 67f14b7..5622829 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_5e17a7() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_5e17a7() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_5e17a7() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.glsl
index f7bd822..01d92af 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_5e1843() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_5e1843() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_5e1843() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.glsl
index 56fc7bb..6a27898 100644
--- a/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_61e2e8() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_61e2e8() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_61e2e8() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.glsl
index a061e25..c801401 100644
--- a/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_620caa() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_620caa() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_620caa() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.glsl
index 276c11c..97f0746 100644
--- a/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_622278() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_622278() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_622278() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.glsl
index fbff245..46869aa 100644
--- a/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_63be18() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_63be18() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_63be18() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.glsl
index cc697b7..ddd0891 100644
--- a/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_64c372() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_64c372() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_64c372() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.glsl
index 20c48bd..0a98618 100644
--- a/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_666010() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_666010() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_666010() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.glsl
index 8e9e107..ebfb911 100644
--- a/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_68d273() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_68d273() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_68d273() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.glsl
index 5d10b80..bf13558 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6a6871() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6a6871() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6a6871() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.glsl
index 47b66d3..44c5c8f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6b8ba6() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6b8ba6() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6b8ba6() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.glsl
index 1719922..fc0862a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6ba9ab() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6ba9ab() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6ba9ab() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.glsl
index 9d7e135..3d9cac9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6bf3e2() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u))).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6bf3e2() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u))).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6bf3e2() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u))).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.glsl
index 63f6d1f..e585c3f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6d7bb5() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6d7bb5() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6d7bb5() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.glsl
index 20a9012..e3069d7 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6e903f() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6e903f() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6e903f() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.glsl
index 8249d3f..8c3a7c4 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6f0ea8() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6f0ea8() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6f0ea8() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.glsl
index cbb8898..101816a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_6f8927() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_6f8927() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_6f8927() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.glsl
index 295f9f0..dd102fc 100644
--- a/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_742f1b() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_742f1b() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_742f1b() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.glsl
index 7d3ae4f..fb180a9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_74a387() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_74a387() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_74a387() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.glsl
index c135048..b7362f7 100644
--- a/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_773c46() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_773c46() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_773c46() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.glsl
index cf68619..2de254d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_7dab57() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_7dab57() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_7dab57() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.glsl
index 2819318..c22d1b5 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_7e5cbc() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u))).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_7e5cbc() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u))).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_7e5cbc() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u))).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.glsl
index 9cd629c..207e94c 100644
--- a/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_80dae1() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_80dae1() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_80dae1() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.glsl
index 54ef71d..87c9c44 100644
--- a/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_83162f() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_83162f() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_83162f() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.glsl
index df9d129..cebfc06 100644
--- a/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_848d85() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_848d85() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_848d85() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.glsl
index 8964743..8377ba0 100644
--- a/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_84a438() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_84a438() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_84a438() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.glsl
index e6e3540..b413a9d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_878e24() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_878e24() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_878e24() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.glsl
index bd29bfd..1495ad1 100644
--- a/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_87f0a6() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_87f0a6() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_87f0a6() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.glsl
index 03e2104..885a568 100644
--- a/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_881349() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_881349() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_881349() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.glsl
index 9e86e4c..6f7b772 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_8a9988() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_8a9988() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_8a9988() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.glsl
index 9efcb66..24da5b9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_8b62fb() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u))).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_8b62fb() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u))).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_8b62fb() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u))).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.glsl
index f044e25..440417d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_8c6176() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_8c6176() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_8c6176() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.glsl
index 2c3b972..c47555d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_8d64c3() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_8d64c3() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_8d64c3() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.glsl
index 2028006..971a704 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_8e5032() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_8e5032() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_8e5032() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.glsl
index 02aeba8..ffc2908 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_8e68c9() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_8e68c9() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_8e68c9() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.glsl
index fa45292..f2ab63a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_8fc29b() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_8fc29b() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_8fc29b() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.glsl
index c279444..1e83bac 100644
--- a/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_91ede5() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_91ede5() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_91ede5() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.glsl
index c918905..d48da4d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_9242e7() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_9242e7() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_9242e7() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.glsl
index f3ea9ca..8c1ab3f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_9c2a14() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_9c2a14() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_9c2a14() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.glsl
index 6586e15..ddd3c16 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_9cf7df() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_9cf7df() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_9cf7df() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.glsl
index fbfbaa6..f4fc5f9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_9fa9fd() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_9fa9fd() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_9fa9fd() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.glsl
index 1db5078..715898a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_9fd7be() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_9fd7be() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_9fd7be() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.glsl
index af05f18..7f6dcd5 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a2b3f4() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a2b3f4() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a2b3f4() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.glsl
index 148ebce..652e5d6 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a3733f() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a3733f() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a3733f() {
- uvec4 res = texelFetch(arg_0, ivec2(1));
+ uvec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.glsl
index 6b9cc069..aa7520a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a3f122() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a3f122() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a3f122() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.glsl
index f5dfd20..a8ea536 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a548a8() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a548a8() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a548a8() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.glsl
index 00038b9..fdeb318 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a54e11() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a54e11() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a54e11() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.glsl
index 1ee8c1f..b1ff4da 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a5c4e2() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_a5c4e2() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_a5c4e2() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.glsl
index 1f50299..07b4a48 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a64b1d() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a64b1d() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a64b1d() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.glsl
index 878bb61..22a3acb 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a7bcb4() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a7bcb4() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a7bcb4() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.glsl
index 766a311..916713c 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a7c171() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a7c171() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a7c171() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.glsl
index 12d173b..a6b6e81 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_a92b18() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_a92b18() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_a92b18() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.glsl
index 65b604c..4eac49c 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_aa2579() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_aa2579() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_aa2579() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.glsl
index 647a33f..24f12f2 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_aa6130() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_aa6130() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_aa6130() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.glsl
index 3f0eb0f..d38f208 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_aae9c3() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_aae9c3() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_aae9c3() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.glsl
index 73e7c60..2196a24 100644
--- a/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_acf22f() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_acf22f() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_acf22f() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.glsl
index 8d6d517..204208f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_af0507() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_af0507() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_af0507() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.glsl
index c467f57..ab16943 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_b1ca35() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_b1ca35() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_b1ca35() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.glsl
index 9c43aba..7e15a70 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_b4d6c4() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_b4d6c4() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_b4d6c4() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.glsl
index 435b65e..6c791d0 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_b60a86() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_b60a86() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_b60a86() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.glsl
index 49d877e..fd60550 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_b60db7() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u))).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_b60db7() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u))).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_b60db7() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u))).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.glsl
index 4c1ec0e..c1ff5be 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_ba74b2() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_ba74b2() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_ba74b2() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.glsl
index e1c1760..06315a7 100644
--- a/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_babdf3() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_babdf3() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_babdf3() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.glsl
index 002e2ab..5838a6f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_bba04a() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_bba04a() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_bba04a() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.glsl
index 8ba7de1..ed472a1 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_bbb762() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_bbb762() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_bbb762() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.glsl
index 2fccd41..a54aab6 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_bd990a() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_bd990a() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_bd990a() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.glsl
index ab1ac89..23c60f1 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_bdc67a() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_bdc67a() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_bdc67a() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.glsl
index 0b424a0..e2fa855 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_c5c86d() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_c5c86d() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_c5c86d() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.glsl
index dd5c291..2f24134 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_c7e313() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_c7e313() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_c7e313() {
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.glsl
index e83f2ea..11f4924 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_c8ed19() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_c8ed19() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_c8ed19() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.glsl
index 7f51fe5..c945aff 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_c98bf4() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_c98bf4() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_c98bf4() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.glsl
index 6af0bb0..5cb2cbb 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_c9b083() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_c9b083() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_c9b083() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.glsl
index d68d067..922074c 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_cac876() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_cac876() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_cac876() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.glsl
index 82ac279..75a8fed 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_cdbcf6() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_cdbcf6() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_cdbcf6() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.glsl
index a4d21d0..73dbab7 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_cdccd2() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_cdccd2() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_cdccd2() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.glsl
index 7897ad3..7a298e7 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_cddf6b() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_cddf6b() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_cddf6b() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.glsl
index bfebd33..cb5b06d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d0e351() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_d0e351() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_d0e351() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.glsl
index e46d44b..06ecc6b 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d37a08() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d37a08() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d37a08() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.glsl
index ddf8e3d..575f887 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d3d8fc() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d3d8fc() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d3d8fc() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.glsl
index 60c55d5..b411bc8 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d41c72() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_d41c72() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_d41c72() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.glsl
index 92b7817..e1c578c 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d72de9() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d72de9() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d72de9() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.glsl
index 876185f..557b7d6 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d7996a() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d7996a() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d7996a() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.glsl
index ed623fb..483307d 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d79c5c() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d79c5c() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d79c5c() {
- uvec4 res = texelFetch(arg_0, ivec2(1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.glsl
index 6fd9de0..10e906f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d80ff3() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0)).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d80ff3() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0)).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d80ff3() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0)).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.glsl
index 1642672..fbc2420 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_d81c57() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_d81c57() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_d81c57() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.glsl
index 59f483e..ce68790 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_d8617f() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_d8617f() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_d8617f() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.glsl
index 91e11f2..3262565 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d8be5a() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d8be5a() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d8be5a() {
- ivec4 res = texelFetch(arg_0, ivec2(1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.glsl
index c7e80ca..662f983 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_d91f37() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_d91f37() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_d91f37() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.glsl
index 11cc13f..d22f0e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_dab04f() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1)).bgra;
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_dab04f() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1)).bgra;
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_dab04f() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1)).bgra;
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.glsl
index 2bf9b08..809e729 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_dd5859() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_dd5859() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_dd5859() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.glsl
index 670333e..10c2e6a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_dd8776() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_dd8776() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_dd8776() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.glsl
index 56deb37..66d6ddd 100644
--- a/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_de5a0e() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_de5a0e() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_de5a0e() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), 1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.glsl
index 68f7400..513f261 100644
--- a/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_defd9a() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_defd9a() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_defd9a() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.glsl
index dd5d2ef..923c059 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_e1c3cf() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_e1c3cf() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_e1c3cf() {
- vec4 res = texelFetch(arg_0, ivec2(1));
+ vec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.glsl
index 5452f17..3d387e6 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_e2b3a1() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_e2b3a1() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_e2b3a1() {
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.glsl
index 43cc7da..4695230 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_e2d7da() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_e2d7da() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_e2d7da() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.glsl
index 7dc89aa..b1a1306 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_e33285() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_e33285() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_e33285() {
- ivec4 res = texelFetch(arg_0, ivec2(1));
+ ivec4 res = imageLoad(arg_0, ivec2(1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.glsl
index b95dde9..7cbe262 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_e59fdf() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_e59fdf() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_e59fdf() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.glsl
index 5aa4d80..321f39e 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_e65916() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_e65916() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_e65916() {
- ivec4 res = texelFetch(arg_0, ivec3(1));
+ ivec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.glsl
index 1f70d66..616be59 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_e9eb65() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_e9eb65() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_e9eb65() {
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.glsl
index f27420b..8ba49ec 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_ed55a8() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_ed55a8() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_ed55a8() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.glsl
index 4f71623..81ea103 100644
--- a/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_eecf7d() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_eecf7d() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_eecf7d() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.glsl
index f8d321d..56f5987 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_ef2ec3() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -41,7 +41,7 @@
} prevent_dce;
void textureLoad_ef2ec3() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -68,7 +68,7 @@
} prevent_dce;
void textureLoad_ef2ec3() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.glsl
index 4834cf2..2b99134 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_ef5405() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_ef5405() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_ef5405() {
- uvec4 res = texelFetch(arg_0, ivec3(1));
+ uvec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.glsl
index 10e32ba..ffc3296 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_f0514a() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_f0514a() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_f0514a() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.glsl
index 628199b..8e23d56 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_f2c311() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_f2c311() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_f2c311() {
- ivec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ ivec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.glsl
index 09c202a..8fdc429 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_f5fbc6() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_f5fbc6() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_f5fbc6() {
- vec4 res = texelFetch(arg_0, ivec3(ivec2(1), 1));
+ vec4 res = imageLoad(arg_0, ivec3(ivec2(1), 1));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.glsl
index 6e6d8e9..28ac0ff 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.glsl
@@ -2,13 +2,13 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_f74bd8() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -35,13 +35,13 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_f74bd8() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
@@ -62,13 +62,13 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_f74bd8() {
- vec4 res = texelFetch(arg_0, ivec3(1));
+ vec4 res = imageLoad(arg_0, ivec3(1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.glsl
index b632f54..3c6d27f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_f7f3bc() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_f7f3bc() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_f7f3bc() {
- vec4 res = texelFetch(arg_0, ivec2(1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(1, 0));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.glsl
index 1ba4288..4efc0ad 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_f82eb2() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_f82eb2() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_f82eb2() {
- vec4 res = texelFetch(arg_0, ivec2(uvec2(1u, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(1u, 0u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.glsl
index 29c8821..ce27f14 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_fc47ff() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_fc47ff() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_fc47ff() {
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(1u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.glsl
index 9a43f77..50d38f2 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_fd9606() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_fd9606() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_fd9606() {
- vec4 res = texelFetch(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.glsl
index be4caa9..8eff8f0 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.glsl
@@ -8,7 +8,7 @@
} prevent_dce;
void textureLoad_fe2c1b() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -26,10 +26,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -42,7 +41,7 @@
} prevent_dce;
void textureLoad_fe2c1b() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -55,10 +54,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -70,7 +68,7 @@
} prevent_dce;
void textureLoad_fe2c1b() {
- uvec4 res = texelFetch(arg_0, ivec3(ivec2(1), int(1u)));
+ uvec4 res = imageLoad(arg_0, ivec3(ivec2(1), int(1u)));
prevent_dce.inner = res;
}
@@ -84,10 +82,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:9: 'texelFetch' : no matching overloaded function found
-ERROR: 0:9: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.glsl
index a63d9c8..6f531d6 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.glsl
index 9328703..614e19f 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.glsl
index 4f834b2..03cd0e5 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl
index 31137d8..db269c8 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl
index e7981b5..ad35d9d 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl
index 6f23731..091a281 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl
index 02a08f8..bb11dc5 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl
index 1e961ea..dbd7e2a 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl
index d548d59..5ecdb47 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLod' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl
index 205e550..6e8a2a6 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl
index 30404a5..7cce039 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -26,13 +24,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -55,13 +46,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:11: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -84,10 +68,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:10: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/subgroupBallot/7e6d0e.wgsl.expected.glsl b/test/tint/builtins/gen/var/subgroupBallot/7e6d0e.wgsl.expected.glsl
index bb208e9..217568c 100644
--- a/test/tint/builtins/gen/var/subgroupBallot/7e6d0e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/subgroupBallot/7e6d0e.wgsl.expected.glsl
@@ -15,4 +15,7 @@
subgroupBallot_7e6d0e();
}
-Failed to generate: error: Unknown builtin method: subgroupBallot
+Failed to generate: builtins/gen/var/subgroupBallot/7e6d0e.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+enable chromium_experimental_subgroups;
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.glsl
index 696d739..3a1dda0 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.glsl
@@ -17,7 +17,7 @@
subgroupBroadcast_08beca();
}
-Failed to generate: test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+Failed to generate: builtins/gen/var/subgroupBroadcast/08beca.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
enable chromium_experimental_subgroups;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.glsl
index a7d7786..6fd967b 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.glsl
@@ -17,7 +17,7 @@
subgroupBroadcast_1d79c7();
}
-Failed to generate: test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+Failed to generate: builtins/gen/var/subgroupBroadcast/1d79c7.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
enable chromium_experimental_subgroups;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.glsl
index 9a7ae8f..8bb94aa 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.glsl
@@ -17,7 +17,7 @@
subgroupBroadcast_c36fe1();
}
-Failed to generate: test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+Failed to generate: builtins/gen/var/subgroupBroadcast/c36fe1.wgsl:25:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
enable chromium_experimental_subgroups;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.glsl
index 88659b4..62a9c87 100644
--- a/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.glsl
index 5933a64..21addfc 100644
--- a/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.glsl
index 2996f87..f369c4e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.glsl
index d9cacc5..a27ef20 100644
--- a/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.glsl
index d41c3b9..a2fb078 100644
--- a/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.glsl
index a1ff628..54fa2c8 100644
--- a/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.glsl
index 06ff76f..7739e97 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.glsl
index 0afad33..48f548c 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.glsl
index 90c03c9..ef21c92 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.glsl
index 04d337b..fbf1d86 100644
--- a/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec2 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.glsl
index 2ca0e23..f9cf74e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.glsl
index cd058a0..1b0c8d1 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec3 inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.glsl
index cf3c630..b3d975f 100644
--- a/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_012e11() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_012e11() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_012e11() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.glsl
index eede031..2a853e1 100644
--- a/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_02c48d() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_02c48d() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_02c48d() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.glsl
index ea7ade0..bef2a41 100644
--- a/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_03e03e() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_03e03e() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_03e03e() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.glsl
index 6f687b9..6d6d28b 100644
--- a/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_050c33() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_050c33() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_050c33() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.glsl
index 23df68e..88de65a 100644
--- a/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_054350() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_054350() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_054350() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.glsl
index b52dc58..fef246d 100644
--- a/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_0b515a() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_0b515a() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_0b515a() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.glsl
index 24db407..b474a61 100644
--- a/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_126466() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_126466() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_126466() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.glsl
index d81f270..7fca318 100644
--- a/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_143d84() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_143d84() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_143d84() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.glsl
index a4c326e..2429d88 100644
--- a/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_14cc4c() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_14cc4c() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_14cc4c() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.glsl
index 025330e..149cbe7 100644
--- a/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_170593() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_170593() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_170593() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.glsl
index 0507c06..b707328 100644
--- a/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_17095b() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_17095b() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_17095b() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.glsl
index d4573d2..470418a 100644
--- a/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_18ac11() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_18ac11() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_18ac11() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.glsl
index 00fb472..3e68081 100644
--- a/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_1bc5ab() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_1bc5ab() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_1bc5ab() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.glsl
index 72d8dd4..078f17c 100644
--- a/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_1d43ae() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_1d43ae() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_1d43ae() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.glsl
index 39da36e..b2d7020 100644
--- a/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_1e6baa() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_1e6baa() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_1e6baa() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.glsl
index 6af7cf0..c42b934 100644
--- a/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_1eb93f() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_1eb93f() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_1eb93f() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.glsl
index 0337b81..c0da1e4 100644
--- a/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_20fa2f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_20fa2f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_20fa2f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.glsl
index 0034f12..25fe1f2 100644
--- a/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_23007a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_23007a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_23007a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.glsl
index 22b15dc..d78b13f 100644
--- a/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_25b67f() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_25b67f() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_25b67f() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.glsl
index ce5c93c..3784b40 100644
--- a/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_26b8f6() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_26b8f6() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_26b8f6() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.glsl
index 6017b1e..ada8a47 100644
--- a/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_26d7f1() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_26d7f1() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_26d7f1() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.glsl
index 3809110..f9717ac 100644
--- a/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_2cee30() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_2cee30() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_2cee30() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.glsl
index 7aa5411..8cb5b84 100644
--- a/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_2d6cf7() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_2d6cf7() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_2d6cf7() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.glsl
index 25cdac5..db0820f 100644
--- a/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_2dbfc2() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2)))).bgra;
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_2dbfc2() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2)))).bgra;
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_2dbfc2() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2)))).bgra;
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.glsl
index 06112ae..5d30553 100644
--- a/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_2eaf31() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_2eaf31() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_2eaf31() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.glsl
index 377c486..d3f8206 100644
--- a/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_32a7b8() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_32a7b8() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_32a7b8() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.glsl
index 2a93766..6a7e08f 100644
--- a/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_34d97c() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_34d97c() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_34d97c() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.glsl
index 9106642..4328425 100644
--- a/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_39016c() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_39016c() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_39016c() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.glsl
index d253d65..12c413b 100644
--- a/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_395447() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_395447() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_395447() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.glsl
index bee63d2..aa27967 100644
--- a/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_3a2350() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_3a2350() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_3a2350() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.glsl
index 5381ccd..3ce3541 100644
--- a/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_3cfb9c() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_3cfb9c() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_3cfb9c() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.glsl
index 5c34221..3fc790c 100644
--- a/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_40ee8b() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_40ee8b() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_40ee8b() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.glsl
index 9a5871f..976edca 100644
--- a/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_4212a1() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_4212a1() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_4212a1() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.glsl
index 72d38b0..3ee9a6c 100644
--- a/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_424afd() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_424afd() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_424afd() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.glsl
index 30625f5..31c6e07 100644
--- a/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_42a631() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_42a631() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_42a631() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.glsl
index 17745e8..cfeec59 100644
--- a/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_43cd86() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_43cd86() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_43cd86() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.glsl
index 720e964..6704399 100644
--- a/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_44c826() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_44c826() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_44c826() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.glsl
index 9dcafb2..e5871bb 100644
--- a/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_4542ae() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_4542ae() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_4542ae() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.glsl
index 81acb91..9843c14 100644
--- a/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_469912() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_469912() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_469912() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.glsl
index 1f24304..e36c289 100644
--- a/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_473d3e() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_473d3e() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_473d3e() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.glsl
index 7185db5..911f450 100644
--- a/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_482627() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_482627() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_482627() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.glsl
index b6cf69c..5f3a74a 100644
--- a/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_4a5c55() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_4a5c55() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_4a5c55() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.glsl
index 87036b8..6e81681 100644
--- a/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_4c15b2() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_4c15b2() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_4c15b2() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.glsl
index 3b1921a..dd27a03 100644
--- a/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_4c1a1e() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_4c1a1e() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_4c1a1e() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.glsl
index c71788d..41bcd3f 100644
--- a/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_4ccf9a() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_4ccf9a() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_4ccf9a() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.glsl
index 9232d3f..eb6f8b3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_4e2c5c() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_4e2c5c() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_4e2c5c() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.glsl
index d84d86a..c535342 100644
--- a/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_4f90bb() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1).bgra;
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_4f90bb() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1).bgra;
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_4f90bb() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1).bgra;
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.glsl
index 03a9cfe..188110c 100644
--- a/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_5154e1() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_5154e1() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_5154e1() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.glsl
index 6675713..69b218f 100644
--- a/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_53378a() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_53378a() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_53378a() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.glsl
index cef706d..0ad0ed4 100644
--- a/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_53941c() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_53941c() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_53941c() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.glsl
index fb3169f..40567c2 100644
--- a/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_54fb38() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_54fb38() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_54fb38() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.glsl
index 2b7957e..2ad93e5 100644
--- a/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_56a000() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_56a000() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_56a000() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.glsl
index 86882d0..9b4b652 100644
--- a/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_5abbf2() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_5abbf2() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_5abbf2() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.glsl
index c2c9fc2..db9f475 100644
--- a/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_5b0f5b() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_5b0f5b() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_5b0f5b() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.glsl
index 2c60fc7..877f16f 100644
--- a/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_5b4947() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1).bgra;
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_5b4947() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1).bgra;
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_5b4947() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1).bgra;
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.glsl
index 5c7de55..8f00d19 100644
--- a/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_5bb7fb() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_5bb7fb() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_5bb7fb() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.glsl
index dd5e7f4..089241a 100644
--- a/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_5c69f8() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1)).bgra;
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_5c69f8() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1)).bgra;
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_5c69f8() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1)).bgra;
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.glsl
index aba208a..7161244 100644
--- a/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_5e17a7() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_5e17a7() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_5e17a7() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.glsl
index 93b86d3..4879908 100644
--- a/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_5e1843() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_5e1843() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_5e1843() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.glsl
index 4190836..8dab13c 100644
--- a/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_61e2e8() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_61e2e8() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_61e2e8() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.glsl
index 1891efb..5059b44 100644
--- a/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_620caa() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_620caa() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage2D arg_0;
+layout(rg32i) uniform highp readonly iimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_620caa() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.glsl
index 149d714..a0de3fa 100644
--- a/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_622278() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_622278() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_622278() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.glsl
index 338bbed..001d0df 100644
--- a/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_63be18() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_63be18() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_63be18() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.glsl
index b199e71..f53b406 100644
--- a/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_64c372() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_64c372() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_64c372() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.glsl
index fb4dacc..20bed98 100644
--- a/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_666010() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_666010() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_666010() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.glsl
index b5c197c..ce44e56 100644
--- a/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_68d273() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_68d273() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_68d273() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.glsl
index d605e22..876ba2b 100644
--- a/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_6a6871() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_6a6871() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_6a6871() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.glsl
index 5c3679e..f5fb7dd 100644
--- a/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_6b8ba6() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_6b8ba6() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_6b8ba6() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.glsl
index 0f82077..748a956 100644
--- a/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_6ba9ab() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_6ba9ab() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_6ba9ab() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.glsl
index cd1b9fd..6fc74a7 100644
--- a/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_6bf3e2() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2))).bgra;
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_6bf3e2() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2))).bgra;
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_6bf3e2() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2))).bgra;
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.glsl
index 7419fd1..257f903 100644
--- a/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_6d7bb5() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_6d7bb5() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_6d7bb5() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.glsl
index c5fc9e3..c5481e2 100644
--- a/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_6e903f() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_6e903f() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_6e903f() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.glsl
index 8e6eb30..98cd65b 100644
--- a/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_6f0ea8() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_6f0ea8() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_6f0ea8() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.glsl
index 283e5c3..2a866dd 100644
--- a/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_6f8927() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_6f8927() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_6f8927() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.glsl
index 7621b16..786ef17 100644
--- a/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_742f1b() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_742f1b() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_742f1b() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.glsl
index 5ef7007..dfeba4a 100644
--- a/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_74a387() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_74a387() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_74a387() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.glsl
index e0013db..f50e3b5 100644
--- a/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_773c46() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_773c46() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2D arg_0;
+layout(rg32ui) uniform highp readonly uimage2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_773c46() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.glsl
index 42e34e5..4305069 100644
--- a/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_7dab57() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_7dab57() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_7dab57() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.glsl
index db41fd8..b5768f1 100644
--- a/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_7e5cbc() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u))).bgra;
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_7e5cbc() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u))).bgra;
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_7e5cbc() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u))).bgra;
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.glsl
index ca92968..6aafdeb 100644
--- a/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_80dae1() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_80dae1() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_80dae1() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.glsl
index 81daad6..a7a705b 100644
--- a/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_83162f() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_83162f() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_83162f() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.glsl
index 4f86f77..44aeaab 100644
--- a/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_848d85() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_848d85() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_848d85() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.glsl
index f5e517e5..a29798b 100644
--- a/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_84a438() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_84a438() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_84a438() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.glsl
index ef9e4c0..a880ae3 100644
--- a/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_878e24() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_878e24() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_878e24() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.glsl
index 1cd7fcb..de2af50 100644
--- a/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_87f0a6() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_87f0a6() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_87f0a6() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.glsl
index bd8fc7c..9c7f749 100644
--- a/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_881349() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_881349() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_881349() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.glsl
index a95a4e6..68a3553 100644
--- a/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_8a9988() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_8a9988() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_8a9988() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.glsl
index 926f76a..6755666 100644
--- a/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_8b62fb() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1)).bgra;
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_8b62fb() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1)).bgra;
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_8b62fb() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1)).bgra;
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.glsl
index cb69e97..44732af 100644
--- a/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_8c6176() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_8c6176() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_8c6176() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.glsl
index 744d01f..d8e2306 100644
--- a/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_8d64c3() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_8d64c3() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_8d64c3() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.glsl
index b2eb97d..1221e42 100644
--- a/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_8e5032() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_8e5032() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_8e5032() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.glsl
index 837e9a6..220ac0a 100644
--- a/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_8e68c9() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_8e68c9() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_8e68c9() {
uvec3 arg_1 = uvec3(1u);
- ivec4 res = texelFetch(arg_0, ivec3(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.glsl
index 0599f1e..cc9b2c9 100644
--- a/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_8fc29b() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_8fc29b() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_8fc29b() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.glsl
index 4fcf91f..0755f56 100644
--- a/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_91ede5() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_91ede5() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_91ede5() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.glsl
index 94d3954..a9deddd 100644
--- a/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_9242e7() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_9242e7() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_9242e7() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.glsl
index 4480d4d..9d7f074 100644
--- a/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_9c2a14() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_9c2a14() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_9c2a14() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.glsl
index 3b0cd17..dcac6fc 100644
--- a/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_9cf7df() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_9cf7df() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_9cf7df() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.glsl
index c03eb14..a0b547f 100644
--- a/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_9fa9fd() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_9fa9fd() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_9fa9fd() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.glsl
index e2510f9..bd2e3ab 100644
--- a/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_9fd7be() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_9fd7be() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_9fd7be() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.glsl
index a4678e7..29130a7 100644
--- a/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_a2b3f4() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_a2b3f4() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_a2b3f4() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.glsl
index c02c1e4..220efda 100644
--- a/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_a3733f() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_a3733f() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_a3733f() {
ivec2 arg_1 = ivec2(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.glsl
index 188c1b3..10c1354 100644
--- a/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_a3f122() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_a3f122() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_a3f122() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.glsl
index 3d3f8b9..04254dc 100644
--- a/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_a548a8() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_a548a8() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_a548a8() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.glsl
index 9541ad3..f47a4b6 100644
--- a/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_a54e11() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_a54e11() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_a54e11() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.glsl
index dd860de..09a431b 100644
--- a/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_a5c4e2() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_a5c4e2() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_a5c4e2() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.glsl
index 9b7f15a..385c7d3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_a64b1d() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_a64b1d() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_a64b1d() {
uvec3 arg_1 = uvec3(1u);
- vec4 res = texelFetch(arg_0, ivec3(arg_1));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.glsl
index 5af2823..31a9a82 100644
--- a/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_a7bcb4() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_a7bcb4() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_a7bcb4() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.glsl
index bd80bb5..b62aca1 100644
--- a/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_a7c171() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_a7c171() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_a7c171() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.glsl
index 706d310..180e7b8 100644
--- a/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_a92b18() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_a92b18() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_a92b18() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.glsl
index 201fe65..51c4a67 100644
--- a/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_aa2579() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_aa2579() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_aa2579() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.glsl
index 01ab39c..c2e6a60 100644
--- a/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_aa6130() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_aa6130() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_aa6130() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.glsl
index 9b043b1..ccada1a 100644
--- a/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_aae9c3() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_aae9c3() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_aae9c3() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.glsl
index 1471399..1c080c0 100644
--- a/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_acf22f() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_acf22f() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_acf22f() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.glsl
index 2b17851..93dc5fc 100644
--- a/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_af0507() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_af0507() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_af0507() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.glsl
index c7603f6..949d49e 100644
--- a/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_b1ca35() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_b1ca35() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_b1ca35() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.glsl
index 36c768b..4469c00 100644
--- a/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_b4d6c4() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_b4d6c4() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_b4d6c4() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.glsl
index 6d83778..3768677 100644
--- a/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_b60a86() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_b60a86() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_b60a86() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.glsl
index 7849a8f..c5499e8 100644
--- a/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_b60db7() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2))).bgra;
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_b60db7() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2))).bgra;
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_b60db7() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2))).bgra;
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.glsl
index 52b5243..efa9515 100644
--- a/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_ba74b2() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_ba74b2() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_ba74b2() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.glsl
index 5c4e1a4..061f5ff 100644
--- a/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_babdf3() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_babdf3() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_babdf3() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.glsl
index 065ff78..48c8e45 100644
--- a/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_bba04a() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_bba04a() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_bba04a() {
uint arg_1 = 1u;
- uvec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ uvec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.glsl
index f942fd0..40f2c38 100644
--- a/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_bbb762() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_bbb762() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_bbb762() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.glsl
index 140c880..f1e124e 100644
--- a/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_bd990a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_bd990a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_bd990a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.glsl
index 8356732..5c33b93 100644
--- a/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_bdc67a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_bdc67a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_bdc67a() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.glsl
index 22836c3..f04dfb5 100644
--- a/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_c5c86d() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_c5c86d() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_c5c86d() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.glsl
index 3e1dae0..3d31dfd 100644
--- a/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_c7e313() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_c7e313() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_c7e313() {
uvec2 arg_1 = uvec2(1u);
- uvec4 res = texelFetch(arg_0, ivec2(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.glsl
index cef22ac..6a8908c 100644
--- a/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_c8ed19() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_c8ed19() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_c8ed19() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.glsl
index 3d993b7..31a1d2e 100644
--- a/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_c98bf4() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_c98bf4() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_c98bf4() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.glsl
index 23d1456..e480e01 100644
--- a/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_c9b083() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_c9b083() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_c9b083() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.glsl
index 96fd4e1..7a36e98 100644
--- a/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_cac876() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_cac876() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_cac876() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.glsl
index a73b5ab..a1ae582 100644
--- a/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_cdbcf6() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_cdbcf6() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_cdbcf6() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.glsl
index df4ffbd..e09e54e 100644
--- a/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_cdccd2() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_cdccd2() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_cdccd2() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.glsl
index 27e0899..7ed3b47 100644
--- a/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_cddf6b() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_cddf6b() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_cddf6b() {
uvec2 arg_1 = uvec2(1u);
- vec4 res = texelFetch(arg_0, ivec2(arg_1));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.glsl
index 48019d2..fa29044 100644
--- a/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_d0e351() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_d0e351() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_d0e351() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.glsl
index c842ef5..d176697 100644
--- a/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_d37a08() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_d37a08() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_d37a08() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.glsl
index 4fd66fc..c653556 100644
--- a/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_d3d8fc() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_d3d8fc() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_d3d8fc() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.glsl
index 2ba4e55..eeb0483 100644
--- a/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_d41c72() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_d41c72() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_d41c72() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.glsl
index b71fbdb..d990735 100644
--- a/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_d72de9() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_d72de9() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_d72de9() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.glsl
index e7cccb1..a29e4fc 100644
--- a/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_d7996a() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_d7996a() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_d7996a() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.glsl
index a3979ba..ee43d7e 100644
--- a/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_d79c5c() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_d79c5c() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_d79c5c() {
int arg_1 = 1;
- uvec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ uvec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.glsl
index 20d21af..97a6f51 100644
--- a/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_d80ff3() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0)).bgra;
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_d80ff3() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0)).bgra;
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_d80ff3() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0)).bgra;
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.glsl
index 60c3bce..6d1e68a 100644
--- a/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_d81c57() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_d81c57() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32f) uniform highp image2D arg_0;
+layout(rg32f) uniform highp readonly image2D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_d81c57() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.glsl
index e6fb12f..83c42a1 100644
--- a/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_d8617f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_d8617f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_d8617f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.glsl
index 45a2afb..e2eecf8 100644
--- a/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_d8be5a() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_d8be5a() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_d8be5a() {
int arg_1 = 1;
- ivec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.glsl
index 30618e4..d1a521f 100644
--- a/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_d91f37() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_d91f37() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_d91f37() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.glsl
index 10319da..f6b3bce 100644
--- a/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_dab04f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2)).bgra;
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_dab04f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2)).bgra;
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_dab04f() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2)).bgra;
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.glsl
index 6c425a0..954dd1e 100644
--- a/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_dd5859() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_dd5859() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_dd5859() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.glsl
index 87fb40e..38ae824 100644
--- a/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_dd8776() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_dd8776() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_dd8776() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.glsl
index 446cc23..a966fa6 100644
--- a/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_de5a0e() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_de5a0e() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_de5a0e() {
uvec2 arg_1 = uvec2(1u);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.glsl
index cb98b68..5691ea7 100644
--- a/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_defd9a() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_defd9a() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_defd9a() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.glsl
index 802c59c..1631643 100644
--- a/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_e1c3cf() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_e1c3cf() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_e1c3cf() {
ivec2 arg_1 = ivec2(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.glsl
index 3664045..eea0ba6 100644
--- a/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_e2b3a1() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_e2b3a1() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_e2b3a1() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ ivec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.glsl
index ba5377b..780984f 100644
--- a/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_e2d7da() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_e2d7da() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_e2d7da() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.glsl
index de9dc4b..c12cfc4 100644
--- a/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_e33285() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_e33285() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_e33285() {
ivec2 arg_1 = ivec2(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.glsl
index f806e21..078d00c 100644
--- a/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_e59fdf() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_e59fdf() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_e59fdf() {
uvec3 arg_1 = uvec3(1u);
- uvec4 res = texelFetch(arg_0, ivec3(arg_1));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.glsl
index 93d8a1b..1b07581 100644
--- a/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_e65916() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_e65916() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32i) uniform highp iimage3D arg_0;
+layout(rg32i) uniform highp readonly iimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
ivec4 inner;
} prevent_dce;
void textureLoad_e65916() {
ivec3 arg_1 = ivec3(1);
- ivec4 res = texelFetch(arg_0, arg_1);
+ ivec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.glsl
index eba2f74..013efe3 100644
--- a/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_e9eb65() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_e9eb65() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_e9eb65() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- uvec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ uvec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.glsl
index 8e71cec..b0ded02 100644
--- a/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_ed55a8() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -45,7 +45,7 @@
void textureLoad_ed55a8() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -74,7 +74,7 @@
void textureLoad_ed55a8() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.glsl
index 8151823..1055353 100644
--- a/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -10,7 +10,7 @@
void textureLoad_eecf7d() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -37,7 +37,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -45,7 +45,7 @@
void textureLoad_eecf7d() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -66,7 +66,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
@@ -74,7 +74,7 @@
void textureLoad_eecf7d() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.glsl
index 2ebfb68..e6aa17a 100644
--- a/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_ef2ec3() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -43,7 +43,7 @@
void textureLoad_ef2ec3() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -71,7 +71,7 @@
void textureLoad_ef2ec3() {
uint arg_1 = 1u;
- ivec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ ivec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.glsl
index 6058a0d..45e0d6c 100644
--- a/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_ef5405() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_ef5405() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32ui) uniform highp uimage3D arg_0;
+layout(rg32ui) uniform highp readonly uimage3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uvec4 inner;
} prevent_dce;
void textureLoad_ef5405() {
ivec3 arg_1 = ivec3(1);
- uvec4 res = texelFetch(arg_0, arg_1);
+ uvec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.glsl
index ba8ac94..96cb1d4 100644
--- a/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_f0514a() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_f0514a() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_f0514a() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.glsl
index e6f52dc..e08eaa7 100644
--- a/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_f2c311() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_f2c311() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_f2c311() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- ivec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ ivec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.glsl
index 07447a2..d3fae03 100644
--- a/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_f5fbc6() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_f5fbc6() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_f5fbc6() {
ivec2 arg_1 = ivec2(1);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(arg_1, arg_2));
+ vec4 res = imageLoad(arg_0, ivec3(arg_1, arg_2));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.glsl
index 830fb3f..5b2b873 100644
--- a/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.glsl
@@ -2,14 +2,14 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_f74bd8() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -36,14 +36,14 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_f74bd8() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
@@ -64,14 +64,14 @@
#version 310 es
-layout(rg32f) uniform highp image3D arg_0;
+layout(rg32f) uniform highp readonly image3D arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
vec4 inner;
} prevent_dce;
void textureLoad_f74bd8() {
ivec3 arg_1 = ivec3(1);
- vec4 res = texelFetch(arg_0, arg_1);
+ vec4 res = imageLoad(arg_0, arg_1);
prevent_dce.inner = res;
}
diff --git a/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.glsl
index 37f46d3..a6a9357 100644
--- a/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_f7f3bc() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_f7f3bc() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_f7f3bc() {
int arg_1 = 1;
- vec4 res = texelFetch(arg_0, ivec2(arg_1, 0));
+ vec4 res = imageLoad(arg_0, ivec2(arg_1, 0));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.glsl
index f9727ff..c203710 100644
--- a/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_f82eb2() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_f82eb2() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_f82eb2() {
uint arg_1 = 1u;
- vec4 res = texelFetch(arg_0, ivec2(uvec2(arg_1, 0u)));
+ vec4 res = imageLoad(arg_0, ivec2(uvec2(arg_1, 0u)));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.glsl
index c1e1e75..2ffa50c 100644
--- a/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.glsl
@@ -9,7 +9,7 @@
void textureLoad_fc47ff() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -27,10 +27,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -44,7 +43,7 @@
void textureLoad_fc47ff() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -57,10 +56,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of int'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -73,7 +71,7 @@
void textureLoad_fc47ff() {
uvec2 arg_1 = uvec2(1u);
- ivec4 res = texelFetch(arg_0, ivec2(arg_1));
+ ivec4 res = imageLoad(arg_0, ivec2(arg_1));
prevent_dce.inner = res;
}
@@ -87,10 +85,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:10: 'texelFetch' : no matching overloaded function found
-ERROR: 0:10: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of int'
+ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.glsl
index b8f1e18..0569331 100644
--- a/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_fd9606() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_fd9606() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_fd9606() {
uvec2 arg_1 = uvec2(1u);
int arg_2 = 1;
- vec4 res = texelFetch(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
+ vec4 res = imageLoad(arg_0, ivec3(uvec3(arg_1, uint(arg_2))));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of float'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.glsl
index 4c4f831..b793ba8 100644
--- a/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.glsl
@@ -10,7 +10,7 @@
void textureLoad_fe2c1b() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -28,10 +28,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -46,7 +45,7 @@
void textureLoad_fe2c1b() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -59,10 +58,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:12: 'texelFetch' : no matching overloaded function found
-ERROR: 0:12: '=' : cannot convert from ' const float' to ' temp mediump 4-component vector of uint'
+ERROR: 0:12: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
@@ -76,7 +74,7 @@
void textureLoad_fe2c1b() {
ivec2 arg_1 = ivec2(1);
uint arg_2 = 1u;
- uvec4 res = texelFetch(arg_0, ivec3(arg_1, int(arg_2)));
+ uvec4 res = imageLoad(arg_0, ivec3(arg_1, int(arg_2)));
prevent_dce.inner = res;
}
@@ -90,10 +88,9 @@
return;
}
Error parsing GLSL shader:
-ERROR: 0:11: 'texelFetch' : no matching overloaded function found
-ERROR: 0:11: '=' : cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:11: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.glsl
index a63d9c8..6f531d6 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32ui) uniform highp uimage2DArray arg_0;
+layout(rg32ui) uniform highp readonly uimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.glsl
index 9328703..614e19f 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32f) uniform highp image2DArray arg_0;
+layout(rg32f) uniform highp readonly image2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.glsl
index 4f834b2..03cd0e5 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.glsl
@@ -2,7 +2,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -35,7 +35,7 @@
#version 310 es
precision highp float;
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
@@ -62,7 +62,7 @@
#version 310 es
-layout(rg32i) uniform highp iimage2DArray arg_0;
+layout(rg32i) uniform highp readonly iimage2DArray arg_0;
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
uint inner;
} prevent_dce;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl
index 30292e8..e099634 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl
index 58dfbdc..3bafd62 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl
index af9d85e..e69edd7 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl
index 5364cae..172742c 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl
index 020811a..200a99b 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl
index 5ebdf2b..763bf83 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl
index 1c447d3..62d39fe 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl
index f6eefd5..3bb5124 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -29,13 +27,6 @@
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
precision highp float;
@@ -61,13 +52,6 @@
fragment_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:14: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
#version 310 es
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -93,10 +77,3 @@
compute_main();
return;
}
-Error parsing GLSL shader:
-ERROR: 0:13: 'textureLodOffset' : no matching overloaded function found
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
diff --git a/test/tint/shader_io/compute_subgroup_builtins.wgsl.expected.glsl b/test/tint/shader_io/compute_subgroup_builtins.wgsl.expected.glsl
index a12f56e..e5671a0 100644
--- a/test/tint/shader_io/compute_subgroup_builtins.wgsl.expected.glsl
+++ b/test/tint/shader_io/compute_subgroup_builtins.wgsl.expected.glsl
@@ -1,24 +1,16 @@
SKIP: FAILED
-#version 310 es
-layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
- uint inner[];
-} tint_symbol;
+enable chromium_experimental_subgroups;
-void tint_symbol_1(uint subgroup_invocation_id, uint subgroup_size) {
- tint_symbol.inner[subgroup_invocation_id] = subgroup_size;
+@group(0) @binding(0) var<storage, read_write> tint_symbol : array<u32>;
+
+@compute @workgroup_size(1)
+fn tint_symbol_1(@builtin(subgroup_invocation_id) subgroup_invocation_id : u32, @builtin(subgroup_size) subgroup_size : u32) {
+ tint_symbol[subgroup_invocation_id] = subgroup_size;
}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
- tint_symbol_1(tint_symbol_2, tint_symbol_3);
- return;
-}
-Error parsing GLSL shader:
-ERROR: 0:13: 'tint_symbol_2' : undeclared identifier
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
+Failed to generate: shader_io/compute_subgroup_builtins.wgsl:1:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+enable chromium_experimental_subgroups;
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/test/tint/shader_io/compute_subgroup_builtins_struct.wgsl.expected.glsl b/test/tint/shader_io/compute_subgroup_builtins_struct.wgsl.expected.glsl
index 3b0a9a6..8903e97 100644
--- a/test/tint/shader_io/compute_subgroup_builtins_struct.wgsl.expected.glsl
+++ b/test/tint/shader_io/compute_subgroup_builtins_struct.wgsl.expected.glsl
@@ -1,30 +1,23 @@
SKIP: FAILED
-#version 310 es
-layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
- uint inner[];
-} tint_symbol;
+enable chromium_experimental_subgroups;
+
+@group(0) @binding(0) var<storage, read_write> tint_symbol : array<u32>;
struct ComputeInputs {
- uint subgroup_invocation_id;
- uint subgroup_size;
-};
-
-void tint_symbol_1(ComputeInputs inputs) {
- tint_symbol.inner[inputs.subgroup_invocation_id] = inputs.subgroup_size;
+ @builtin(subgroup_invocation_id)
+ subgroup_invocation_id : u32,
+ @builtin(subgroup_size)
+ subgroup_size : u32,
}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
- ComputeInputs tint_symbol_4 = ComputeInputs(tint_symbol_2, tint_symbol_3);
- tint_symbol_1(tint_symbol_4);
- return;
+@compute @workgroup_size(1)
+fn tint_symbol_1(inputs : ComputeInputs) {
+ tint_symbol[inputs.subgroup_invocation_id] = inputs.subgroup_size;
}
-Error parsing GLSL shader:
-ERROR: 0:18: 'tint_symbol_2' : undeclared identifier
-ERROR: 0:18: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
+Failed to generate: shader_io/compute_subgroup_builtins_struct.wgsl:1:8 error: GLSL backend does not support extension 'chromium_experimental_subgroups'
+enable chromium_experimental_subgroups;
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^