projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Shader Generator] using Raw String Literal
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
shader-generator
/
shader-generator.cpp
diff --git
a/dali-toolkit/shader-generator/shader-generator.cpp
b/dali-toolkit/shader-generator/shader-generator.cpp
index
d386fb3
..
a88333c
100644
(file)
--- a/
dali-toolkit/shader-generator/shader-generator.cpp
+++ b/
dali-toolkit/shader-generator/shader-generator.cpp
@@
-144,11
+144,13
@@
void GenerateHeaderFile(
<< 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;
}