diff options
author | bunnei <bunneidev@gmail.com> | 2019-09-04 04:36:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 04:36:32 +0200 |
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 yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.gz yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.bz2 yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.lz yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.xz yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.zst yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.zip |
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; struct FramebufferConfig { enum class PixelFormat : u32 { ABGR8 = 1, + RGB565 = 4, BGRA8 = 5, }; - /** - * Returns the number of bytes per pixel. - */ - static u32 BytesPerPixel(PixelFormat format); - VAddr address; u32 offset; u32 width; @@ -253,8 +249,7 @@ public: virtual void PushGPUEntries(Tegra::CommandList&& entries) = 0; /// Swap buffers (render frame) - virtual void SwapBuffers( - std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) = 0; + virtual void SwapBuffers(const Tegra::FramebufferConfig* framebuffer) = 0; /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory virtual void FlushRegion(CacheAddr addr, u64 size) = 0; |