mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
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.
This commit is contained in:
parent
ea9b96370d
commit
aa77dff3a2
3 changed files with 509 additions and 510 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue