SPIRV-Cross/reference/shaders/vulkan/frag/spec-constant-ternary.vk.frag.vk
Hans-Kristian Arntzen 4e7777c443 Update to latest glslang/SPIRV-Tools.
Fix various bugs along the way.
2019-01-30 13:41:57 +01:00

14 lines
205 B
Plaintext

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