diff options
| author | 2019-09-03 22:36:32 -0400 | |
|---|---|---|
| committer | 2019-09-03 22:36:32 -0400 | |
| commit | 19af91434e7aea4232d12bf66ce86d33c134d1ba (patch) | |
| tree | 034bed59283a16c7e0939d2959179c8835f51442 /src/video_core/gpu.h | |
| parent | Merge pull request #2812 from ReinUsesLisp/f2i-selector (diff) | |
| parent | renderer_opengl: Implement RGB565 framebuffer format (diff) | |
| download | yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.gz yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.xz yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.zip | |
Merge pull request #2793 from ReinUsesLisp/bgr565
renderer_opengl: Implement RGB565 framebuffer format
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 544340ecd..78bc0601a 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -95,14 +95,10 @@ class DebugContext; | |||
| 95 | struct FramebufferConfig { | 95 | struct FramebufferConfig { |
| 96 | enum class PixelFormat : u32 { | 96 | enum class PixelFormat : u32 { |
| 97 | ABGR8 = 1, | 97 | ABGR8 = 1, |
| 98 | RGB565 = 4, | ||
| 98 | BGRA8 = 5, | 99 | BGRA8 = 5, |
| 99 | }; | 100 | }; |
| 100 | 101 | ||
| 101 | /** | ||
| 102 | * Returns the number of bytes per pixel. | ||
| 103 | */ | ||
| 104 | static u32 BytesPerPixel(PixelFormat format); | ||
| 105 | |||
| 106 | VAddr address; | 102 | VAddr address; |
| 107 | u32 offset; | 103 | u32 offset; |
| 108 | u32 width; | 104 | u32 width; |
| @@ -253,8 +249,7 @@ public: | |||
| 253 | virtual void PushGPUEntries(Tegra::CommandList&& entries) = 0; | 249 | virtual void PushGPUEntries(Tegra::CommandList&& entries) = 0; |
| 254 | 250 | ||
| 255 | /// Swap buffers (render frame) | 251 | /// Swap buffers (render frame) |
| 256 | virtual void SwapBuffers( | 252 | virtual void SwapBuffers(const Tegra::FramebufferConfig* framebuffer) = 0; |
| 257 | std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) = 0; | ||
| 258 | 253 | ||
| 259 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory | 254 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory |
| 260 | virtual void FlushRegion(CacheAddr addr, u64 size) = 0; | 255 | virtual void FlushRegion(CacheAddr addr, u64 size) = 0; |