• Home
  • Raw
  • Download

Lines Matching refs:fArguments

680     if (c.fArguments.size() > 0) {  in writeIntrinsicCall()
681 const Type& type = c.fArguments[0]->fType; in writeIntrinsicCall()
700 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeIntrinsicCall()
702 arguments.push_back(this->getLValue(*c.fArguments[i], out)->getPointer()); in writeIntrinsicCall()
704 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
720 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeIntrinsicCall()
722 arguments.push_back(this->getLValue(*c.fArguments[i], out)->getPointer()); in writeIntrinsicCall()
724 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
809 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeSpecialIntrinsic()
810 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeSpecialIntrinsic()
823 SpvId img = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
829 if (1 == c.fArguments.size()) { in writeSpecialIntrinsic()
837 SkASSERT(2 == c.fArguments.size()); in writeSpecialIntrinsic()
838 SpvId sample = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
852 switch (c.fArguments[0]->fType.dimensions()) { in writeSpecialIntrinsic()
854 if (c.fArguments[1]->fType == *fContext.fFloat2_Type) { in writeSpecialIntrinsic()
857 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat_Type); in writeSpecialIntrinsic()
861 if (c.fArguments[1]->fType == *fContext.fFloat3_Type) { in writeSpecialIntrinsic()
864 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat2_Type); in writeSpecialIntrinsic()
868 if (c.fArguments[1]->fType == *fContext.fFloat4_Type) { in writeSpecialIntrinsic()
871 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat3_Type); in writeSpecialIntrinsic()
881 SpvId sampler = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
882 SpvId uv = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
883 if (c.fArguments.size() == 3) { in writeSpecialIntrinsic()
886 this->writeExpression(*c.fArguments[2], out), in writeSpecialIntrinsic()
889 SkASSERT(c.fArguments.size() == 2); in writeSpecialIntrinsic()
904 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
906 const Type& operandType = c.fArguments[0]->fType; in writeSpecialIntrinsic()
926 SpvId fn = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
941 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
948 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
955 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
962 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
969 SkASSERT(c.fArguments.size() == 1); in writeSpecialIntrinsic()
971 finalArgs.push_back(c.fArguments[0]->clone()); in writeSpecialIntrinsic()
991 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeFunctionCall()
998 std::unique_ptr<LValue> lv = this->getLValue(*c.fArguments[i], out); in writeFunctionCall()
1009 lvalues.push_back(std::make_tuple(tmpVar, &c.fArguments[i]->fType, std::move(lv))); in writeFunctionCall()
1013 tmpValueId = this->writeExpression(*c.fArguments[i], out); in writeFunctionCall()
1017 this->getPointerType(c.fArguments[i]->fType, in writeFunctionCall()
1026 this->writeOpCode(SpvOpFunctionCall, 4 + (int32_t) c.fArguments.size(), out); in writeFunctionCall()
1049 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeConstantVector()
1050 arguments.push_back(this->writeExpression(*c.fArguments[i], fConstantBuffer)); in writeConstantVector()
1053 if (c.fArguments.size() == 1) { in writeConstantVector()
1062 this->writeOpCode(SpvOpConstantComposite, 3 + (int32_t) c.fArguments.size(), in writeConstantVector()
1075 SkASSERT(c.fArguments.size() == 1); in writeFloatConstructor()
1076 SkASSERT(c.fArguments[0]->fType.isNumber()); in writeFloatConstructor()
1078 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeFloatConstructor()
1079 if (c.fArguments[0]->fType.isSigned()) { in writeFloatConstructor()
1083 SkASSERT(c.fArguments[0]->fType.isUnsigned()); in writeFloatConstructor()
1092 SkASSERT(c.fArguments.size() == 1); in writeIntConstructor()
1093 SkASSERT(c.fArguments[0]->fType.isNumber()); in writeIntConstructor()
1095 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeIntConstructor()
1096 if (c.fArguments[0]->fType.isFloat()) { in writeIntConstructor()
1101 SkASSERT(c.fArguments[0]->fType.isUnsigned()); in writeIntConstructor()
1110 SkASSERT(c.fArguments.size() == 1); in writeUIntConstructor()
1111 SkASSERT(c.fArguments[0]->fType.isNumber()); in writeUIntConstructor()
1113 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeUIntConstructor()
1114 if (c.fArguments[0]->fType.isFloat()) { in writeUIntConstructor()
1118 SkASSERT(c.fArguments[0]->fType.isSigned()); in writeUIntConstructor()
1267 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeMatrixConstructor()
1268 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeMatrixConstructor()
1273 if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kScalar_Kind) { in writeMatrixConstructor()
1275 } else if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kMatrix_Kind) { in writeMatrixConstructor()
1276 this->writeMatrixCopy(result, arguments[0], c.fArguments[0]->fType, c.fType, out); in writeMatrixConstructor()
1277 } else if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kVector_Kind) { in writeMatrixConstructor()
1279 SkASSERT(c.fArguments[0]->fType.columns() == 4); in writeMatrixConstructor()
1302 if (currentCount == 0 && c.fArguments[i]->fType.kind() == Type::kVector_Kind && in writeMatrixConstructor()
1303 c.fArguments[i]->fType.columns() == c.fType.rows()) { in writeMatrixConstructor()
1307 if (c.fArguments[i]->fType.columns() == 1) { in writeMatrixConstructor()
1311 SpvId componentType = this->getType(c.fArguments[i]->fType.componentType()); in writeMatrixConstructor()
1312 for (int j = 0; j < c.fArguments[i]->fType.columns(); ++j) { in writeMatrixConstructor()
1342 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeVectorConstructor()
1343 if (c.fArguments[i]->fType.kind() == Type::kVector_Kind) { in writeVectorConstructor()
1349 SpvId vec = this->writeExpression(*c.fArguments[i], out); in writeVectorConstructor()
1351 const Type& src = c.fArguments[i]->fType.componentType(); in writeVectorConstructor()
1355 if (c.fArguments.size() == 1) { in writeVectorConstructor()
1377 if (c.fArguments.size() == 1) { in writeVectorConstructor()
1399 if (c.fArguments.size() == 1) { in writeVectorConstructor()
1406 for (int j = 0; j < c.fArguments[i]->fType.columns(); j++) { in writeVectorConstructor()
1419 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeVectorConstructor()
1423 if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kScalar_Kind) { in writeVectorConstructor()
1447 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeArrayConstructor()
1448 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeArrayConstructor()
1451 this->writeOpCode(SpvOpCompositeConstruct, 3 + (int32_t) c.fArguments.size(), out); in writeArrayConstructor()
1461 if (c.fArguments.size() == 1 && in writeConstructor()
1462 this->getActualType(c.fType) == this->getActualType(c.fArguments[0]->fType)) { in writeConstructor()
1463 return this->writeExpression(*c.fArguments[0], out); in writeConstructor()