VideoCommon: call into graphics mods create texture callback, providing additional asset dependencies that trigger the texture to be reloaded

This commit is contained in:
iwubcode
2023-07-02 13:35:05 -05:00
parent 6d7bf60071
commit 0539bb4a3e
3 changed files with 54 additions and 0 deletions

View File

@ -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