Home
last modified time | relevance | path

Searched refs:fTypes (Results 1 – 25 of 49) sorted by relevance

12

/external/skia/src/sksl/dsl/
DDSLType.cpp69 return *context.fTypes.fBool; in skslType()
71 return *context.fTypes.fBool2; in skslType()
73 return *context.fTypes.fBool3; in skslType()
75 return *context.fTypes.fBool4; in skslType()
77 return *context.fTypes.fHalf; in skslType()
79 return *context.fTypes.fHalf2; in skslType()
81 return *context.fTypes.fHalf3; in skslType()
83 return *context.fTypes.fHalf4; in skslType()
85 return *context.fTypes.fHalf2x2; in skslType()
87 return *context.fTypes.fHalf3x2; in skslType()
[all …]
DDSLFunction.cpp27 return type == *DSLWriter::Context().fTypes.fHalf4 || in init()
28 type == *DSLWriter::Context().fTypes.fFloat4; in init()
55 if (type == *DSLWriter::Context().fTypes.fFloat2) { in init()
/external/skia/src/sksl/ir/
DSkSLType.cpp61 if (*this == *context.fTypes.fFloat || *this == *context.fTypes.fFloatLiteral) { in toCompound()
65 case 1: return *context.fTypes.fFloat; in toCompound()
66 case 2: return *context.fTypes.fFloat2; in toCompound()
67 case 3: return *context.fTypes.fFloat3; in toCompound()
68 case 4: return *context.fTypes.fFloat4; in toCompound()
73 case 2: return *context.fTypes.fFloat2x2; in toCompound()
74 case 3: return *context.fTypes.fFloat3x2; in toCompound()
75 case 4: return *context.fTypes.fFloat4x2; in toCompound()
80 case 2: return *context.fTypes.fFloat2x3; in toCompound()
81 case 3: return *context.fTypes.fFloat3x3; in toCompound()
[all …]
DSkSLIndexExpression.cpp16 if (type.componentType() == *context.fTypes.fFloat) { in IndexType()
18 case 2: return *context.fTypes.fFloat2; in IndexType()
19 case 3: return *context.fTypes.fFloat3; in IndexType()
20 case 4: return *context.fTypes.fFloat4; in IndexType()
23 } else if (type.componentType() == *context.fTypes.fHalf) { in IndexType()
25 case 2: return *context.fTypes.fHalf2; in IndexType()
26 case 3: return *context.fTypes.fHalf3; in IndexType()
27 case 4: return *context.fTypes.fHalf4; in IndexType()
46 index = context.fTypes.fInt->coerceExpression(std::move(index), context); in Convert()
DSkSLFunctionDeclaration.cpp69 return type == *context.fTypes.fHalf4 || type == *context.fTypes.fFloat4; in check_parameters()
95 if (type == *context.fTypes.fFloat2) { in check_parameters()
108 if (type == *context.fTypes.fFloat2) { in check_parameters()
124 return type == *context.fTypes.fHalf4 || type == *context.fTypes.fFloat4; in check_main_signature()
129 return p.type() == *context.fTypes.fFloat2 && in check_main_signature()
172 if (returnType != *context.fTypes.fHalf4) { in check_main_signature()
DSkSLDoStatement.cpp21 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
32 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLIfStatement.cpp41 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
59 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLSetting.cpp31 return context.fTypes.fBool.get(); in type()
48 return context.fTypes.fInt.get(); in type()
DSkSLForStatement.cpp89 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
142 SkASSERT(!test || test->type() == *context.fTypes.fBool); in Make()
DSkSLTypeReference.h25 : INHERITED(offset, kExpressionKind, context.fTypes.fInvalid.get()) in TypeReference()
/external/skia/src/sksl/
DSkSLUtil.cpp41 if (type == *context.fTypes.fVoid ) { *outType = kVoid_GrSLType; return true; } in type_to_grsltype()
42 if (type == *context.fTypes.fBool ) { *outType = kBool_GrSLType; return true; } in type_to_grsltype()
43 if (type == *context.fTypes.fBool2 ) { *outType = kBool2_GrSLType; return true; } in type_to_grsltype()
44 if (type == *context.fTypes.fBool3 ) { *outType = kBool3_GrSLType; return true; } in type_to_grsltype()
45 if (type == *context.fTypes.fBool4 ) { *outType = kBool4_GrSLType; return true; } in type_to_grsltype()
46 if (type == *context.fTypes.fShort ) { *outType = kShort_GrSLType; return true; } in type_to_grsltype()
47 if (type == *context.fTypes.fShort2 ) { *outType = kShort2_GrSLType; return true; } in type_to_grsltype()
48 if (type == *context.fTypes.fShort3 ) { *outType = kShort3_GrSLType; return true; } in type_to_grsltype()
49 if (type == *context.fTypes.fShort4 ) { *outType = kShort4_GrSLType; return true; } in type_to_grsltype()
50 if (type == *context.fTypes.fUShort ) { *outType = kUShort_GrSLType; return true; } in type_to_grsltype()
[all …]
DSkSLOperators.cpp269 *outResultType = context.fTypes.fBool.get(); in determineBinaryType()
276 *outResultType = context.fTypes.fBool.get(); in determineBinaryType()
285 *outLeftType = context.fTypes.fBool.get(); in determineBinaryType()
286 *outRightType = context.fTypes.fBool.get(); in determineBinaryType()
287 *outResultType = context.fTypes.fBool.get(); in determineBinaryType()
288 return left.canCoerceTo(*context.fTypes.fBool, allowNarrowing) && in determineBinaryType()
289 right.canCoerceTo(*context.fTypes.fBool, allowNarrowing); in determineBinaryType()
396 *outResultType = context.fTypes.fBool.get(); in determineBinaryType()
DSkSLContext.h36 BuiltinTypes fTypes; variable
/external/skia/tests/
DSkSLMemoryLayoutTest.cpp21 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fFloat)); in DEF_TEST()
22 REPORTER_ASSERT(r, 8 == layout.size(*context.fTypes.fFloat2)); in DEF_TEST()
23 REPORTER_ASSERT(r, 12 == layout.size(*context.fTypes.fFloat3)); in DEF_TEST()
24 REPORTER_ASSERT(r, 16 == layout.size(*context.fTypes.fFloat4)); in DEF_TEST()
25 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST()
26 REPORTER_ASSERT(r, 8 == layout.size(*context.fTypes.fInt2)); in DEF_TEST()
27 REPORTER_ASSERT(r, 12 == layout.size(*context.fTypes.fInt3)); in DEF_TEST()
28 REPORTER_ASSERT(r, 16 == layout.size(*context.fTypes.fInt4)); in DEF_TEST()
29 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST()
30 REPORTER_ASSERT(r, 2 == layout.size(*context.fTypes.fBool2)); in DEF_TEST()
[all …]
/external/skia/src/sksl/codegen/
DSkSLCPPCodeGenerator.cpp147 if (type == *fContext.fTypes.fInt) { in formatRuntimeValue()
151 if (type == *fContext.fTypes.fBool) { in formatRuntimeValue()
155 if (type == *fContext.fTypes.fFloat2 || type == *fContext.fTypes.fHalf2) { in formatRuntimeValue()
160 if (type == *fContext.fTypes.fFloat3 || type == *fContext.fTypes.fHalf3) { in formatRuntimeValue()
166 if (type == *fContext.fTypes.fFloat4 || type == *fContext.fTypes.fHalf4) { in formatRuntimeValue()
199 SkASSERT(type.componentType() == *fContext.fTypes.fFloat || in formatRuntimeValue()
200 type.componentType() == *fContext.fTypes.fHalf); in formatRuntimeValue()
219 if (type == *fContext.fTypes.fInt4 || in formatRuntimeValue()
220 type == *fContext.fTypes.fShort4) { in formatRuntimeValue()
451 if (type == *context.fTypes.fVoid ) { return "kVoid_GrSLType"; } in glsltype_string()
[all …]
DSkSLHCodeGenerator.cpp53 if (type == *context.fTypes.fFloat || type == *context.fTypes.fHalf) { in ParameterCType()
55 } else if (type == *context.fTypes.fInt || in ParameterCType()
56 type == *context.fTypes.fShort) { in ParameterCType()
58 } else if (type == *context.fTypes.fFloat2 || type == *context.fTypes.fHalf2) { in ParameterCType()
60 } else if (type == *context.fTypes.fInt2 || in ParameterCType()
61 type == *context.fTypes.fShort2) { in ParameterCType()
63 } else if (type == *context.fTypes.fInt4 || in ParameterCType()
64 type == *context.fTypes.fShort4) { in ParameterCType()
66 } else if (type == *context.fTypes.fFloat4 || type == *context.fTypes.fHalf4) { in ParameterCType()
68 } else if (type == *context.fTypes.fFloat3x3 || type == *context.fTypes.fHalf3x3) { in ParameterCType()
[all …]
DSkSLGLSLCodeGenerator.cpp97 if (component == *fContext.fTypes.fFloat || component == *fContext.fTypes.fHalf) { in getTypeName()
106 else if (component == *fContext.fTypes.fBool) { in getTypeName()
118 if (component == *fContext.fTypes.fFloat || component == *fContext.fTypes.fHalf) { in getTypeName()
138 if (type == *fContext.fTypes.fHalf) { in getTypeName()
141 else if (type == *fContext.fTypes.fShort) { in getTypeName()
144 else if (type == *fContext.fTypes.fUShort) { in getTypeName()
277 if (type == *fContext.fTypes.fFloat2x2 || type == *fContext.fTypes.fHalf2x2) { in writeDeterminantHack()
288 else if (type == *fContext.fTypes.fFloat3x3 || type == *fContext.fTypes.fHalf3x3) { in writeDeterminantHack()
305 else if (type == *fContext.fTypes.fFloat4x4 || type == *fContext.fTypes.fHalf4x4) { in writeDeterminantHack()
343 if (type == *fContext.fTypes.fFloat2x2 || type == *fContext.fTypes.fHalf2x2) { in writeInverseHack()
[all …]
DSkSLSPIRVCodeGenerator.cpp481 return *fContext.fTypes.fFloat; in getActualType()
484 return *fContext.fTypes.fInt; in getActualType()
487 return *fContext.fTypes.fUInt; in getActualType()
490 if (type.componentType() == *fContext.fTypes.fHalf) { in getActualType()
491 return fContext.fTypes.fFloat->toCompound(fContext, type.columns(), type.rows()); in getActualType()
493 if (type.componentType() == *fContext.fTypes.fShort) { in getActualType()
494 return fContext.fTypes.fInt->toCompound(fContext, type.columns(), type.rows()); in getActualType()
496 if (type.componentType() == *fContext.fTypes.fUShort) { in getActualType()
497 return fContext.fTypes.fUInt->toCompound(fContext, type.columns(), type.rows()); in getActualType()
529 } else if (type == *fContext.fTypes.fInt || type == *fContext.fTypes.fShort || in getType()
[all …]
DSkSLDSLCPPCodeGenerator.cpp29 if (type == *context.fTypes.fHalf) { in get_scalar_type_name()
31 } else if (type == *context.fTypes.fFloat) { in get_scalar_type_name()
138 if (type == *fContext.fTypes.fInt) { in formatRuntimeValue()
142 if (type == *fContext.fTypes.fBool) { in formatRuntimeValue()
146 if (type == *fContext.fTypes.fFloat2 || type == *fContext.fTypes.fHalf2) { in formatRuntimeValue()
151 if (type == *fContext.fTypes.fFloat3 || type == *fContext.fTypes.fHalf3) { in formatRuntimeValue()
157 if (type == *fContext.fTypes.fFloat4 || type == *fContext.fTypes.fHalf4) { in formatRuntimeValue()
190 SkASSERT(type.componentType() == *fContext.fTypes.fFloat || in formatRuntimeValue()
191 type.componentType() == *fContext.fTypes.fHalf); in formatRuntimeValue()
210 if (type == *fContext.fTypes.fInt4 || in formatRuntimeValue()
[all …]
/external/skqp/tests/
DDetermineDomainModeTest.cpp64 fTypes[kLeft] = left; in set()
65 fTypes[kTop] = top; in set()
66 fTypes[kRight] = right; in set()
67 fTypes[kBot] = bot; in set()
72 EdgeType edgeType(Side side) const { return fTypes[side]; } in edgeType()
78 if (kHard != fTypes[i] && kBad != fTypes[i]) { in isHardOrBadAllAround()
88 if (kBad == fTypes[i]) { in hasABad()
100 ToStr(fTypes[kLeft]), ToStr(fTypes[kTop]), in print()
101 ToStr(fTypes[kRight]), ToStr(fTypes[kBot])); in print()
116 EdgeType fTypes[4]; member in RectInfo
/external/skia/src/sfnt/
DSkOTUtils.h50 : fTypes(types), fTypesCount(typesCount), fTypesIndex(0) in LocalizedStrings_NameTable()
52 , fFamilyNameIter(fNameTableData.get(), size, fTypes[fTypesIndex]) in LocalizedStrings_NameTable()
72 SK_OT_USHORT* fTypes; member
/external/skqp/src/sfnt/
DSkOTUtils.h50 : fTypes(types), fTypesCount(typesCount), fTypesIndex(0) in LocalizedStrings_NameTable()
52 , fFamilyNameIter(fNameTableData.get(), size, fTypes[fTypesIndex]) in LocalizedStrings_NameTable()
72 SK_OT_USHORT* fTypes; member
/external/llvm-project/mlir/lib/IR/
DTypeUtilities.cpp36 SmallVector<Type, 10> fTypes; in getFlattenedTypes() local
37 t.getFlattenedTypes(fTypes); in getFlattenedTypes()
38 return fTypes; in getFlattenedTypes()
/external/skia/src/core/
DSkRuntimeEffect.cpp98 if (*type == *ctx.fTypes.fFloat) { v->type = Type::kFloat; return true; } in init_uniform_type()
99 if (*type == *ctx.fTypes.fHalf) { v->type = Type::kFloat; return true; } in init_uniform_type()
100 if (*type == *ctx.fTypes.fFloat2) { v->type = Type::kFloat2; return true; } in init_uniform_type()
101 if (*type == *ctx.fTypes.fHalf2) { v->type = Type::kFloat2; return true; } in init_uniform_type()
102 if (*type == *ctx.fTypes.fFloat3) { v->type = Type::kFloat3; return true; } in init_uniform_type()
103 if (*type == *ctx.fTypes.fHalf3) { v->type = Type::kFloat3; return true; } in init_uniform_type()
104 if (*type == *ctx.fTypes.fFloat4) { v->type = Type::kFloat4; return true; } in init_uniform_type()
105 if (*type == *ctx.fTypes.fHalf4) { v->type = Type::kFloat4; return true; } in init_uniform_type()
106 if (*type == *ctx.fTypes.fFloat2x2) { v->type = Type::kFloat2x2; return true; } in init_uniform_type()
107 if (*type == *ctx.fTypes.fHalf2x2) { v->type = Type::kFloat2x2; return true; } in init_uniform_type()
[all …]
/external/skia/modules/particles/src/
DSkParticleBinding.cpp55 name, compiler, *compiler.context().fTypes.fFloat4, uniforms, alloc) in SkPathExternalFunction()
60 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
173 name, compiler, *compiler.context().fTypes.fFloat4, uniforms, alloc) in SkShaderExternalFunction()
178 outTypes[0] = fCompiler.context().fTypes.fFloat2.get(); in getCallParameterTypes()

12