HLSL: Support {...} initializer lists that are too short.
This commit is contained in:
parent
1c98904014
commit
98ad485321
9 changed files with 397 additions and 9 deletions
|
|
@ -858,6 +858,7 @@ bool TIntermediate::canImplicitlyPromote(TBasicType from, TBasicType to, TOperat
|
|||
case EOpLogicalAnd:
|
||||
case EOpLogicalOr:
|
||||
case EOpLogicalXor:
|
||||
case EOpConstructStruct:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
|
|
@ -1184,6 +1185,17 @@ TIntermAggregate* TIntermediate::makeAggregate(TIntermNode* node, const TSourceL
|
|||
return aggNode;
|
||||
}
|
||||
|
||||
//
|
||||
// Make an aggregate with an empty sequence.
|
||||
//
|
||||
TIntermAggregate* TIntermediate::makeAggregate(const TSourceLoc& loc)
|
||||
{
|
||||
TIntermAggregate* aggNode = new TIntermAggregate;
|
||||
aggNode->setLoc(loc);
|
||||
|
||||
return aggNode;
|
||||
}
|
||||
|
||||
//
|
||||
// For "if" test nodes. There are three children; a condition,
|
||||
// a true path, and a false path. The two paths are in the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue