mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
GPU: Implment actual data copy of VRAM->CPU readbacks
This commit is contained in:
parent
f6ef3f7ba6
commit
d94d608ad7
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue