From eefe2539373a2e17eda2f11c420908c0aebcac6d Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 25 Jan 2019 17:44:24 -0800 Subject: Add GLSL translation rules for `SampleCmp`, `asint` and `asfloat`. --- tests/cross-compile/glsl-samplecmp.slang | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/cross-compile/glsl-samplecmp.slang (limited to 'tests') 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 -- cgit v1.2.3