Home
last modified time | relevance | path

Searched refs:fBool (Results 1 – 22 of 22) sorted by relevance

/third_party/skia/src/sksl/
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()
DSkSLBuiltinTypes.cpp51 , fBool(Type::MakeScalarType( in BuiltinTypes()
53 , fBool2(Type::MakeVectorType("bool2", "b2", *fBool, /*columns=*/2)) in BuiltinTypes()
54 , fBool3(Type::MakeVectorType("bool3", "b3", *fBool, /*columns=*/3)) in BuiltinTypes()
55 , fBool4(Type::MakeVectorType("bool4", "b4", *fBool, /*columns=*/4)) in BuiltinTypes()
146 , fGenBType(Type::MakeGenericType("$genBType", {fBool.get(), fBool2.get(), fBool3.get(),
DSkSLUtil.cpp40 if (type == *context.fTypes.fBool ) { *outType = kBool_GrSLType; return true; } in type_to_grsltype()
DSkSLBuiltinTypes.h54 const std::unique_ptr<Type> fBool; variable
/third_party/skia/src/sksl/lex/
DRegexNode.h42 fPayload.fBool = false; in RegexNode()
72 bool fBool; member
DRegexNode.cpp38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates()
92 if (fPayload.fBool) { in description()
DRegexParser.cpp137 set.fPayload.fBool = true; in set()
140 set.fPayload.fBool = false; in set()
/third_party/flutter/skia/src/sksl/lex/
DRegexNode.h42 fPayload.fBool = false; in RegexNode()
72 bool fBool; member
DRegexParser.cpp136 set.fPayload.fBool = true; in set()
139 set.fPayload.fBool = false; in set()
DRegexNode.cpp38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates()
91 if (fPayload.fBool) { in description()
/third_party/skia/src/sksl/ir/
DSkSLDoStatement.cpp24 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
38 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLIfStatement.cpp42 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
67 SkASSERT(test->type() == *context.fTypes.fBool); in Make()
DSkSLForStatement.cpp96 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
168 SkASSERT(!test || test->type() == *context.fTypes.fBool); in Make()
DSkSLTernaryExpression.cpp23 test = context.fTypes.fBool->coerceExpression(std::move(test), context); in Convert()
DSkSLLiteral.h58 return std::make_unique<Literal>(line, value, context.fTypes.fBool.get()); in MakeBool()
DSkSLSetting.cpp34 return context.fTypes.fBool.get(); in type()
DSkSLType.cpp702 } else if (*this == *context.fTypes.fBool) { in toCompound()
706 case 1: return *context.fTypes.fBool; in toCompound()
DSkSLFunctionCall.cpp189 const Type& bvecType = context.fTypes.fBool->toCompound(context, type.columns(), /*rows=*/1); in optimize_comparison()
/third_party/skia/tests/
DSkSLMemoryLayoutTest.cpp31 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST()
48 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fTypes.fBool)); in DEF_TEST()
71 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get()); in DEF_TEST()
119 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST()
136 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fTypes.fBool)); in DEF_TEST()
159 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get()); in DEF_TEST()
/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.cpp95 else if (component == *fContext.fTypes.fBool) { in getTypeName()
934 Literal boolTrue(/*line=*/-1, /*value=*/1, fContext.fTypes.fBool.get()); in writeShortCircuitWorkaroundExpression()
939 Literal boolFalse(/*line=*/-1, /*value=*/0, fContext.fTypes.fBool.get()); in writeShortCircuitWorkaroundExpression()
1315 fContext.fTypes.fBool.get())); in writeForStatement()
DSkSLSPIRVCodeGenerator.cpp2165 fContext.fTypes.fBool.get(), in writeVariableReference()
2243 this->writeInstruction(op, this->getType(*fContext.fTypes.fBool), result, id, out); in foldToBool()
2258 SpvId bvecType = this->getType(fContext.fTypes.fBool->toCompound(fContext, in writeMatrixComparison()
2261 SpvId boolType = this->getType(*fContext.fTypes.fBool); in writeMatrixComparison()
2461 tmpType = &fContext.fTypes.fBool->toCompound(fContext, in writeBinaryExpression()
2488 tmpType = &fContext.fTypes.fBool->toCompound(fContext, in writeBinaryExpression()
2586 const Type& boolType = *fContext.fTypes.fBool; in writeArrayComparison()
2612 const Type& boolType = *fContext.fTypes.fBool; in writeStructComparison()
2639 const Type& boolType = *fContext.fTypes.fBool; in mergeComparisons()
2726 SpvId falseConstant = this->writeLiteral(0.0, *fContext.fTypes.fBool); in writeLogicalAnd()
[all …]
/third_party/skia/src/sksl/dsl/
DDSLType.cpp67 return context.fTypes.fBool.get(); in get_type_from_type_constant()