bgfx/3rdparty/glslang/Test/hlsl.samplecmp.negative.frag
Branimir Karadžić 4ee3b81c61 Updated glslang.
2017-04-22 00:26:44 -07:00

13 lines
319 B
GLSL

Texture2D g_shadowTex;
SamplerState g_shadowSampler;
SamplerComparisonState g_shadowSamplerComp;
float4 main() : SV_Target0
{
g_shadowTex.SampleCmp(g_shadowSamplerComp, float2(0,0), 0); // OK
g_shadowTex.SampleCmp(g_shadowSampler, float2(0,0), 0); // ERROR (should be comparison sampler)
return 0;
}