vk::Result result; vk::Image image; std::tie(result, image) = device.createImage(...); when using the non-exception mode.