Polyphase Game Engine
Loading...
Searching...
No Matches
DescriptorPool.h
Go to the documentation of this file.
1#pragma once
2
3#include <vulkan/vulkan.h>
4#include <vector>
5
7{
8public:
9
10 void Create();
11 void Destroy();
12
13 void Reset();
14 VkDescriptorSet Allocate(VkDescriptorSetLayout layout, const char* name = nullptr);
15
16protected:
17
18 VkDescriptorPool CreatePool();
19 VkDescriptorPool GrabPool();
20
21 VkDescriptorPool mCurrentPool = VK_NULL_HANDLE;
22 std::vector<VkDescriptorPool> mUsedPools;
23 std::vector<VkDescriptorPool> mFreePools;
24};
Definition DescriptorPool.h:7
void Reset()
Definition DescriptorPool.cpp:28
VkDescriptorPool CreatePool()
Definition DescriptorPool.cpp:77
void Create()
Definition DescriptorPool.cpp:8
VkDescriptorPool mCurrentPool
Definition DescriptorPool.h:21
std::vector< VkDescriptorPool > mFreePools
Definition DescriptorPool.h:23
void Destroy()
Definition DescriptorPool.cpp:13
VkDescriptorSet Allocate(VkDescriptorSetLayout layout, const char *name=nullptr)
Definition DescriptorPool.cpp:42
std::vector< VkDescriptorPool > mUsedPools
Definition DescriptorPool.h:22
VkDescriptorPool GrabPool()
Definition DescriptorPool.cpp:112