1. store_src_rg coords = src.rg | |
2. init_lane_masks CondMask = LoopMask = RetMask = true | |
3. copy_constant ok = 0xFFFFFFFF | |
4. copy_slot_unmasked $0 = ok | |
5. copy_constant $8 = colorGreen(1) | |
6. copy_constant $9 = 0x3F800000 (1.0) | |
7. cmpeq_float $8 = equal($8, $9) | |
8. branch_if_no_active_lanes_eq branch +3 (#11) if no lanes of $8 == 0xFFFFFFFF | |
9. copy_constant $1 = 0xFFFFFFFF | |
10. jump jump +2 (#12) | |
11. zero_slot_unmasked $1 = 0 | |
12. bitwise_and_int $0 &= $1 | |
13. copy_slot_unmasked ok = $0 | |
14. copy_constant $8 = colorGreen(0) | |
15. copy_constant $9 = 0x3F800000 (1.0) | |
16. cmpeq_float $8 = equal($8, $9) | |
17. branch_if_no_active_lanes_eq branch +3 (#20) if no lanes of $8 == 0xFFFFFFFF | |
18. zero_slot_unmasked $1 = 0 | |
19. jump jump +2 (#21) | |
20. copy_constant $1 = 0xFFFFFFFF | |
21. bitwise_and_int $0 &= $1 | |
22. copy_slot_unmasked ok = $0 | |
23. store_condition_mask $8 = CondMask | |
24. copy_slot_unmasked $9 = ok | |
25. copy_4_constants $0..3 = colorRed | |
26. merge_condition_mask CondMask = $8 & $9 | |
27. copy_4_constants $4..7 = colorGreen | |
28. copy_4_slots_masked $0..3 = Mask($4..7) | |
29. load_condition_mask CondMask = $8 | |
30. copy_4_slots_unmasked [main].result = $0..3 | |
31. load_src src.rgba = [main].result |