diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-01-23 13:06:55 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-01-23 14:19:36 -0500 |
| commit | aa77dff3a22203c8b88730475ed8a8a7625da853 (patch) | |
| tree | 0e4a65e391093867861f50da614e2fca9e15e7a8 /Source/Core/VideoCommon/ShaderCache.cpp | |
| parent | ea9b96370df89b446ed25fca5452f0eef33682a9 (diff) | |
VideoCommon/TextureConversionShader: Convert over to using ShaderCode
Migrates the shader generator off the use of a global array, eliminating
the use of some global state. This also allows us to move the shader
generation over to using fmt in a subsequent change.
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp index 8c184c7256..53866a3bfa 100644 --- a/Source/Core/VideoCommon/ShaderCache.cpp +++ b/Source/Core/VideoCommon/ShaderCache.cpp @@ -1178,7 +1178,7 @@ const AbstractPipeline* ShaderCache::GetEFBCopyToRAMPipeline(const EFBCopyParams if (iter != m_efb_copy_to_ram_pipelines.end()) return iter->second.get(); - const char* const shader_code = + const std::string shader_code = TextureConversionShaderTiled::GenerateEncodingShader(uid, m_api_type); const auto shader = g_renderer->CreateShaderFromSource(ShaderStage::Pixel, shader_code); if (!shader) |
