Skip to content

Commit ef4e2d8

Browse files
authored
bump etna to v1.12.0 (#42)
1 parent 355c694 commit ef4e2d8

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

cmake/thirdparty.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ CPMAddPackage(
5454
CPMAddPackage(
5555
NAME etna
5656
GITHUB_REPOSITORY AlexandrShcherbakov/etna
57-
VERSION 1.11.0
57+
VERSION 1.12.0
5858
)
5959

6060
# Type-erased function containers that actually work

samples/shadowmap/Renderer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void Renderer::initFrameDelivery(vk::UniqueSurfaceKHR a_surface, ResolutionProvi
5353
auto [w, h] = window->recreateSwapchain(etna::Window::DesiredProperties{
5454
.resolution = {resolution.x, resolution.y},
5555
.vsync = true,
56+
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
5657
});
5758
resolution = {w, h};
5859

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

tasks/local_shadertoy1/App.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ App::App()
6161
auto [w, h] = vkWindow->recreateSwapchain(etna::Window::DesiredProperties{
6262
.resolution = {resolution.x, resolution.y},
6363
.vsync = useVsync,
64+
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
6465
});
6566

6667
// Technically, Vulkan might fail to initialize a swapchain with the requested
@@ -184,6 +185,7 @@ void App::drawFrame()
184185
auto [w, h] = vkWindow->recreateSwapchain(etna::Window::DesiredProperties{
185186
.resolution = {resolution.x, resolution.y},
186187
.vsync = useVsync,
188+
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
187189
});
188190
ETNA_VERIFY((resolution == glm::uvec2{w, h}));
189191
}

tasks/model_bakery/renderer/Renderer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void Renderer::initFrameDelivery(vk::UniqueSurfaceKHR a_surface, ResolutionProvi
4949
auto [w, h] = window->recreateSwapchain(etna::Window::DesiredProperties{
5050
.resolution = {resolution.x, resolution.y},
5151
.vsync = useVsync,
52+
.numFramesInFlight = static_cast<uint32_t>(commandManager->getCmdBufferCount()),
5253
});
5354

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

0 commit comments

Comments
 (0)