mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-10 04:20:06 +00:00
3cbc32f472
This adds an error message if a non-comparison sampler is used with comparison sampling methods. There's no functional change for correct shaders.
11 lines
216 B
GLSL
11 lines
216 B
GLSL
|
|
Texture2D g_shadowTex;
|
|
SamplerState g_shadowSampler;
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
g_shadowTex.GatherCmpRed(g_shadowSampler, float2(0,0), 0, int2(0,0)); // ERROR (should be comparison sampler)
|
|
|
|
return 0;
|
|
}
|