MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / HPPImage

Method HPPImage

framework/core/hpp_image_core.cpp:57–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57HPPImage::HPPImage(vkb::core::DeviceCpp &device,
58 const vk::Extent3D &extent,
59 vk::Format format,
60 vk::ImageUsageFlags image_usage,
61 VmaMemoryUsage memory_usage,
62 vk::SampleCountFlagBits sample_count,
63 const uint32_t mip_levels,
64 const uint32_t array_layers,
65 vk::ImageTiling tiling,
66 vk::ImageCreateFlags flags,
67 uint32_t num_queue_families,
68 const uint32_t *queue_families) :
69 HPPImage{device,
70 HPPImageBuilder{extent}
71 .with_format(format)
72 .with_mip_levels(mip_levels)
73 .with_array_layers(array_layers)
74 .with_sample_count(sample_count)
75 .with_tiling(tiling)
76 .with_flags(flags)
77 .with_usage(image_usage)
78 .with_queue_families(num_queue_families, queue_families)}
79{}
80
81HPPImage::HPPImage(vkb::core::DeviceCpp &device, HPPImageBuilder const &builder) :
82 vkb::allocated::AllocatedCpp<vk::Image>{builder.get_allocation_create_info(), nullptr, &device}, create_info{builder.get_create_info()}

Callers

nothing calls this directly

Calls 4

get_create_infoMethod · 0.80
emptyMethod · 0.80
find_image_typeFunction · 0.70
set_imageMethod · 0.45

Tested by

no test coverage detected