SPIRV-Cross/shaders-msl/frag/spec-constant-ternary.frag
2018-06-25 09:49:13 +02:00

10 lines
175 B
GLSL

#version 450
layout(location = 0) out float FragColor;
layout(constant_id = 0) const uint s = 10u;
const uint f = s > 20u ? 30u : 50u;
void main()
{
FragColor = float(f);
}