mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
working on command lists
This commit is contained in:
35
Sources/Backends/Vulkan/VulkanCommandPool.h
git.filemode.normal_file
35
Sources/Backends/Vulkan/VulkanCommandPool.h
git.filemode.normal_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
|
||||
Reference in New Issue
Block a user