steve-lunarg | 3cbc32f | 2017-04-21 09:54:53 -0600 | [diff] [blame] | 1 | |
LoopDawg | 195f584 | 2017-09-27 09:12:51 -0600 | [diff] [blame] | 2 | Texture2D g_nonShadowTex; |
steve-lunarg | 3cbc32f | 2017-04-21 09:54:53 -0600 | [diff] [blame] | 3 | Texture2D g_shadowTex; |
| 4 | SamplerState g_shadowSampler; |
| 5 | SamplerComparisonState g_shadowSamplerComp; |
| 6 | |
| 7 | float4 main() : SV_Target0 |
| 8 | { |
| 9 | g_shadowTex.SampleCmp(g_shadowSamplerComp, float2(0,0), 0); // OK |
LoopDawg | 195f584 | 2017-09-27 09:12:51 -0600 | [diff] [blame] | 10 | g_nonShadowTex.SampleCmp(g_shadowSampler, float2(0,0), 0); // ERROR (should be comparison sampler) |
steve-lunarg | 3cbc32f | 2017-04-21 09:54:53 -0600 | [diff] [blame] | 11 | |
| 12 | return 0; |
| 13 | } |