commit | 9709d4ffa1b82a98036334ad3bed463a8d6aafc6 | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Fri Sep 30 11:44:14 2016 -0400 |
committer | Nicolas Capens <capn@google.com> | Wed Oct 05 20:41:11 2016 +0000 |
tree | 7799481665ab5bac444187e90adc62fa49423ae8 | |
parent | e95d534ac645273b3669ef62046d9aa612468e7e [diff] [blame] |
Implement vector extract, insert, and swizzle. Bug swiftshader:15 Change-Id: I81f88999e183ce3617d923249335ff02d6a9f1b1 Reviewed-on: https://swiftshader-review.googlesource.com/7396 Tested-by: Nicolas Capens <capn@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/Reactor/Main.cpp b/src/Reactor/Main.cpp index a7aa820..e1887b5 100644 --- a/src/Reactor/Main.cpp +++ b/src/Reactor/Main.cpp
@@ -50,6 +50,10 @@ z += (2 << i) - (i / 3); } + Float4 v; + v.z = As<Float>(z); + z = As<Int>(Float(Float4(v.xzxx).y)); + Int sum = x + y + z; Return(sum);