summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/utils.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-24 23:47:59 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-21 02:36:11 +0200
commitfa59a7b4d8403c0d277b189c880469cf8113e386 (patch)
tree84f23efbbc588dffd1ab4f38c315cfc951b57c7d /src/video_core/renderer_opengl/utils.h
parenttexture_cache: Split texture cache into different files (diff)
downloadyuzu-fa59a7b4d8403c0d277b189c880469cf8113e386.tar
yuzu-fa59a7b4d8403c0d277b189c880469cf8113e386.tar.gz
yuzu-fa59a7b4d8403c0d277b189c880469cf8113e386.tar.bz2
yuzu-fa59a7b4d8403c0d277b189c880469cf8113e386.tar.lz
yuzu-fa59a7b4d8403c0d277b189c880469cf8113e386.tar.xz
yuzu-fa59a7b4d8403c0d277b189c880469cf8113e386.tar.zst
yuzu-fa59a7b4d8403c0d277b189c880469cf8113e386.zip
Diffstat (limited to 'src/video_core/renderer_opengl/utils.h')
-rw-r--r--src/video_core/renderer_opengl/utils.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/utils.h b/src/video_core/renderer_opengl/utils.h
index b3e9fc499..e7726d14e 100644
--- a/src/video_core/renderer_opengl/utils.h
+++ b/src/video_core/renderer_opengl/utils.h
@@ -8,9 +8,13 @@
#include <vector>
#include <glad/glad.h>
#include "common/common_types.h"
+#include "common/math_util.h"
+#include "video_core/renderer_opengl/gl_resource_manager.h"
namespace OpenGL {
+class CachedSurfaceView;
+
class BindBuffersRangePushBuffer {
public:
BindBuffersRangePushBuffer(GLenum target);
@@ -30,6 +34,19 @@ private:
std::vector<GLsizeiptr> sizes;
};
+class SurfaceBlitter {
+public:
+ explicit SurfaceBlitter();
+ ~SurfaceBlitter();
+
+ void Blit(CachedSurfaceView* src, CachedSurfaceView* dst,
+ const Common::Rectangle<u32>& src_rect, const Common::Rectangle<u32>& dst_rect) const;
+
+private:
+ OGLFramebuffer src_framebuffer;
+ OGLFramebuffer dst_framebuffer;
+};
+
void LabelGLObject(GLenum identifier, GLuint handle, VAddr addr, std::string_view extra_info = {});
} // namespace OpenGL \ No newline at end of file