SPIRV-Cross/shaders-hlsl/frag/boolean-mix.frag
Hans-Kristian Arntzen 851acf3712 Avoid boolean mix in HLSL.
Update glslang travis checkout as boolean mix support was broken on that commit.
2017-05-04 10:28:30 +02:00

11 lines
193 B
GLSL

#version 310 es
precision mediump float;
layout(location = 0) in vec2 x0;
layout(location = 0) out vec2 FragColor;
void main()
{
FragColor = x0.x > x0.y ? vec2(1.0, 0.0) : vec2(0.0, 1.0);
}