adding Vulkan device creation, adding unit tests, adding few API function declarations

This commit is contained in:
2024-10-10 15:22:56 +02:00
parent f189928c82
commit 405c8b186a
23 changed files with 517 additions and 64 deletions

27
Sources/Backends/Vulkan/VulkanQueue.h git.filemode.normal_file
View File

@@ -0,0 +1,27 @@
// Copyright (C) 2024 kanel
// This file is part of "Pulse"
// For conditions of distribution and use, see copyright notice in LICENSE
#ifdef PULSE_ENABLE_VULKAN_BACKEND
#ifndef PULSE_VULKAN_QUEUES_H_
#define PULSE_VULKAN_QUEUES_H_
#include "VulkanEnums.h"
#include "VulkanDevice.h"
#include "VulkanInstance.h"
typedef struct VulkanQueue
{
VulkanDevice* device;
VkQueue queue;
int32_t queue_family_index;
} VulkanQueue;
bool VulkanFindPhysicalDeviceQueueFamily(VulkanInstance* instance, VkPhysicalDevice physical, VulkanQueueType type, int32_t* queue_family_index);
bool VulkanPrepareDeviceQueue(VulkanInstance* instance, VulkanDevice* device, VulkanQueueType type);
bool VulkanRetrieveDeviceQueue(VulkanDevice* device, VulkanQueueType type);
#endif // PULSE_VULKAN_QUEUES_H_
#endif // PULSE_ENABLE_VULKAN_BACKEND