Home
last modified time | relevance | path

Searched refs:fInt (Results 1 – 17 of 17) sorted by relevance

/third_party/skia/src/sksl/
DSkSLBuiltinTypes.cpp31 , fInt(Type::MakeScalarType( in BuiltinTypes()
33 , fInt2(Type::MakeVectorType("int2", "i2", *fInt, /*columns=*/2)) in BuiltinTypes()
34 , fInt3(Type::MakeVectorType("int3", "i3", *fInt, /*columns=*/3)) in BuiltinTypes()
35 , fInt4(Type::MakeVectorType("int4", "i4", *fInt, /*columns=*/4)) in BuiltinTypes()
60 , fIntLiteral(Type::MakeLiteralType("$intLiteral", *fInt, /*priority=*/5)) in BuiltinTypes()
142 , fGenIType(Type::MakeGenericType("$genIType", {fInt.get(), fInt2.get(), fInt3.get(),
DSkSLUtil.cpp66 if (type == *context.fTypes.fInt ) { *outType = kInt_GrSLType; return true; } in type_to_grsltype()
DSkSLBuiltinTypes.h34 const std::unique_ptr<Type> fInt; variable
/third_party/flutter/skia/tests/
DTArrayTest.cpp108 MoveOnlyInt(int i) : fInt(i) {} in test_swap()
109 MoveOnlyInt(MoveOnlyInt&& that) : fInt(that.fInt) {} in test_swap()
110 bool operator==(int i) { return fInt == i; } in test_swap()
111 int fInt; in test_swap() member
DGrTRecorderTest.cpp115 SubSubclass() : fInt(1234), fFloat(1.234f) {} in SubSubclass()
121 REPORTER_ASSERT(reporter, 1234 == fInt); in validate()
126 int fInt; member in SubSubclass
/third_party/skia/tests/
DSkSLTypeTest.cpp23 REPORTER_ASSERT(r, context.fTypes.fInt->minimumValue() == int_limits::min()); in DEF_TEST()
24 REPORTER_ASSERT(r, context.fTypes.fInt->maximumValue() == int_limits::max()); in DEF_TEST()
DSkSLMemoryLayoutTest.cpp27 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST()
44 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fTypes.fInt)); in DEF_TEST()
78 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), context.fTypes.fInt.get()); in DEF_TEST()
115 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST()
132 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fTypes.fInt)); in DEF_TEST()
166 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), context.fTypes.fInt.get()); in DEF_TEST()
DTArrayTest.cpp214 MoveOnlyInt(int i) : fInt(i) {} in test_swap()
215 MoveOnlyInt(MoveOnlyInt&& that) : fInt(that.fInt) {} in test_swap()
216 bool operator==(int i) { return fInt == i; } in test_swap()
217 int fInt; in test_swap() member
/third_party/flutter/skia/src/sksl/
DSkSLSPIRVCodeGenerator.h48 : fInt(i) {} in ConstantValue()
54 return fInt == other.fInt;
57 int64_t fInt; member
76 return key.first.fInt ^ (int) key.second;
/third_party/skia/src/sksl/ir/
DSkSLSetting.cpp51 return context.fTypes.fInt.get(); in type()
DSkSLIndexExpression.cpp74 index = context.fTypes.fInt->coerceExpression(std::move(index), context); in Convert()
DSkSLType.cpp654 } else if (*this == *context.fTypes.fInt || *this == *context.fTypes.fIntLiteral) { in toCompound()
658 case 1: return *context.fTypes.fInt; in toCompound()
852 size = context.fTypes.fInt->coerceExpression(std::move(size), context); in convertArraySize()
DSkSLSwitchStatement.cpp176 value = context.fTypes.fInt->coerceExpression(std::move(value), context); in Convert()
/third_party/skia/src/sksl/dsl/
DDSLType.cpp127 return context.fTypes.fInt.get(); in get_type_from_type_constant()
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp529 return *fContext.fTypes.fInt; in getActualType()
539 return fContext.fTypes.fInt->toCompound(fContext, type.columns(), type.rows()); in getActualType()
624 SpvId countId = this->writeLiteral(type->columns(), *fContext.fTypes.fInt); in getType()
1391 const SpvId oneID = this->writeLiteral(1.0, *fContext.fTypes.fInt); in castScalarToSignedInt()
1392 const SpvId zeroID = this->writeLiteral(0.0, *fContext.fTypes.fInt); in castScalarToSignedInt()
1461 const SpvId zeroID = this->writeLiteral(0.0, *fContext.fTypes.fInt); in castScalarToBoolean()
1876 chain.push_back(this->writeLiteral(fieldExpr.fieldIndex(), *fContext.fTypes.fInt)); in getAccessChain()
2026 SpvId uniformIdxId = this->writeLiteral((double)uniformIdx, *fContext.fTypes.fInt); in getLValue()
2066 SpvId indexId = this->writeLiteral(swizzle.components()[0], *fContext.fTypes.fInt); in getLValue()
DSkSLGLSLCodeGenerator.cpp450 if (arguments[0]->type() != *fContext.fTypes.fInt) { in writeFunctionCall()
1167 if (type == *fContext.fTypes.fFloat || type == *fContext.fTypes.fInt || in getTypePrecision()
/third_party/skia/src/core/
DSkRuntimeEffect.cpp126 if (*type == *ctx.fTypes.fInt) { v->type = Type::kInt; return true; } in init_uniform_type()