| 199 | |
| 200 | template <vkb::BindingType bindingType> |
| 201 | inline std::unique_ptr<RenderTargetCpp> RenderTarget<bindingType>::default_create_func_impl(vkb::core::HPPImage &&swapchain_image) |
| 202 | { |
| 203 | vk::Format depth_format = vkb::common::get_suitable_depth_format(swapchain_image.get_device().get_gpu().get_handle()); |
| 204 | |
| 205 | vkb::core::HPPImage depth_image{swapchain_image.get_device(), swapchain_image.get_extent(), |
| 206 | depth_format, |
| 207 | vk::ImageUsageFlagBits::eDepthStencilAttachment | vk::ImageUsageFlagBits::eTransientAttachment, |
| 208 | VMA_MEMORY_USAGE_GPU_ONLY}; |
| 209 | |
| 210 | std::vector<vkb::core::HPPImage> images; |
| 211 | images.push_back(std::move(swapchain_image)); |
| 212 | images.push_back(std::move(depth_image)); |
| 213 | |
| 214 | return std::make_unique<RenderTargetCpp>(std::move(images)); |
| 215 | }; |
| 216 | |
| 217 | template <vkb::BindingType bindingType> |
| 218 | inline RenderTarget<bindingType>::RenderTarget(std::vector<ImageType> &&images) |
nothing calls this directly
no test coverage detected