SPIRV-Cross/shaders-msl-no-opt/components/vertex-output-component.vert
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

13 lines
209 B
GLSL

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