SPIRV-Cross/reference/shaders/vulkan/frag/spec-constant-ternary.vk.frag.vk
Hans-Kristian Arntzen 92164d38d1 GLSL: Do not analyze precision for Undef variables.
Undefs won't have a chance to emit aliases, and any expression depending
on Undef will be garbage either way.
2022-05-13 12:18:10 +02:00

15 lines
226 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()
{
float _17 = float(f);
FragColor = _17;
}