mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 08:45:45 +00:00
gl_texture_cache: Implement fermi copies
This commit is contained in:
parent
57cfa6b47a
commit
dfe6cbac91
5 changed files with 105 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue