summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/compute/half-vector-calc.slang2
-rw-r--r--tests/compute/half-vector-calc.slang.expected.txt8
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/compute/half-vector-calc.slang b/tests/compute/half-vector-calc.slang
index 6a888e263..dcad94b66 100644
--- a/tests/compute/half-vector-calc.slang
+++ b/tests/compute/half-vector-calc.slang
@@ -29,7 +29,7 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
// Unary
v2 = +v2.yxwz;
- v2 = -v2.zwxy;
+ v2.xyz = -v2.zwx;
// Scalar vector
v1 = v1 + v2.x;
diff --git a/tests/compute/half-vector-calc.slang.expected.txt b/tests/compute/half-vector-calc.slang.expected.txt
index 2e80e4e2a..c298ec490 100644
--- a/tests/compute/half-vector-calc.slang.expected.txt
+++ b/tests/compute/half-vector-calc.slang.expected.txt
@@ -1,5 +1,5 @@
type: float
-73.000000
-206.500000
-539.000000
-1070.000000
+75.000000
+220.500000
+565.000000
+1108.000000