summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@google.com>2019-01-25 17:44:24 -0800
committerYong He <yonghe@google.com>2019-01-25 18:11:57 -0800
commiteefe2539373a2e17eda2f11c420908c0aebcac6d (patch)
treed56d36118b83ba23cc1b817035ab4f5b54034c99 /tests
parent864c38ee72991f414f2478ccacb462bfb11b4bca (diff)
Add GLSL translation rules for `SampleCmp`, `asint` and `asfloat`.
Diffstat (limited to 'tests')
-rw-r--r--tests/cross-compile/glsl-samplecmp.slang6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cross-compile/glsl-samplecmp.slang b/tests/cross-compile/glsl-samplecmp.slang
new file mode 100644
index 000000000..fbbc8b7c7
--- /dev/null
+++ b/tests/cross-compile/glsl-samplecmp.slang
@@ -0,0 +1,6 @@
+Texture2D shadowMap;
+SamplerComparisonState sampler;
+float4 main(float4 p : SV_POSITION)
+{
+ return shadowMap.SampleCmp(sampler, float2(0.0), 0.0);
+} \ No newline at end of file