aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/framebuffer_config.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-11-11 18:13:35 -0800
committerbunnei <bunneidev@gmail.com>2022-03-24 18:13:32 -0700
commitd456b9d554da32e4353ba6e837e1cb8690782a9d (patch)
tree75029812af06aabfcc83d29098db4ff85e929ea5 /src/video_core/framebuffer_config.h
parent5a8b9a97062d6dbd64f4401036a3a4445ed4fe1b (diff)
hle: nvflinger: Move PixelFormat to its own header.
Diffstat (limited to 'src/video_core/framebuffer_config.h')
-rw-r--r--src/video_core/framebuffer_config.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h
index b1d455e30..5921d830e 100644
--- a/src/video_core/framebuffer_config.h
+++ b/src/video_core/framebuffer_config.h
@@ -6,18 +6,14 @@
#include "common/common_types.h"
#include "common/math_util.h"
+#include "core/hle/service/nvflinger/pixel_format.h"
namespace Tegra {
+
/**
* Struct describing framebuffer configuration
*/
struct FramebufferConfig {
- enum class PixelFormat : u32 {
- A8B8G8R8_UNORM = 1,
- RGB565_UNORM = 4,
- B8G8R8A8_UNORM = 5,
- };
-
enum class TransformFlags : u32 {
/// No transform flags are set
Unset = 0x00,
@@ -38,9 +34,9 @@ struct FramebufferConfig {
u32 width{};
u32 height{};
u32 stride{};
- PixelFormat pixel_format{};
TransformFlags transform_flags{};
+ android::PixelFormat pixel_format{};
Common::Rectangle<int> crop_rect;
};