GPU: Use streaming buffers for CPU->VRAM transfers

This commit is contained in:
Connor McLaughlin
2019-11-02 22:31:15 +10:00
parent 407fee9ec3
commit 2b17cfd365
3 changed files with 20 additions and 5 deletions

View File

@ -53,6 +53,7 @@ private:
void UpdateVRAMReadTexture();
void CreateVertexBuffer();
void CreateTextureBuffer();
bool CompilePrograms();
bool CompileProgram(GL::Program& prog, HWBatchRenderMode render_mode, TextureMode texture_mode, bool dithering);
@ -68,6 +69,8 @@ private:
GLuint m_vao_id = 0;
GLuint m_attributeless_vao_id = 0;
std::unique_ptr<GL::StreamBuffer> m_texture_stream_buffer;
bool m_vram_read_texture_dirty = true;
bool m_drawing_area_changed = true;
bool m_show_renderer_statistics = false;