mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Add more fine-grained buffer recreation locking
This commit is contained in:
@ -697,6 +697,11 @@ namespace skyline::gpu {
|
||||
return delegate->GetBuffer();
|
||||
}
|
||||
|
||||
BufferBinding BufferView::GetBinding(GPU &gpu) const {
|
||||
std::scoped_lock lock{gpu.buffer.recreationMutex};
|
||||
return {delegate->GetBuffer()->GetBacking(), offset + delegate->GetOffset(), size};
|
||||
}
|
||||
|
||||
vk::DeviceSize BufferView::GetOffset() const {
|
||||
return offset + delegate->GetOffset();
|
||||
}
|
||||
|
Reference in New Issue
Block a user