24 lines
No EOL
874 B
C++
24 lines
No EOL
874 B
C++
module;
|
|
|
|
#include <cstdint>
|
|
#include <vulkan/vulkan.h>
|
|
#include <vulkan/vulkan_wayland.h>
|
|
|
|
export module Crafter.Graphics:VulkanDevice;
|
|
|
|
export namespace Crafter {
|
|
class VulkanDevice {
|
|
public:
|
|
static void CreateDevice();
|
|
static void CHECK_VK_RESULT(VkResult result);
|
|
inline static VkInstance instance = VK_NULL_HANDLE;
|
|
inline static VkDebugUtilsMessengerEXT debugMessenger = VK_NULL_HANDLE;
|
|
inline static VkPhysicalDevice physDevice = VK_NULL_HANDLE;
|
|
inline static VkDevice device = VK_NULL_HANDLE;
|
|
inline static std::uint32_t queueFamilyIndex = 0;
|
|
inline static VkQueue queue = VK_NULL_HANDLE;
|
|
inline static VkCommandPool commandPool = VK_NULL_HANDLE;
|
|
inline static VkSwapchainKHR swapchain = VK_NULL_HANDLE;
|
|
inline static VkRenderPass renderPass = VK_NULL_HANDLE;
|
|
};
|
|
} |