Home
last modified time | relevance | path

Searched refs:slotVal (Results 1 – 5 of 5) sorted by relevance

/third_party/skia/src/sksl/ir/
DSkSLConstructorCompoundCast.cpp55 skstd::optional<double> slotVal = constCtor->getConstantValue(index); in cast_constant_composite() local
56 if (scalarType.checkForOutOfRangeLiteral(context, *slotVal, constCtor->fLine)) { in cast_constant_composite()
59 *slotVal = 0.0; in cast_constant_composite()
61 typecastArgs.push_back(Literal::Make(constCtor->fLine, *slotVal, &scalarType)); in cast_constant_composite()
DSkSLIndexExpression.cpp135 skstd::optional<double> slotVal = baseExpr->getConstantValue(indexValue + slot); in Make() local
136 if (slotVal.has_value()) { in Make()
137 ctorArgs.push_back(Literal::Make(baseExpr->fLine, *slotVal, &scalarType)); in Make()
DSkSLType.cpp823 skstd::optional<double> slotVal = valueExpr->getConstantValue(slot); in checkForOutOfRangeLiteral() local
825 if (slotVal.has_value() && in checkForOutOfRangeLiteral()
826 baseType.checkForOutOfRangeLiteral(context, *slotVal, valueExpr->fLine)) { in checkForOutOfRangeLiteral()
/third_party/skia/src/sksl/
DSkSLConstantFolder.cpp160 skstd::optional<double> slotVal = expr.getConstantValue(index); in contains_constant_zero() local
161 if (slotVal.has_value() && *slotVal == 0.0) { in contains_constant_zero()
171 skstd::optional<double> slotVal = expr.getConstantValue(index); in is_constant_value() local
172 if (!slotVal.has_value() || *slotVal != value) { in is_constant_value()
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp1292 skstd::optional<double> slotVal = c.getConstantValue(n); in writeConstantVector() local
1293 if (!slotVal.has_value()) { in writeConstantVector()
1297 key.fValueId[n] = this->writeLiteral(*slotVal, scalarType); in writeConstantVector()