summaryrefslogtreecommitdiff
path: root/tests/compute/half-texture.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-11-16 14:32:33 -0800
committerGitHub <noreply@github.com>2023-11-16 14:32:33 -0800
commit4c78efd0c34442866f20e9d00bbb6908115c9a01 (patch)
tree03ca8584847f0937a926f6b27386dcd982ed7780 /tests/compute/half-texture.slang
parent12f7237e4060388494c549623f4a640327b7ca08 (diff)
Unify stdlib `Texture` types into one generic type. (#3327)
* Unify Texture types in stdlib into 1 generic type. * Fixes. * Fix. * Fixes. * Fix reflection. * Fix binding reflection. * Add gather intrinsics. * Fix gather intrinsics. * Fix texture type toText. * Fix intrinsic. * fix cuda intrinsic. * Fix project files. * cleanup. * Fix. * Fix. * Fix sampler feedback test. * Fix getDimension intrinsics. * Fix spirv sample image intrinsics. * Fix test. * Fix GLSL intrinsic. * Cleanup. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/compute/half-texture.slang')
-rw-r--r--tests/compute/half-texture.slang5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/compute/half-texture.slang b/tests/compute/half-texture.slang
index 6f131c568..c87f4359c 100644
--- a/tests/compute/half-texture.slang
+++ b/tests/compute/half-texture.slang
@@ -29,8 +29,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
half h = halfTexture[pos2];
half2 h2 = halfTexture2[pos2];
half4 h4 = halfTexture4[pos2];
-#endif
-
+#endif
// Store a results
halfTexture[pos] = h2.x + h2.y;
halfTexture2[pos] = h4.xy;
@@ -38,4 +37,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
int index = pos.x + pos.y * 4;
outputBuffer[index] = index;
-} \ No newline at end of file
+}