Lines Matching refs:writeExpression
656 SpvId SPIRVCodeGenerator::writeExpression(const Expression& expr, OutputStream& out) { in writeExpression() function in SkSL::SPIRVCodeGenerator
718 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
738 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
776 SpvId raw = this->writeExpression(*a, out); in vectorize()
824 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeSpecialIntrinsic()
838 SpvId img = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
839 SpvId sampler = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
849 SpvId img = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
864 SpvId sample = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
907 SpvId sampler = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
908 SpvId uv = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
912 this->writeExpression(*c.fArguments[2], out), in writeSpecialIntrinsic()
952 SpvId fn = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
1039 tmpValueId = this->writeExpression(*c.fArguments[i], out); in writeFunctionCall()
1076 arguments.push_back(this->writeExpression(*c.fArguments[i], fConstantBuffer)); in writeConstantVector()
1104 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeFloatConstructor()
1121 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeIntConstructor()
1139 SpvId parameter = this->writeExpression(*c.fArguments[0], out); in writeUIntConstructor()
1294 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeMatrixConstructor()
1375 SpvId vec = this->writeExpression(*c.fArguments[i], out); in writeVectorConstructor()
1445 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeVectorConstructor()
1474 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeArrayConstructor()
1489 return this->writeExpression(*c.fArguments[0], out); in writeConstructor()
1559 chain.push_back(this->writeExpression(*indexExpr.fIndex, out)); in getAccessChain()
1758 SpvId test = this->writeExpression(*t.fTest, out); in getLValue()
1791 this->writeInstruction(SpvOpStore, result, this->writeExpression(expr, out), out); in getLValue()
1900 SpvId base = this->writeExpression(*expr.fBase, out); in writeIndexExpression()
1901 SpvId index = this->writeExpression(*expr.fIndex, out); in writeIndexExpression()
1915 SpvId base = this->writeExpression(*swizzle.fBase, out); in writeSwizzle()
2079 SpvId one = this->writeExpression(*create_literal_1(fContext, rightType), out); in writeBinaryExpression()
2275 SpvId rhs = this->writeExpression(*b.fRight, out); in writeBinaryExpression()
2294 lhs = this->writeExpression(*b.fLeft, out); in writeBinaryExpression()
2296 SpvId rhs = this->writeExpression(*b.fRight, out); in writeBinaryExpression()
2309 SpvId lhs = this->writeExpression(*a.fLeft, out); in writeLogicalAnd()
2316 SpvId rhs = this->writeExpression(*a.fRight, out); in writeLogicalAnd()
2330 SpvId lhs = this->writeExpression(*o.fLeft, out); in writeLogicalOr()
2337 SpvId rhs = this->writeExpression(*o.fRight, out); in writeLogicalOr()
2348 SpvId test = this->writeExpression(*t.fTest, out); in writeTernaryExpression()
2352 SpvId trueId = this->writeExpression(*t.fIfTrue, out); in writeTernaryExpression()
2353 SpvId falseId = this->writeExpression(*t.fIfFalse, out); in writeTernaryExpression()
2369 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfTrue, out), out); in writeTernaryExpression()
2372 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfFalse, out), out); in writeTernaryExpression()
2385 SpvId expr = this->writeExpression(*p.fOperand, out); in writePrefixExpression()
2398 return this->writeExpression(*p.fOperand, out); in writePrefixExpression()
2401 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePrefixExpression()
2410 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePrefixExpression()
2421 this->writeExpression(*p.fOperand, out), out); in writePrefixExpression()
2427 this->writeExpression(*p.fOperand, out), out); in writePrefixExpression()
2438 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePostfixExpression()
2779 SpvId value = this->writeExpression(*varDecl.fValue, fGlobalInitializersBuffer); in writeGlobalVars()
2812 SpvId value = this->writeExpression(*varDecl.fValue, out); in writeVarDeclarations()
2826 this->writeExpression(*((ExpressionStatement&) s).fExpression, out); in writeStatement()
2870 SpvId test = this->writeExpression(*stmt.fTest, out); in writeIfStatement()
2917 SpvId test = this->writeExpression(*f.fTest, out); in writeForStatement()
2927 this->writeExpression(*f.fNext, out); in writeForStatement()
2948 SpvId test = this->writeExpression(*w.fTest, out); in writeWhileStatement()
2988 SpvId test = this->writeExpression(*d.fTest, out); in writeDoStatement()
2998 SpvId value = this->writeExpression(*s.fValue, out); in writeSwitchStatement()
3041 this->writeInstruction(SpvOpReturnValue, this->writeExpression(*r.fExpression, out), in writeReturnStatement()