vulkan not working
This commit is contained in:
parent
a1be917178
commit
c45afab0dd
21 changed files with 1319 additions and 438 deletions
24
Crafter.Graphics-VulkanDevice.cppm
Normal file
24
Crafter.Graphics-VulkanDevice.cppm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue