summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-23 15:21:48 -0400
committerGitHub <noreply@github.com>2025-03-23 15:21:48 -0400
commitcef4d8fb761aeb38137d29e8348330c7df03e54f (patch)
tree204f1f85deca0fd4199b9cfd81dd5f9296434d73 /Source/Core/VideoCommon/GraphicsModSystem
parentf50d2ee86c5e7530887e8e78b6611c01ccb7bbc8 (diff)
parent8e253518e6f8b918dffe7361faf897c16eabc6d3 (diff)
Merge pull request #13432 from iwubcode/custom_pixel_fragment
VideoCommon: move to a 'process_fragment()' function to simplify custom shaders
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp7
1 files changed, 3 insertions, 4 deletions
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<AbstractShader>
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<AbstractShader>
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");
}