Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion attachments/17_swap_chain_recreation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -524,6 +523,7 @@ class HelloTriangleApplication
throw std::runtime_error("failed to acquire swap chain image!");
}

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/18_vertex_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -543,6 +542,7 @@ class HelloTriangleApplication
throw std::runtime_error("failed to acquire swap chain image!");
}

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/19_vertex_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -579,6 +578,7 @@ class HelloTriangleApplication
throw std::runtime_error("failed to acquire swap chain image!");
}

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/20_staging_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -599,6 +598,7 @@ class HelloTriangleApplication
throw std::runtime_error("failed to acquire swap chain image!");
}

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/21_index_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -625,6 +624,7 @@ class HelloTriangleApplication
throw std::runtime_error("failed to acquire swap chain image!");
}

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/22_descriptor_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -685,6 +684,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/23_descriptor_sets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -713,6 +712,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/24_texture_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -822,6 +821,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/25_sampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -858,6 +857,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/26_texture_mapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -923,6 +922,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/27_depth_buffering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1024,6 +1023,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/28_model_loading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1080,6 +1079,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/29_mipmapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1150,6 +1149,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/30_multisampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1213,6 +1212,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/32_ecosystem_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,6 @@ class HelloTriangleApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1604,6 +1603,7 @@ class HelloTriangleApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/35_gltf_ktx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,6 @@ class VulkanApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1413,6 +1412,7 @@ class VulkanApplication
}
updateUniformBuffer(frameIndex);

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/36_multiple_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,6 @@ class VulkanApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1548,6 +1547,7 @@ class VulkanApplication
// Update uniform buffers for all objects
updateUniformBuffers();

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
2 changes: 1 addition & 1 deletion attachments/38_ray_tracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,6 @@ class VulkanRaytracingApplication
{
throw std::runtime_error("failed to wait for fence!");
}
device.resetFences(*inFlightFences[frameIndex]);

auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);

Expand All @@ -1847,6 +1846,7 @@ class VulkanRaytracingApplication
updateTopLevelAS(ubo.model);
#endif // LAB_TASK_LEVEL >= LAB_TASK_AS_ANIMATION

device.resetFences(*inFlightFences[frameIndex]);
commandBuffers[frameIndex].reset();
recordCommandBuffer(imageIndex);

Expand Down
Loading