summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/spv.conditionalDiscard.frag
blob: 7e52e436e605f0fe8dbd40691bc33181d1cf5020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 400

uniform sampler2D tex;
in vec2 coord;

void main (void)
{
    vec4 v = texture(tex, coord);

    if (v == vec4(0.1,0.2,0.3,0.4))
        discard;

    gl_FragColor = v;
}