summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-10 05:11:08 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:37 +0200
commitd1a68f7997ce4986e022031e02f6062c370a56a0 (patch)
treed3f754c3d9524bb9f1a635b4e40e8106e2dc7148 /src/shader_recompiler
parentglsl: Use existing tracking for enabling EXT_shader_image_load_formatted (diff)
downloadyuzu-d1a68f7997ce4986e022031e02f6062c370a56a0.tar
yuzu-d1a68f7997ce4986e022031e02f6062c370a56a0.tar.gz
yuzu-d1a68f7997ce4986e022031e02f6062c370a56a0.tar.bz2
yuzu-d1a68f7997ce4986e022031e02f6062c370a56a0.tar.lz
yuzu-d1a68f7997ce4986e022031e02f6062c370a56a0.tar.xz
yuzu-d1a68f7997ce4986e022031e02f6062c370a56a0.tar.zst
yuzu-d1a68f7997ce4986e022031e02f6062c370a56a0.zip
Diffstat (limited to '')
-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
break;
case Stage::Geometry:
stage_name = "gs";
- header += fmt::format("layout({})in;layout({},max_vertices={})out;",
+ header += fmt::format("layout({})in;layout({},max_vertices={})out;"
+ "in gl_PerVertex{{vec4 gl_Position;}}gl_in[];",
InputPrimitive(runtime_info.input_topology),
OutputPrimitive(program.output_topology), program.output_vertices);
break;