Skip to content

Missing swapchain createImageView loop in tutorial #40

@Rafale25

Description

@Rafale25
for (auto i = 0; i < imageCount; i++) {
    VkImageViewCreateInfo viewCI{ .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, .image = swapchainImages[i], .viewType = VK_IMAGE_VIEW_TYPE_2D, .format = imageFormat, .subresourceRange{.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, .levelCount = 1, .layerCount = 1 } };
    chk(vkCreateImageView(device, &viewCI, nullptr, &swapchainImageViews[i]));
}

The above piece of code present in the main.cpp is missing in the turorial between swapchainImageViews.resize(imageCount) and depthFormat detection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions