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 cmake/thirdparty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ CPMAddPackage(
CPMAddPackage(
NAME etna
GITHUB_REPOSITORY AlexandrShcherbakov/etna
VERSION 1.11.0
VERSION 1.12.0
)

# Type-erased function containers that actually work
Expand Down
2 changes: 2 additions & 0 deletions samples/shadowmap/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void Renderer::initFrameDelivery(vk::UniqueSurfaceKHR a_surface, ResolutionProvi
auto [w, h] = window->recreateSwapchain(etna::Window::DesiredProperties{
.resolution = {resolution.x, resolution.y},
.vsync = true,
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
});
resolution = {w, h};

Expand All @@ -74,6 +75,7 @@ void Renderer::recreateSwapchain(glm::uvec2 res)
auto [w, h] = window->recreateSwapchain(etna::Window::DesiredProperties{
.resolution = {res.x, res.y},
.vsync = true,
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
});
resolution = {w, h};

Expand Down
2 changes: 2 additions & 0 deletions tasks/local_shadertoy1/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ App::App()
auto [w, h] = vkWindow->recreateSwapchain(etna::Window::DesiredProperties{
.resolution = {resolution.x, resolution.y},
.vsync = useVsync,
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
});

// Technically, Vulkan might fail to initialize a swapchain with the requested
Expand Down Expand Up @@ -184,6 +185,7 @@ void App::drawFrame()
auto [w, h] = vkWindow->recreateSwapchain(etna::Window::DesiredProperties{
.resolution = {resolution.x, resolution.y},
.vsync = useVsync,
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
});
ETNA_VERIFY((resolution == glm::uvec2{w, h}));
}
Expand Down
2 changes: 2 additions & 0 deletions tasks/model_bakery/renderer/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ void Renderer::initFrameDelivery(vk::UniqueSurfaceKHR a_surface, ResolutionProvi
auto [w, h] = window->recreateSwapchain(etna::Window::DesiredProperties{
.resolution = {resolution.x, resolution.y},
.vsync = useVsync,
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
});

resolution = {w, h};
Expand Down Expand Up @@ -137,6 +138,7 @@ void Renderer::drawFrame()
auto [w, h] = window->recreateSwapchain(etna::Window::DesiredProperties{
.resolution = {resolution.x, resolution.y},
.vsync = useVsync,
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
});
ETNA_VERIFY((resolution == glm::uvec2{w, h}));
}
Expand Down