mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 02:57:56 -05:00
gl_texture_cache: Implement fermi copies
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user