diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-12-09 14:00:08 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-01-01 11:38:56 -0800 |
| commit | afd02b79a511f88ae8c7d0be0c49f529967cb243 (patch) | |
| tree | 1781e71210824a223404131a80f7acb674773166 /Source/Core/VideoCommon/FramebufferManager.h | |
| parent | 85d2ea0dd28444effed13a622360253f2d74bcba (diff) | |
VideoCommon: Add names for textures and shaders
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.h')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManager.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManager.h b/Source/Core/VideoCommon/FramebufferManager.h index e35f9ec1da..dda850a1f8 100644 --- a/Source/Core/VideoCommon/FramebufferManager.h +++ b/Source/Core/VideoCommon/FramebufferManager.h @@ -8,6 +8,8 @@ #include <optional> #include "Common/CommonTypes.h" +#include "Common/EnumFormatter.h" + #include "VideoCommon/AbstractFramebuffer.h" #include "VideoCommon/AbstractPipeline.h" #include "VideoCommon/AbstractStagingTexture.h" @@ -28,6 +30,13 @@ enum class EFBReinterpretType RGB565ToRGBA6 = 5 }; constexpr u32 NUM_EFB_REINTERPRET_TYPES = 6; +template <> +struct fmt::formatter<EFBReinterpretType> : EnumFormatter<EFBReinterpretType::RGB565ToRGBA6> +{ + static constexpr array_type names = {"RGB8 to RGB565", "RGB8 to RGBA6", "RGBA6 to RGB8", + "RGB6 to RGB565", "RGB565 to RGB8", "RGB565 to RGBA6"}; + formatter() : EnumFormatter(names) {} +}; inline bool AddressRangesOverlap(u32 aLower, u32 aUpper, u32 bLower, u32 bUpper) { |
