Don't hide temp memory triggers

This commit is contained in:
2026-06-20 17:54:04 +01:00
parent 49b9f5778a
commit 19e7382ff7
+4 -4
View File
@@ -612,6 +612,8 @@ int main() {
check(vkAllocateCommandBuffers(device, &buffer_alloc_info, command_buffers)); check(vkAllocateCommandBuffers(device, &buffer_alloc_info, command_buffers));
// }}} // }}}
wapp_mem_arena_allocator_temp_begin(&arena);
// Texture Images {{{ // Texture Images {{{
textures = wapp_array_with_capacity(Texture, texture_count, ARRAY_INIT_FILLED); textures = wapp_array_with_capacity(Texture, texture_count, ARRAY_INIT_FILLED);
tex_descriptors = wapp_array_with_capacity(VkDescriptorImageInfo, texture_count, ARRAY_INIT_FILLED); tex_descriptors = wapp_array_with_capacity(VkDescriptorImageInfo, texture_count, ARRAY_INIT_FILLED);
@@ -699,8 +701,6 @@ int main() {
check(vkAllocateCommandBuffers(device, &cb_one_time_alloc_info, &cb_one_time)); check(vkAllocateCommandBuffers(device, &cb_one_time_alloc_info, &cb_one_time));
// }}} // }}}
wapp_mem_arena_allocator_temp_begin(&arena);
// {{{ Record Commands To Copy Texture Data To Image // {{{ Record Commands To Copy Texture Data To Image
VkCommandBufferBeginInfo cb_one_time_begin_info = {}; VkCommandBufferBeginInfo cb_one_time_begin_info = {};
cb_one_time_begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; cb_one_time_begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;
@@ -784,8 +784,6 @@ int main() {
check(vkWaitForFences(device, 1, &fence_one_time, VK_TRUE, UINT64_MAX)); check(vkWaitForFences(device, 1, &fence_one_time, VK_TRUE, UINT64_MAX));
// }}} // }}}
wapp_mem_arena_allocator_temp_end(&arena);
// {{{ Create Sampler And Setup Descriptor // {{{ Create Sampler And Setup Descriptor
VkSamplerCreateInfo sampler_create_info = {}; VkSamplerCreateInfo sampler_create_info = {};
sampler_create_info.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; sampler_create_info.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
@@ -811,6 +809,8 @@ int main() {
} }
// }}} // }}}
wapp_mem_arena_allocator_temp_end(&arena);
// {{{ Render Loop // {{{ Render Loop
SDL_Event event = {}; SDL_Event event = {};
while (running) { while (running) {