|
|
@ -1130,7 +1130,7 @@ void create_descriptor_sets(ApplicationState* state) { |
|
|
|
|
|
|
|
|
|
|
|
vkUpdateDescriptorSets(state->device, 1, &descriptor_write, 0, NULL); |
|
|
|
vkUpdateDescriptorSets(state->device, 1, &descriptor_write, 0, NULL); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("created descriptor sets\n"); |
|
|
|
printf("created descriptor sets\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1254,7 +1254,6 @@ void init_vulkan(ApplicationState* state) { |
|
|
|
create_index_buffer(state); |
|
|
|
create_index_buffer(state); |
|
|
|
create_uniform_buffers(state); |
|
|
|
create_uniform_buffers(state); |
|
|
|
create_descriptor_pool(state); |
|
|
|
create_descriptor_pool(state); |
|
|
|
printf("creating descriptor sets\n"); |
|
|
|
|
|
|
|
create_descriptor_sets(state); |
|
|
|
create_descriptor_sets(state); |
|
|
|
create_command_buffer(state); |
|
|
|
create_command_buffer(state); |
|
|
|
create_sync_objects(state); |
|
|
|
create_sync_objects(state); |
|
|
@ -1352,7 +1351,7 @@ void terminate(ApplicationState* state) { |
|
|
|
vkDestroyFence(state->device, state->in_flight_frames[i], NULL); |
|
|
|
vkDestroyFence(state->device, state->in_flight_frames[i], NULL); |
|
|
|
vkDestroySemaphore(state->device, state->image_available_semaph[i], NULL); |
|
|
|
vkDestroySemaphore(state->device, state->image_available_semaph[i], NULL); |
|
|
|
vkDestroySemaphore(state->device, state->render_finished_sempah[i], NULL); |
|
|
|
vkDestroySemaphore(state->device, state->render_finished_sempah[i], NULL); |
|
|
|
|
|
|
|
|
|
|
|
vkDestroyBuffer(state->device, state->uniform_buffers[i], NULL); |
|
|
|
vkDestroyBuffer(state->device, state->uniform_buffers[i], NULL); |
|
|
|
vkFreeMemory(state->device, state->uniform_buffer_memory[i], NULL); |
|
|
|
vkFreeMemory(state->device, state->uniform_buffer_memory[i], NULL); |
|
|
|
} |
|
|
|
} |
|
|
|