/* * WiVRn VR streaming * Copyright (C) 2022 Guillaume Meunier * Copyright (C) 2022 Patrick Nicolas * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #pragma once #include "magic_enum.hpp" #include "utils/check.h" #include "vk/buffer.h" #include "vk/buffer_view.h" #include "vk/command_pool.h" #include "vk/device_memory.h" #include "vk/image.h" #include "vk/pipeline.h" #include "vk/renderpass.h" #include "vk/shader.h" #include #include #define string_VkFormat(x) std::string(magic_enum::enum_name((VkFormat)(x))) #define string_VkResult(x) std::string(magic_enum::enum_name((VkResult)(x))) template <> struct magic_enum::customize::enum_range { static constexpr int min = 0; static constexpr int max = 200; }; template struct vk_chain { std::tuple structs; };