45 vk::AttachmentDescription colorAttachment(vk::AttachmentDescriptionFlags(),
Core::swapchain.format,
46 vk::SampleCountFlagBits::e1, vk::AttachmentLoadOp::eClear, vk::AttachmentStoreOp::eStore,
47 vk::AttachmentLoadOp::eDontCare, vk::AttachmentStoreOp::eDontCare, vk::ImageLayout::eUndefined,
48 vk::ImageLayout::ePresentSrcKHR);
50 vk::AttachmentReference colorAttachmentRef(0, vk::ImageLayout::eColorAttachmentOptimal);
51 vk::SubpassDescription subpass(vk::SubpassDescriptionFlags(), vk::PipelineBindPoint::eGraphics);
52 subpass.colorAttachmentCount = 1;
53 subpass.pColorAttachments = &colorAttachmentRef;
55 vk::RenderPassCreateInfo createInfo(vk::RenderPassCreateFlags(), 1, &colorAttachment, 1, &subpass);