3 #extension GL_KHR_shader_subgroup_arithmetic: enable
\r
5 layout (local_size_x = 8) in;
\r
7 layout(binding = 0) buffer Buffers
\r
17 uint invocation = (gl_SubgroupInvocationID + gl_SubgroupSize) % 4;
\r
19 data[invocation].f4.x = subgroupAdd(data[0].f4.x);
\r
20 data[invocation].f4.xy = subgroupAdd(data[1].f4.xy);
\r
21 data[invocation].f4.xyz = subgroupAdd(data[2].f4.xyz);
\r
22 data[invocation].f4 = subgroupAdd(data[3].f4);
\r
24 data[invocation].i4.x = subgroupAdd(data[0].i4.x);
\r
25 data[invocation].i4.xy = subgroupAdd(data[1].i4.xy);
\r
26 data[invocation].i4.xyz = subgroupAdd(data[2].i4.xyz);
\r
27 data[invocation].i4 = subgroupAdd(data[3].i4);
\r
29 data[invocation].u4.x = subgroupAdd(data[0].u4.x);
\r
30 data[invocation].u4.xy = subgroupAdd(data[1].u4.xy);
\r
31 data[invocation].u4.xyz = subgroupAdd(data[2].u4.xyz);
\r
32 data[invocation].u4 = subgroupAdd(data[3].u4);
\r
34 data[invocation].d4.x = subgroupAdd(data[0].d4.x);
\r
35 data[invocation].d4.xy = subgroupAdd(data[1].d4.xy);
\r
36 data[invocation].d4.xyz = subgroupAdd(data[2].d4.xyz);
\r
37 data[invocation].d4 = subgroupAdd(data[3].d4);
\r
39 data[invocation].f4.x = subgroupMul(data[0].f4.x);
\r
40 data[invocation].f4.xy = subgroupMul(data[1].f4.xy);
\r
41 data[invocation].f4.xyz = subgroupMul(data[2].f4.xyz);
\r
42 data[invocation].f4 = subgroupMul(data[3].f4);
\r
44 data[invocation].i4.x = subgroupMul(data[0].i4.x);
\r
45 data[invocation].i4.xy = subgroupMul(data[1].i4.xy);
\r
46 data[invocation].i4.xyz = subgroupMul(data[2].i4.xyz);
\r
47 data[invocation].i4 = subgroupMul(data[3].i4);
\r
49 data[invocation].u4.x = subgroupMul(data[0].u4.x);
\r
50 data[invocation].u4.xy = subgroupMul(data[1].u4.xy);
\r
51 data[invocation].u4.xyz = subgroupMul(data[2].u4.xyz);
\r
52 data[invocation].u4 = subgroupMul(data[3].u4);
\r
54 data[invocation].d4.x = subgroupMul(data[0].d4.x);
\r
55 data[invocation].d4.xy = subgroupMul(data[1].d4.xy);
\r
56 data[invocation].d4.xyz = subgroupMul(data[2].d4.xyz);
\r
57 data[invocation].d4 = subgroupMul(data[3].d4);
\r
59 data[invocation].f4.x = subgroupMin(data[0].f4.x);
\r
60 data[invocation].f4.xy = subgroupMin(data[1].f4.xy);
\r
61 data[invocation].f4.xyz = subgroupMin(data[2].f4.xyz);
\r
62 data[invocation].f4 = subgroupMin(data[3].f4);
\r
64 data[invocation].i4.x = subgroupMin(data[0].i4.x);
\r
65 data[invocation].i4.xy = subgroupMin(data[1].i4.xy);
\r
66 data[invocation].i4.xyz = subgroupMin(data[2].i4.xyz);
\r
67 data[invocation].i4 = subgroupMin(data[3].i4);
\r
69 data[invocation].u4.x = subgroupMin(data[0].u4.x);
\r
70 data[invocation].u4.xy = subgroupMin(data[1].u4.xy);
\r
71 data[invocation].u4.xyz = subgroupMin(data[2].u4.xyz);
\r
72 data[invocation].u4 = subgroupMin(data[3].u4);
\r
74 data[invocation].d4.x = subgroupMin(data[0].d4.x);
\r
75 data[invocation].d4.xy = subgroupMin(data[1].d4.xy);
\r
76 data[invocation].d4.xyz = subgroupMin(data[2].d4.xyz);
\r
77 data[invocation].d4 = subgroupMin(data[3].d4);
\r
79 data[invocation].f4.x = subgroupMax(data[0].f4.x);
\r
80 data[invocation].f4.xy = subgroupMax(data[1].f4.xy);
\r
81 data[invocation].f4.xyz = subgroupMax(data[2].f4.xyz);
\r
82 data[invocation].f4 = subgroupMax(data[3].f4);
\r
84 data[invocation].i4.x = subgroupMax(data[0].i4.x);
\r
85 data[invocation].i4.xy = subgroupMax(data[1].i4.xy);
\r
86 data[invocation].i4.xyz = subgroupMax(data[2].i4.xyz);
\r
87 data[invocation].i4 = subgroupMax(data[3].i4);
\r
89 data[invocation].u4.x = subgroupMax(data[0].u4.x);
\r
90 data[invocation].u4.xy = subgroupMax(data[1].u4.xy);
\r
91 data[invocation].u4.xyz = subgroupMax(data[2].u4.xyz);
\r
92 data[invocation].u4 = subgroupMax(data[3].u4);
\r
94 data[invocation].d4.x = subgroupMax(data[0].d4.x);
\r
95 data[invocation].d4.xy = subgroupMax(data[1].d4.xy);
\r
96 data[invocation].d4.xyz = subgroupMax(data[2].d4.xyz);
\r
97 data[invocation].d4 = subgroupMax(data[3].d4);
\r
99 data[invocation].i4.x = subgroupAnd(data[0].i4.x);
\r
100 data[invocation].i4.xy = subgroupAnd(data[1].i4.xy);
\r
101 data[invocation].i4.xyz = subgroupAnd(data[2].i4.xyz);
\r
102 data[invocation].i4 = subgroupAnd(data[3].i4);
\r
104 data[invocation].u4.x = subgroupAnd(data[0].u4.x);
\r
105 data[invocation].u4.xy = subgroupAnd(data[1].u4.xy);
\r
106 data[invocation].u4.xyz = subgroupAnd(data[2].u4.xyz);
\r
107 data[invocation].u4 = subgroupAnd(data[3].u4);
\r
109 data[invocation].i4.x = int(subgroupAnd(data[0].i4.x < 0));
\r
110 data[invocation].i4.xy = ivec2(subgroupAnd(lessThan(data[1].i4.xy, ivec2(0))));
\r
111 data[invocation].i4.xyz = ivec3(subgroupAnd(lessThan(data[1].i4.xyz, ivec3(0))));
\r
112 data[invocation].i4 = ivec4(subgroupAnd(lessThan(data[1].i4, ivec4(0))));
\r
114 data[invocation].i4.x = subgroupOr(data[0].i4.x);
\r
115 data[invocation].i4.xy = subgroupOr(data[1].i4.xy);
\r
116 data[invocation].i4.xyz = subgroupOr(data[2].i4.xyz);
\r
117 data[invocation].i4 = subgroupOr(data[3].i4);
\r
119 data[invocation].u4.x = subgroupOr(data[0].u4.x);
\r
120 data[invocation].u4.xy = subgroupOr(data[1].u4.xy);
\r
121 data[invocation].u4.xyz = subgroupOr(data[2].u4.xyz);
\r
122 data[invocation].u4 = subgroupOr(data[3].u4);
\r
124 data[invocation].i4.x = int(subgroupOr(data[0].i4.x < 0));
\r
125 data[invocation].i4.xy = ivec2(subgroupOr(lessThan(data[1].i4.xy, ivec2(0))));
\r
126 data[invocation].i4.xyz = ivec3(subgroupOr(lessThan(data[1].i4.xyz, ivec3(0))));
\r
127 data[invocation].i4 = ivec4(subgroupOr(lessThan(data[1].i4, ivec4(0))));
\r
129 data[invocation].i4.x = subgroupXor(data[0].i4.x);
\r
130 data[invocation].i4.xy = subgroupXor(data[1].i4.xy);
\r
131 data[invocation].i4.xyz = subgroupXor(data[2].i4.xyz);
\r
132 data[invocation].i4 = subgroupXor(data[3].i4);
\r
134 data[invocation].u4.x = subgroupXor(data[0].u4.x);
\r
135 data[invocation].u4.xy = subgroupXor(data[1].u4.xy);
\r
136 data[invocation].u4.xyz = subgroupXor(data[2].u4.xyz);
\r
137 data[invocation].u4 = subgroupXor(data[3].u4);
\r
139 data[invocation].i4.x = int(subgroupXor(data[0].i4.x < 0));
\r
140 data[invocation].i4.xy = ivec2(subgroupXor(lessThan(data[1].i4.xy, ivec2(0))));
\r
141 data[invocation].i4.xyz = ivec3(subgroupXor(lessThan(data[1].i4.xyz, ivec3(0))));
\r
142 data[invocation].i4 = ivec4(subgroupXor(lessThan(data[1].i4, ivec4(0))));
\r
144 data[invocation].f4.x = subgroupInclusiveAdd(data[0].f4.x);
\r
145 data[invocation].f4.xy = subgroupInclusiveAdd(data[1].f4.xy);
\r
146 data[invocation].f4.xyz = subgroupInclusiveAdd(data[2].f4.xyz);
\r
147 data[invocation].f4 = subgroupInclusiveAdd(data[3].f4);
\r
149 data[invocation].i4.x = subgroupInclusiveAdd(data[0].i4.x);
\r
150 data[invocation].i4.xy = subgroupInclusiveAdd(data[1].i4.xy);
\r
151 data[invocation].i4.xyz = subgroupInclusiveAdd(data[2].i4.xyz);
\r
152 data[invocation].i4 = subgroupInclusiveAdd(data[3].i4);
\r
154 data[invocation].u4.x = subgroupInclusiveAdd(data[0].u4.x);
\r
155 data[invocation].u4.xy = subgroupInclusiveAdd(data[1].u4.xy);
\r
156 data[invocation].u4.xyz = subgroupInclusiveAdd(data[2].u4.xyz);
\r
157 data[invocation].u4 = subgroupInclusiveAdd(data[3].u4);
\r
159 data[invocation].d4.x = subgroupInclusiveAdd(data[0].d4.x);
\r
160 data[invocation].d4.xy = subgroupInclusiveAdd(data[1].d4.xy);
\r
161 data[invocation].d4.xyz = subgroupInclusiveAdd(data[2].d4.xyz);
\r
162 data[invocation].d4 = subgroupInclusiveAdd(data[3].d4);
\r
164 data[invocation].f4.x = subgroupInclusiveMul(data[0].f4.x);
\r
165 data[invocation].f4.xy = subgroupInclusiveMul(data[1].f4.xy);
\r
166 data[invocation].f4.xyz = subgroupInclusiveMul(data[2].f4.xyz);
\r
167 data[invocation].f4 = subgroupInclusiveMul(data[3].f4);
\r
169 data[invocation].i4.x = subgroupInclusiveMul(data[0].i4.x);
\r
170 data[invocation].i4.xy = subgroupInclusiveMul(data[1].i4.xy);
\r
171 data[invocation].i4.xyz = subgroupInclusiveMul(data[2].i4.xyz);
\r
172 data[invocation].i4 = subgroupInclusiveMul(data[3].i4);
\r
174 data[invocation].u4.x = subgroupInclusiveMul(data[0].u4.x);
\r
175 data[invocation].u4.xy = subgroupInclusiveMul(data[1].u4.xy);
\r
176 data[invocation].u4.xyz = subgroupInclusiveMul(data[2].u4.xyz);
\r
177 data[invocation].u4 = subgroupInclusiveMul(data[3].u4);
\r
179 data[invocation].d4.x = subgroupInclusiveMul(data[0].d4.x);
\r
180 data[invocation].d4.xy = subgroupInclusiveMul(data[1].d4.xy);
\r
181 data[invocation].d4.xyz = subgroupInclusiveMul(data[2].d4.xyz);
\r
182 data[invocation].d4 = subgroupInclusiveMul(data[3].d4);
\r
184 data[invocation].f4.x = subgroupInclusiveMin(data[0].f4.x);
\r
185 data[invocation].f4.xy = subgroupInclusiveMin(data[1].f4.xy);
\r
186 data[invocation].f4.xyz = subgroupInclusiveMin(data[2].f4.xyz);
\r
187 data[invocation].f4 = subgroupInclusiveMin(data[3].f4);
\r
189 data[invocation].i4.x = subgroupInclusiveMin(data[0].i4.x);
\r
190 data[invocation].i4.xy = subgroupInclusiveMin(data[1].i4.xy);
\r
191 data[invocation].i4.xyz = subgroupInclusiveMin(data[2].i4.xyz);
\r
192 data[invocation].i4 = subgroupInclusiveMin(data[3].i4);
\r
194 data[invocation].u4.x = subgroupInclusiveMin(data[0].u4.x);
\r
195 data[invocation].u4.xy = subgroupInclusiveMin(data[1].u4.xy);
\r
196 data[invocation].u4.xyz = subgroupInclusiveMin(data[2].u4.xyz);
\r
197 data[invocation].u4 = subgroupInclusiveMin(data[3].u4);
\r
199 data[invocation].d4.x = subgroupInclusiveMin(data[0].d4.x);
\r
200 data[invocation].d4.xy = subgroupInclusiveMin(data[1].d4.xy);
\r
201 data[invocation].d4.xyz = subgroupInclusiveMin(data[2].d4.xyz);
\r
202 data[invocation].d4 = subgroupInclusiveMin(data[3].d4);
\r
204 data[invocation].f4.x = subgroupInclusiveMax(data[0].f4.x);
\r
205 data[invocation].f4.xy = subgroupInclusiveMax(data[1].f4.xy);
\r
206 data[invocation].f4.xyz = subgroupInclusiveMax(data[2].f4.xyz);
\r
207 data[invocation].f4 = subgroupInclusiveMax(data[3].f4);
\r
209 data[invocation].i4.x = subgroupInclusiveMax(data[0].i4.x);
\r
210 data[invocation].i4.xy = subgroupInclusiveMax(data[1].i4.xy);
\r
211 data[invocation].i4.xyz = subgroupInclusiveMax(data[2].i4.xyz);
\r
212 data[invocation].i4 = subgroupInclusiveMax(data[3].i4);
\r
214 data[invocation].u4.x = subgroupInclusiveMax(data[0].u4.x);
\r
215 data[invocation].u4.xy = subgroupInclusiveMax(data[1].u4.xy);
\r
216 data[invocation].u4.xyz = subgroupInclusiveMax(data[2].u4.xyz);
\r
217 data[invocation].u4 = subgroupInclusiveMax(data[3].u4);
\r
219 data[invocation].d4.x = subgroupInclusiveMax(data[0].d4.x);
\r
220 data[invocation].d4.xy = subgroupInclusiveMax(data[1].d4.xy);
\r
221 data[invocation].d4.xyz = subgroupInclusiveMax(data[2].d4.xyz);
\r
222 data[invocation].d4 = subgroupInclusiveMax(data[3].d4);
\r
224 data[invocation].i4.x = subgroupInclusiveAnd(data[0].i4.x);
\r
225 data[invocation].i4.xy = subgroupInclusiveAnd(data[1].i4.xy);
\r
226 data[invocation].i4.xyz = subgroupInclusiveAnd(data[2].i4.xyz);
\r
227 data[invocation].i4 = subgroupInclusiveAnd(data[3].i4);
\r
229 data[invocation].u4.x = subgroupInclusiveAnd(data[0].u4.x);
\r
230 data[invocation].u4.xy = subgroupInclusiveAnd(data[1].u4.xy);
\r
231 data[invocation].u4.xyz = subgroupInclusiveAnd(data[2].u4.xyz);
\r
232 data[invocation].u4 = subgroupInclusiveAnd(data[3].u4);
\r
234 data[invocation].i4.x = int(subgroupInclusiveAnd(data[0].i4.x < 0));
\r
235 data[invocation].i4.xy = ivec2(subgroupInclusiveAnd(lessThan(data[1].i4.xy, ivec2(0))));
\r
236 data[invocation].i4.xyz = ivec3(subgroupInclusiveAnd(lessThan(data[1].i4.xyz, ivec3(0))));
\r
237 data[invocation].i4 = ivec4(subgroupInclusiveAnd(lessThan(data[1].i4, ivec4(0))));
\r
239 data[invocation].i4.x = subgroupInclusiveOr(data[0].i4.x);
\r
240 data[invocation].i4.xy = subgroupInclusiveOr(data[1].i4.xy);
\r
241 data[invocation].i4.xyz = subgroupInclusiveOr(data[2].i4.xyz);
\r
242 data[invocation].i4 = subgroupInclusiveOr(data[3].i4);
\r
244 data[invocation].u4.x = subgroupInclusiveOr(data[0].u4.x);
\r
245 data[invocation].u4.xy = subgroupInclusiveOr(data[1].u4.xy);
\r
246 data[invocation].u4.xyz = subgroupInclusiveOr(data[2].u4.xyz);
\r
247 data[invocation].u4 = subgroupInclusiveOr(data[3].u4);
\r
249 data[invocation].i4.x = int(subgroupInclusiveOr(data[0].i4.x < 0));
\r
250 data[invocation].i4.xy = ivec2(subgroupInclusiveOr(lessThan(data[1].i4.xy, ivec2(0))));
\r
251 data[invocation].i4.xyz = ivec3(subgroupInclusiveOr(lessThan(data[1].i4.xyz, ivec3(0))));
\r
252 data[invocation].i4 = ivec4(subgroupInclusiveOr(lessThan(data[1].i4, ivec4(0))));
\r
254 data[invocation].i4.x = subgroupInclusiveXor(data[0].i4.x);
\r
255 data[invocation].i4.xy = subgroupInclusiveXor(data[1].i4.xy);
\r
256 data[invocation].i4.xyz = subgroupInclusiveXor(data[2].i4.xyz);
\r
257 data[invocation].i4 = subgroupInclusiveXor(data[3].i4);
\r
259 data[invocation].u4.x = subgroupInclusiveXor(data[0].u4.x);
\r
260 data[invocation].u4.xy = subgroupInclusiveXor(data[1].u4.xy);
\r
261 data[invocation].u4.xyz = subgroupInclusiveXor(data[2].u4.xyz);
\r
262 data[invocation].u4 = subgroupInclusiveXor(data[3].u4);
\r
264 data[invocation].i4.x = int(subgroupInclusiveXor(data[0].i4.x < 0));
\r
265 data[invocation].i4.xy = ivec2(subgroupInclusiveXor(lessThan(data[1].i4.xy, ivec2(0))));
\r
266 data[invocation].i4.xyz = ivec3(subgroupInclusiveXor(lessThan(data[1].i4.xyz, ivec3(0))));
\r
267 data[invocation].i4 = ivec4(subgroupInclusiveXor(lessThan(data[1].i4, ivec4(0))));
\r
269 data[invocation].f4.x = subgroupExclusiveAdd(data[0].f4.x);
\r
270 data[invocation].f4.xy = subgroupExclusiveAdd(data[1].f4.xy);
\r
271 data[invocation].f4.xyz = subgroupExclusiveAdd(data[2].f4.xyz);
\r
272 data[invocation].f4 = subgroupExclusiveAdd(data[3].f4);
\r
274 data[invocation].i4.x = subgroupExclusiveAdd(data[0].i4.x);
\r
275 data[invocation].i4.xy = subgroupExclusiveAdd(data[1].i4.xy);
\r
276 data[invocation].i4.xyz = subgroupExclusiveAdd(data[2].i4.xyz);
\r
277 data[invocation].i4 = subgroupExclusiveAdd(data[3].i4);
\r
279 data[invocation].u4.x = subgroupExclusiveAdd(data[0].u4.x);
\r
280 data[invocation].u4.xy = subgroupExclusiveAdd(data[1].u4.xy);
\r
281 data[invocation].u4.xyz = subgroupExclusiveAdd(data[2].u4.xyz);
\r
282 data[invocation].u4 = subgroupExclusiveAdd(data[3].u4);
\r
284 data[invocation].d4.x = subgroupExclusiveAdd(data[0].d4.x);
\r
285 data[invocation].d4.xy = subgroupExclusiveAdd(data[1].d4.xy);
\r
286 data[invocation].d4.xyz = subgroupExclusiveAdd(data[2].d4.xyz);
\r
287 data[invocation].d4 = subgroupExclusiveAdd(data[3].d4);
\r
289 data[invocation].f4.x = subgroupExclusiveMul(data[0].f4.x);
\r
290 data[invocation].f4.xy = subgroupExclusiveMul(data[1].f4.xy);
\r
291 data[invocation].f4.xyz = subgroupExclusiveMul(data[2].f4.xyz);
\r
292 data[invocation].f4 = subgroupExclusiveMul(data[3].f4);
\r
294 data[invocation].i4.x = subgroupExclusiveMul(data[0].i4.x);
\r
295 data[invocation].i4.xy = subgroupExclusiveMul(data[1].i4.xy);
\r
296 data[invocation].i4.xyz = subgroupExclusiveMul(data[2].i4.xyz);
\r
297 data[invocation].i4 = subgroupExclusiveMul(data[3].i4);
\r
299 data[invocation].u4.x = subgroupExclusiveMul(data[0].u4.x);
\r
300 data[invocation].u4.xy = subgroupExclusiveMul(data[1].u4.xy);
\r
301 data[invocation].u4.xyz = subgroupExclusiveMul(data[2].u4.xyz);
\r
302 data[invocation].u4 = subgroupExclusiveMul(data[3].u4);
\r
304 data[invocation].d4.x = subgroupExclusiveMul(data[0].d4.x);
\r
305 data[invocation].d4.xy = subgroupExclusiveMul(data[1].d4.xy);
\r
306 data[invocation].d4.xyz = subgroupExclusiveMul(data[2].d4.xyz);
\r
307 data[invocation].d4 = subgroupExclusiveMul(data[3].d4);
\r
309 data[invocation].f4.x = subgroupExclusiveMin(data[0].f4.x);
\r
310 data[invocation].f4.xy = subgroupExclusiveMin(data[1].f4.xy);
\r
311 data[invocation].f4.xyz = subgroupExclusiveMin(data[2].f4.xyz);
\r
312 data[invocation].f4 = subgroupExclusiveMin(data[3].f4);
\r
314 data[invocation].i4.x = subgroupExclusiveMin(data[0].i4.x);
\r
315 data[invocation].i4.xy = subgroupExclusiveMin(data[1].i4.xy);
\r
316 data[invocation].i4.xyz = subgroupExclusiveMin(data[2].i4.xyz);
\r
317 data[invocation].i4 = subgroupExclusiveMin(data[3].i4);
\r
319 data[invocation].u4.x = subgroupExclusiveMin(data[0].u4.x);
\r
320 data[invocation].u4.xy = subgroupExclusiveMin(data[1].u4.xy);
\r
321 data[invocation].u4.xyz = subgroupExclusiveMin(data[2].u4.xyz);
\r
322 data[invocation].u4 = subgroupExclusiveMin(data[3].u4);
\r
324 data[invocation].d4.x = subgroupExclusiveMin(data[0].d4.x);
\r
325 data[invocation].d4.xy = subgroupExclusiveMin(data[1].d4.xy);
\r
326 data[invocation].d4.xyz = subgroupExclusiveMin(data[2].d4.xyz);
\r
327 data[invocation].d4 = subgroupExclusiveMin(data[3].d4);
\r
329 data[invocation].f4.x = subgroupExclusiveMax(data[0].f4.x);
\r
330 data[invocation].f4.xy = subgroupExclusiveMax(data[1].f4.xy);
\r
331 data[invocation].f4.xyz = subgroupExclusiveMax(data[2].f4.xyz);
\r
332 data[invocation].f4 = subgroupExclusiveMax(data[3].f4);
\r
334 data[invocation].i4.x = subgroupExclusiveMax(data[0].i4.x);
\r
335 data[invocation].i4.xy = subgroupExclusiveMax(data[1].i4.xy);
\r
336 data[invocation].i4.xyz = subgroupExclusiveMax(data[2].i4.xyz);
\r
337 data[invocation].i4 = subgroupExclusiveMax(data[3].i4);
\r
339 data[invocation].u4.x = subgroupExclusiveMax(data[0].u4.x);
\r
340 data[invocation].u4.xy = subgroupExclusiveMax(data[1].u4.xy);
\r
341 data[invocation].u4.xyz = subgroupExclusiveMax(data[2].u4.xyz);
\r
342 data[invocation].u4 = subgroupExclusiveMax(data[3].u4);
\r
344 data[invocation].d4.x = subgroupExclusiveMax(data[0].d4.x);
\r
345 data[invocation].d4.xy = subgroupExclusiveMax(data[1].d4.xy);
\r
346 data[invocation].d4.xyz = subgroupExclusiveMax(data[2].d4.xyz);
\r
347 data[invocation].d4 = subgroupExclusiveMax(data[3].d4);
\r
349 data[invocation].i4.x = subgroupExclusiveAnd(data[0].i4.x);
\r
350 data[invocation].i4.xy = subgroupExclusiveAnd(data[1].i4.xy);
\r
351 data[invocation].i4.xyz = subgroupExclusiveAnd(data[2].i4.xyz);
\r
352 data[invocation].i4 = subgroupExclusiveAnd(data[3].i4);
\r
354 data[invocation].u4.x = subgroupExclusiveAnd(data[0].u4.x);
\r
355 data[invocation].u4.xy = subgroupExclusiveAnd(data[1].u4.xy);
\r
356 data[invocation].u4.xyz = subgroupExclusiveAnd(data[2].u4.xyz);
\r
357 data[invocation].u4 = subgroupExclusiveAnd(data[3].u4);
\r
359 data[invocation].i4.x = int(subgroupExclusiveAnd(data[0].i4.x < 0));
\r
360 data[invocation].i4.xy = ivec2(subgroupExclusiveAnd(lessThan(data[1].i4.xy, ivec2(0))));
\r
361 data[invocation].i4.xyz = ivec3(subgroupExclusiveAnd(lessThan(data[1].i4.xyz, ivec3(0))));
\r
362 data[invocation].i4 = ivec4(subgroupExclusiveAnd(lessThan(data[1].i4, ivec4(0))));
\r
364 data[invocation].i4.x = subgroupExclusiveOr(data[0].i4.x);
\r
365 data[invocation].i4.xy = subgroupExclusiveOr(data[1].i4.xy);
\r
366 data[invocation].i4.xyz = subgroupExclusiveOr(data[2].i4.xyz);
\r
367 data[invocation].i4 = subgroupExclusiveOr(data[3].i4);
\r
369 data[invocation].u4.x = subgroupExclusiveOr(data[0].u4.x);
\r
370 data[invocation].u4.xy = subgroupExclusiveOr(data[1].u4.xy);
\r
371 data[invocation].u4.xyz = subgroupExclusiveOr(data[2].u4.xyz);
\r
372 data[invocation].u4 = subgroupExclusiveOr(data[3].u4);
\r
374 data[invocation].i4.x = int(subgroupExclusiveOr(data[0].i4.x < 0));
\r
375 data[invocation].i4.xy = ivec2(subgroupExclusiveOr(lessThan(data[1].i4.xy, ivec2(0))));
\r
376 data[invocation].i4.xyz = ivec3(subgroupExclusiveOr(lessThan(data[1].i4.xyz, ivec3(0))));
\r
377 data[invocation].i4 = ivec4(subgroupExclusiveOr(lessThan(data[1].i4, ivec4(0))));
\r
379 data[invocation].i4.x = subgroupExclusiveXor(data[0].i4.x);
\r
380 data[invocation].i4.xy = subgroupExclusiveXor(data[1].i4.xy);
\r
381 data[invocation].i4.xyz = subgroupExclusiveXor(data[2].i4.xyz);
\r
382 data[invocation].i4 = subgroupExclusiveXor(data[3].i4);
\r
384 data[invocation].u4.x = subgroupExclusiveXor(data[0].u4.x);
\r
385 data[invocation].u4.xy = subgroupExclusiveXor(data[1].u4.xy);
\r
386 data[invocation].u4.xyz = subgroupExclusiveXor(data[2].u4.xyz);
\r
387 data[invocation].u4 = subgroupExclusiveXor(data[3].u4);
\r
389 data[invocation].i4.x = int(subgroupExclusiveXor(data[0].i4.x < 0));
\r
390 data[invocation].i4.xy = ivec2(subgroupExclusiveXor(lessThan(data[1].i4.xy, ivec2(0))));
\r
391 data[invocation].i4.xyz = ivec3(subgroupExclusiveXor(lessThan(data[1].i4.xyz, ivec3(0))));
\r
392 data[invocation].i4 = ivec4(subgroupExclusiveXor(lessThan(data[1].i4, ivec4(0))));
\r