47 const vk::ImageCreateInfo imageCreateInfo(vk::ImageCreateFlags(), vk::ImageType::e2D,
Core::swapchain.format,
48 {size.
x, size.
y, 1}, 1, 1, vk::SampleCountFlagBits::e1, vk::ImageTiling::eOptimal,
49 vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eSampled);
54 vk::MemoryPropertyFlagBits::eDeviceLocal);
58 const vk::ImageSubresourceRange range(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1);
59 const vk::ImageViewCreateInfo imageViewCreateInfo(vk::ImageViewCreateFlags(),
image.get(), vk::ImageViewType::e2D,
76 const vk::Extent3D extent(size.
x, size.
y, 1);
77 const vk::ImageCreateInfo imageCreateInfo(vk::ImageCreateFlags(), vk::ImageType::e2D,
Core::swapchain.format, extent);
81 const vk::ImageSubresourceRange range(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1);
82 const vk::ImageViewCreateInfo imageViewCreateInfo(vk::ImageViewCreateFlags(),
image.get(), vk::ImageViewType::e2D,
97 const vk::UniqueRenderPass& renderPass) {
99 vk::FramebufferCreateInfo createInfo(vk::FramebufferCreateFlags(), renderPass.get(), 1, &
imageView.get(),
100 extent.width, extent.height, 1);