mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
OGL/ProgramShaderCache: Use std::string_view where applicable
This commit is contained in:
parent
3c8f6bca5a
commit
fb384dec55
2 changed files with 38 additions and 29 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue