summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-07-09 04:20:43 +0200
committerGitHub <noreply@github.com>2023-07-09 04:20:43 +0200
commit7bb04ff1dc7c528c794694edcc9802667345a6e3 (patch)
tree0b77ca24370d95f7189def33f457c72d2f8eb0b2 /Source/Core/VideoCommon/GraphicsModSystem
parent1e7268c04b0c0be31ba2f2993695692208a102cb (diff)
parent0539bb4a3ea4afed58c2a43a98c51baea760815d (diff)
Merge pull request #12022 from iwubcode/texture_create_gmod_impl
VideoCommon: call into graphics mods create texture callback
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
-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