summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer_cache.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-02-09 00:31:35 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2019-02-28 02:58:37 +0100
commitd583fc1e97a78dc6a893c332b3537218ddae194a (patch)
treef133cd2db14a65c5864cfa0b13f1f3d376f935f9 /src/video_core/renderer_opengl/gl_rasterizer_cache.h
parentrasterizer_cache: Expose FlushObject to Child classes and allow redefining of Register and Unregister (diff)
downloadyuzu-d583fc1e97a78dc6a893c332b3537218ddae194a.tar
yuzu-d583fc1e97a78dc6a893c332b3537218ddae194a.tar.gz
yuzu-d583fc1e97a78dc6a893c332b3537218ddae194a.tar.bz2
yuzu-d583fc1e97a78dc6a893c332b3537218ddae194a.tar.lz
yuzu-d583fc1e97a78dc6a893c332b3537218ddae194a.tar.xz
yuzu-d583fc1e97a78dc6a893c332b3537218ddae194a.tar.zst
yuzu-d583fc1e97a78dc6a893c332b3537218ddae194a.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index 838554c35..cc27fefb5 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -34,6 +34,7 @@ using SurfaceTarget = VideoCore::Surface::SurfaceTarget;
using SurfaceType = VideoCore::Surface::SurfaceType;
using PixelFormat = VideoCore::Surface::PixelFormat;
using ComponentType = VideoCore::Surface::ComponentType;
+using Maxwell = Tegra::Engines::Maxwell3D::Regs;
struct SurfaceParams {
enum class SurfaceClass {
@@ -449,6 +450,9 @@ private:
/// Tries to get a reserved surface for the specified parameters
Surface TryGetReservedSurface(const SurfaceParams& params);
+ /// When a render target is changed, this method is called with the previous render target
+ void NotifyFrameBufferChange(Surface triggering_surface);
+
/// Performs a slow but accurate surface copy, flushing to RAM and reinterpreting the data
void AccurateCopySurface(const Surface& src_surface, const Surface& dst_surface);
void FastLayeredCopySurface(const Surface& src_surface, const Surface& dst_surface);
@@ -469,7 +473,8 @@ private:
/// using the new format.
OGLBuffer copy_pbo;
- std::array<Surface, Tegra::Engines::Maxwell3D::Regs::NumRenderTargets> last_color_buffers;
+ std::array<Surface, Maxwell::NumRenderTargets> last_color_buffers;
+ std::array<Surface, Maxwell::NumRenderTargets> current_color_buffers;
Surface last_depth_buffer;
};