summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_texture_cache.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-02-13 19:27:50 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-02-13 19:27:50 +0100
commitc7325c6a4c0e8981667faaa8bd64cbc36f3a84be (patch)
tree6b0dddcbb22bd8952056c8d625e897eb70371243 /src/video_core/renderer_opengl/gl_texture_cache.h
parentMerge pull request #5919 from ReinUsesLisp/stream-buffer-tragic (diff)
downloadyuzu-c7325c6a4c0e8981667faaa8bd64cbc36f3a84be.tar
yuzu-c7325c6a4c0e8981667faaa8bd64cbc36f3a84be.tar.gz
yuzu-c7325c6a4c0e8981667faaa8bd64cbc36f3a84be.tar.bz2
yuzu-c7325c6a4c0e8981667faaa8bd64cbc36f3a84be.tar.lz
yuzu-c7325c6a4c0e8981667faaa8bd64cbc36f3a84be.tar.xz
yuzu-c7325c6a4c0e8981667faaa8bd64cbc36f3a84be.tar.zst
yuzu-c7325c6a4c0e8981667faaa8bd64cbc36f3a84be.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_texture_cache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h
index 874cf54f4..a6172f009 100644
--- a/src/video_core/renderer_opengl/gl_texture_cache.h
+++ b/src/video_core/renderer_opengl/gl_texture_cache.h
@@ -145,6 +145,8 @@ public:
void DownloadMemory(ImageBufferMap& map, std::span<const VideoCommon::BufferImageCopy> copies);
+ GLuint StorageHandle() noexcept;
+
GLuint Handle() const noexcept {
return texture.handle;
}
@@ -155,8 +157,8 @@ private:
void CopyImageToBuffer(const VideoCommon::BufferImageCopy& copy, size_t buffer_offset);
OGLTexture texture;
- OGLTextureView store_view;
OGLBuffer buffer;
+ OGLTextureView store_view;
GLenum gl_internal_format = GL_NONE;
GLenum gl_format = GL_NONE;
GLenum gl_type = GL_NONE;