1. store_src_rg coords = src.rg | |
2. init_lane_masks CondMask = LoopMask = RetMask = true | |
3. copy_4_constants $0..3 = colorGreen | |
4. zero_4_slots_unmasked $4..7 = 0 | |
5. cmpne_4_floats $0..3 = notEqual($0..3, $4..7) | |
6. copy_4_slots_unmasked inputVal = $0..3 | |
7. copy_constant expected(0) = 0xFFFFFFFF | |
8. zero_slot_unmasked expected(1) = 0 | |
9. copy_constant expected(2) = 0xFFFFFFFF | |
10. zero_slot_unmasked expected(3) = 0 | |
11. copy_2_slots_unmasked $0..1 = inputVal(0..1) | |
12. bitwise_not_2_ints $0..1 = ~$0..1 | |
13. copy_2_slots_unmasked $2..3 = expected(0..1) | |
14. cmpeq_2_ints $0..1 = equal($0..1, $2..3) | |
15. bitwise_and_int $0 &= $1 | |
16. copy_3_slots_unmasked $1..3 = inputVal(0..2) | |
17. bitwise_not_3_ints $1..3 = ~$1..3 | |
18. copy_3_slots_unmasked $4..6 = expected(0..2) | |
19. cmpeq_3_ints $1..3 = equal($1..3, $4..6) | |
20. bitwise_and_int $2 &= $3 | |
21. bitwise_and_int $1 &= $2 | |
22. bitwise_and_int $0 &= $1 | |
23. copy_4_slots_unmasked $1..4 = inputVal | |
24. bitwise_not_4_ints $1..4 = ~$1..4 | |
25. copy_4_slots_unmasked $5..8 = expected | |
26. cmpeq_4_ints $1..4 = equal($1..4, $5..8) | |
27. bitwise_and_2_ints $1..2 &= $3..4 | |
28. bitwise_and_int $1 &= $2 | |
29. bitwise_and_int $0 &= $1 | |
30. copy_constant $1 = 0xFFFFFFFF | |
31. zero_slot_unmasked $2 = 0 | |
32. copy_2_slots_unmasked $3..4 = expected(0..1) | |
33. cmpeq_2_ints $1..2 = equal($1..2, $3..4) | |
34. bitwise_and_int $1 &= $2 | |
35. bitwise_and_int $0 &= $1 | |
36. copy_constant $1 = 0xFFFFFFFF | |
37. zero_slot_unmasked $2 = 0 | |
38. copy_constant $3 = 0xFFFFFFFF | |
39. copy_3_slots_unmasked $4..6 = expected(0..2) | |
40. cmpeq_3_ints $1..3 = equal($1..3, $4..6) | |
41. bitwise_and_int $2 &= $3 | |
42. bitwise_and_int $1 &= $2 | |
43. bitwise_and_int $0 &= $1 | |
44. copy_constant $1 = 0xFFFFFFFF | |
45. zero_slot_unmasked $2 = 0 | |
46. copy_constant $3 = 0xFFFFFFFF | |
47. zero_slot_unmasked $4 = 0 | |
48. copy_4_slots_unmasked $5..8 = expected | |
49. cmpeq_4_ints $1..4 = equal($1..4, $5..8) | |
50. bitwise_and_2_ints $1..2 &= $3..4 | |
51. bitwise_and_int $1 &= $2 | |
52. bitwise_and_int $0 &= $1 | |
53. swizzle_4 $0..3 = ($0..3).xxxx | |
54. copy_4_constants $4..7 = colorRed | |
55. copy_4_constants $8..11 = colorGreen | |
56. mix_4_ints $0..3 = mix($4..7, $8..11, $0..3) | |
57. load_src src.rgba = $0..3 |