Misc: Pass string_view by value

This commit is contained in:
Stenzek
2024-05-05 20:21:54 +10:00
parent e4d940a476
commit ca3cfbaa99
111 changed files with 543 additions and 542 deletions

View File

@@ -16,7 +16,7 @@ class OpenGLShader final : public GPUShader
public:
~OpenGLShader() override;
void SetDebugName(const std::string_view& name) override;
void SetDebugName(std::string_view name) override;
bool Compile();
@@ -103,7 +103,7 @@ public:
ALWAYS_INLINE const BlendState& GetBlendState() const { return m_blend_state; }
ALWAYS_INLINE GLenum GetTopology() const { return m_topology; }
void SetDebugName(const std::string_view& name) override;
void SetDebugName(std::string_view name) override;
private:
OpenGLPipeline(const ProgramCacheKey& key, GLuint program, VertexArrayCache::const_iterator vao,