mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
VideoCommon: Add names for textures and shaders
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user