GPU: Implement fill VRAM command

This commit is contained in:
Connor McLaughlin
2019-09-14 16:43:39 +10:00
parent 46870c6a7a
commit 851ef67814
9 changed files with 82 additions and 10 deletions

View File

@ -113,11 +113,13 @@ protected:
// Rendering commands, returns false if not enough data is provided
bool HandleRenderCommand();
bool HandleFillRectangleCommand();
bool HandleCopyRectangleCPUToVRAMCommand();
bool HandleCopyRectangleVRAMToCPUCommand();
// Rendering in the backend
virtual void UpdateDisplay();
virtual void FillVRAM(u32 x, u32 y, u32 width, u32 height, u32 color);
virtual void UpdateVRAM(u32 x, u32 y, u32 width, u32 height, const void* data);
virtual void DispatchRenderCommand(RenderCommand rc, u32 num_vertices);
virtual void FlushRender();