| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <filesystem> |
| 7 |
|
| 8 |
#include "VideoCommon/Assets/CustomAssetLibrary.h" |
| 9 |
#include "VideoCommon/Assets/TextureAsset.h" |
| 10 |
#include "VideoCommon/TextureConfig.h" |
| 11 |
|
| 12 |
namespace VideoCommon |
| 13 |
{ |
| 14 |
bool LoadTextureDataFromFile(const CustomAssetLibrary::AssetID& asset_id, |
| 15 |
const std::filesystem::path& asset_path, AbstractTextureType type, |
| 16 |
CustomTextureData* data); |
| 17 |
|
| 18 |
bool ValidateTextureData(const CustomAssetLibrary::AssetID& asset_id, const CustomTextureData& data, |
| 19 |
u32 native_width, u32 native_height); |
| 20 |
|
| 21 |
bool PurgeInvalidMipsFromTextureData(const CustomAssetLibrary::AssetID& asset_id, |
| 22 |
CustomTextureData* data); |
| 23 |
} |