| 79 | } |
| 80 | |
| 81 | Image::Image(vkb::core::DeviceC &device, |
| 82 | const VkExtent3D &extent, |
| 83 | VkFormat format, |
| 84 | VkImageUsageFlags image_usage, |
| 85 | VmaMemoryUsage memory_usage, |
| 86 | VkSampleCountFlagBits sample_count, |
| 87 | const uint32_t mip_levels, |
| 88 | const uint32_t array_layers, |
| 89 | VkImageTiling tiling, |
| 90 | VkImageCreateFlags flags, |
| 91 | uint32_t num_queue_families, |
| 92 | const uint32_t *queue_families) : |
| 93 | // Pass through to the ImageBuilder ctor |
| 94 | Image(device, |
| 95 | ImageBuilder(extent) |
| 96 | .with_format(format) |
| 97 | .with_image_type(find_image_type(extent)) |
| 98 | .with_usage(image_usage) |
| 99 | .with_mip_levels(mip_levels) |
| 100 | .with_array_layers(array_layers) |
| 101 | .with_tiling(tiling) |
| 102 | .with_flags(flags) |
| 103 | .with_vma_usage(memory_usage) |
| 104 | .with_sample_count(sample_count) |
| 105 | .with_queue_families(num_queue_families, queue_families) |
| 106 | .with_implicit_sharing_mode()) |
| 107 | { |
| 108 | } |
| 109 | |
| 110 | Image::Image(vkb::core::DeviceC &device, ImageBuilder const &builder) : |
| 111 | vkb::allocated::AllocatedC<VkImage>{builder.get_allocation_create_info(), VK_NULL_HANDLE, &device}, create_info(builder.get_create_info()) |
nothing calls this directly
no test coverage detected