Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

maxwell: Add RenderTargetFormat enum.

bunneibf282aa01fe1
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 8e2d888e75..3c49cd27f5 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -11,6 +11,7 @@
#include "common/bit_field.h"
#include "common/common_funcs.h"
#include "common/common_types.h"
+#include "video_core/gpu.h"
#include "video_core/memory_manager.h"
#include "video_core/textures/texture.h"
@@ -167,9 +168,9 @@ public:
struct {
u32 address_high;
u32 address_low;
- u32 horiz;
- u32 vert;
- u32 format;
+ u32 width;
+ u32 height;
+ Tegra::RenderTargetFormat format;
u32 block_dimensions;
u32 array_mode;
u32 layer_stride;
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 8183b12e91..ab24504a63 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -13,7 +13,7 @@
namespace Tegra {
-enum class RenderTargetFormat {
+enum class RenderTargetFormat : u32 {
RGBA8_UNORM = 0xD5,
};