#ifndef VKTYPES_H #define VKTYPES_H #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include struct AllocatedImage { VkImage image; VkImageView imageView; VmaAllocation allocation; VkExtent3D imageExtent; VkFormat imageFormat; }; #define VK_CHECK(x) \ do { \ VkResult err = x; \ if (err) { \ fmt::print("Detected Vulkan error: {}", string_VkResult(err)); \ abort(); \ } \ } while (0) #endif // VKTYPES_H