Lines Matching refs:writeLine
50 void MetalCodeGenerator::writeLine(const char* s) { in writeLine() function in SkSL::MetalCodeGenerator
60 void MetalCodeGenerator::writeLine(const String& s) { in writeLine() function in SkSL::MetalCodeGenerator
61 this->writeLine(s.c_str()); in writeLine()
64 void MetalCodeGenerator::writeLine() { in writeLine() function in SkSL::MetalCodeGenerator
65 this->writeLine(""); in writeLine()
69 this->writeLine("#extension " + ext.fName + " : enable"); in writeExtension()
83 this->writeLine("struct " + type.name() + " {"); in writeType()
914 this->writeLine(") {"); in writeFunction()
920 this->writeLine(" Globals globalStruct;"); in writeFunction()
921 this->writeLine(" thread Globals* _globals = &globalStruct;"); in writeFunction()
935 this->writeLine(";"); in writeFunction()
952 this->writeLine(" Outputs _outputStruct;"); in writeFunction()
953 this->writeLine(" thread Outputs* _out = &_outputStruct;"); in writeFunction()
964 this->writeLine("return *_out;"); in writeFunction()
967 this->writeLine("_out->sk_Position.y = -_out->sk_Position.y;"); in writeFunction()
968 this->writeLine("return *_out;"); // FIXME - detect if function already has return in writeFunction()
975 this->writeLine("}"); in writeFunction()
998 this->writeLine(intf.fTypeName + " {"); in writeInterfaceBlock()
1007 this->writeLine("float u_skRTHeight;"); in writeInterfaceBlock()
1025 this->writeLine(";"); in writeInterfaceBlock()
1049 this->writeLine("];"); in writeFields()
1091 this->writeLine(";"); in writeFields()
1194 this->writeLine(); in writeStatements()
1200 this->writeLine("{"); in writeBlock()
1254 this->writeLine(") {"); in writeSwitchStatement()
1260 this->writeLine(":"); in writeSwitchStatement()
1262 this->writeLine("default:"); in writeSwitchStatement()
1267 this->writeLine(); in writeSwitchStatement()
1416 this->writeLine("struct sksl_synthetic_uniforms {"); in writeInterfaceBlocks()
1417 this->writeLine(" float u_skRTHeight;"); in writeInterfaceBlocks()
1418 this->writeLine("};"); in writeInterfaceBlocks()
1489 this->writeLine(); in writeProgramElement()
1504 this->writeLine(";"); in writeProgramElement()