Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove accidental code changes
Un-comment vkDeviceWaitIdle and remove resizing of imagesInFlight (which was removed)
  • Loading branch information
charles-lunarg committed Feb 7, 2022
commit d9bf2915d0f721bfcaf0cdb31b5051257ff87af4
2 changes: 1 addition & 1 deletion code/15_hello_triangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class HelloTriangleApplication {
drawFrame();
}

// vkDeviceWaitIdle(device);
vkDeviceWaitIdle(device);
}

void cleanup() {
Expand Down
2 changes: 0 additions & 2 deletions code/17_swap_chain_recreation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/18_vertex_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/19_vertex_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/20_staging_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/21_index_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/22_descriptor_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/23_descriptor_sets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/24_texture_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/25_sampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/26_texture_mapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ class HelloTriangleApplication {
createRenderPass();
createGraphicsPipeline();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/27_depth_buffering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ class HelloTriangleApplication {
createGraphicsPipeline();
createDepthResources();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/28_model_loading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,6 @@ class HelloTriangleApplication {
createGraphicsPipeline();
createDepthResources();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down
2 changes: 0 additions & 2 deletions code/29_mipmapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ class HelloTriangleApplication {
createGraphicsPipeline();
createDepthResources();
createFramebuffers();

imagesInFlight.resize(swapChainImages.size(), VK_NULL_HANDLE);
}

void createInstance() {
Expand Down