Searched refs:fInt (Results 1 – 13 of 13) sorted by relevance
/external/skia/src/sksl/ |
D | SkSLBuiltinTypes.cpp | 29 , fInt(Type::MakeScalarType( in BuiltinTypes() 31 , fInt2(Type::MakeVectorType("int2", "i2", *fInt, /*columns=*/2)) in BuiltinTypes() 32 , fInt3(Type::MakeVectorType("int3", "i3", *fInt, /*columns=*/3)) in BuiltinTypes() 33 , fInt4(Type::MakeVectorType("int4", "i4", *fInt, /*columns=*/4)) in BuiltinTypes() 58 , fIntLiteral(Type::MakeLiteralType("$intLiteral", *fInt, /*priority=*/5)) in BuiltinTypes() 168 , fGenIType(Type::MakeGenericType("$genIType", {fInt.get(), fInt2.get(), fInt3.get(),
|
D | SkSLUtil.cpp | 77 if (type.matches(*context.fTypes.fInt )) { *outType = SkSLType::kInt; return true; } in type_to_sksltype()
|
D | SkSLBuiltinTypes.h | 34 const std::unique_ptr<Type> fInt; variable
|
/external/skia/tests/ |
D | SkSLTypeTest.cpp | 20 REPORTER_ASSERT(r, types.fInt->minimumValue() == int_limits::lowest()); in DEF_TEST() 21 REPORTER_ASSERT(r, types.fInt->maximumValue() == int_limits::max()); in DEF_TEST()
|
D | TArrayTest.cpp | 240 MoveOnlyInt(int i) : fInt(i) {} in test_swap() 241 MoveOnlyInt(MoveOnlyInt&& that) : fInt(that.fInt) {} in test_swap() 242 bool operator==(int i) { return fInt == i; } in test_swap() 243 int fInt; in test_swap() member
|
D | SkSLMemoryLayoutTest.cpp | 36 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST() 54 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fTypes.fInt)); in DEF_TEST() 95 context.fTypes.fInt.get()); in DEF_TEST() 134 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST() 152 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fTypes.fInt)); in DEF_TEST() 193 context.fTypes.fInt.get()); in DEF_TEST() 231 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST() 235 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fTypes.fInt)); in DEF_TEST() 467 SkSL::Position(), SkSL::Modifiers(), std::string_view("h"), context.fTypes.fInt.get()); in DEF_TEST() 485 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST() [all …]
|
/external/skia/src/sksl/ir/ |
D | SkSLIndexExpression.cpp | 90 index = context.fTypes.fInt->coerceExpression(std::move(index), context); in Convert()
|
D | SkSLSwitchStatement.cpp | 173 value = context.fTypes.fInt->coerceExpression(std::move(value), context); in Convert()
|
D | SkSLType.cpp | 946 } else if (this->matches(*context.fTypes.fInt) || this->matches(*context.fTypes.fIntLiteral)) { in toCompound() 950 case 1: return *context.fTypes.fInt; in toCompound() 1181 size = context.fTypes.fInt->coerceExpression(std::move(size), context); in convertArraySize()
|
/external/skia/src/sksl/dsl/ |
D | DSLType.cpp | 144 return context.fTypes.fInt.get(); in get_type_from_type_constant()
|
/external/skia/src/sksl/codegen/ |
D | SkSLSPIRVCodeGenerator.cpp | 1103 SpvId countId = this->writeLiteral(type->columns(), *fContext.fTypes.fInt); in getType() 1843 const SpvId oneID = this->writeLiteral(1.0, *fContext.fTypes.fInt); in castScalarToSignedInt() 1844 const SpvId zeroID = this->writeLiteral(0.0, *fContext.fTypes.fInt); in castScalarToSignedInt() 1913 const SpvId zeroID = this->writeLiteral(0.0, *fContext.fTypes.fInt); in castScalarToBoolean() 2258 chain.push_back(this->writeLiteral(fieldExpr.fieldIndex(), *fContext.fTypes.fInt)); in getAccessChain() 2418 SpvId uniformIdxId = this->writeLiteral((double)uniformIdx, *fContext.fTypes.fInt); in getLValue() 2470 SpvId indexId = this->writeLiteral(swizzle.components()[0], *fContext.fTypes.fInt); in getLValue()
|
D | SkSLGLSLCodeGenerator.cpp | 514 if (!arguments[0]->type().matches(*fContext.fTypes.fInt)) { in writeFunctionCall() 1293 if (type.matches(*fContext.fTypes.fFloat) || type.matches(*fContext.fTypes.fInt) || in getTypePrecision()
|
/external/skia/src/core/ |
D | SkRuntimeEffect.cpp | 106 if (type->matches(*ctx.fTypes.fInt)) { v->type = Type::kInt; return true; } in init_uniform_type()
|