Skip to content
Open
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
5 changes: 0 additions & 5 deletions en/03_Drawing_a_triangle/04_Swap_chain_recreation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ void recreateSwapChain()
}
----

Note that we don't recreate the renderpass here for simplicity.
In theory, it can be possible for the swap chain image format to change during an applications' lifetime, e.g.,
when moving a window from a standard range to a high dynamic range monitor.
This may require the application to recreate the renderpass to make sure the change between dynamic ranges is properly reflected.

We'll move the cleanup code of all objects that are recreated as part of a swap chain refresh from `cleanup` to `cleanupSwapChain`:

[,c++]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Rendering colored lines requires a specialized graphics pipeline. Because we wan

[source,cpp]
----
void create_debug_pipeline(VkDevice device, VkRenderPass render_pass, VkPipelineLayout layout, VkPipeline& out_pipeline)
void create_debug_pipeline(VkDevice device, VkPipelineLayout layout, VkPipeline& out_pipeline)
{
// 1. Shaders: Simple unlit color pass
// Vertex shader takes vec3 pos, vec3 color and multiplies by ViewProj.
Expand Down
4 changes: 1 addition & 3 deletions en/Building_a_Simple_Engine/Tooling/02_cicd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ import vulkan_raii;

// A testable function using vk::raii
bool create_pipeline(vk::raii::Device& device,
vk::raii::RenderPass& render_pass,
vk::raii::PipelineLayout& layout,
vk::raii::Pipeline& out_pipeline) {
try {
Expand All @@ -139,11 +138,10 @@ TEST_CASE("Pipeline creation") {
vk::raii::Context context;
auto instance = create_test_instance(context);
auto device = create_test_device(instance);
auto render_pass = create_test_render_pass(device);
auto layout = create_test_pipeline_layout(device);

vk::raii::Pipeline pipeline{nullptr};
REQUIRE(create_pipeline(device, render_pass, layout, pipeline));
REQUIRE(create_pipeline(device, layout, pipeline));
REQUIRE(pipeline);
}
----
Expand Down
Loading