Using Raw String Literal to generate shader files.
This will simplify the file layout and will fix some compilation warnings about missing terminating strings.
Change-Id: I784bf595f18f9c1fb404e8e818317cc91dd19103
<< endl;
outFile << "const std::string_view " << shaderVariableName << endl;
outFile << "{" << endl;
+ outFile << "R\"(" << endl;
string line;
while(getline(shaderFile, line))
{
- outFile << "\"" << line << "\\n\"" << endl;
+ outFile << line << endl;
}
+ outFile << ")\"" << endl;
outFile << "};" << endl;
cout << " [OK]" << endl;
}