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

29
vk/physical_device.h Normal file
View file

@ -0,0 +1,29 @@
// SPDX-License-Identifier: BSD-3-Clause
#ifndef PHYSICAL_DEVICE_H
#define PHYSICAL_DEVICE_H
#include "vk.h"
#include "../types.h"
#include "../core/vector.h"
/*
* Get the list of all available devices and
* pick the best option.
*/
void vk_physical_device_pick(struct renderer_context *context);
/*
* Get the list of all available device
* extensions and return a vector containing
* those.
*/
struct vector *vk_physical_device_get_extensions(struct renderer_context *context);
/*
* The physical device is responsible of selecting
* the queue family indices, used later by the
* device to create the queues. This function
* sets the family indices in the renderer context.
*/
void vk_physical_device_select_family_indices(struct renderer_context *context);
#endif