summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-26 17:48:33 -0400
committerLioncash <mathew1800@gmail.com>2019-07-26 18:02:00 -0400
commitfb384dec5501b22ac64b6770a0ae2970e24c8d27 (patch)
treeb991e9ba1bb4b60f6fa6ee0ffb29cfd8d366346c /Source/Core/VideoBackends/OGL/ProgramShaderCache.h
parent3c8f6bca5ab9ead8f47e399a1af5168924702fd8 (diff)
OGL/ProgramShaderCache: Use std::string_view where applicable
Diffstat (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.h')
-rw-r--r--Source/Core/VideoBackends/OGL/ProgramShaderCache.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
index bc93445c55..72ec79b5ac 100644
--- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
+++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
@@ -7,7 +7,7 @@
#include <atomic>
#include <memory>
#include <mutex>
-#include <tuple>
+#include <string_view>
#include <unordered_map>
#include "Common/GL/GLUtil.h"
@@ -75,11 +75,11 @@ public:
static void InvalidateVertexFormatIfBound(GLuint vao);
static void InvalidateLastProgram();
- static bool CompileComputeShader(SHADER& shader, const std::string& code);
- static GLuint CompileSingleShader(GLenum type, const std::string& code);
- static bool CheckShaderCompileResult(GLuint id, GLenum type, const std::string& code);
- static bool CheckProgramLinkResult(GLuint id, const std::string* vcode, const std::string* pcode,
- const std::string* gcode);
+ static bool CompileComputeShader(SHADER& shader, std::string_view code);
+ static GLuint CompileSingleShader(GLenum type, std::string_view code);
+ static bool CheckShaderCompileResult(GLuint id, GLenum type, std::string_view code);
+ static bool CheckProgramLinkResult(GLuint id, std::string_view vcode, std::string_view pcode,
+ std::string_view gcode);
static StreamBuffer* GetUniformBuffer();
static u32 GetUniformBufferAlignment();
static void UploadConstants();