Home
last modified time | relevance | path

Searched refs:SKSL_INT (Results 1 – 24 of 24) sorted by relevance

/third_party/skia/src/sksl/ir/
DSkSLLiteral.h42 static std::unique_ptr<Literal> MakeInt(const Context& context, int line, SKSL_INT value) { in MakeInt()
47 static std::unique_ptr<Literal> MakeInt(int line, SKSL_INT value, const Type* type) { in MakeInt()
85 SKSL_INT intValue() const { in intValue()
87 return (SKSL_INT)fValue; in intValue()
90 SKSL_INT boolValue() const { in boolValue()
DSkSLIndexExpression.cpp21 static bool index_out_of_range(const Context& context, SKSL_INT index, const Expression& base) { in index_out_of_range()
59 SKSL_INT arraySize = baseType.convertArraySize(context, std::move(index)); in Convert()
82 SKSL_INT indexValue = indexExpr->as<Literal>().intValue(); in Convert()
99 SKSL_INT indexValue = indexExpr->as<Literal>().intValue(); in Make()
DSkSLSwitchStatement.cpp53 SkTHashSet<SKSL_INT> intValues; in find_duplicate_case_values()
72 SKSL_INT intValue = 0; in find_duplicate_case_values()
194 SKSL_INT intValue; in Convert()
249 SKSL_INT switchValue; in Make()
260 SKSL_INT caseValue; in Make()
DSkSLFunctionCall.cpp52 void type_check_expression<SKSL_INT>(const Expression& expr) { in type_check_expression()
273 return evaluate_intrinsic<SKSL_INT>(context, arguments, returnType, eval); in evaluate_intrinsic_numeric()
293 type_check_expression<SKSL_INT>(*arguments[0]); in evaluate_pairwise_intrinsic()
294 type_check_expression<SKSL_INT>(*arguments[1]); in evaluate_pairwise_intrinsic()
318 type_check_expression<SKSL_INT>(*arguments[0]); in evaluate_3_way_intrinsic()
319 type_check_expression<SKSL_INT>(*arguments[1]); in evaluate_3_way_intrinsic()
320 type_check_expression<SKSL_INT>(*arguments[2]); in evaluate_3_way_intrinsic()
560 type_check_expression<SKSL_INT>(*arguments[0]); in optimize_intrinsic_call()
561 type_check_expression<SKSL_INT>(*arguments[1]); in optimize_intrinsic_call()
595 return evaluate_intrinsic<SKSL_INT>(context, arguments, returnType, in optimize_intrinsic_call()
[all …]
DSkSLType.cpp844 "': " + to_string((SKSL_INT)value)); in checkForOutOfRangeLiteral()
851 SKSL_INT Type::convertArraySize(const Context& context, std::unique_ptr<Expression> size) const { in convertArraySize()
869 SKSL_INT count; in convertArraySize()
DSkSLType.h522 SKSL_INT convertArraySize(const Context& context, std::unique_ptr<Expression> size) const;
/third_party/skia/src/sksl/
DSkSLConstantFolder.cpp139 bool ConstantFolder::GetConstantInt(const Expression& value, SKSL_INT* out) { in GetConstantInt()
427 SKSL_INT leftVal = left->as<Literal>().intValue(); in Simplify()
428 SKSL_INT rightVal = right->as<Literal>().intValue(); in Simplify()
431 (SKSL_INT)(leftVal) Op (SKSL_INT)(rightVal), &resultType) in Simplify()
433 (SKSL_INT)((SKSL_UINT)(leftVal) Op (SKSL_UINT)(rightVal)), &resultType) in Simplify()
439 if (leftVal == std::numeric_limits<SKSL_INT>::min() && rightVal == -1) { in Simplify()
445 if (leftVal == std::numeric_limits<SKSL_INT>::min() && rightVal == -1) { in Simplify()
DSkSLString.cpp156 bool stoi(const skstd::string_view& s, SKSL_INT* value) { in stoi()
160 *value = static_cast<SKSL_INT>(result); in stoi()
DSkSLConstantFolder.h31 static bool GetConstantInt(const Expression& value, SKSL_INT* out);
DSkSLDSLParser.h140 SKSL_INT arraySize();
257 bool intLiteral(SKSL_INT* dest);
DSkSLDSLParser.cpp396 SKSL_INT DSLParser::arraySize() { in arraySize()
402 SKSL_INT size; in arraySize()
669 SKSL_INT resultValue; in layoutInt()
888 SKSL_INT arraySize = 0; in interfaceBlock()
1709 SKSL_INT i; in term()
1751 bool DSLParser::intLiteral(SKSL_INT* dest) { in intLiteral()
/third_party/flutter/skia/src/sksl/
DSkSLASTNode.h271 Max(sizeof(SKSL_INT),
313 NodeData(SKSL_INT data) in NodeData()
449 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, SKSL_INT i) in ASTNode()
497 SKSL_INT getInt() const { in getInt()
499 SKSL_INT result; in getInt()
DSkSLDefines.h48 using SKSL_INT = int32_t; variable
DSkSLString.h115 SKSL_INT stoi(const String& s);
DSkSLParser.h261 bool intLiteral(SKSL_INT* dest);
DSkSLString.cpp246 SKSL_INT stoi(const String& s) { in stoi()
DSkSLParser.cpp1075 SKSL_INT i; in type()
1972 SKSL_INT i; in term()
2017 bool Parser::intLiteral(SKSL_INT* dest) { in intLiteral()
DSkSLIRGenerator.cpp2106 SKSL_INT size = index.getInt(); in convertIndex()
/third_party/skia/include/private/
DSkSLDefines.h16 using SKSL_INT = int64_t; variable
DSkSLString.h68 bool stoi(const skstd::string_view& s, SKSL_INT* value);
/third_party/flutter/skia/src/sksl/ir/
DSkSLConstructor.h170 SKSL_INT getIVecComponent(int n) const override { in getIVecComponent()
171 return this->getVecComponent<SKSL_INT>(n); in getIVecComponent()
DSkSLExpression.h125 virtual SKSL_INT getIVecComponent(int n) const { in getIVecComponent()
DSkSLPrefixExpression.h54 SKSL_INT getIVecComponent(int index) const override { in getIVecComponent()
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp2888 SKSL_INT iValue = value; in writeLiteral()