| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <memory> |
| 7 |
#include <string> |
| 8 |
#include <string_view> |
| 9 |
|
| 10 |
#include <picojson.h> |
| 11 |
|
| 12 |
#include "VideoCommon/Assets/CustomAssetLibrary.h" |
| 13 |
#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModAction.h" |
| 14 |
|
| 15 |
class CustomPipelineAction final : public GraphicsModAction |
| 16 |
{ |
| 17 |
public: |
| 18 |
static constexpr std::string_view factory_name = "custom_pipeline"; |
| 19 |
static std::unique_ptr<CustomPipelineAction> |
| 20 |
Create(const picojson::value& json_data, |
| 21 |
std::shared_ptr<VideoCommon::CustomAssetLibrary> library); |
| 22 |
static std::unique_ptr<CustomPipelineAction> |
| 23 |
Create(std::shared_ptr<VideoCommon::CustomAssetLibrary> library); |
| 24 |
explicit CustomPipelineAction(std::shared_ptr<VideoCommon::CustomAssetLibrary> library); |
| 25 |
CustomPipelineAction(std::shared_ptr<VideoCommon::CustomAssetLibrary> library, |
| 26 |
std::string material_asset); |
| 27 |
void OnDrawStarted(GraphicsModActionData::DrawStarted*) override; |
| 28 |
void AfterEFB(GraphicsModActionData::PostEFB*) override; |
| 29 |
|
| 30 |
private: |
| 31 |
std::shared_ptr<VideoCommon::CustomAssetLibrary> m_library; |
| 32 |
std::string m_material_asset; |
| 33 |
}; |