Home | History | Annotate | Download | only in sksl

Lines Matching refs:fArguments

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