/* * Copyright (c) 2024, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #ifdef USE_VULKAN # include # include # include namespace Gfx { struct VulkanContext { uint32_t api_version { VK_API_VERSION_1_0 }; VkInstance instance { VK_NULL_HANDLE }; VkPhysicalDevice physical_device { VK_NULL_HANDLE }; VkDevice logical_device { VK_NULL_HANDLE }; VkQueue graphics_queue { VK_NULL_HANDLE }; }; ErrorOr create_vulkan_context(); } #endif