Lines Matching refs:write

23 void GLSLCodeGenerator::write(const char* s) {  in write()  function in SkSL::GLSLCodeGenerator
37 this->write(s); in writeLine()
42 void GLSLCodeGenerator::write(const SkString& s) { in write() function in SkSL::GLSLCodeGenerator
43 this->write(s.c_str()); in write()
63 this->write(type.name()); in writeType()
77 this->write("}"); in writeType()
79 this->write(type.name()); in writeType()
144 this->write("((" + tmpVar1 + " = "); in writeMinAbsHack()
146 this->write(") < (" + tmpVar2 + " = "); in writeMinAbsHack()
148 this->write(") ? " + tmpVar1 + " : " + tmpVar2 + ")"); in writeMinAbsHack()
172 this->write("atan("); in writeFunctionCall()
174 this->write(", -1.0 * "); in writeFunctionCall()
176 this->write(")"); in writeFunctionCall()
238 this->write("texture"); in writeFunctionCall()
240 this->write(dim); in writeFunctionCall()
243 this->write("Proj"); in writeFunctionCall()
247 this->write(c.fFunction.fName); in writeFunctionCall()
249 this->write("("); in writeFunctionCall()
252 this->write(separator); in writeFunctionCall()
256 this->write(")"); in writeFunctionCall()
260 this->write(c.fType.name() + "("); in writeConstructor()
263 this->write(separator); in writeConstructor()
267 this->write(")"); in writeConstructor()
275 this->write("gl_FragCoord"); in writeFragCoord()
287 this->write("gl_FragCoord"); in writeFragCoord()
312 this->write("sk_FragCoord"); in writeFragCoord()
321 this->write("sk_FragColor"); in writeVariableReference()
323 this->write("gl_FragColor"); in writeVariableReference()
330 this->write("gl_VertexID"); in writeVariableReference()
333 this->write("gl_ClipDistance"); in writeVariableReference()
336 this->write("gl_in"); in writeVariableReference()
339 this->write("gl_InvocationID"); in writeVariableReference()
342 this->write(ref.fVariable.fName); in writeVariableReference()
348 this->write("["); in writeIndexExpression()
350 this->write("]"); in writeIndexExpression()
356 this->write("."); in writeFieldAccess()
360 this->write("gl_ClipDistance"); in writeFieldAccess()
363 this->write(f.fBase->fType.fields()[f.fFieldIndex].fName); in writeFieldAccess()
369 this->write("."); in writeSwizzle()
371 this->write(&("x\0y\0z\0w\0"[c * 2])); in writeSwizzle()
418 this->write("("); in writeBinaryExpression()
421 this->write(" " + Token::OperatorName(b.fOperator) + " "); in writeBinaryExpression()
424 this->write(")"); in writeBinaryExpression()
431 this->write("("); in writeTernaryExpression()
434 this->write(" ? "); in writeTernaryExpression()
436 this->write(" : "); in writeTernaryExpression()
439 this->write(")"); in writeTernaryExpression()
446 this->write("("); in writePrefixExpression()
448 this->write(Token::OperatorName(p.fOperator)); in writePrefixExpression()
451 this->write(")"); in writePrefixExpression()
458 this->write("("); in writePostfixExpression()
461 this->write(Token::OperatorName(p.fOperator)); in writePostfixExpression()
463 this->write(")"); in writePostfixExpression()
468 this->write(b.fValue ? "true" : "false"); in writeBoolLiteral()
473 this->write(to_string(i.fValue & 0xffffffff) + "u"); in writeIntLiteral()
475 this->write(to_string((int32_t) i.fValue)); in writeIntLiteral()
480 this->write(to_string(f.fValue)); in writeFloatLiteral()
485 this->write(" " + f.fDeclaration.fName + "("); in writeFunction()
488 this->write(separator); in writeFunction()
498 this->write(" " + param->fName); in writeFunction()
501 this->write("[]"); in writeFunction()
503 this->write("[" + to_string(s) + "]"); in writeFunction()
522 this->write(fFunctionHeader); in writeFunction()
524 this->write(SkString((const char*) data->data(), data->size())); in writeFunction()
530 this->write("flat "); in writeModifiers()
533 this->write("noperspective "); in writeModifiers()
537 this->write(layout + " "); in writeModifiers()
540 this->write("readonly "); in writeModifiers()
543 this->write("writeonly "); in writeModifiers()
546 this->write("coherent "); in writeModifiers()
549 this->write("volatile "); in writeModifiers()
552 this->write("restrict "); in writeModifiers()
556 this->write("inout "); in writeModifiers()
560 this->write(fProgramKind == Program::kVertex_Kind ? "attribute " in writeModifiers()
563 this->write("in "); in writeModifiers()
568 this->write("varying "); in writeModifiers()
570 this->write("out "); in writeModifiers()
574 this->write("uniform "); in writeModifiers()
577 this->write("const "); in writeModifiers()
581 this->write("lowp "); in writeModifiers()
584 this->write("mediump "); in writeModifiers()
587 this->write("highp "); in writeModifiers()
609 this->write("}"); in writeInterfaceBlock()
611 this->write(" "); in writeInterfaceBlock()
612 this->write(intf.fInstanceName); in writeInterfaceBlock()
614 this->write("["); in writeInterfaceBlock()
618 this->write("]"); in writeInterfaceBlock()
631 this->write(separator); in writeVarDeclarations()
633 this->write(var.fVar->fName); in writeVarDeclarations()
635 this->write("["); in writeVarDeclarations()
639 this->write("]"); in writeVarDeclarations()
642 this->write(" = "); in writeVarDeclarations()
654 this->write(";"); in writeVarDeclarations()
664 this->write(";"); in writeStatement()
688 this->write("break;"); in writeStatement()
691 this->write("continue;"); in writeStatement()
694 this->write("discard;"); in writeStatement()
709 this->write("}"); in writeBlock()
713 this->write("if ("); in writeIfStatement()
715 this->write(") "); in writeIfStatement()
718 this->write(" else "); in writeIfStatement()
724 this->write("for ("); in writeForStatement()
728 this->write("; "); in writeForStatement()
733 this->write("; "); in writeForStatement()
737 this->write(") "); in writeForStatement()
742 this->write("while ("); in writeWhileStatement()
744 this->write(") "); in writeWhileStatement()
749 this->write("do "); in writeDoStatement()
751 this->write(" while ("); in writeDoStatement()
753 this->write(");"); in writeDoStatement()
757 this->write("switch ("); in writeSwitchStatement()
763 this->write("case "); in writeSwitchStatement()
777 this->write("}"); in writeSwitchStatement()
781 this->write("return"); in writeReturnStatement()
783 this->write(" "); in writeReturnStatement()
786 this->write(";"); in writeReturnStatement()
793 this->write(fProgram.fSettings.fCaps->versionDeclString()); in generateCode()
803 this->write("precision "); in generateCode()
806 this->write("lowp"); in generateCode()
809 this->write("mediump"); in generateCode()
812 this->write("highp"); in generateCode()
816 this->write("<error>"); in generateCode()
834 this->write("out "); in generateCode()
836 this->write("mediump "); in generateCode()