Branch out of relaxed rules on opaque arguments declared at top-level (#3558)

This commit is contained in:
Samuel Bourasseau 2024-03-30 00:40:26 +01:00 committed by GitHub
parent 8c0199c4fd
commit 0015dc9345
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1429 additions and 1411 deletions

View file

@ -508,7 +508,10 @@ function_call_header_with_parameters
&& $3->getType().containsOpaque())
{
TIntermNode* remappedNode = parseContext.vkRelaxedRemapFunctionArgument($2.loc, $1.function, $3);
$$.intermNode = parseContext.intermediate.mergeAggregate($1.intermNode, remappedNode, $2.loc);
if (remappedNode == $3)
$$.intermNode = parseContext.intermediate.growAggregate($1.intermNode, $3, $2.loc);
else
$$.intermNode = parseContext.intermediate.mergeAggregate($1.intermNode, remappedNode, $2.loc);
$$.function = $1.function;
}
else