Function TRAP::Graphics::API::VulkanInits::SwapchainCreateInfoKHR#
Function Documentation#
-
VkSwapchainCreateInfoKHR TRAP::Graphics::API::VulkanInits::SwapchainCreateInfoKHR(VkSurfaceKHR surface, u32 imageCount, const VkSurfaceFormatKHR &surfaceFormat, const VkExtent2D &imageExtent, VkSharingMode sharingMode, std::span<const u32> queueFamilyIndices, VkSurfaceTransformFlagBitsKHR preTransform, VkCompositeAlphaFlagBitsKHR compositeAlpha, VkPresentModeKHR presentMode, VkSwapchainKHR oldSwapchain = VK_NULL_HANDLE)#
Create a Vulkan swapchain create info.
- Parameters:
surface – Vulkan surface to use.
imageCount – Number of images to create.
surfaceFormat – Vulkan surface format to use.
imageExtent – Vulkan image extent to use.
sharingMode – Vulkan sharing mode to use.
queueFamilyIndices – Queue families that have access to the image(s) of the swapchain when sharingMode is VK_SHARING_MODE_CONCURRENT.
preTransform – Vulkan pre-transform to use.
compositeAlpha – Vulkan composite alpha to use.
presentMode – Vulkan present mode to use.
oldSwapchain – Old Vulkan swapchain to aid in resource reusage. Default. VK_NULL_HANDLE
- Returns:
VkSwapchainCreateInfoKHR.