summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp
index e69a56d46..fdbe2986c 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_context.cpp
@@ -245,7 +245,8 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
245 break; 245 break;
246 case Stage::Geometry: 246 case Stage::Geometry:
247 stage_name = "gs"; 247 stage_name = "gs";
248 header += fmt::format("layout({})in;layout({},max_vertices={})out;", 248 header += fmt::format("layout({})in;layout({},max_vertices={})out;"
249 "in gl_PerVertex{{vec4 gl_Position;}}gl_in[];",
249 InputPrimitive(runtime_info.input_topology), 250 InputPrimitive(runtime_info.input_topology),
250 OutputPrimitive(program.output_topology), program.output_vertices); 251 OutputPrimitive(program.output_topology), program.output_vertices);
251 break; 252 break;