Lines Matching refs:writeExpression

642 SpvId SPIRVCodeGenerator::writeExpression(const Expression& expr, OutputStream& out) {  in writeExpression()  function in SkSL::SPIRVCodeGenerator
704 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
724 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
762 SpvId raw = this->writeExpression(*a, out); in vectorize()
810 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeSpecialIntrinsic()
823 SpvId img = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
838 SpvId sample = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
881 SpvId sampler = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
882 SpvId uv = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
886 this->writeExpression(*c.fArguments[2], out), in writeSpecialIntrinsic()
926 SpvId fn = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
1013 tmpValueId = this->writeExpression(*c.fArguments[i], out); in writeFunctionCall()
1050 arguments.push_back(this->writeExpression(*c.fArguments[i], fConstantBuffer)); in writeConstantVector()
1078 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeFloatConstructor()
1095 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeIntConstructor()
1113 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeUIntConstructor()
1268 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeMatrixConstructor()
1349 SpvId vec = this->writeExpression(*c.fArguments[i], out); in writeVectorConstructor()
1419 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeVectorConstructor()
1448 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeArrayConstructor()
1463 return this->writeExpression(*c.fArguments[0], out); in writeConstructor()
1533 chain.push_back(this->writeExpression(*indexExpr.fIndex, out)); in getAccessChain()
1732 SpvId test = this->writeExpression(*t.fTest, out); in getLValue()
1765 this->writeInstruction(SpvOpStore, result, this->writeExpression(expr, out), out); in getLValue()
1858 SpvId base = this->writeExpression(*expr.fBase, out); in writeIndexExpression()
1859 SpvId index = this->writeExpression(*expr.fIndex, out); in writeIndexExpression()
1873 SpvId base = this->writeExpression(*swizzle.fBase, out); in writeSwizzle()
2037 SpvId one = this->writeExpression(*create_literal_1(fContext, rightType), out); in writeBinaryExpression()
2233 SpvId rhs = this->writeExpression(*b.fRight, out); in writeBinaryExpression()
2252 lhs = this->writeExpression(*b.fLeft, out); in writeBinaryExpression()
2254 SpvId rhs = this->writeExpression(*b.fRight, out); in writeBinaryExpression()
2267 SpvId lhs = this->writeExpression(*a.fLeft, out); in writeLogicalAnd()
2274 SpvId rhs = this->writeExpression(*a.fRight, out); in writeLogicalAnd()
2288 SpvId lhs = this->writeExpression(*o.fLeft, out); in writeLogicalOr()
2295 SpvId rhs = this->writeExpression(*o.fRight, out); in writeLogicalOr()
2306 SpvId test = this->writeExpression(*t.fTest, out); in writeTernaryExpression()
2310 SpvId trueId = this->writeExpression(*t.fIfTrue, out); in writeTernaryExpression()
2311 SpvId falseId = this->writeExpression(*t.fIfFalse, out); in writeTernaryExpression()
2327 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfTrue, out), out); in writeTernaryExpression()
2330 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfFalse, out), out); in writeTernaryExpression()
2343 SpvId expr = this->writeExpression(*p.fOperand, out); in writePrefixExpression()
2356 return this->writeExpression(*p.fOperand, out); in writePrefixExpression()
2359 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePrefixExpression()
2368 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePrefixExpression()
2379 this->writeExpression(*p.fOperand, out), out); in writePrefixExpression()
2385 this->writeExpression(*p.fOperand, out), out); in writePrefixExpression()
2396 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePostfixExpression()
2735 SpvId value = this->writeExpression(*varDecl.fValue, fGlobalInitializersBuffer); in writeGlobalVars()
2768 SpvId value = this->writeExpression(*varDecl.fValue, out); in writeVarDeclarations()
2782 this->writeExpression(*((ExpressionStatement&) s).fExpression, out); in writeStatement()
2826 SpvId test = this->writeExpression(*stmt.fTest, out); in writeIfStatement()
2873 SpvId test = this->writeExpression(*f.fTest, out); in writeForStatement()
2883 this->writeExpression(*f.fNext, out); in writeForStatement()
2911 SpvId test = this->writeExpression(*w.fTest, out); in writeWhileStatement()
2948 SpvId test = this->writeExpression(*d.fTest, out); in writeDoStatement()
2956 SpvId value = this->writeExpression(*s.fValue, out); in writeSwitchStatement()
2999 this->writeInstruction(SpvOpReturnValue, this->writeExpression(*r.fExpression, out), in writeReturnStatement()