diff options
| author | Tony Wasserka <neobrainx@gmail.com> | 2014-05-20 00:36:16 +0200 |
|---|---|---|
| committer | Tony Wasserka <neobrainx@gmail.com> | 2014-05-20 00:36:16 +0200 |
| commit | ada6434b8ef8794bb6c7476726fb014299bbdd06 (patch) | |
| tree | ef3cf524b61e4739375d24aca79b896636720776 /Source/Core/VideoBackends/OGL/FramebufferManager.h | |
| parent | 3161cdfa8eff2ec0ba4bbab6733d3702169a6287 (diff) | |
| parent | c1b6fcc00baaf877401b9f70a24520c14d8c124b (diff) | |
Merge pull request #331 from degasus/kill_csaa
OpenGL: Use a sample-able texture as EFB instead of renderbuffer.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/FramebufferManager.h')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/FramebufferManager.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/OGL/FramebufferManager.h b/Source/Core/VideoBackends/OGL/FramebufferManager.h index db63955cc4..2025fc5b6b 100644 --- a/Source/Core/VideoBackends/OGL/FramebufferManager.h +++ b/Source/Core/VideoBackends/OGL/FramebufferManager.h @@ -60,7 +60,7 @@ struct XFBSource : public XFBSourceBase class FramebufferManager : public FramebufferManagerBase { public: - FramebufferManager(int targetWidth, int targetHeight, int msaaSamples, int msaaCoverageSamples); + FramebufferManager(int targetWidth, int targetHeight, int msaaSamples); ~FramebufferManager(); // To get the EFB in texture form, these functions may have to transfer @@ -99,19 +99,20 @@ private: static int m_targetWidth; static int m_targetHeight; static int m_msaaSamples; - static int m_msaaCoverageSamples; + + static GLenum m_textureType; static GLuint m_efbFramebuffer; - static GLuint m_efbColor; // Renderbuffer in MSAA mode; Texture otherwise - static GLuint m_efbDepth; // Renderbuffer in MSAA mode; Texture otherwise + static GLuint m_xfbFramebuffer; + static GLuint m_efbColor; + static GLuint m_efbDepth; + static GLuint m_efbColorSwap;// will be hot swapped with m_efbColor when reinterpreting EFB pixel formats - // Only used in MSAA mode and to convert pixel format - static GLuint m_resolvedFramebuffer; // will be hot swapped with m_efbColor on non-msaa pixel format change + // Only used in MSAA mode, TODO: try to avoid them + static GLuint m_resolvedFramebuffer; static GLuint m_resolvedColorTexture; static GLuint m_resolvedDepthTexture; - static GLuint m_xfbFramebuffer; // Only used in MSAA mode - // For pixel format draw static SHADER m_pixel_format_shaders[2]; }; |
