SPIRV-Cross/shaders-msl-no-opt/components/fragment-input-component.frag
Hans-Kristian Arntzen 7a69d764b0 MSL: Add trivial tests for Component decoration.
Verifies that Component decoration is honored for vertex outputs and
fragment inputs.
2020-01-07 11:36:51 +01:00

11 lines
204 B
GLSL

#version 450
layout(location = 0, component = 3) in float Foo1;
layout(location = 0, component = 0) in vec3 Foo3;
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = vec4(Foo3, Foo1);
}