mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 23:43:34 +00:00
adding Vulkan device creation, adding unit tests, adding few API function declarations
This commit is contained in:
27
Sources/Backends/Vulkan/VulkanQueue.h
git.filemode.normal_file
27
Sources/Backends/Vulkan/VulkanQueue.h
git.filemode.normal_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
|
||||
Reference in New Issue
Block a user