| 3617 | } |
| 3618 | |
| 3619 | Id Builder::createFunctionCall(spv::Function* function, const std::vector<spv::Id>& args) |
| 3620 | { |
| 3621 | Instruction* op = new Instruction(getUniqueId(), function->getReturnType(), Op::OpFunctionCall); |
| 3622 | op->reserveOperands(args.size() + 1); |
| 3623 | op->addIdOperand(function->getId()); |
| 3624 | for (int a = 0; a < (int)args.size(); ++a) |
| 3625 | op->addIdOperand(args[a]); |
| 3626 | addInstruction(std::unique_ptr<Instruction>(op)); |
| 3627 | |
| 3628 | return op->getResultId(); |
| 3629 | } |
| 3630 | |
| 3631 | // Comments in header |
| 3632 | Id Builder::createRvalueSwizzle(Decoration precision, Id typeId, Id source, const std::vector<unsigned>& channels) |
no test coverage detected