mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
29 lines
595 B
C++
29 lines
595 B
C++
/*
|
|
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_VULKAN
|
|
|
|
# include <AK/Forward.h>
|
|
# include <AK/Function.h>
|
|
# include <vulkan/vulkan.h>
|
|
|
|
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<VulkanContext> create_vulkan_context();
|
|
|
|
}
|
|
|
|
#endif
|