upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_bindless.h
diff options
context:
space:
mode:
authorTal Swicegood <tal@highdesert-media.com>2026-11-21 19:53:23 -0600
committerTal Swicegood <tal@highdesert-media.com>2026-11-21 19:53:23 -0600
commitbc8e604cf41049586f74873f046d2c070b0fc9e1 (patch)
treee07e02028271ae3f926bc777c93648a906b0489c /runtime/src/vulkan_bindless.h
parentc432cdce127ed2d22a99aa6ef57d91db4a10b5bb (diff)
Avoid descriptor table growth with a bounded slot relocation
Diffstat (limited to 'runtime/src/vulkan_bindless.h')
-rw-r--r--runtime/src/vulkan_bindless.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/src/vulkan_bindless.h b/runtime/src/vulkan_bindless.h
index fc7682e2f..f839933e0 100644
--- a/runtime/src/vulkan_bindless.h
+++ b/runtime/src/vulkan_bindless.h
@@ -213,7 +213,8 @@ public:
213 bool insert_key(const DescriptorKey& key, std::uint32_t index) { 213 bool insert_key(const DescriptorKey& key, std::uint32_t index) {
214 const auto result = table_.insert_or_update(key.data(), index); 214 const auto result = table_.insert_or_update(key.data(), index);
215 table_dirty_ |= result != DescriptorTable::InsertResult::unchanged; 215 table_dirty_ |= result != DescriptorTable::InsertResult::unchanged;
216 existing_entries_changed_ |= result == DescriptorTable::InsertResult::replaced; 216 existing_entries_changed_ |= result == DescriptorTable::InsertResult::replaced ||
217 result == DescriptorTable::InsertResult::added_with_relocation;
217 return true; 218 return true;
218 } 219 }
219 // Erasing compacts the key's probe cluster, so other keys' entries may change slots. 220 // Erasing compacts the key's probe cluster, so other keys' entries may change slots.