VideoCommon: remove 'GetLastAssetWriteTime' and switch to a steady_clock for asset times

This commit is contained in:
iwubcode
2025-05-04 17:50:14 -05:00
parent 15f125ebee
commit bafe78203d
5 changed files with 13 additions and 67 deletions

View File

@ -21,15 +21,12 @@ struct TextureData;
class CustomAssetLibrary
{
public:
using TimeType = std::chrono::system_clock::time_point;
// The AssetID is a unique identifier for a particular asset
using AssetID = std::string;
struct LoadInfo
{
std::size_t m_bytes_loaded = 0;
TimeType m_load_time = {};
};
virtual ~CustomAssetLibrary() = default;
@ -37,9 +34,6 @@ public:
// Loads a texture, if there are no levels, bytes loaded will be empty
virtual LoadInfo LoadTexture(const AssetID& asset_id, TextureData* data) = 0;
// Gets the last write time for a given asset id
virtual TimeType GetLastAssetWriteTime(const AssetID& asset_id) const = 0;
// Loads a texture as a game texture, providing additional checks like confirming
// each mip level size is correct and that the format is consistent across the data
LoadInfo LoadGameTexture(const AssetID& asset_id, TextureData* data);