summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2025-05-01 22:14:00 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2025-06-06 19:20:25 -0500
commitd7de49ccf68aae6b3c12e35122435f30ea2f8533 (patch)
tree1922b717ea816776d76b12fdbe0b47ba22df5a2b /Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp
parent5ec5db92400d25b35373b3e814976d3388dedc0a (diff)
Core / VideoCommon: Remove original custom asset loader
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp
index 92c048860f..7366ad7ff7 100644
--- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp
+++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/CustomPipelineAction.cpp
@@ -16,7 +16,6 @@
#include "Core/System.h"
#include "VideoCommon/AbstractGfx.h"
-#include "VideoCommon/Assets/CustomAssetLoader.h"
#include "VideoCommon/Assets/DirectFilesystemAssetLibrary.h"
#include "VideoCommon/ShaderGenCommon.h"
#include "VideoCommon/TextureCacheBase.h"
@@ -98,28 +97,6 @@ CustomPipelineAction::CustomPipelineAction(
m_pipeline_passes.resize(m_passes_config.size());
}
-void CustomPipelineAction::OnDrawStarted(GraphicsModActionData::DrawStarted* draw_started)
+void CustomPipelineAction::OnDrawStarted(GraphicsModActionData::DrawStarted*)
{
- if (!draw_started) [[unlikely]]
- return;
-
- if (!draw_started->custom_pixel_shader) [[unlikely]]
- return;
-
- if (m_pipeline_passes.empty()) [[unlikely]]
- return;
-
- auto& loader = Core::System::GetInstance().GetCustomAssetLoader();
-
- // For now assume a single pass
- const auto& pass_config = m_passes_config[0];
- auto& pass = m_pipeline_passes[0];
-
- pass.UpdatePixelData(loader, m_library, draw_started->texture_units,
- pass_config.m_pixel_material_asset);
- CustomPixelShader custom_pixel_shader;
- custom_pixel_shader.custom_shader = pass.m_last_generated_shader_code.GetBuffer();
- custom_pixel_shader.material_uniform_block = pass.m_last_generated_material_code.GetBuffer();
- *draw_started->custom_pixel_shader = custom_pixel_shader;
- *draw_started->material_uniform_buffer = pass.m_material_data;
}