Don't hide temp memory triggers
This commit is contained in:
@@ -612,6 +612,8 @@ int main() {
|
||||
check(vkAllocateCommandBuffers(device, &buffer_alloc_info, command_buffers));
|
||||
// }}}
|
||||
|
||||
wapp_mem_arena_allocator_temp_begin(&arena);
|
||||
|
||||
// Texture Images {{{
|
||||
textures = wapp_array_with_capacity(Texture, 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));
|
||||
// }}}
|
||||
|
||||
wapp_mem_arena_allocator_temp_begin(&arena);
|
||||
|
||||
// {{{ Record Commands To Copy Texture Data To Image
|
||||
VkCommandBufferBeginInfo cb_one_time_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));
|
||||
// }}}
|
||||
|
||||
wapp_mem_arena_allocator_temp_end(&arena);
|
||||
|
||||
// {{{ Create Sampler And Setup Descriptor
|
||||
VkSamplerCreateInfo 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
|
||||
SDL_Event event = {};
|
||||
while (running) {
|
||||
|
||||
Reference in New Issue
Block a user