SPV: Use heuristic to avoid geometry multi-streams when possible.
This commit is contained in:
parent
2ac71dfb78
commit
f2d8a5c53f
4 changed files with 14 additions and 6 deletions
|
|
@ -1524,6 +1524,11 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
|
|||
}
|
||||
break;
|
||||
|
||||
case EOpEmitStreamVertex:
|
||||
case EOpEndStreamPrimitive:
|
||||
intermediate.setMultiStream();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -4050,6 +4055,8 @@ void TParseContext::setLayoutQualifier(const TSourceLoc& loc, TPublicType& publi
|
|||
if (id == "stream") {
|
||||
requireProfile(loc, ~EEsProfile, "selecting output stream");
|
||||
publicType.qualifier.layoutStream = value;
|
||||
if (value > 0)
|
||||
intermediate.setMultiStream();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue