Lines Matching defs:rhs

1191             SpvId rhs = this->writeExpression(*arguments[1], out);
1192 result = this->writeComponentwiseMatrixBinary(callType, lhs, rhs, SpvOpFMul, out);
2221 SpvId rhs, SpvOp_ ifFloat, SpvOp_ ifInt,
2225 this->writeInstruction(ifFloat, this->getType(resultType), result, lhs, rhs, out);
2227 this->writeInstruction(ifInt, this->getType(resultType), result, lhs, rhs, out);
2229 this->writeInstruction(ifUInt, this->getType(resultType), result, lhs, rhs, out);
2231 this->writeInstruction(ifBool, this->getType(resultType), result, lhs, rhs, out);
2249 SpvId SPIRVCodeGenerator::writeMatrixComparison(const Type& operandType, SpvId lhs, SpvId rhs,
2267 this->writeInstruction(SpvOpCompositeExtract, columnType, columnR, rhs, i, out);
2285 SpvId rhs, SpvOp_ op, OutputStream& out) {
2296 this->writeInstruction(SpvOpCompositeExtract, columnType, columnR, rhs, i, out);
2327 const Type& rightType, SpvId rhs,
2331 return rhs;
2342 rhs = this->writeReciprocal(rightType, rhs, out);
2348 result, lhs, rhs, out);
2362 this->writeWord(rhs, out);
2364 rhs = vec;
2371 result, rhs, lhs, out);
2399 this->writeInstruction(spvop, this->getType(resultType), result, lhs, rhs, out);
2406 // Splat rhs across an entire matrix so we can reuse the matrix-op-matrix path.
2407 SpvId rhsMatrix = this->writeScalarToMatrixSplat(leftType, rhs, out);
2419 result, lhs, rhs, out);
2423 result, rhs, lhs, out);
2435 return this->writeBinaryExpression(rightType, lhsMatrix, op, rightType, rhs,
2449 return this->writeMatrixComparison(*operandType, lhs, rhs, SpvOpFOrdEqual,
2453 return this->writeStructComparison(*operandType, lhs, op, rhs, out);
2456 return this->writeArrayComparison(*operandType, lhs, op, rhs, out);
2467 return this->foldToBool(this->writeBinaryOperation(*tmpType, *operandType, lhs, rhs,
2474 return this->writeMatrixComparison(*operandType, lhs, rhs, SpvOpFOrdNotEqual,
2478 return this->writeStructComparison(*operandType, lhs, op, rhs, out);
2481 return this->writeArrayComparison(*operandType, lhs, op, rhs, out);
2494 return this->foldToBool(this->writeBinaryOperation(*tmpType, *operandType, lhs, rhs,
2501 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs,
2506 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpFOrdLessThan,
2510 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs,
2515 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs,
2521 return this->writeComponentwiseMatrixBinary(leftType, lhs, rhs, SpvOpFAdd, out);
2523 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpFAdd,
2528 return this->writeComponentwiseMatrixBinary(leftType, lhs, rhs, SpvOpFSub, out);
2530 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpFSub,
2537 lhs, rhs, out);
2540 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpFMul,
2545 return this->writeComponentwiseMatrixBinary(leftType, lhs, rhs, SpvOpFDiv, out);
2547 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpFDiv,
2550 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpFMod,
2553 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpUndef,
2557 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpUndef,
2561 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpUndef,
2564 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpUndef,
2567 return this->writeBinaryOperation(resultType, *operandType, lhs, rhs, SpvOpUndef,
2576 SpvId rhs, OutputStream& out) {
2593 this->writeInstruction(SpvOpCompositeExtract, componentTypeId, itemR, rhs, index, out);
2604 SpvId rhs, OutputStream& out) {
2622 this->writeInstruction(SpvOpCompositeExtract, fieldTypeId, fieldR, rhs, index, out);
2677 SpvId rhs = this->writeExpression(*right, out);
2678 this->getLValue(*left, out)->store(rhs, out);
2679 return rhs;
2703 SpvId rhs;
2710 rhs = this->writeLiteral(1.0 / rhsValue, right->type());
2713 rhs = this->writeExpression(*right, out);
2717 right->type(), rhs, b.type(), out);
2734 SpvId rhs = this->writeExpression(right, out);
2740 lhsBlock, rhs, rhsBlock, out);
2754 SpvId rhs = this->writeExpression(right, out);
2760 lhsBlock, rhs, rhsBlock, out);