• Home
  • Raw
  • Download

Lines Matching refs:fArguments

674     if (c.fArguments.size() > 0) {  in writeIntrinsicCall()
675 const Type& type = c.fArguments[0]->fType; in writeIntrinsicCall()
694 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeIntrinsicCall()
696 arguments.push_back(this->getLValue(*c.fArguments[i], out)->getPointer()); in writeIntrinsicCall()
698 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
714 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeIntrinsicCall()
716 arguments.push_back(this->getLValue(*c.fArguments[i], out)->getPointer()); in writeIntrinsicCall()
718 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
802 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeSpecialIntrinsic()
803 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeSpecialIntrinsic()
816 SpvId img = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
822 if (1 == c.fArguments.size()) { in writeSpecialIntrinsic()
830 SkASSERT(2 == c.fArguments.size()); in writeSpecialIntrinsic()
831 SpvId sample = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
845 switch (c.fArguments[0]->fType.dimensions()) { in writeSpecialIntrinsic()
847 if (c.fArguments[1]->fType == *fContext.fFloat2_Type) { in writeSpecialIntrinsic()
850 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat_Type); in writeSpecialIntrinsic()
854 if (c.fArguments[1]->fType == *fContext.fFloat3_Type) { in writeSpecialIntrinsic()
857 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat2_Type); in writeSpecialIntrinsic()
861 if (c.fArguments[1]->fType == *fContext.fFloat4_Type) { in writeSpecialIntrinsic()
864 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat3_Type); in writeSpecialIntrinsic()
874 SpvId sampler = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
875 SpvId uv = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
876 if (c.fArguments.size() == 3) { in writeSpecialIntrinsic()
879 this->writeExpression(*c.fArguments[2], out), in writeSpecialIntrinsic()
882 SkASSERT(c.fArguments.size() == 2); in writeSpecialIntrinsic()
897 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
899 const Type& operandType = c.fArguments[0]->fType; in writeSpecialIntrinsic()
919 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
926 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
933 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
940 std::vector<SpvId> args = this->vectorize(c.fArguments, out); in writeSpecialIntrinsic()
947 SkASSERT(c.fArguments.size() == 1); in writeSpecialIntrinsic()
949 finalArgs.push_back(c.fArguments[0]->clone()); in writeSpecialIntrinsic()
969 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeFunctionCall()
976 std::unique_ptr<LValue> lv = this->getLValue(*c.fArguments[i], out); in writeFunctionCall()
987 lvalues.push_back(std::make_tuple(tmpVar, this->getType(c.fArguments[i]->fType), in writeFunctionCall()
992 tmpValueId = this->writeExpression(*c.fArguments[i], out); in writeFunctionCall()
996 this->getPointerType(c.fArguments[i]->fType, in writeFunctionCall()
1005 this->writeOpCode(SpvOpFunctionCall, 4 + (int32_t) c.fArguments.size(), out); in writeFunctionCall()
1026 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeConstantVector()
1027 arguments.push_back(this->writeExpression(*c.fArguments[i], fConstantBuffer)); in writeConstantVector()
1030 if (c.fArguments.size() == 1) { in writeConstantVector()
1039 this->writeOpCode(SpvOpConstantComposite, 3 + (int32_t) c.fArguments.size(), in writeConstantVector()
1052 SkASSERT(c.fArguments.size() == 1); in writeFloatConstructor()
1053 SkASSERT(c.fArguments[0]->fType.isNumber()); in writeFloatConstructor()
1055 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeFloatConstructor()
1056 if (c.fArguments[0]->fType.isSigned()) { in writeFloatConstructor()
1060 SkASSERT(c.fArguments[0]->fType.isUnsigned()); in writeFloatConstructor()
1069 SkASSERT(c.fArguments.size() == 1); in writeIntConstructor()
1070 SkASSERT(c.fArguments[0]->fType.isNumber()); in writeIntConstructor()
1072 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeIntConstructor()
1073 if (c.fArguments[0]->fType.isFloat()) { in writeIntConstructor()
1078 SkASSERT(c.fArguments[0]->fType.isUnsigned()); in writeIntConstructor()
1087 SkASSERT(c.fArguments.size() == 1); in writeUIntConstructor()
1088 SkASSERT(c.fArguments[0]->fType.isNumber()); in writeUIntConstructor()
1090 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeUIntConstructor()
1091 if (c.fArguments[0]->fType.isFloat()) { in writeUIntConstructor()
1095 SkASSERT(c.fArguments[0]->fType.isSigned()); in writeUIntConstructor()
1214 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeMatrixConstructor()
1215 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeMatrixConstructor()
1220 if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kScalar_Kind) { in writeMatrixConstructor()
1222 } else if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kMatrix_Kind) { in writeMatrixConstructor()
1223 this->writeMatrixCopy(result, arguments[0], c.fArguments[0]->fType, c.fType, out); in writeMatrixConstructor()
1224 } else if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kVector_Kind) { in writeMatrixConstructor()
1226 SkASSERT(c.fArguments[0]->fType.columns() == 4); in writeMatrixConstructor()
1247 if (c.fArguments[i]->fType.kind() == Type::kVector_Kind && in writeMatrixConstructor()
1248 c.fArguments[i]->fType.columns() == c.fType.rows()) { in writeMatrixConstructor()
1253 if (c.fArguments[i]->fType.columns() == 1) { in writeMatrixConstructor()
1256 SpvId componentType = this->getType(c.fArguments[i]->fType.componentType()); in writeMatrixConstructor()
1257 for (int j = 0; j < c.fArguments[i]->fType.columns(); ++j) { in writeMatrixConstructor()
1264 currentCount += c.fArguments[i]->fType.columns(); in writeMatrixConstructor()
1301 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeVectorConstructor()
1302 if (c.fArguments[i]->fType.kind() == Type::kVector_Kind) { in writeVectorConstructor()
1308 SpvId vec = this->writeExpression(*c.fArguments[i], out); in writeVectorConstructor()
1310 const Type& src = c.fArguments[i]->fType.componentType(); in writeVectorConstructor()
1314 if (c.fArguments.size() == 1) { in writeVectorConstructor()
1336 if (c.fArguments.size() == 1) { in writeVectorConstructor()
1358 if (c.fArguments.size() == 1) { in writeVectorConstructor()
1365 for (int j = 0; j < c.fArguments[i]->fType.columns(); j++) { in writeVectorConstructor()
1378 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeVectorConstructor()
1382 if (arguments.size() == 1 && c.fArguments[0]->fType.kind() == Type::kScalar_Kind) { in writeVectorConstructor()
1406 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeArrayConstructor()
1407 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeArrayConstructor()
1410 this->writeOpCode(SpvOpCompositeConstruct, 3 + (int32_t) c.fArguments.size(), out); in writeArrayConstructor()
1420 if (c.fArguments.size() == 1 && in writeConstructor()
1421 this->getActualType(c.fType) == this->getActualType(c.fArguments[0]->fType)) { in writeConstructor()
1422 return this->writeExpression(*c.fArguments[0], out); in writeConstructor()