зеркало из https://github.com/stride3d/xkslang.git
Fix issue #1350 - set the node type to match the atomic TIntermAggregate node type so that AtomicSMin/Max is not generated with a result type of void.
This commit is contained in:
Родитель
0f8d43e505
Коммит
95c87b657c
|
@ -4815,6 +4815,7 @@ void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*&
|
||||||
} else {
|
} else {
|
||||||
// Set the matching operator. Since output is absent, this is all we need to do.
|
// Set the matching operator. Since output is absent, this is all we need to do.
|
||||||
node->getAsAggregate()->setOperator(atomicOp);
|
node->getAsAggregate()->setOperator(atomicOp);
|
||||||
|
node->setType(atomic->getType());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче