diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-14 03:38:23 +0200 |
---|---|---|
committer | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-14 06:17:47 +0200 |
commit | 48b87d64de42d83577860db668ef97ec6424554d (patch) | |
tree | 121014bed1a741e6211028f732d9379d1fbb7544 /src/video_core/renderer_opengl/gl_staging_buffer_pool.h | |
parent | Merge pull request #11880 from abouvier/unbundle-stb (diff) | |
download | yuzu-48b87d64de42d83577860db668ef97ec6424554d.tar yuzu-48b87d64de42d83577860db668ef97ec6424554d.tar.gz yuzu-48b87d64de42d83577860db668ef97ec6424554d.tar.bz2 yuzu-48b87d64de42d83577860db668ef97ec6424554d.tar.lz yuzu-48b87d64de42d83577860db668ef97ec6424554d.tar.xz yuzu-48b87d64de42d83577860db668ef97ec6424554d.tar.zst yuzu-48b87d64de42d83577860db668ef97ec6424554d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_staging_buffer_pool.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_staging_buffer_pool.h b/src/video_core/renderer_opengl/gl_staging_buffer_pool.h index 60f72d3a0..5b229d0b6 100644 --- a/src/video_core/renderer_opengl/gl_staging_buffer_pool.h +++ b/src/video_core/renderer_opengl/gl_staging_buffer_pool.h @@ -38,11 +38,14 @@ struct StagingBuffers { std::optional<size_t> FindBuffer(size_t requested_size); - std::vector<OGLSync> syncs; - std::vector<OGLBuffer> buffers; - std::vector<u8*> maps; - std::vector<size_t> sizes; - std::vector<size_t> sync_indices; + struct StagingBufferAlloc { + OGLSync sync; + OGLBuffer buffer; + u8* map; + size_t size; + size_t sync_index; + }; + std::vector<StagingBufferAlloc> allocs; GLenum storage_flags; GLenum map_flags; size_t current_sync_index = 0; |