48 std::unique_ptr<API::Swapchain>
build(VkResult* returnResult =
nullptr);
62 VkImageUsageFlags
_imageUsage{VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT};
65 VkSurfaceTransformFlagBitsKHR
_preTransform{VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR};
66 VkCompositeAlphaFlagBitsKHR
_compositeAlpha{VK_COMPOSITE_ALPHA_FLAG_BITS_MAX_ENUM_KHR};
bool build(API::Swapchain &instance, VkResult *returnResult=nullptr)
Swapchain & operator=(const Swapchain &)=delete
VkColorSpaceKHR _imageColorSpace
void setPresentMode(VkPresentModeKHR presentMode)
VkSwapchainKHR _oldSwapchain
void setMinImageCount(uint32_t minImageCount)
void setSurface(VkSurfaceKHR surface)
void setPreTransform(VkSurfaceTransformFlagBitsKHR preTransform)
void setImageFormat(VkFormat imageFormat)
VkSurfaceTransformFlagBitsKHR _preTransform
bool setFromPreferences()
void setImageColorSpace(VkColorSpaceKHR imageColorSpace)
void setCompositeAlpha(VkCompositeAlphaFlagBitsKHR compositeAlpha)
VkPresentModeKHR _presentMode
void setOldSwapchain(VkSwapchainKHR oldSwapchain)
void setImageUsage(VkImageUsageFlags imageUsage)
VkImageUsageFlags _imageUsage
const Renderer::Preferences::Swapchain * _preferences
std::set< uint32_t > _queueFamilyIndices
void setExclusive(bool exclusive)
const API::Device & _device
void setClipped(VkBool32 clipped)
void setImageExtent(VkExtent2D imageExtent)
Swapchain(const API::Device &device)
void setQueueFamilyIndices(const std::set< uint32_t > &queueFamilyIndices)
void setPreferences(const Renderer::Preferences::Swapchain &preferences)
VkCompositeAlphaFlagBitsKHR _compositeAlpha