Merge pull request #8576 from lioncash/texture-cvt-shader-fmt
VideoCommon/TextureConversionShader: Convert over to using ShaderCode
This commit is contained in:
commit
42c03c4dad
|
@ -1178,7 +1178,7 @@ const AbstractPipeline* ShaderCache::GetEFBCopyToRAMPipeline(const EFBCopyParams
|
||||||
if (iter != m_efb_copy_to_ram_pipelines.end())
|
if (iter != m_efb_copy_to_ram_pipelines.end())
|
||||||
return iter->second.get();
|
return iter->second.get();
|
||||||
|
|
||||||
const char* const shader_code =
|
const std::string shader_code =
|
||||||
TextureConversionShaderTiled::GenerateEncodingShader(uid, m_api_type);
|
TextureConversionShaderTiled::GenerateEncodingShader(uid, m_api_type);
|
||||||
const auto shader = g_renderer->CreateShaderFromSource(ShaderStage::Pixel, shader_code);
|
const auto shader = g_renderer->CreateShaderFromSource(ShaderStage::Pixel, shader_code);
|
||||||
if (!shader)
|
if (!shader)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -20,7 +20,7 @@ namespace TextureConversionShaderTiled
|
||||||
{
|
{
|
||||||
u16 GetEncodedSampleCount(EFBCopyFormat format);
|
u16 GetEncodedSampleCount(EFBCopyFormat format);
|
||||||
|
|
||||||
const char* GenerateEncodingShader(const EFBCopyParams& params, APIType ApiType);
|
std::string GenerateEncodingShader(const EFBCopyParams& params, APIType api_type);
|
||||||
|
|
||||||
// Information required to compile and dispatch a texture decoding shader.
|
// Information required to compile and dispatch a texture decoding shader.
|
||||||
struct DecodingShaderInfo
|
struct DecodingShaderInfo
|
||||||
|
|
Loading…
Reference in New Issue