diff options
| author | jsthope <68657498+jsthope@users.noreply.github.com> | 2026-11-22 19:00:08 +0100 |
|---|---|---|
| committer | jsthope <68657498+jsthope@users.noreply.github.com> | 2026-11-22 19:17:52 +0100 |
| commit | df1ae87efe2045dedeca9ad4ff1a211eba2631b0 (patch) | |
| tree | 721eb26c9a4eb5f937054f17a169a713ab971ca3 /runtime/src/pe_loader.cpp | |
| parent | 454ae0637c9ed45131e031e71cc7d912e0b24ac8 (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/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions