summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-05-14 16:59:35 -0400
committerGitHub <noreply@github.com>2021-05-14 16:59:35 -0400
commit12bcc039c2a2c0c69486b670503a7437931d73e4 (patch)
tree5e447359944d492d29b18c3c2f702c7fddeae269 /tests
parenta2725fd03febf32051811af2fa50fd0de3b61dde (diff)
CUDA half RWTexture write support/doc improvements (#1839)
* #include an absolute path didn't work - because paths were taken to always be relative. * Fix for writing to RWTexture with half types on CUDA. * CUDA half functionality doc updates.
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