#pragma once #include namespace fs = std::filesystem; class TextureCooker { public: // Returns true if rebuilt. Throws when the image can't be decoded. bool CookFileIfNeeded(const fs::path& source, const fs::path& output) const; static fs::path MakeOutputPath(const fs::path& dstLikeSrc); private: static bool NeedsRebuild(const fs::path& source, const fs::path& output); };