summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem/Runtime
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-07-02 13:35:05 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2023-07-02 13:45:09 -0500
commit0539bb4a3ea4afed58c2a43a98c51baea760815d (patch)
treef0b01fcaa944b40e467411fc5d0ed5fe5c22d065 /Source/Core/VideoCommon/GraphicsModSystem/Runtime
parent6d7bf60071446e3ed0fc8fa77e1149ccb73d85b9 (diff)
VideoCommon: call into graphics mods create texture callback, providing additional asset dependencies that trigger the texture to be reloaded
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h
index 48de0e5368..2b1408dcc9 100644
--- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h
+++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h
@@ -4,9 +4,11 @@
#pragma once
#include <string_view>
+#include <vector>
#include "Common/CommonTypes.h"
#include "Common/Matrix.h"
+#include "VideoCommon/Assets/TextureAsset.h"
namespace GraphicsModActionData
{
@@ -34,5 +36,12 @@ struct TextureLoad
};
struct TextureCreate
{
+ std::string_view texture_name;
+ u32 texture_width;
+ u32 texture_height;
+ std::vector<VideoCommon::CachedAsset<VideoCommon::GameTextureAsset>>* custom_textures;
+
+ // Dependencies needed to reload the texture and trigger this create again
+ std::vector<VideoCommon::CachedAsset<VideoCommon::CustomAsset>>* additional_dependencies;
};
} // namespace GraphicsModActionData