Lines Matching refs:writeExpression
765 SpvId SPIRVCodeGenerator::writeExpression(const Expression& expr, OutputStream& out) { in writeExpression() function in SkSL::SPIRVCodeGenerator
770 return this->writeExpression(*expr.as<ConstructorArrayCast>().argument(), out); in writeExpression()
851 argumentIds.push_back(this->writeExpression(*arguments[i], out)); in writeIntrinsicCall()
882 argumentIds.push_back(this->writeExpression(*arguments[i], out)); in writeIntrinsicCall()
910 SpvId raw = this->writeExpression(arg, out); in vectorize()
981 argumentIds.push_back(this->writeExpression(*arg, out)); in writeSpecialIntrinsic()
995 SpvId img = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
996 SpvId sampler = this->writeExpression(*arguments[1], out); in writeSpecialIntrinsic()
1006 SpvId img = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
1022 SpvId sample = this->writeExpression(*arguments[1], out); in writeSpecialIntrinsic()
1066 SpvId sampler = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
1067 SpvId uv = this->writeExpression(*arguments[1], out); in writeSpecialIntrinsic()
1071 this->writeExpression(*arguments[2], out), in writeSpecialIntrinsic()
1109 SpvId fn = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
1151 SpvId falseId = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
1152 SpvId trueId = this->writeExpression(*arguments[1], out); in writeSpecialIntrinsic()
1153 SpvId conditionId = this->writeExpression(*arguments[2], out); in writeSpecialIntrinsic()
1190 SpvId lhs = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
1191 SpvId rhs = this->writeExpression(*arguments[1], out); in writeSpecialIntrinsic()
1225 tmpValueId = this->writeExpression(arg, out); in writeFunctionCallArgument()
1342 SpvId expressionId = this->writeExpression(ctorExpr, out); in writeFloatConstructor()
1376 SpvId expressionId = this->writeExpression(ctorExpr, out); in writeIntConstructor()
1411 SpvId expressionId = this->writeExpression(ctorExpr, out); in writeUIntConstructor()
1446 SpvId expressionId = this->writeExpression(ctorExpr, out); in writeBooleanConstructor()
1607 arguments.push_back(this->writeExpression(*arg, out)); in writeMatrixConstructor()
1678 SpvId arg = this->writeExpression(*c.arguments()[i], out); in writeVectorConstructor()
1730 SpvId argument = this->writeExpression(*c.argument(), out); in writeConstructorSplat()
1745 arguments.push_back(this->writeExpression(*arg, out)); in writeCompositeConstructor()
1755 return this->writeExpression(*c.argument(), out); in writeConstructorScalarCast()
1759 SpvId expressionId = this->writeExpression(ctorExpr, out); in writeConstructorScalarCast()
1770 SpvId compositeId = this->writeExpression(*c.argument(), out); in writeConstructorCompoundCast()
1804 SpvId argument = this->writeExpression(*c.argument(), out); in writeConstructorDiagonalMatrix()
1815 SpvId argument = this->writeExpression(*c.argument(), out); in writeConstructorMatrixResize()
1870 chain.push_back(this->writeExpression(*indexExpr.index(), out)); in getAccessChain()
2087 this->writeInstruction(SpvOpStore, result, this->writeExpression(expr, out), out); in getLValue()
2140 return this->writeExpression(*dsl::Float4(deviceCoord.x(), in writeVariableReference()
2174 return this->writeExpression(*dsl::Bool(Select(rtFlip.y() > 0, in writeVariableReference()
2185 SpvId base = this->writeExpression(*expr.base(), out); in writeIndexExpression()
2186 SpvId index = this->writeExpression(*expr.index(), out); in writeIndexExpression()
2200 SpvId base = this->writeExpression(*swizzle.base(), out); in writeSwizzle()
2677 SpvId rhs = this->writeExpression(*right, out); in writeBinaryExpression()
2700 lhs = this->writeExpression(*left, out); in writeBinaryExpression()
2713 rhs = this->writeExpression(*right, out); in writeBinaryExpression()
2727 SpvId lhs = this->writeExpression(left, out); in writeLogicalAnd()
2734 SpvId rhs = this->writeExpression(right, out); in writeLogicalAnd()
2747 SpvId lhs = this->writeExpression(left, out); in writeLogicalOr()
2754 SpvId rhs = this->writeExpression(right, out); in writeLogicalOr()
2766 SpvId test = this->writeExpression(*t.test(), out); in writeTernaryExpression()
2772 SpvId trueId = this->writeExpression(*t.ifTrue(), out); in writeTernaryExpression()
2773 SpvId falseId = this->writeExpression(*t.ifFalse(), out); in writeTernaryExpression()
2789 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.ifTrue(), out), out); in writeTernaryExpression()
2792 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.ifFalse(), out), out); in writeTernaryExpression()
2805 SpvId expr = this->writeExpression(*p.operand(), out); in writePrefixExpression()
2817 return this->writeExpression(*p.operand(), out); in writePrefixExpression()
2839 this->writeExpression(*p.operand(), out), out); in writePrefixExpression()
2845 this->writeExpression(*p.operand(), out), out); in writePrefixExpression()
3131 SpvId value = this->writeExpression(*varDecl.value(), fGlobalInitializersBuffer); in writeGlobalVar()
3153 SpvId value = this->writeExpression(*varDecl.value(), out); in writeVarDeclaration()
3167 this->writeExpression(*s.as<ExpressionStatement>().expression(), out); in writeStatement()
3209 SpvId test = this->writeExpression(*stmt.test(), out); in writeIfStatement()
3256 SpvId test = this->writeExpression(*f.test(), out); in writeForStatement()
3268 this->writeExpression(*f.next(), out); in writeForStatement()
3296 SpvId test = this->writeExpression(*d.test(), out); in writeDoStatement()
3304 SpvId value = this->writeExpression(*s.value(), out); in writeSwitchStatement()
3348 this->writeInstruction(SpvOpReturnValue, this->writeExpression(*r.expression(), out), in writeReturnStatement()