mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 23:55:52 +00:00
custom pipeline action
This commit is contained in:
parent
4c115122c2
commit
a0c9fbc12f
1 changed files with 4 additions and 5 deletions
|
@ -15,11 +15,10 @@
|
|||
#include "Core/System.h"
|
||||
|
||||
#include "VideoCommon/AbstractGfx.h"
|
||||
#include "VideoCommon/Assets/DirectFilesystemAssetLibrary.h"
|
||||
#include "VideoCommon/GraphicsModEditor/Controls/AssetDisplay.h"
|
||||
#include "VideoCommon/GraphicsModEditor/EditorEvents.h"
|
||||
#include "VideoCommon/GraphicsModEditor/EditorMain.h"
|
||||
#include "VideoCommon/GraphicsModSystem/Runtime/CustomResourceManager.h"
|
||||
#include "VideoCommon/Resources/CustomResourceManager.h"
|
||||
|
||||
std::unique_ptr<CustomPipelineAction>
|
||||
CustomPipelineAction::Create(std::shared_ptr<VideoCommon::CustomAssetLibrary> library)
|
||||
|
@ -55,7 +54,7 @@ CustomPipelineAction::CustomPipelineAction(std::shared_ptr<VideoCommon::CustomAs
|
|||
{
|
||||
}
|
||||
|
||||
void CustomPipelineAction::OnDrawStarted(GraphicsModActionData::DrawStarted*)
|
||||
void CustomPipelineAction::OnDrawStarted(GraphicsModActionData::DrawStarted* draw_started)
|
||||
{
|
||||
if (!draw_started) [[unlikely]]
|
||||
return;
|
||||
|
@ -67,8 +66,8 @@ void CustomPipelineAction::OnDrawStarted(GraphicsModActionData::DrawStarted*)
|
|||
return;
|
||||
|
||||
auto& resource_manager = Core::System::GetInstance().GetCustomResourceManager();
|
||||
*draw_started->material = resource_manager.GetMaterialFromAsset(m_material_asset, m_library,
|
||||
draw_started->draw_data_view);
|
||||
*draw_started->material = resource_manager.GetMaterialFromAsset(
|
||||
m_material_asset, *draw_started->draw_data_view.uid, m_library);
|
||||
}
|
||||
|
||||
void CustomPipelineAction::DrawImGui()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue