added vulkan device and queues creation

This commit is contained in:
Lorenzo Torres 2025-11-03 13:08:46 +01:00
parent 89edee7249
commit 6c31a3ce27
20 changed files with 253 additions and 18 deletions

10
vk/vk.h
View file

@ -1,10 +1,20 @@
// SPDX-License-Identifier: BSD-3-Clause
#ifndef VK_H
#define VK_H
#include <vulkan/vulkan.h>
#include "../types.h"
struct queue_family_indices {
u32 graphics, present;
};
struct renderer_context {
VkInstance instance;
VkPhysicalDevice physical_device;
VkDevice device;
VkQueue graphics_queue;
struct queue_family_indices queue_indices;
};
#endif