summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b6e5096)
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;
<< endl;
outFile << "const std::string_view " << shaderVariableName << endl;
outFile << "{" << endl;
+ outFile << "R\"(" << endl;
string line;
while(getline(shaderFile, line))
{
string line;
while(getline(shaderFile, line))
{
- outFile << "\"" << line << "\\n\"" << endl;
+ outFile << line << endl;
+ outFile << ")\"" << endl;
outFile << "};" << endl;
cout << " [OK]" << endl;
}
outFile << "};" << endl;
cout << " [OK]" << endl;
}