The Vulkan swapchain, which works with the framebuffer/attachments and the surface to present an image to the screen.
More...
Go to the source code of this file.
The Vulkan swapchain, which works with the framebuffer/attachments and the surface to present an image to the screen.
- Author
- Travis Vroman (travi.nosp@m.s@ko.nosp@m.hieng.nosp@m.ine..nosp@m.com)
- Version
- 1.0
- Date
- 2022-01-11
- Copyright
- Kohi Game Engine is Copyright (c) Travis Vroman 2021-2022
◆ vulkan_swapchain_create()
Creates a new swapchain.
- Parameters
-
context | A pointer to the Vulkan context. |
width | The initial width of the surface area. |
height | The initial height of the surface area. |
vsync | Indicates if the swapchain should use vsync. |
out_swapchain | A pointer to the newly-created swapchain. |
◆ vulkan_swapchain_destroy()
Destroys the given swapchain.
- Parameters
-
context | A pointer to the Vulkan context. |
swapchain | A pointer to the swapchain to be destroyed. |
◆ vulkan_swapchain_recreate()
Recreates the given swapchain with the given width and height, replacing the internal swapchain with the newly-created one.
- Parameters
-
context | A pointer to the Vulkan context. |
width | The new width of the surface area. |
height | The new width of the surface area. |
swapchain | A pointer to the swapchain to be recreated. |