mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
glsl: Add gl_PerVertex in for GS
This commit is contained in:
parent
a926695234
commit
d1a68f7997
1 changed files with 2 additions and 1 deletions
|
@ -245,7 +245,8 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
|
||||||
break;
|
break;
|
||||||
case Stage::Geometry:
|
case Stage::Geometry:
|
||||||
stage_name = "gs";
|
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),
|
InputPrimitive(runtime_info.input_topology),
|
||||||
OutputPrimitive(program.output_topology), program.output_vertices);
|
OutputPrimitive(program.output_topology), program.output_vertices);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue