2023-11-16 07:23:59 +00:00
|
|
|
// Copyright 2023 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2024-03-21 14:09:35 +00:00
|
|
|
#include <unordered_set>
|
2023-11-16 07:23:59 +00:00
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
class AbstractTexture;
|
|
|
|
|
|
|
|
namespace VideoCommon::TextureUtils
|
|
|
|
{
|
2024-03-21 14:09:35 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2023-11-16 07:23:59 +00:00
|
|
|
void DumpTexture(const ::AbstractTexture& texture, std::string basename, u32 level,
|
|
|
|
bool is_arbitrary);
|
2024-03-21 14:09:35 +00:00
|
|
|
|
|
|
|
} // namespace VideoCommon::TextureUtils
|