renderer_opengl: Support rendering Switch framebuffer.

This commit is contained in:
bunnei 2018-01-10 22:43:17 -05:00
parent 236d463c52
commit ee4691297f
3 changed files with 84 additions and 139 deletions

View file

@ -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