diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-11-16 01:23:59 -0600 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-11-26 16:35:03 -0600 |
| commit | fb86c6342e02c7cdc297ecaa7f2eb365c846e741 (patch) | |
| tree | 92500c0fea377fbc8fb1a7f436b7b209927fa2ab /Source/Core/VideoCommon/TextureUtils.h | |
| parent | 1a2d0882d04446550687424e36a81a2c16a6a00d (diff) | |
VideoCommon: move texture dump function out of texture cache to its own free function so it can be used elsewhere. Doing this change may also slightly improve performance of this operation
Diffstat (limited to 'Source/Core/VideoCommon/TextureUtils.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureUtils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureUtils.h b/Source/Core/VideoCommon/TextureUtils.h new file mode 100644 index 0000000000..1cfe6c20c1 --- /dev/null +++ b/Source/Core/VideoCommon/TextureUtils.h @@ -0,0 +1,16 @@ +// Copyright 2023 Dolphin Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include <string> + +#include "Common/CommonTypes.h" + +class AbstractTexture; + +namespace VideoCommon::TextureUtils +{ +void DumpTexture(const ::AbstractTexture& texture, std::string basename, u32 level, + bool is_arbitrary); +} |
