diff options
| author | Yong He <yonghe@google.com> | 2019-01-25 17:44:24 -0800 |
|---|---|---|
| committer | Yong He <yonghe@google.com> | 2019-01-25 18:11:57 -0800 |
| commit | eefe2539373a2e17eda2f11c420908c0aebcac6d (patch) | |
| tree | d56d36118b83ba23cc1b817035ab4f5b54034c99 /tests | |
| parent | 864c38ee72991f414f2478ccacb462bfb11b4bca (diff) | |
Add GLSL translation rules for `SampleCmp`, `asint` and `asfloat`.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/cross-compile/glsl-samplecmp.slang | 6 |
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 |
