mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
VideoCommon: instead of using 'CustomTextureData' directly, use 'TextureData' for texture assets, this allows us to provide additional metadata for textures. Such as a sampler or type information (to distinguish cube maps)
This commit is contained in:
parent
1b7a590b4b
commit
0e8f8ea930
13 changed files with 138 additions and 93 deletions
|
@ -77,13 +77,6 @@ void CustomAssetLoader ::Shutdown()
|
|||
m_total_bytes_loaded = 0;
|
||||
}
|
||||
|
||||
std::shared_ptr<RawTextureAsset>
|
||||
CustomAssetLoader::LoadTexture(const CustomAssetLibrary::AssetID& asset_id,
|
||||
std::shared_ptr<CustomAssetLibrary> library)
|
||||
{
|
||||
return LoadOrCreateAsset<RawTextureAsset>(asset_id, m_textures, std::move(library));
|
||||
}
|
||||
|
||||
std::shared_ptr<GameTextureAsset>
|
||||
CustomAssetLoader::LoadGameTexture(const CustomAssetLibrary::AssetID& asset_id,
|
||||
std::shared_ptr<CustomAssetLibrary> library)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue