swizzles_bvec2.test (10224B)
1 # WARNING: This file is auto-generated. Do NOT modify it manually, but rather 2 # modify the generating script file. Otherwise changes will be lost! 3 # See split-swizzles.js 4 5 group bvec2_swizzles "bvec2 swizzles" 6 7 case mediump_bvec2_x 8 values 9 { 10 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 11 output bool out0 = [ true | false | false | true | false ]; 12 } 13 14 both "" 15 precision mediump float; 16 17 ${DECLARATIONS} 18 19 void main() 20 { 21 ${SETUP} 22 out0 = in0.x; 23 ${OUTPUT} 24 } 25 "" 26 end 27 28 29 case mediump_bvec2_xx 30 values 31 { 32 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 33 output bvec2 out0 = [ bvec2(true, true) | bvec2(false, false) | bvec2(false, false) | bvec2(true, true) | bvec2(false, false) ]; 34 } 35 36 both "" 37 precision mediump float; 38 39 ${DECLARATIONS} 40 41 void main() 42 { 43 ${SETUP} 44 out0 = in0.xx; 45 ${OUTPUT} 46 } 47 "" 48 end 49 50 51 case mediump_bvec2_xy 52 values 53 { 54 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 55 output bvec2 out0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 56 } 57 58 both "" 59 precision mediump float; 60 61 ${DECLARATIONS} 62 63 void main() 64 { 65 ${SETUP} 66 out0 = in0.xy; 67 ${OUTPUT} 68 } 69 "" 70 end 71 72 73 case mediump_bvec2_yx 74 values 75 { 76 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 77 output bvec2 out0 = [ bvec2(false, true) | bvec2(false, false) | bvec2(true, false) | bvec2(true, true) | bvec2(false, false) ]; 78 } 79 80 both "" 81 precision mediump float; 82 83 ${DECLARATIONS} 84 85 void main() 86 { 87 ${SETUP} 88 out0 = in0.yx; 89 ${OUTPUT} 90 } 91 "" 92 end 93 94 95 case mediump_bvec2_yxy 96 values 97 { 98 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 99 output bvec3 out0 = [ bvec3(false, true, false) | bvec3(false, false, false) | bvec3(true, false, true) | bvec3(true, true, true) | bvec3(false, false, false) ]; 100 } 101 102 both "" 103 precision mediump float; 104 105 ${DECLARATIONS} 106 107 void main() 108 { 109 ${SETUP} 110 out0 = in0.yxy; 111 ${OUTPUT} 112 } 113 "" 114 end 115 116 117 case mediump_bvec2_xyxx 118 values 119 { 120 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 121 output bvec4 out0 = [ bvec4(true, false, true, true) | bvec4(false, false, false, false) | bvec4(false, true, false, false) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ]; 122 } 123 124 both "" 125 precision mediump float; 126 127 ${DECLARATIONS} 128 129 void main() 130 { 131 ${SETUP} 132 out0 = in0.xyxx; 133 ${OUTPUT} 134 } 135 "" 136 end 137 138 139 case mediump_bvec2_yyyy 140 values 141 { 142 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 143 output bvec4 out0 = [ bvec4(false, false, false, false) | bvec4(false, false, false, false) | bvec4(true, true, true, true) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ]; 144 } 145 146 both "" 147 precision mediump float; 148 149 ${DECLARATIONS} 150 151 void main() 152 { 153 ${SETUP} 154 out0 = in0.yyyy; 155 ${OUTPUT} 156 } 157 "" 158 end 159 160 161 case mediump_bvec2_s 162 values 163 { 164 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 165 output bool out0 = [ true | false | false | true | false ]; 166 } 167 168 both "" 169 precision mediump float; 170 171 ${DECLARATIONS} 172 173 void main() 174 { 175 ${SETUP} 176 out0 = in0.s; 177 ${OUTPUT} 178 } 179 "" 180 end 181 182 183 case mediump_bvec2_ss 184 values 185 { 186 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 187 output bvec2 out0 = [ bvec2(true, true) | bvec2(false, false) | bvec2(false, false) | bvec2(true, true) | bvec2(false, false) ]; 188 } 189 190 both "" 191 precision mediump float; 192 193 ${DECLARATIONS} 194 195 void main() 196 { 197 ${SETUP} 198 out0 = in0.ss; 199 ${OUTPUT} 200 } 201 "" 202 end 203 204 205 case mediump_bvec2_st 206 values 207 { 208 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 209 output bvec2 out0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 210 } 211 212 both "" 213 precision mediump float; 214 215 ${DECLARATIONS} 216 217 void main() 218 { 219 ${SETUP} 220 out0 = in0.st; 221 ${OUTPUT} 222 } 223 "" 224 end 225 226 227 case mediump_bvec2_ts 228 values 229 { 230 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 231 output bvec2 out0 = [ bvec2(false, true) | bvec2(false, false) | bvec2(true, false) | bvec2(true, true) | bvec2(false, false) ]; 232 } 233 234 both "" 235 precision mediump float; 236 237 ${DECLARATIONS} 238 239 void main() 240 { 241 ${SETUP} 242 out0 = in0.ts; 243 ${OUTPUT} 244 } 245 "" 246 end 247 248 249 case mediump_bvec2_tst 250 values 251 { 252 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 253 output bvec3 out0 = [ bvec3(false, true, false) | bvec3(false, false, false) | bvec3(true, false, true) | bvec3(true, true, true) | bvec3(false, false, false) ]; 254 } 255 256 both "" 257 precision mediump float; 258 259 ${DECLARATIONS} 260 261 void main() 262 { 263 ${SETUP} 264 out0 = in0.tst; 265 ${OUTPUT} 266 } 267 "" 268 end 269 270 271 case mediump_bvec2_stss 272 values 273 { 274 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 275 output bvec4 out0 = [ bvec4(true, false, true, true) | bvec4(false, false, false, false) | bvec4(false, true, false, false) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ]; 276 } 277 278 both "" 279 precision mediump float; 280 281 ${DECLARATIONS} 282 283 void main() 284 { 285 ${SETUP} 286 out0 = in0.stss; 287 ${OUTPUT} 288 } 289 "" 290 end 291 292 293 case mediump_bvec2_tttt 294 values 295 { 296 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 297 output bvec4 out0 = [ bvec4(false, false, false, false) | bvec4(false, false, false, false) | bvec4(true, true, true, true) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ]; 298 } 299 300 both "" 301 precision mediump float; 302 303 ${DECLARATIONS} 304 305 void main() 306 { 307 ${SETUP} 308 out0 = in0.tttt; 309 ${OUTPUT} 310 } 311 "" 312 end 313 314 315 case mediump_bvec2_r 316 values 317 { 318 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 319 output bool out0 = [ true | false | false | true | false ]; 320 } 321 322 both "" 323 precision mediump float; 324 325 ${DECLARATIONS} 326 327 void main() 328 { 329 ${SETUP} 330 out0 = in0.r; 331 ${OUTPUT} 332 } 333 "" 334 end 335 336 337 case mediump_bvec2_rr 338 values 339 { 340 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 341 output bvec2 out0 = [ bvec2(true, true) | bvec2(false, false) | bvec2(false, false) | bvec2(true, true) | bvec2(false, false) ]; 342 } 343 344 both "" 345 precision mediump float; 346 347 ${DECLARATIONS} 348 349 void main() 350 { 351 ${SETUP} 352 out0 = in0.rr; 353 ${OUTPUT} 354 } 355 "" 356 end 357 358 359 case mediump_bvec2_rg 360 values 361 { 362 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 363 output bvec2 out0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 364 } 365 366 both "" 367 precision mediump float; 368 369 ${DECLARATIONS} 370 371 void main() 372 { 373 ${SETUP} 374 out0 = in0.rg; 375 ${OUTPUT} 376 } 377 "" 378 end 379 380 381 case mediump_bvec2_gr 382 values 383 { 384 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 385 output bvec2 out0 = [ bvec2(false, true) | bvec2(false, false) | bvec2(true, false) | bvec2(true, true) | bvec2(false, false) ]; 386 } 387 388 both "" 389 precision mediump float; 390 391 ${DECLARATIONS} 392 393 void main() 394 { 395 ${SETUP} 396 out0 = in0.gr; 397 ${OUTPUT} 398 } 399 "" 400 end 401 402 403 case mediump_bvec2_grg 404 values 405 { 406 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 407 output bvec3 out0 = [ bvec3(false, true, false) | bvec3(false, false, false) | bvec3(true, false, true) | bvec3(true, true, true) | bvec3(false, false, false) ]; 408 } 409 410 both "" 411 precision mediump float; 412 413 ${DECLARATIONS} 414 415 void main() 416 { 417 ${SETUP} 418 out0 = in0.grg; 419 ${OUTPUT} 420 } 421 "" 422 end 423 424 425 case mediump_bvec2_rgrr 426 values 427 { 428 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 429 output bvec4 out0 = [ bvec4(true, false, true, true) | bvec4(false, false, false, false) | bvec4(false, true, false, false) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ]; 430 } 431 432 both "" 433 precision mediump float; 434 435 ${DECLARATIONS} 436 437 void main() 438 { 439 ${SETUP} 440 out0 = in0.rgrr; 441 ${OUTPUT} 442 } 443 "" 444 end 445 446 447 case mediump_bvec2_gggg 448 values 449 { 450 input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ]; 451 output bvec4 out0 = [ bvec4(false, false, false, false) | bvec4(false, false, false, false) | bvec4(true, true, true, true) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ]; 452 } 453 454 both "" 455 precision mediump float; 456 457 ${DECLARATIONS} 458 459 void main() 460 { 461 ${SETUP} 462 out0 = in0.gggg; 463 ${OUTPUT} 464 } 465 "" 466 end 467 468 469 end # bvec2_swizzles