mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Add an option to allow CPU writes when fast readback is used
This commit is contained in:
@ -98,7 +98,7 @@ namespace skyline::gpu {
|
||||
// As opposed to skipping readback as we do for textures, with buffers we can still perform the readback but just without syncinc the GPU
|
||||
// While the read data may be invalid it's still better than nothing and works in most cases
|
||||
memcpy(buffer->mirror.data(), buffer->backing->data(), buffer->mirror.size());
|
||||
buffer->dirtyState = DirtyState::Clean;
|
||||
buffer->dirtyState = *buffer->gpu.state.settings->enableFastReadbackWrites ? DirtyState::CpuDirty : DirtyState::Clean;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user