summaryrefslogtreecommitdiffstats
path: root/tests/spirv
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-12-09 04:43:24 -0800
committerGitHub <noreply@github.com>2024-12-09 20:43:24 +0800
commit2e7774a2bfa0da2c5c57fd28c17b26b3b1c3c064 (patch)
treeefb0389174a3cbd8900af65f001662d58974b24f /tests/spirv
parent0d5636c2426fad43490e0f06830fe6e6db71d045 (diff)
Add Sampler*Shadow type aliases. (#5789)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'tests/spirv')
-rw-r--r--tests/spirv/sampler-shadow.slang13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/spirv/sampler-shadow.slang b/tests/spirv/sampler-shadow.slang
new file mode 100644
index 000000000..89bdbc405
--- /dev/null
+++ b/tests/spirv/sampler-shadow.slang
@@ -0,0 +1,13 @@
+//TEST:SIMPLE(filecheck=CHECK): -target spirv
+
+// CHECK: OpImageSampleDrefExplicitLod
+
+Sampler2DShadow ss;
+
+RWStructuredBuffer<float> output;
+
+[numthreads(1,1,1)]
+void computeMain()
+{
+ output[0] = ss.SampleCmpLevelZero(float2(0.0), 0.5);
+} \ No newline at end of file