summaryrefslogtreecommitdiffstats
path: root/tests/compute
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute')
-rw-r--r--tests/compute/half-texture.slang8
-rw-r--r--tests/compute/mutating-and-inout.slang3
-rw-r--r--tests/compute/typedef-member.slang3
3 files changed, 12 insertions, 2 deletions
diff --git a/tests/compute/half-texture.slang b/tests/compute/half-texture.slang
index ca51df3cc..6cda1f4c9 100644
--- a/tests/compute/half-texture.slang
+++ b/tests/compute/half-texture.slang
@@ -1,6 +1,7 @@
//TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -entry computeMain -profile cs_6_2 -emit-spirv-via-glsl
//TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -entry computeMain -profile cs_6_2 -emit-spirv-directly
//TEST:CROSS_COMPILE: -target dxil-assembly -entry computeMain -profile cs_6_2
+//TEST:SIMPLE(filecheck=CHECK_CUDA): -target cuda -entry computeMain -profile cs_6_2
//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):out
RWStructuredBuffer<int> outputBuffer;
@@ -45,3 +46,10 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
int index = pos.x + pos.y * 4;
outputBuffer[index] = index;
}
+
+// CHECK_CUDA: surf2Dread<__half>
+// CHECK_CUDA: surf2Dread<__half2{{.*}}>
+// CHECK_CUDA: surf2Dread<__half4{{.*}}>
+// CHECK_CUDA: surf2Dwrite<__half>
+// CHECK_CUDA: surf2Dwrite<__half2{{.*}}>
+// CHECK_CUDA: surf2Dwrite<__half4{{.*}}>
diff --git a/tests/compute/mutating-and-inout.slang b/tests/compute/mutating-and-inout.slang
index 37cc30870..11132e407 100644
--- a/tests/compute/mutating-and-inout.slang
+++ b/tests/compute/mutating-and-inout.slang
@@ -2,7 +2,8 @@
// Test that calling a `[mutating]` method on an `inout` function parameter works.
-//TEST(compute):COMPARE_COMPUTE: -shaderobj
+//TEST(compute):COMPARE_COMPUTE: -cuda
+//TEST(compute):COMPARE_COMPUTE: -vk
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer
RWStructuredBuffer<int> outputBuffer;
diff --git a/tests/compute/typedef-member.slang b/tests/compute/typedef-member.slang
index ae3debd40..98694c839 100644
--- a/tests/compute/typedef-member.slang
+++ b/tests/compute/typedef-member.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE: -shaderobj
+//TEST(compute):COMPARE_COMPUTE: -shaderobj -cuda
// Confirm that a struct type defined in a generic parent works
@@ -35,4 +36,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
float inVal = float(tid);
float outVal = test(inVal);
outputBuffer[tid] = outVal.x;
-} \ No newline at end of file
+}