GPU: Implment actual data copy of VRAM->CPU readbacks

This commit is contained in:
Connor McLaughlin 2019-09-14 20:48:15 +10:00
parent f6ef3f7ba6
commit d94d608ad7

View file

@ -478,9 +478,11 @@ bool GPU::HandleCopyRectangleVRAMToCPUCommand()
return true; return true;
} }
// TODO: Implement. // TODO: A better way of doing this..
for (u32 i = 0; i < num_words; i++) std::vector<u32> temp(num_words);
m_GPUREAD_buffer.push_back(0); ReadVRAM(src_x, src_y, width, height, temp.data());
for (const u32 bits : temp)
m_GPUREAD_buffer.push_back(bits);
// Is this correct? // Is this correct?
return true; return true;