Understand the vk-bootstrap build pattern
mainvk-bootstrap uses a builder pattern to construct Vulkan objects. You configure the desired settings using various set_* methods and then call .build() to finalize the creation. The result is typically returned as a vkb::Result<T>, which you must check for errors before accessing the underlying wrapper or Vulkan handle.
vkb::Result<vkb::Wrapper> result = vkb::WrapperBuilder()
.set_thing()
.more_things()
.build();
if (!result) { /* handle error */ }
// The result also holds the vk-bootstrap wrapper
vkb::Wrapper wrapper = result.value();
// The underlying Vulkan handle can easily be acquired
VkObject object = wrapper.object;