Browse Source

Update readme and fix some minor style issues.

master
Amber 2 years ago
parent
commit
350964fc76
  1. 1
      README
  2. 5
      src/main.c

1
README

@ -3,3 +3,4 @@ Project to learn the vulkan API. @@ -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

5
src/main.c

@ -1130,7 +1130,7 @@ void create_descriptor_sets(ApplicationState* state) { @@ -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) { @@ -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) { @@ -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);
}

Loading…
Cancel
Save