graphics: index live cache slots directly

This commit is contained in:
nmzik committed 2026-10-24 04:26:16 +02:00
1 parent 170c107779
commit 269e411ef2
5 files changed
+67 -95

No files matched your search

+1 -4
View File
@@ -95,10 +95,7 @@ public:
private:
friend struct BufferCacheTestAccess;
bool IsBufferInvalid(BufferId id) const {
const auto* buffer = m_slot_buffers.try_get(id);
return buffer == nullptr || buffer->is_deleted;
}
bool IsBufferInvalid(BufferId id) const { return !id || m_slot_buffers[id].is_deleted; }
using BufferMap = std::map<uint64_t, BufferId>;
struct OverlapResult {