summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/compute/half-rw-texture-simple.slang4
-rw-r--r--tests/compute/half-rw-texture-simple.slang.expected.txt6
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/compute/half-rw-texture-simple.slang b/tests/compute/half-rw-texture-simple.slang
index ffc34e1f9..c544ee713 100644
--- a/tests/compute/half-rw-texture-simple.slang
+++ b/tests/compute/half-rw-texture-simple.slang
@@ -41,10 +41,10 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
// NOTE! This is disabled because on CUDA, whilst this has an effect it is not what is expected.
// The value read back has changed but seems to always be 1.
// rwt1D[idx] = idx;
- //rwt2D[uint2(idx, idx)] = half(idx);
+ rwt2D[uint2(idx, idx)] = half(idx);
//val += rwt1D[idx];
- //val += rwt2D[uint2(idx, idx)];
+ val += rwt2D[uint2(idx, idx)];
//val += rwt3D[uint3(idx, idx, idx)];
outputBuffer[idx] = val;
diff --git a/tests/compute/half-rw-texture-simple.slang.expected.txt b/tests/compute/half-rw-texture-simple.slang.expected.txt
index 6891ba983..c0e0cfb4b 100644
--- a/tests/compute/half-rw-texture-simple.slang.expected.txt
+++ b/tests/compute/half-rw-texture-simple.slang.expected.txt
@@ -1,5 +1,5 @@
type: float
5.000000
-5.000000
-5.000000
-5.000000
+6.000000
+7.000000
+8.000000