upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorjsthope <68657498+jsthope@users.noreply.github.com>2026-11-22 19:00:08 +0100
committerjsthope <68657498+jsthope@users.noreply.github.com>2026-11-22 19:17:52 +0100
commitdf1ae87efe2045dedeca9ad4ff1a211eba2631b0 (patch)
tree721eb26c9a4eb5f937054f17a169a713ab971ca3 /runtime/test/loader_test.cpp
parent454ae0637c9ed45131e031e71cc7d912e0b24ac8 (diff)
runtime: buffer_at finds a buffer by binary search, not a scan of every resource
VulkanContext::buffer_at walked every registered resource, images included, for each vertex-buffer slot, index buffer and WriteBufferImmediate of every draw. It now asks a BufferVaIndex of the addressable buffers (no image, a VkBuffer, a VA and bytes: what the scan accepted), kept in step with resources_ by add_resource, add_sparse_buffer and remove_resource; a re-registered ID drops its old range first. Where placed buffers alias, the scan returned whichever matched first in unordered_map order; the index returns the range that starts closest below the VA. docs/d3d12_vulkan.md drops the "Lookups" known gap.
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions