Searched refs:SKSL_INT (Results 1 – 16 of 16) sorted by relevance
/external/skia/src/sksl/ir/ |
D | SkSLIntLiteral.h | 21 using IntLiteral = Literal<SKSL_INT>; 24 class Literal<SKSL_INT> final : public Expression { 30 Literal(int offset, SKSL_INT value, const Type* type) in Literal() 35 static std::unique_ptr<IntLiteral> Make(const Context& context, int offset, SKSL_INT value) { in Make() 40 static std::unique_ptr<IntLiteral> Make(int offset, SKSL_INT value, const Type* type) { in Make() 45 SKSL_INT value() const { in value() 86 SKSL_INT fValue;
|
D | SkSLEnum.h | 60 struct Enumerant { StringFragment name; SKSL_INT value; }; in code() 63 this->foreach([&](StringFragment name, SKSL_INT value){ in code() 86 static SKSL_INT EnumValue(const Symbol* symbol) { in EnumValue()
|
D | SkSLSwitchStatement.cpp | 53 SkTHashSet<SKSL_INT> intValues; in find_duplicate_case_values() 72 SKSL_INT intValue = 0; in find_duplicate_case_values() 200 SKSL_INT intValue; in Convert() 255 SKSL_INT switchValue; in Make() 266 SKSL_INT caseValue; in Make()
|
D | SkSLConstructorScalarCast.cpp | 16 SKSL_INT value = expr.as<IntLiteral>().value(); in cast_scalar_literal() 34 return IntLiteral::Make(expr.fOffset, (SKSL_INT)value, &constructorType); in cast_scalar_literal()
|
D | SkSLIndexExpression.cpp | 54 SKSL_INT indexValue = indexExpr->as<IntLiteral>().value(); in Convert() 79 SKSL_INT indexValue = indexExpr->as<IntLiteral>().value(); in Make()
|
/external/skia/src/sksl/ |
D | SkSLConstantFolder.cpp | 138 bool ConstantFolder::GetConstantInt(const Expression& value, SKSL_INT* out) { in GetConstantInt() 425 SKSL_INT leftVal = left->as<IntLiteral>().value(); in Simplify() 426 SKSL_INT rightVal = right->as<IntLiteral>().value(); in Simplify() 432 if (leftVal == std::numeric_limits<SKSL_INT>::min() && rightVal == -1) { in Simplify() 438 if (leftVal == std::numeric_limits<SKSL_INT>::min() && rightVal == -1) { in Simplify() 497 return simplify_vector<SKSL_INT, SKSL_UINT>(context, *left, op, *right); in Simplify() 509 return simplify_vector<SKSL_INT, SKSL_UINT>(context, *left, op, in Simplify() 522 return simplify_vector<SKSL_INT, SKSL_UINT>(context, splat_scalar(*left, right->type()), in Simplify()
|
D | SkSLASTNode.h | 260 sizeof(SKSL_INT), 300 NodeData(SKSL_INT data) in NodeData() 302 new (fBytes) SKSL_INT(data); in NodeData() 430 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, SKSL_INT i) in ASTNode() 468 SKSL_INT getInt() const { in getInt() 470 return *reinterpret_cast<const SKSL_INT*>(fData.fBytes); in getInt()
|
D | SkSLConstantFolder.h | 32 static bool GetConstantInt(const Expression& value, SKSL_INT* out);
|
D | SkSLString.cpp | 248 bool stoi(const StringFragment& s, SKSL_INT* value) { in stoi() 252 *value = static_cast<SKSL_INT>(result); in stoi()
|
D | SkSLParser.h | 264 bool intLiteral(SKSL_INT* dest);
|
D | SkSLParser.cpp | 754 SKSL_INT arraySize; in parameter() 779 SKSL_INT resultValue; in layoutInt() 1105 SKSL_INT i; in type() 2105 SKSL_INT i; in term() 2147 bool Parser::intLiteral(SKSL_INT* dest) { in intLiteral()
|
D | SkSLIRGenerator.cpp | 239 SKSL_INT count = size->as<IntLiteral>().value(); in convertArraySize() 1181 SKSL_INT currentValue = 0; in convertEnum()
|
/external/skia/include/private/ |
D | SkSLDefines.h | 23 using SKSL_INT = int64_t; variable
|
D | SkSLString.h | 119 bool stoi(const StringFragment& s, SKSL_INT* value);
|
/external/skia/src/sksl/codegen/ |
D | SkSLCPPCodeGenerator.cpp | 755 SKSL_INT codeBlock; in flushEmittedCode() 1230 SKSL_INT minVal = 0, maxVal = 0; in writeGetKey() 1231 auto gatherEnumRange = [&](StringFragment, SKSL_INT value) { in writeGetKey()
|
D | SkSLDSLCPPCodeGenerator.cpp | 1278 SKSL_INT minVal = 0, maxVal = 0; in writeGetKey() 1279 auto gatherEnumRange = [&](StringFragment, SKSL_INT value) { in writeGetKey()
|