summaryrefslogtreecommitdiffstats
path: root/tests/cross-compile
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2025-01-09 23:49:59 -0500
committerGitHub <noreply@github.com>2025-01-09 20:49:59 -0800
commit2b76466c4bc8a47bd4ac69994bafdbb2924272c2 (patch)
treec000028f7ae01e8f275dc18ea6431934bc8d6152 /tests/cross-compile
parent55ff4686e5685c414d82f16b9c1a4a331bd4f853 (diff)
Add CalculateLevelOfDetail* overloads for comparison samplers (#6018)
* add CalculateLevelOfDetail* intrinsics for comparison samplers * fix dx12 test * fix metallib test * fix merge conflict --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/cross-compile')
-rw-r--r--tests/cross-compile/glsl-calculatelevelofdetail.slang13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/cross-compile/glsl-calculatelevelofdetail.slang b/tests/cross-compile/glsl-calculatelevelofdetail.slang
index eb8c44a8b..bef0110ac 100644
--- a/tests/cross-compile/glsl-calculatelevelofdetail.slang
+++ b/tests/cross-compile/glsl-calculatelevelofdetail.slang
@@ -1,11 +1,18 @@
//TEST:CROSS_COMPILE(filecheck=CHECK): -profile ps_5_0 -entry main -target glsl
-// CHECK: textureQueryLod(sampler2D(t_0,s_0), ({{.*}})).x
-// CHECK: textureQueryLod(sampler2D(t_0,s_0), ({{.*}})).y
+// CHECK: textureQueryLod(sampler2D(
+// CHECK: textureQueryLod(sampler2D(
+// CHECK: textureQueryLod(sampler2DShadow(
+// CHECK: textureQueryLod(sampler2DShadow(
Texture2D t;
SamplerState s;
+SamplerComparisonState sc;
+
float main()
{
- return t.CalculateLevelOfDetail(s, float2(0,0)) + t.CalculateLevelOfDetailUnclamped(s, float2(0,0));
+ float result = 0.0;
+ result += t.CalculateLevelOfDetail(s, float2(0,0)) + t.CalculateLevelOfDetailUnclamped(s, float2(0,0));
+ result += t.CalculateLevelOfDetail(sc, float2(0,0)) + t.CalculateLevelOfDetailUnclamped(sc, float2(0,0));
+ return result;
}