SPIRV-Cross/reference/opt/shaders/asm/vert/empty-io.asm.vert
Hans-Kristian Arntzen a4a9b53b5b MSL: Always enable Outputs in vertex stages.
Subsequent stages can legally attempt to read from these variables,
which causes compilation failure.

Always make sure we emit user outputs in vertex shaders if they are
active in the entry point.
2021-01-07 11:24:47 +01:00

16 lines
203 B
GLSL

#version 450
struct VSOutput
{
int empty_struct_member;
};
layout(location = 0) in vec4 position;
layout(location = 0) out VSOutput _entryPointOutput;
void main()
{
gl_Position = position;
}