summaryrefslogtreecommitdiff
path: root/src/video_core/framebuffer_config.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-11-11 18:13:35 -0800
committerGravatar bunnei2022-03-24 18:13:32 -0700
commitd456b9d554da32e4353ba6e837e1cb8690782a9d (patch)
tree75029812af06aabfcc83d29098db4ff85e929ea5 /src/video_core/framebuffer_config.h
parenthle: nvflinger: Add implementation for GraphicBuffer class. (diff)
downloadyuzu-d456b9d554da32e4353ba6e837e1cb8690782a9d.tar.gz
yuzu-d456b9d554da32e4353ba6e837e1cb8690782a9d.tar.xz
yuzu-d456b9d554da32e4353ba6e837e1cb8690782a9d.zip
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 @@
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8#include "common/math_util.h" 8#include "common/math_util.h"
9#include "core/hle/service/nvflinger/pixel_format.h"
9 10
10namespace Tegra { 11namespace Tegra {
12
11/** 13/**
12 * Struct describing framebuffer configuration 14 * Struct describing framebuffer configuration
13 */ 15 */
14struct FramebufferConfig { 16struct FramebufferConfig {
15 enum class PixelFormat : u32 {
16 A8B8G8R8_UNORM = 1,
17 RGB565_UNORM = 4,
18 B8G8R8A8_UNORM = 5,
19 };
20
21 enum class TransformFlags : u32 { 17 enum class TransformFlags : u32 {
22 /// No transform flags are set 18 /// No transform flags are set
23 Unset = 0x00, 19 Unset = 0x00,
@@ -38,9 +34,9 @@ struct FramebufferConfig {
38 u32 width{}; 34 u32 width{};
39 u32 height{}; 35 u32 height{};
40 u32 stride{}; 36 u32 stride{};
41 PixelFormat pixel_format{};
42 37
43 TransformFlags transform_flags{}; 38 TransformFlags transform_flags{};
39 android::PixelFormat pixel_format{};
44 Common::Rectangle<int> crop_rect; 40 Common::Rectangle<int> crop_rect;
45}; 41};
46 42