diff options
author | Matías Locatti <42481638+goldenx86@users.noreply.github.com> | 2022-12-11 05:38:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-11 05:38:28 +0100 |
commit | 623429a27ec943f3c1ba758aaf741589b0493ddb (patch) | |
tree | 0a0866296c4cf932d046a9332196d3cbcf3c83a8 /src/video_core/host_shaders/StringShaderHeader.cmake | |
parent | Merge pull request #9416 from liamwhite/penicillin (diff) | |
parent | video_core: Integrate SMAA (diff) | |
download | yuzu-623429a27ec943f3c1ba758aaf741589b0493ddb.tar yuzu-623429a27ec943f3c1ba758aaf741589b0493ddb.tar.gz yuzu-623429a27ec943f3c1ba758aaf741589b0493ddb.tar.bz2 yuzu-623429a27ec943f3c1ba758aaf741589b0493ddb.tar.lz yuzu-623429a27ec943f3c1ba758aaf741589b0493ddb.tar.xz yuzu-623429a27ec943f3c1ba758aaf741589b0493ddb.tar.zst yuzu-623429a27ec943f3c1ba758aaf741589b0493ddb.zip |
Diffstat (limited to 'src/video_core/host_shaders/StringShaderHeader.cmake')
-rw-r--r-- | src/video_core/host_shaders/StringShaderHeader.cmake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/video_core/host_shaders/StringShaderHeader.cmake b/src/video_core/host_shaders/StringShaderHeader.cmake index 9f7525535..4f5cd25ef 100644 --- a/src/video_core/host_shaders/StringShaderHeader.cmake +++ b/src/video_core/host_shaders/StringShaderHeader.cmake @@ -11,10 +11,6 @@ string(TOUPPER ${CONTENTS_NAME} CONTENTS_NAME) FILE(READ ${SOURCE_FILE} line_contents) -# Replace double quotes with single quotes, -# as double quotes will be used to wrap the lines -STRING(REGEX REPLACE "\"" "'" line_contents "${line_contents}") - # CMake separates list elements with semicolons, but semicolons # are used extensively in the shader code. # Replace with a temporary marker, to be reverted later. @@ -25,7 +21,7 @@ STRING(REGEX REPLACE "\n" ";" line_contents "${line_contents}") # Build the shader string, wrapping each line in double quotes. foreach(line IN LISTS line_contents) - string(CONCAT CONTENTS "${CONTENTS}" \"${line}\\n\"\n) + string(CONCAT CONTENTS "${CONTENTS}" "R\"(${line}\n)\" ") endforeach() # Revert the original semicolons in the source. |