5547b25afe
Undef values may be of struct type and may be used in constants. Therefore, they must be interleaved with constants and types. Fixes the rest of the Vulkan CTS test `dEQP-VK.spirv_assembly.instruction.compute.opundef.undefined_spec_constant_composite`. (Please excuse the churn in the reference output; it's an inevitable result of this change.)
30 lines
448 B
GLSL
30 lines
448 B
GLSL
#version 450
|
|
|
|
vec4 _38;
|
|
vec4 _47;
|
|
|
|
layout(location = 0) out vec4 _entryPointOutput;
|
|
|
|
void main()
|
|
{
|
|
vec4 _27;
|
|
do
|
|
{
|
|
vec2 _26 = vec2(0.0);
|
|
if (_26.x != 0.0)
|
|
{
|
|
_27 = vec4(1.0, 0.0, 0.0, 1.0);
|
|
break;
|
|
}
|
|
else
|
|
{
|
|
_27 = vec4(1.0, 1.0, 0.0, 1.0);
|
|
break;
|
|
}
|
|
_27 = _38;
|
|
break;
|
|
} while (false);
|
|
_entryPointOutput = _27;
|
|
}
|
|
|