diff options
Diffstat (limited to 'tests/cross-compile')
| -rw-r--r-- | tests/cross-compile/glsl-calculatelevelofdetail.slang | 13 |
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; } |
