|
Rehti MMORPG
1.0.0
Rehti MMORPG is a free and open source MMORPG game.
|
The use of this class is to cache descriptor set layouts. More...
#include <DescriptorBuilder.hpp>

Classes | |
| struct | DescriptorLayoutHasher |
| struct | DescriptorSetLayoutInfo |
Public Member Functions | |
| DescriptorSetLayoutCache (VkDevice device) | |
| ~DescriptorSetLayoutCache () | |
| VkDescriptorSetLayout | createDescriptorSetLayout (VkDescriptorSetLayoutCreateInfo &layoutInfo) |
| Creates a descriptor set layout from the given info, or returns one from the cache if it already exists. More... | |
| VkDescriptorSetLayout | createDescriptorSetLayout (const VkDescriptorSetLayoutBinding *bindings, uint32_t bindingCount) |
| Creates a descriptor set layout from the given bindings, or returns one from the cache if it already exists. More... | |
Private Attributes | |
| VkDevice | logDeviceM |
| std::unordered_map< DescriptorSetLayoutInfo, VkDescriptorSetLayout, DescriptorLayoutHasher > | layoutCacheM |
The use of this class is to cache descriptor set layouts.
| DescriptorSetLayoutCache::DescriptorSetLayoutCache | ( | VkDevice | device | ) |
| DescriptorSetLayoutCache::~DescriptorSetLayoutCache | ( | ) |
| VkDescriptorSetLayout DescriptorSetLayoutCache::createDescriptorSetLayout | ( | const VkDescriptorSetLayoutBinding * | bindings, |
| uint32_t | bindingCount | ||
| ) |
Creates a descriptor set layout from the given bindings, or returns one from the cache if it already exists.
| bindings | to create a layout of. |
| bindingCount | of the bindings. |

| VkDescriptorSetLayout DescriptorSetLayoutCache::createDescriptorSetLayout | ( | VkDescriptorSetLayoutCreateInfo & | layoutInfo | ) |
Creates a descriptor set layout from the given info, or returns one from the cache if it already exists.
| layoutInfo | Layout info |

|
private |
|
private |