|
|
|
@ -156,6 +156,7 @@ void VKSwapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities,
|
|
|
|
|
.minImageCount = requested_image_count,
|
|
|
|
|
.imageFormat = surface_format.format,
|
|
|
|
|
.imageColorSpace = surface_format.colorSpace,
|
|
|
|
|
.imageExtent = {},
|
|
|
|
|
.imageArrayLayers = 1,
|
|
|
|
|
.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
|
|
|
|
|
.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE,
|
|
|
|
@ -204,6 +205,7 @@ void VKSwapchain::CreateImageViews() {
|
|
|
|
|
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
|
|
|
|
|
.pNext = nullptr,
|
|
|
|
|
.flags = 0,
|
|
|
|
|
.image = {},
|
|
|
|
|
.viewType = VK_IMAGE_VIEW_TYPE_2D,
|
|
|
|
|
.format = image_format,
|
|
|
|
|
.components =
|
|
|
|
|