Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411511 Posts in 69375 Topics- by 58430 Members - Latest Member: Jesse Webb

April 26, 2024, 02:22:13 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Vulkan and swapchain image count
Pages: [1]
Print
Author Topic: Vulkan and swapchain image count  (Read 912 times)
Crimsontide
Level 5
*****


View Profile
« on: April 28, 2018, 10:15:08 AM »

A silly question about Vulkan swapchains.

In the structure VkSurfaceCapabilitiesKHR there is a minImageCount member.  I understand that the swapchain needs at least minImageCount images.  That said, I'm a bit confused at what this number means.  What I mean is...

On my system (Windows 7, NVidia 970) the minimum image count is 2.  So say I wanted to use double buffering, would I create a swapchain with 2 images or 3?  Is that 2 minImageCount images 2 that the OS needs for internal purposes and I have to request any extra I need, or is that 2 just straight up 2 swapchain images that I can use.  Likewise if I want to use triple buffering (for examle VK_PRESENT_MODE_MAILBOX_KHR) would I create a swapchain with 3 or 4 images?
Logged
JWki
Level 4
****


View Profile
« Reply #1 on: April 29, 2018, 08:05:36 AM »

You create two images. Likewise three for triple buffering.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic