HLSL: add error for expected comparison sampler in SampleCmp* ops
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Fri, 21 Apr 2017 15:54:53 +0000 (09:54 -0600)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Fri, 21 Apr 2017 15:54:53 +0000 (09:54 -0600)
commit3cbc32f47261268a067f584e0ac4e690f74df785
tree59623ce5469691a75b35582ea20d0e4b7f797266
parent32a385e9d71c22b989b79bb46412f4241b3b3f94
HLSL: add error for expected comparison sampler in SampleCmp* ops

This adds an error message if a non-comparison sampler is used with
comparison sampling methods.  There's no functional change for correct shaders.
Test/baseResults/hlsl.samplecmp.negative.frag.out [new file with mode: 0644]
Test/baseResults/hlsl.samplecmp.negative2.frag.out [new file with mode: 0644]
Test/hlsl.samplecmp.negative.frag [new file with mode: 0644]
Test/hlsl.samplecmp.negative2.frag [new file with mode: 0644]
gtests/Hlsl.FromFile.cpp
hlsl/hlslParseHelper.cpp