This commit is contained in:
Nayla Hanegan 2024-05-12 02:17:59 -04:00
commit 98c174edc4
520 changed files with 74815 additions and 58942 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include <string>
#include <unordered_set>
#include "Common/CommonTypes.h"
@ -11,6 +12,18 @@ class AbstractTexture;
namespace VideoCommon::TextureUtils
{
class TextureDumper
{
public:
// Only dumps if texture did not already exist anywhere within the dump-textures path.
void DumpTexture(const ::AbstractTexture& texture, std::string basename, u32 level,
bool is_arbitrary);
private:
std::unordered_set<std::string> m_dumped_textures;
};
void DumpTexture(const ::AbstractTexture& texture, std::string basename, u32 level,
bool is_arbitrary);
}
} // namespace VideoCommon::TextureUtils