Lines Matching defs:lhs

1190             SpvId lhs = this->writeExpression(*arguments[0], out);
1192 result = this->writeComponentwiseMatrixBinary(callType, lhs, rhs, SpvOpFMul, out);
2220 const Type& operandType, SpvId lhs,
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,
2265 this->writeInstruction(SpvOpCompositeExtract, columnType, columnL, lhs, i, out);
2284 SpvId SPIRVCodeGenerator::writeComponentwiseMatrixBinary(const Type& operandType, SpvId lhs,
2294 this->writeInstruction(SpvOpCompositeExtract, columnType, columnL, lhs, i, out);
2326 SpvId SPIRVCodeGenerator::writeBinaryExpression(const Type& leftType, SpvId lhs, Operator op,
2348 result, lhs, rhs, out);
2371 result, rhs, lhs, out);
2382 this->writeWord(lhs, out);
2384 lhs = vec;
2399 this->writeInstruction(spvop, this->getType(resultType), result, lhs, rhs, out);
2410 return this->writeBinaryExpression(leftType, lhs, op, leftType, rhsMatrix,
2419 result, lhs, rhs, out);
2423 result, rhs, lhs, out);
2431 // Splat lhs across an entire matrix so we can reuse the matrix-op-matrix path.
2432 SpvId lhsMatrix = this->writeScalarToMatrixSplat(rightType, lhs, out);
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,
2575 SpvId SPIRVCodeGenerator::writeArrayComparison(const Type& arrayType, SpvId lhs, Operator op,
2591 this->writeInstruction(SpvOpCompositeExtract, componentTypeId, itemL, lhs, index, out);
2603 SpvId SPIRVCodeGenerator::writeStructComparison(const Type& structType, SpvId lhs, Operator op,
2620 this->writeInstruction(SpvOpCompositeExtract, fieldTypeId, fieldL, lhs, index, out);
2694 SpvId lhs;
2697 lhs = lvalue->load(out);
2700 lhs = this->writeExpression(*left, out);
2716 SpvId result = this->writeBinaryExpression(left->type(), lhs, op.removeAssignment(),
2727 SpvId lhs = this->writeExpression(left, out);
2732 this->writeInstruction(SpvOpBranchConditional, lhs, rhsLabel, end, out);
2747 SpvId lhs = this->writeExpression(left, out);
2752 this->writeInstruction(SpvOpBranchConditional, lhs, end, rhsLabel, out);