diff options
| author | 2018-03-22 21:04:30 -0400 | |
|---|---|---|
| committer | 2018-03-22 21:04:30 -0400 | |
| commit | bfe45774f16e958bf34ed0d58a1d31e2325df47d (patch) | |
| tree | 44504233efc7690eca7149eccdcb6a0074f694e1 /src/video_core/gpu.h | |
| parent | gl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT. (diff) | |
| download | yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.gz yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.xz yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.zip | |
video_core: Move FramebufferInfo to FramebufferConfig in GPU.
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index f9a725dee..f3c5e366a 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -12,6 +12,35 @@ | |||
| 12 | 12 | ||
| 13 | namespace Tegra { | 13 | namespace Tegra { |
| 14 | 14 | ||
| 15 | /** | ||
| 16 | * Struct describing framebuffer configuration | ||
| 17 | */ | ||
| 18 | struct FramebufferConfig { | ||
| 19 | enum class PixelFormat : u32 { | ||
| 20 | ABGR8 = 1, | ||
| 21 | }; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * Returns the number of bytes per pixel. | ||
| 25 | */ | ||
| 26 | static u32 BytesPerPixel(PixelFormat format) { | ||
| 27 | switch (format) { | ||
| 28 | case PixelFormat::ABGR8: | ||
| 29 | return 4; | ||
| 30 | } | ||
| 31 | |||
| 32 | UNREACHABLE(); | ||
| 33 | } | ||
| 34 | |||
| 35 | VAddr address; | ||
| 36 | u32 offset; | ||
| 37 | u32 width; | ||
| 38 | u32 height; | ||
| 39 | u32 stride; | ||
| 40 | PixelFormat pixel_format; | ||
| 41 | bool flip_vertical; | ||
| 42 | }; | ||
| 43 | |||
| 15 | namespace Engines { | 44 | namespace Engines { |
| 16 | class Fermi2D; | 45 | class Fermi2D; |
| 17 | class Maxwell3D; | 46 | class Maxwell3D; |