clang fmt 3

This commit is contained in:
TheTurtle 2025-01-02 14:35:00 +02:00 committed by GitHub
parent 41fc77f2a2
commit 04246cb233
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -515,8 +515,8 @@ BufferId BufferCache::CreateBuffer(VAddr device_addr, u32 wanted_size) {
const u32 size = static_cast<u32>(overlap.end - overlap.begin);
const BufferId new_buffer_id = [&] {
std::scoped_lock lk{mutex};
return slot_buffers.insert(instance, scheduler, MemoryUsage::DeviceLocal,
overlap.begin, AllFlags, size);
return slot_buffers.insert(instance, scheduler, MemoryUsage::DeviceLocal, overlap.begin,
AllFlags, size);
}();
auto& new_buffer = slot_buffers[new_buffer_id];
const size_t size_bytes = new_buffer.SizeBytes();