Home
last modified time | relevance | path

Searched refs:writeExpression (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.cpp170 void GLSLCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::GLSLCodeGenerator
180 this->writeExpression(*expr.as<ConstructorArrayCast>().argument(), parentPrecedence); in writeExpression()
245 this->writeExpression(absExpr, Precedence::kTopLevel); in writeMinAbsHack()
247 this->writeExpression(otherExpr, Precedence::kAssignment); in writeMinAbsHack()
253 this->writeExpression(x, Precedence::kTopLevel); in writeInverseSqrtHack()
319 this->writeExpression(mat, Precedence::kTopLevel); in writeDeterminantHack()
407 this->writeExpression(mat, Precedence::kTopLevel); in writeInverseHack()
435 this->writeExpression(mat, Precedence::kTopLevel); in writeTransposeHack()
474 this->writeExpression(*arguments[0], Precedence::kSequence); in writeFunctionCall()
476 this->writeExpression(*p.operand(), Precedence::kMultiplicative); in writeFunctionCall()
[all …]
DSkSLMetalCodeGenerator.cpp131 void MetalCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::MetalCodeGenerator
270 this->writeExpression(*arguments[index], Precedence::kAssignment); in getOutParamHelper()
304 this->writeExpression(*arguments[index], Precedence::kAssignment); in getOutParamHelper()
378 this->writeExpression(*outVars[i], Precedence::kSequence); in writeFunctionCall()
380 this->writeExpression(*arguments[i], Precedence::kSequence); in writeFunctionCall()
531 this->writeExpression(*arg, Precedence::kSequence); in writeArgumentList()
540 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
542 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
550 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
554 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
[all …]
DSkSLPipelineStageCodeGenerator.cpp84 void writeExpression(const Expression& expr, Precedence parentPrecedence);
173 this->writeExpression(*arguments[0], Precedence::kSequence); in writeChildCall()
197 this->writeExpression(*arguments[1], Precedence::kSequence); in writeChildCall()
227 this->writeExpression(*arg, Precedence::kSequence); in writeFunctionCall()
260 this->writeExpression(*stmt.test(), Precedence::kTopLevel); in writeIfStatement()
276 this->writeExpression(*r.expression(), Precedence::kTopLevel); in writeReturnStatement()
286 this->writeExpression(*s.value(), Precedence::kTopLevel); in writeSwitchStatement()
292 this->writeExpression(*c.value(), Precedence::kTopLevel); in writeSwitchStatement()
390 this->writeExpression(*decl.value(), Precedence::kTopLevel); in writeGlobalVarDeclaration()
461 void PipelineStageCodeGenerator::writeExpression(const Expression& expr, in writeExpression() function in SkSL::PipelineStage::PipelineStageCodeGenerator
[all …]
DSkSLVMCodeGenerator.cpp210 Value writeExpression(const Expression& expr);
430 Value val = this->writeExpression(*decl.value()); in setupGlobals()
582 return this->writeStore(left, this->writeExpression(right)); in writeBinaryExpression()
600 skvm::I32 lVal = i32(this->writeExpression(left)); in writeBinaryExpression()
602 skvm::I32 rVal = i32(this->writeExpression(right)); in writeBinaryExpression()
608 skvm::I32 lVal = i32(this->writeExpression(left)); in writeBinaryExpression()
610 skvm::I32 rVal = i32(this->writeExpression(right)); in writeBinaryExpression()
616 this->writeExpression(left); in writeBinaryExpression()
617 return this->writeExpression(right); in writeBinaryExpression()
623 Value lVal = this->writeExpression(left), in writeBinaryExpression()
[all …]
DSkSLSPIRVCodeGenerator.cpp765 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()
[all …]
DSkSLGLSLCodeGenerator.h106 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLMetalCodeGenerator.h148 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLSPIRVCodeGenerator.h230 SpvId writeExpression(const Expression& expr, OutputStream& out);
/third_party/flutter/skia/src/sksl/
DSkSLGLSLCodeGenerator.cpp191 void GLSLCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::GLSLCodeGenerator
258 this->writeExpression(absExpr, kTopLevel_Precedence); in writeMinAbsHack()
260 this->writeExpression(otherExpr, kAssignment_Precedence); in writeMinAbsHack()
266 this->writeExpression(x, kTopLevel_Precedence); in writeInverseSqrtHack()
331 this->writeExpression(mat, kTopLevel_Precedence); in writeDeterminantHack()
418 this->writeExpression(mat, kTopLevel_Precedence); in writeInverseHack()
445 this->writeExpression(mat, kTopLevel_Precedence); in writeTransposeHack()
512 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeFunctionCall()
514 this->writeExpression(*p.fOperand, kMultiplicative_Precedence); in writeFunctionCall()
547 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeFunctionCall()
[all …]
DSkSLMetalCodeGenerator.cpp116 void MetalCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::MetalCodeGenerator
175 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeIntrinsicCall()
198 this->writeExpression(*c.fArguments[1], kSequence_Precedence); in writeIntrinsicCall()
259 this->writeExpression(arg, kSequence_Precedence); in writeFunctionCall()
347 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
349 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
352 this->writeExpression(*c.fArguments[1], kSequence_Precedence); in writeSpecialIntrinsic()
363 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
365 this->writeExpression(*c.fArguments[1], kSequence_Precedence); in writeSpecialIntrinsic()
367 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
[all …]
DSkSLByteCodeGenerator.cpp471 this->writeExpression(*i.fIndex); in getLocation()
596 this->writeExpression(*b.fRight); in writeBinaryExpression()
612 this->writeExpression(*b.fLeft); in writeBinaryExpression()
620 this->writeExpression(*b.fRight); in writeBinaryExpression()
759 this->writeExpression(*arg); in writeConstructor()
811 this->writeExpression(*arg); in writeExternalFunctionCall()
920 this->writeExpression(*arg); in writeFunctionCall()
957 this->writeExpression(*arg); in writeFunctionCall()
1037 this->writeExpression(*p.fOperand); in writePrefixExpression()
1109 this->writeExpression(*s.fBase); in writeSwizzle()
[all …]
DSkSLSPIRVCodeGenerator.cpp656 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()
[all …]
DSkSLPipelineStageCodeGenerator.cpp69 this->writeExpression(*b.fLeft, precedence); in writeBinaryExpression()
71 this->writeExpression(*b.fRight, precedence); in writeBinaryExpression()
DSkSLCPPCodeGenerator.cpp75 this->writeExpression(*b.fLeft, precedence); in writeBinaryExpression()
77 this->writeExpression(*b.fRight, precedence); in writeBinaryExpression()
248 this->writeExpression(value, kTopLevel_Precedence); in writeVarInitializer()
272 this->writeExpression(*swizzle.fBase, kPostfix_Precedence); in writeSwizzle()
630 this->writeExpression(*decl.fValue, kAssignment_Precedence); in writePrivateVarValues()
794 this->writeExpression(e, Precedence::kTopLevel_Precedence); in convertSKSLExpressionToCPP()
1128 this->writeExpression(*decl.fValue, kAssignment_Precedence); in writeGetKey()
DSkSLGLSLCodeGenerator.h136 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLByteCodeGenerator.h187 void writeExpression(const Expression& expr, bool discard = false);
DSkSLMetalCodeGenerator.h180 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLSPIRVCodeGenerator.h196 SpvId writeExpression(const Expression& expr, OutputStream& out);