summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-04-20 02:10:40 +0200
committerLioncash <mathew1800@gmail.com>2018-04-20 02:12:58 +0200
commite3b6f6c01699f15ee07f1caab6cd19cb5acc72a8 (patch)
treeb497fe468a4ca0d715ffcb0f33fb87dab2fb930d /src/video_core/renderer_opengl/gl_shader_decompiler.cpp
parentglsl_shader_decompiler: Add AddNewLine() function to ShaderWriter (diff)
downloadyuzu-e3b6f6c01699f15ee07f1caab6cd19cb5acc72a8.tar
yuzu-e3b6f6c01699f15ee07f1caab6cd19cb5acc72a8.tar.gz
yuzu-e3b6f6c01699f15ee07f1caab6cd19cb5acc72a8.tar.bz2
yuzu-e3b6f6c01699f15ee07f1caab6cd19cb5acc72a8.tar.lz
yuzu-e3b6f6c01699f15ee07f1caab6cd19cb5acc72a8.tar.xz
yuzu-e3b6f6c01699f15ee07f1caab6cd19cb5acc72a8.tar.zst
yuzu-e3b6f6c01699f15ee07f1caab6cd19cb5acc72a8.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index c55febbfa..22a413b73 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -5,6 +5,7 @@
#include <map>
#include <set>
#include <string>
+#include <string_view>
#include "common/assert.h"
#include "common/common_types.h"
#include "video_core/engines/shader_bytecode.h"
@@ -109,7 +110,7 @@ private:
class ShaderWriter {
public:
- void AddLine(const std::string& text) {
+ void AddLine(std::string_view text) {
DEBUG_ASSERT(scope >= 0);
if (!text.empty()) {
AppendIndentation();