Finality Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
VKDescriptorAllocator.h
Go to the documentation of this file.
1
6
#pragma once
7
#include "
VKCore.h
"
8
#include <vector>
9
#include <unordered_map>
10
11
namespace
FINALITY
12
{
14
class
VKDescriptorAllocator
15
{
16
public
:
17
VKDescriptorAllocator
() =
default
;
18
~VKDescriptorAllocator
() {
Shutdown
(); }
19
20
void
Initialize
(VkDevice device);
21
void
Shutdown
();
22
23
VkDescriptorSet
Allocate
(VkDescriptorSetLayout layout);
24
void
Free
(VkDescriptorSet set);
25
void
ResetPools
();
26
27
private
:
28
VkDescriptorPool CreatePoolPage();
29
30
private
:
31
VkDevice m_Device = VK_NULL_HANDLE;
32
VkDescriptorPool m_CurrentPool = VK_NULL_HANDLE;
33
std::unordered_map<VkDescriptorSet, VkDescriptorPool> m_AllocationPools;
34
35
std::vector<VkDescriptorPool> m_UsedPoolPages;
36
std::vector<VkDescriptorPool> m_FreePoolPages;
37
};
38
}
VKCore.h
FINALITY::VKDescriptorAllocator::Initialize
void Initialize(VkDevice device)
FINALITY::VKDescriptorAllocator::VKDescriptorAllocator
VKDescriptorAllocator()=default
FINALITY::VKDescriptorAllocator::Free
void Free(VkDescriptorSet set)
FINALITY::VKDescriptorAllocator::~VKDescriptorAllocator
~VKDescriptorAllocator()
Definition
VKDescriptorAllocator.h:18
FINALITY::VKDescriptorAllocator::Allocate
VkDescriptorSet Allocate(VkDescriptorSetLayout layout)
FINALITY::VKDescriptorAllocator::Shutdown
void Shutdown()
FINALITY::VKDescriptorAllocator::ResetPools
void ResetPools()
FINALITY
Definition
Asset.h:12
FinalityEngine
src
Vulkan
VKDescriptorAllocator.h
Generated by
1.18.0