blob: 8851982129b6abd12f6f8387a320cdf1268f4e04 [file] [log] [blame]
steve-lunarg3cbc32f2017-04-21 09:54:53 -06001
LoopDawg195f5842017-09-27 09:12:51 -06002Texture2D g_nonShadowTex;
steve-lunarg3cbc32f2017-04-21 09:54:53 -06003Texture2D g_shadowTex;
4SamplerState g_shadowSampler;
5SamplerComparisonState g_shadowSamplerComp;
6
7float4 main() : SV_Target0
8{
9 g_shadowTex.SampleCmp(g_shadowSamplerComp, float2(0,0), 0); // OK
LoopDawg195f5842017-09-27 09:12:51 -060010 g_nonShadowTex.SampleCmp(g_shadowSampler, float2(0,0), 0); // ERROR (should be comparison sampler)
steve-lunarg3cbc32f2017-04-21 09:54:53 -060011
12 return 0;
13}