diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-11 04:43:17 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-11 05:28:59 +0100 |
commit | ee4691297f2f030cb112b2467db4ada142e2ba80 (patch) | |
tree | 55c36da6343dd4e70641bc11cf4340013406b81c /src/video_core/renderer_base.h | |
parent | render_base: Add a struct describing framebuffer metadata. (diff) | |
download | yuzu-ee4691297f2f030cb112b2467db4ada142e2ba80.tar yuzu-ee4691297f2f030cb112b2467db4ada142e2ba80.tar.gz yuzu-ee4691297f2f030cb112b2467db4ada142e2ba80.tar.bz2 yuzu-ee4691297f2f030cb112b2467db4ada142e2ba80.tar.lz yuzu-ee4691297f2f030cb112b2467db4ada142e2ba80.tar.xz yuzu-ee4691297f2f030cb112b2467db4ada142e2ba80.tar.zst yuzu-ee4691297f2f030cb112b2467db4ada142e2ba80.zip |
Diffstat (limited to 'src/video_core/renderer_base.h')
-rw-r--r-- | src/video_core/renderer_base.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h index f18917da3..28015aba9 100644 --- a/src/video_core/renderer_base.h +++ b/src/video_core/renderer_base.h @@ -15,7 +15,10 @@ public: /// Used to reference a framebuffer enum kFramebuffer { kFramebuffer_VirtualXFB = 0, kFramebuffer_EFB, kFramebuffer_Texture }; - /// Struct describing framebuffer metadata + /** + * Struct describing framebuffer metadata + * TODO(bunnei): This struct belongs in the GPU code, but we don't have a good place for it yet. + */ struct FramebufferInfo { enum class PixelFormat : u32 { ABGR8 = 1, @@ -44,7 +47,7 @@ public: virtual ~RendererBase() {} /// Swap buffers (render frame) - virtual void SwapBuffers() = 0; + virtual void SwapBuffers(const FramebufferInfo& framebuffer_info) = 0; /** * Set the emulator window to use for renderer |