diff --git a/README b/README index dc547c8..a671649 100644 --- a/README +++ b/README @@ -3,3 +3,4 @@ Project to learn the vulkan API. Checkpoints: `42410890541d4cc67934ad383e49cfebab219d40`: first triangle rendering complete `2ee55ac3adae04d8a773a16220dc8f657f093ed8`: drawing a square with index buffers +`ea5e4c9e6fcc910dab8d20cb43922387fe14944d`: rotating square with UBOs diff --git a/src/main.c b/src/main.c index 2c7ebaa..88a9def 100644 --- a/src/main.c +++ b/src/main.c @@ -1130,7 +1130,7 @@ void create_descriptor_sets(ApplicationState* state) { vkUpdateDescriptorSets(state->device, 1, &descriptor_write, 0, NULL); } - + printf("created descriptor sets\n"); } @@ -1254,7 +1254,6 @@ void init_vulkan(ApplicationState* state) { create_index_buffer(state); create_uniform_buffers(state); create_descriptor_pool(state); - printf("creating descriptor sets\n"); create_descriptor_sets(state); create_command_buffer(state); create_sync_objects(state); @@ -1352,7 +1351,7 @@ void terminate(ApplicationState* state) { vkDestroyFence(state->device, state->in_flight_frames[i], NULL); vkDestroySemaphore(state->device, state->image_available_semaph[i], NULL); vkDestroySemaphore(state->device, state->render_finished_sempah[i], NULL); - + vkDestroyBuffer(state->device, state->uniform_buffers[i], NULL); vkFreeMemory(state->device, state->uniform_buffer_memory[i], NULL); }