From 8e253518e6f8b918dffe7361faf897c16eabc6d3 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 15 Mar 2025 17:29:13 -0500 Subject: VideoCommon: move to a 'process_fragment()' function to simplify custom shaders and provide a direct override of the tev stage logic --- .../VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp') diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp index cff6e7b6a6..56f8ec1b3b 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp @@ -346,8 +346,8 @@ std::unique_ptr CustomShaderCache::CompilePixelShader(const PixelShaderUid& uid, const CustomShaderInstance& custom_shaders) const { - const ShaderCode source_code = GeneratePixelShaderCode( - m_api_type, m_host_config, uid.GetUidData(), custom_shaders.pixel_contents); + const ShaderCode source_code = + GeneratePixelShaderCode(m_api_type, m_host_config, uid.GetUidData(), {}); return g_gfx->CreateShaderFromSource(ShaderStage::Pixel, source_code.GetBuffer(), "Custom Pixel Shader"); } @@ -356,8 +356,7 @@ std::unique_ptr CustomShaderCache::CompilePixelShader(const UberShader::PixelShaderUid& uid, const CustomShaderInstance& custom_shaders) const { - const ShaderCode source_code = - GenPixelShader(m_api_type, m_host_config, uid.GetUidData(), custom_shaders.pixel_contents); + const ShaderCode source_code = GenPixelShader(m_api_type, m_host_config, uid.GetUidData()); return g_gfx->CreateShaderFromSource(ShaderStage::Pixel, source_code.GetBuffer(), "Custom Uber Pixel Shader"); } -- cgit v1.2.3