Home
last modified time | relevance | path

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

123

/third_party/skia/src/sksl/
DSkSLUtil.cpp39 if (type == *context.fTypes.fVoid ) { *outType = kVoid_GrSLType; return true; } in type_to_grsltype()
40 if (type == *context.fTypes.fBool ) { *outType = kBool_GrSLType; return true; } in type_to_grsltype()
41 if (type == *context.fTypes.fBool2 ) { *outType = kBool2_GrSLType; return true; } in type_to_grsltype()
42 if (type == *context.fTypes.fBool3 ) { *outType = kBool3_GrSLType; return true; } in type_to_grsltype()
43 if (type == *context.fTypes.fBool4 ) { *outType = kBool4_GrSLType; return true; } in type_to_grsltype()
44 if (type == *context.fTypes.fShort ) { *outType = kShort_GrSLType; return true; } in type_to_grsltype()
45 if (type == *context.fTypes.fShort2 ) { *outType = kShort2_GrSLType; return true; } in type_to_grsltype()
46 if (type == *context.fTypes.fShort3 ) { *outType = kShort3_GrSLType; return true; } in type_to_grsltype()
47 if (type == *context.fTypes.fShort4 ) { *outType = kShort4_GrSLType; return true; } in type_to_grsltype()
48 if (type == *context.fTypes.fUShort ) { *outType = kUShort_GrSLType; return true; } in type_to_grsltype()
[all …]
DSkSLThreadContext.cpp85 symbols.addAlias("mat2x2", context.fTypes.fFloat2x2.get()); in setupSymbolTable()
86 symbols.addAlias("mat2x3", context.fTypes.fFloat2x3.get()); in setupSymbolTable()
87 symbols.addAlias("mat2x4", context.fTypes.fFloat2x4.get()); in setupSymbolTable()
88 symbols.addAlias("mat3x2", context.fTypes.fFloat3x2.get()); in setupSymbolTable()
89 symbols.addAlias("mat3x3", context.fTypes.fFloat3x3.get()); in setupSymbolTable()
90 symbols.addAlias("mat3x4", context.fTypes.fFloat3x4.get()); in setupSymbolTable()
91 symbols.addAlias("mat4x2", context.fTypes.fFloat4x2.get()); in setupSymbolTable()
92 symbols.addAlias("mat4x3", context.fTypes.fFloat4x3.get()); in setupSymbolTable()
93 symbols.addAlias("mat4x4", context.fTypes.fFloat4x4.get()); in setupSymbolTable()
95 symbols.addAlias("float2x3", context.fTypes.fFloat2x3.get()); in setupSymbolTable()
[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.h34 BuiltinTypes fTypes; variable
/third_party/skia/tests/
DSkSLMemoryLayoutTest.cpp23 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fFloat)); in DEF_TEST()
24 REPORTER_ASSERT(r, 8 == layout.size(*context.fTypes.fFloat2)); in DEF_TEST()
25 REPORTER_ASSERT(r, 12 == layout.size(*context.fTypes.fFloat3)); in DEF_TEST()
26 REPORTER_ASSERT(r, 16 == layout.size(*context.fTypes.fFloat4)); in DEF_TEST()
27 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST()
28 REPORTER_ASSERT(r, 8 == layout.size(*context.fTypes.fInt2)); in DEF_TEST()
29 REPORTER_ASSERT(r, 12 == layout.size(*context.fTypes.fInt3)); in DEF_TEST()
30 REPORTER_ASSERT(r, 16 == layout.size(*context.fTypes.fInt4)); in DEF_TEST()
31 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST()
32 REPORTER_ASSERT(r, 2 == layout.size(*context.fTypes.fBool2)); in DEF_TEST()
[all …]
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()
27 REPORTER_ASSERT(r, context.fTypes.fShort->minimumValue() == short_limits::min()); in DEF_TEST()
28 REPORTER_ASSERT(r, context.fTypes.fShort->maximumValue() == short_limits::max()); in DEF_TEST()
31 REPORTER_ASSERT(r, context.fTypes.fUInt->minimumValue() == uint_limits::min()); in DEF_TEST()
32 REPORTER_ASSERT(r, context.fTypes.fUInt->maximumValue() == uint_limits::max()); in DEF_TEST()
35 REPORTER_ASSERT(r, context.fTypes.fUShort->minimumValue() == ushort_limits::min()); in DEF_TEST()
36 REPORTER_ASSERT(r, context.fTypes.fUShort->maximumValue() == ushort_limits::max()); in DEF_TEST()
/third_party/skia/src/sksl/dsl/
DDSLType.cpp25 return context.fTypes.fPoison.get(); in verify_type()
29 return context.fTypes.fPoison.get(); in verify_type()
42 return context.fTypes.fPoison.get(); in find_type()
47 return context.fTypes.fPoison.get(); in find_type()
67 return context.fTypes.fBool.get(); in get_type_from_type_constant()
69 return context.fTypes.fBool2.get(); in get_type_from_type_constant()
71 return context.fTypes.fBool3.get(); in get_type_from_type_constant()
73 return context.fTypes.fBool4.get(); in get_type_from_type_constant()
75 return context.fTypes.fHalf.get(); in get_type_from_type_constant()
77 return context.fTypes.fHalf2.get(); in get_type_from_type_constant()
[all …]
/third_party/skia/src/sksl/ir/
DSkSLType.cpp554 mediumpType = context.fTypes.fHalf.get(); in applyPrecisionQualifiers()
558 mediumpType = context.fTypes.fShort.get(); in applyPrecisionQualifiers()
562 mediumpType = context.fTypes.fUShort.get(); in applyPrecisionQualifiers()
588 if (*this == *context.fTypes.fFloat || *this == *context.fTypes.fFloatLiteral) { in toCompound()
592 case 1: return *context.fTypes.fFloat; in toCompound()
593 case 2: return *context.fTypes.fFloat2; in toCompound()
594 case 3: return *context.fTypes.fFloat3; in toCompound()
595 case 4: return *context.fTypes.fFloat4; in toCompound()
600 case 2: return *context.fTypes.fFloat2x2; in toCompound()
601 case 3: return *context.fTypes.fFloat3x2; in toCompound()
[all …]
DSkSLIndexExpression.cpp33 if (type.componentType() == *context.fTypes.fFloat) { in IndexType()
35 case 2: return *context.fTypes.fFloat2; in IndexType()
36 case 3: return *context.fTypes.fFloat3; in IndexType()
37 case 4: return *context.fTypes.fFloat4; in IndexType()
40 } else if (type.componentType() == *context.fTypes.fHalf) { in IndexType()
42 case 2: return *context.fTypes.fHalf2; in IndexType()
43 case 3: return *context.fTypes.fHalf3; in IndexType()
44 case 4: return *context.fTypes.fHalf4; in IndexType()
74 index = context.fTypes.fInt->coerceExpression(std::move(index), context); in Convert()
DSkSLFunctionDeclaration.cpp73 return type == *context.fTypes.fHalf4 || type == *context.fTypes.fFloat4; in check_parameters()
110 if (type == *context.fTypes.fFloat2) { in check_parameters()
122 if (type == *context.fTypes.fFloat2) { in check_parameters()
142 return type == *context.fTypes.fHalf4 || type == *context.fTypes.fFloat4; in check_main_signature()
147 return p.type() == *context.fTypes.fFloat2 && in check_main_signature()
DSkSLLiteral.h32 return std::make_unique<Literal>(line, value, context.fTypes.fFloatLiteral.get()); in MakeFloat()
43 return std::make_unique<Literal>(line, value, context.fTypes.fIntLiteral.get()); in MakeInt()
58 return std::make_unique<Literal>(line, value, context.fTypes.fBool.get()); in MakeBool()
DSkSLDoStatement.cpp24 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
38 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLChildCall.cpp46 const Type* half4 = context.fTypes.fHalf4.get(); in call_signature_is_valid()
47 const Type* float2 = context.fTypes.fFloat2.get(); in call_signature_is_valid()
DSkSLIfStatement.cpp42 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
67 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLSetting.cpp34 return context.fTypes.fBool.get(); in type()
51 return context.fTypes.fInt.get(); in type()
DSkSLPoison.h18 return std::make_unique<Poison>(line, context.fTypes.fPoison.get()); in Make()
/third_party/flutter/skia/tests/
DDetermineDomainModeTest.cpp66 fTypes[kLeft] = left; in set()
67 fTypes[kTop] = top; in set()
68 fTypes[kRight] = right; in set()
69 fTypes[kBot] = bot; in set()
74 EdgeType edgeType(Side side) const { return fTypes[side]; } in edgeType()
80 if (kHard != fTypes[i] && kBad != fTypes[i]) { in isHardOrBadAllAround()
90 if (kBad == fTypes[i]) { in hasABad()
102 ToStr(fTypes[kLeft]), ToStr(fTypes[kTop]), in print()
103 ToStr(fTypes[kRight]), ToStr(fTypes[kBot])); in print()
118 EdgeType fTypes[4]; member in RectInfo
/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.cpp86 if (component == *fContext.fTypes.fFloat || component == *fContext.fTypes.fHalf) { in getTypeName()
95 else if (component == *fContext.fTypes.fBool) { in getTypeName()
107 if (component == *fContext.fTypes.fFloat || component == *fContext.fTypes.fHalf) { in getTypeName()
125 if (type == *fContext.fTypes.fHalf) { in getTypeName()
128 else if (type == *fContext.fTypes.fShort) { in getTypeName()
131 else if (type == *fContext.fTypes.fUShort) { in getTypeName()
260 if (type == *fContext.fTypes.fFloat2x2 || type == *fContext.fTypes.fHalf2x2) { in writeDeterminantHack()
271 else if (type == *fContext.fTypes.fFloat3x3 || type == *fContext.fTypes.fHalf3x3) { in writeDeterminantHack()
288 else if (type == *fContext.fTypes.fFloat4x4 || type == *fContext.fTypes.fHalf4x4) { in writeDeterminantHack()
326 if (type == *fContext.fTypes.fFloat2x2 || type == *fContext.fTypes.fHalf2x2) { in writeInverseHack()
[all …]
DSkSLSPIRVCodeGenerator.cpp526 return *fContext.fTypes.fFloat; in getActualType()
529 return *fContext.fTypes.fInt; in getActualType()
532 return *fContext.fTypes.fUInt; in getActualType()
535 if (type.componentType() == *fContext.fTypes.fHalf) { in getActualType()
536 return fContext.fTypes.fFloat->toCompound(fContext, type.columns(), type.rows()); in getActualType()
538 if (type.componentType() == *fContext.fTypes.fShort) { in getActualType()
539 return fContext.fTypes.fInt->toCompound(fContext, type.columns(), type.rows()); in getActualType()
541 if (type.componentType() == *fContext.fTypes.fUShort) { in getActualType()
542 return fContext.fTypes.fUInt->toCompound(fContext, type.columns(), type.rows()); in getActualType()
624 SpvId countId = this->writeLiteral(type->columns(), *fContext.fTypes.fInt); in getType()
[all …]
DSkSLPipelineStageCodeGenerator.cpp178 SkASSERT(arguments[0]->type() == *fProgram.fContext->fTypes.fFloat2); in writeChildCall()
184 SkASSERT(arguments[0]->type() == *fProgram.fContext->fTypes.fHalf4 || in writeChildCall()
185 arguments[0]->type() == *fProgram.fContext->fTypes.fFloat4); in writeChildCall()
191 SkASSERT(arguments[0]->type() == *fProgram.fContext->fTypes.fHalf4 || in writeChildCall()
192 arguments[0]->type() == *fProgram.fContext->fTypes.fFloat4); in writeChildCall()
193 SkASSERT(arguments[1]->type() == *fProgram.fContext->fTypes.fHalf4 || in writeChildCall()
194 arguments[1]->type() == *fProgram.fContext->fTypes.fFloat4); in writeChildCall()
/third_party/flutter/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
/third_party/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
/third_party/skia/experimental/graphite/include/
DContext.h39 : fTypes(std::move(types)) in ShaderCombo()
42 std::vector<ShaderType> fTypes; member
/third_party/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()
/third_party/skia/src/core/
DSkRuntimeEffect.cpp111 if (*type == *ctx.fTypes.fFloat) { v->type = Type::kFloat; return true; } in init_uniform_type()
112 if (*type == *ctx.fTypes.fHalf) { v->type = Type::kFloat; return true; } in init_uniform_type()
113 if (*type == *ctx.fTypes.fFloat2) { v->type = Type::kFloat2; return true; } in init_uniform_type()
114 if (*type == *ctx.fTypes.fHalf2) { v->type = Type::kFloat2; return true; } in init_uniform_type()
115 if (*type == *ctx.fTypes.fFloat3) { v->type = Type::kFloat3; return true; } in init_uniform_type()
116 if (*type == *ctx.fTypes.fHalf3) { v->type = Type::kFloat3; return true; } in init_uniform_type()
117 if (*type == *ctx.fTypes.fFloat4) { v->type = Type::kFloat4; return true; } in init_uniform_type()
118 if (*type == *ctx.fTypes.fHalf4) { v->type = Type::kFloat4; return true; } in init_uniform_type()
119 if (*type == *ctx.fTypes.fFloat2x2) { v->type = Type::kFloat2x2; return true; } in init_uniform_type()
120 if (*type == *ctx.fTypes.fHalf2x2) { v->type = Type::kFloat2x2; return true; } in init_uniform_type()
[all …]

123