summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvenkataram-nv <vedavamadath@nvidia.com>2024-07-01 15:00:50 -0700
committerGitHub <noreply@github.com>2024-07-01 15:00:50 -0700
commit6262569c6305468afac8067112b61cc42780464c (patch)
tree4754ba263844411a0079ff6d80b230dc3759510e /tests
parent6e550430cf24a6324ce22f821181f2cab904d543 (diff)
Supply SPIRV capability for textureQueryLod (#4522)
Diffstat (limited to 'tests')
-rw-r--r--tests/spirv/texture-query-lod.slang14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/spirv/texture-query-lod.slang b/tests/spirv/texture-query-lod.slang
new file mode 100644
index 000000000..ad2597466
--- /dev/null
+++ b/tests/spirv/texture-query-lod.slang
@@ -0,0 +1,14 @@
+//TEST:SIMPLE(filecheck=CHK): -target spirv -entry main -stage fragment
+//TEST:SIMPLE(filecheck=CHK): -target spirv-asm -entry main -stage fragment
+
+#version 450 core
+
+layout (location = 0) in highp vec2 uv;
+layout (location = 0) out mediump vec4 fragment;
+layout (set = 0, binding = 0) uniform highp isampler2D sampler;
+
+void main()
+{
+ // CHK: OpCapability ImageQuery
+ fragment = vec4(textureQueryLod(sampler, uv), 0.0, 1.0);
+}