Skip to content

Commit

Permalink
Fix SpvExecutionModeOutputLinesEXT. (shader-slang#5740)
Browse files Browse the repository at this point in the history
  • Loading branch information
csyonghe authored Dec 4, 2024
1 parent 5450a49 commit 59ba259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/slang/slang-check-decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8789,7 +8789,8 @@ void SemanticsDeclHeaderVisitor::checkMeshOutputDecl(VarDeclBase* varDecl)
nullptr,
ConstantFoldingKind::LinkTime,
getSink());

if (!index)
return;
Type* d = m_astBuilder->getMeshOutputTypeFromModifier(modifier, base, index);
varDecl->type.type = d;
}
Expand Down
2 changes: 1 addition & 1 deletion source/slang/slang-emit-spirv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4467,7 +4467,7 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex
if (t == "triangle")
m = SpvExecutionModeOutputTrianglesEXT;
else if (t == "line")
m = SpvExecutionModeOutputTrianglesEXT;
m = SpvExecutionModeOutputLinesEXT;
else if (t == "point")
m = SpvExecutionModeOutputPoints;
}
Expand Down

0 comments on commit 59ba259

Please sign in to comment.