glsl: Add passthrough geometry shader support
This commit is contained in:
parent
8612b5fec5
commit
f7352411f0
3 changed files with 27 additions and 7 deletions
|
@ -17,6 +17,9 @@ std::string_view OutputVertexIndex(EmitContext& ctx) {
|
|||
}
|
||||
|
||||
void InitializeOutputVaryings(EmitContext& ctx) {
|
||||
if (ctx.uses_geometry_passthrough) {
|
||||
return;
|
||||
}
|
||||
if (ctx.stage == Stage::VertexB || ctx.stage == Stage::Geometry) {
|
||||
ctx.Add("gl_Position=vec4(0,0,0,1);");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue