From 9f98dcc617df5b21eb66b48a289914b551769029 Mon Sep 17 00:00:00 2001 From: Moriz82 <72836413+Moriz82@users.noreply.github.com> Date: Wed, 25 Nov 2026 14:30:51 -0600 Subject: Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY) Fall back to a dedicated buffer allocation when the shared arena fills. Update console descriptors and resource backing, preserve pipeline cache entries, and replay mesh records using bounded indirect arguments. Keep scripted input available until read and cover the runtime and translator paths with synthetic tests. Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com> --- runtime/test/vk_sampler_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/test/vk_sampler_test.cpp') diff --git a/runtime/test/vk_sampler_test.cpp b/runtime/test/vk_sampler_test.cpp index 98206931b..a35806d8f 100644 --- a/runtime/test/vk_sampler_test.cpp +++ b/runtime/test/vk_sampler_test.cpp @@ -265,9 +265,10 @@ int main(int argc, char** argv) { VkBufferDeviceAddressInfo address_info{VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO}; address_info.buffer = heap; const VkDeviceAddress heap_base = vkGetBufferDeviceAddress(dev, &address_info); - // Descriptor hash table: the T# names image 1, the S# sampler 1. Index 0 of each is a magenta fallback. + // Descriptor hash table: the T# names image 1, the S# sampler 1. Index 0 of each is a magenta fallback. The + // module is tagged (build.py), so the T# entry names the array its index is bound in: a sampled 2D image. leonida::DescriptorTable table(16); - table.insert(tsharp.data(), 1); + table.insert(tsharp.data(), 1, leonida::kind_sampled_bit(0)); table.insert(leonida::make_ssharp_key(ssharp.data()).data(), 1); const auto table_words = table.build_gpu_buffer(true); VkBuffer table_buffer; -- cgit v1.2.3