56 lines
3.1 KiB
Plaintext
56 lines
3.1 KiB
Plaintext
1. store_src_rg coords = src.rg
|
|
2. init_lane_masks CondMask = LoopMask = RetMask = true
|
|
3. copy_4_constants $0..3 = testMatrix4x4(0..3)
|
|
4. copy_4_slots_unmasked inputA = $0..3
|
|
5. copy_4_constants $0..3 = testMatrix4x4(4..7)
|
|
6. copy_4_slots_unmasked inputB = $0..3
|
|
7. copy_constant expected(0) = 0x40A00000 (5.0)
|
|
8. copy_constant expected(1) = 0x41880000 (17.0)
|
|
9. copy_constant expected(2) = 0x42180000 (38.0)
|
|
10. copy_constant expected(3) = 0x428C0000 (70.0)
|
|
11. copy_slot_unmasked $0 = inputA(0)
|
|
12. copy_slot_unmasked $1 = inputB(0)
|
|
13. mul_float $0 *= $1
|
|
14. copy_slot_unmasked $1 = expected(0)
|
|
15. cmpeq_float $0 = equal($0, $1)
|
|
16. copy_2_slots_unmasked $1..2 = inputA(0..1)
|
|
17. copy_2_slots_unmasked $3..4 = inputB(0..1)
|
|
18. dot_2_floats $1 = dot($1..2, $3..4)
|
|
19. copy_slot_unmasked $2 = expected(1)
|
|
20. cmpeq_float $1 = equal($1, $2)
|
|
21. bitwise_and_int $0 &= $1
|
|
22. copy_3_slots_unmasked $1..3 = inputA(0..2)
|
|
23. copy_3_slots_unmasked $4..6 = inputB(0..2)
|
|
24. dot_3_floats $1 = dot($1..3, $4..6)
|
|
25. copy_slot_unmasked $2 = expected(2)
|
|
26. cmpeq_float $1 = equal($1, $2)
|
|
27. bitwise_and_int $0 &= $1
|
|
28. copy_4_slots_unmasked $1..4 = inputA
|
|
29. copy_4_slots_unmasked $5..8 = inputB
|
|
30. dot_4_floats $1 = dot($1..4, $5..8)
|
|
31. copy_slot_unmasked $2 = expected(3)
|
|
32. cmpeq_float $1 = equal($1, $2)
|
|
33. bitwise_and_int $0 &= $1
|
|
34. copy_constant $1 = 0x40A00000 (5.0)
|
|
35. copy_slot_unmasked $2 = expected(0)
|
|
36. cmpeq_float $1 = equal($1, $2)
|
|
37. bitwise_and_int $0 &= $1
|
|
38. copy_constant $1 = 0x41880000 (17.0)
|
|
39. copy_slot_unmasked $2 = expected(1)
|
|
40. cmpeq_float $1 = equal($1, $2)
|
|
41. bitwise_and_int $0 &= $1
|
|
42. copy_constant $1 = 0x42180000 (38.0)
|
|
43. copy_slot_unmasked $2 = expected(2)
|
|
44. cmpeq_float $1 = equal($1, $2)
|
|
45. bitwise_and_int $0 &= $1
|
|
46. copy_constant $1 = 0x428C0000 (70.0)
|
|
47. copy_slot_unmasked $2 = expected(3)
|
|
48. cmpeq_float $1 = equal($1, $2)
|
|
49. bitwise_and_int $0 &= $1
|
|
50. swizzle_4 $0..3 = ($0..3).xxxx
|
|
51. copy_4_constants $4..7 = colorRed
|
|
52. copy_4_constants $8..11 = colorGreen
|
|
53. mix_4_ints $0..3 = mix($4..7, $8..11, $0..3)
|
|
54. copy_4_slots_unmasked [main].result = $0..3
|
|
55. load_src src.rgba = [main].result
|