mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
28 lines
824 B
C
28 lines
824 B
C
// Copyright (C) 2025 kbz_8
|
|
// 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
|