working on command lists

This commit is contained in:
2024-10-13 19:37:58 +02:00
parent 370f0b0f11
commit 0b417483f3
22 changed files with 486 additions and 119 deletions

35
Sources/Backends/Vulkan/VulkanCommandPool.h git.filemode.normal_file
View File

@@ -0,0 +1,35 @@
// 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_COMMAND_POOL_H_
#define PULSE_VULKAN_COMMAND_POOL_H_
#include <vulkan/vulkan_core.h>
#include <Pulse.h>
#include "../../PulseInternal.h"
#include "VulkanEnums.h"
typedef struct VulkanCommandPool
{
PulseDevice device;
VkCommandPool pool;
VulkanQueueType queue_type;
PulseThreadID thread_id;
PulseCommandList* available_command_lists;
uint32_t available_command_lists_capacity;
uint32_t available_command_lists_size;
} VulkanCommandPool;
bool VulkanInitCommandPool(PulseDevice device, VulkanCommandPool* pool, VulkanQueueType queue_type);
void VulkanUninitCommandPool(VulkanCommandPool* pool);
#endif // PULSE_VULKAN_COMMAND_POOL_H_
#endif // PULSE_ENABLE_VULKAN_BACKEND