From e6111f3c6e6bbfc6ce52616663d28f4a0f1df408 Mon Sep 17 00:00:00 2001 From: macodeth Date: Fri, 10 Jul 2026 23:20:44 +0700 Subject: [PATCH] fix syntax in swap chain chapter --- en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc b/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc index 5ffe0290..5047177f 100644 --- a/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc +++ b/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc @@ -105,7 +105,7 @@ The next step is about querying the supported surface formats. [,c++] ---- -std::vector availableFormats = physicalDevice.getSurfaceFormatsKHR( surface ); +std::vector availableFormats = physicalDevice.getSurfaceFormatsKHR( *surface ); ---- Finally, querying the supported presentation modes works exactly the same way @@ -113,7 +113,7 @@ with `vk::raii::PhysicalDevice::getSurfacePresentModesKHR`: [,c++] ---- -std::vector availablePresentModes = physicalDevice.getSurfacePresentModesKHR( surface ); +std::vector availablePresentModes = physicalDevice.getSurfacePresentModesKHR( *surface ); ---- All the details are available now. Swap chain support is enough for this