implemented Vulkan surface creation

This commit is contained in:
Lorenzo Torres 2025-11-05 22:04:39 +01:00
parent fa2a4887df
commit b6b0c5091b
13 changed files with 128 additions and 18 deletions

View file

@ -4,6 +4,7 @@
#include <vulkan/vulkan.h>
#include "../../types.h"
#include "../../rgfw.h"
struct queue_family_indices {
u32 graphics, present;
@ -13,8 +14,10 @@ struct renderer_context {
VkInstance instance;
VkPhysicalDevice physical_device;
VkDevice device;
VkQueue graphics_queue;
VkQueue graphics_queue, present_queue;
VkSurfaceKHR surface;
struct queue_family_indices queue_indices;
RGFW_window *window;
};
#endif