mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoCommon: call into graphics mods create texture callback, providing additional asset dependencies that trigger the texture to be reloaded
This commit is contained in:
parent
6d7bf60071
commit
0539bb4a3e
3 changed files with 54 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue