SPIRV-Cross/shaders-msl/frag/packed-expression-vector-shuffle.frag
Hans-Kristian Arntzen f65120c147 Deal with packed expressions in more scenarios.
Make a new "to_extract_component_expression" helper.
2018-05-25 10:57:02 +02:00

16 lines
193 B
GLSL

#version 450
layout(location = 0) out vec4 FragColor;
layout(binding = 0, std140) uniform UBO
{
vec3 color;
float v;
};
void main()
{
vec4 f = vec4(1.0);
f.rgb = color;
FragColor = f;
}