Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
DescriptorBuilder.hpp File Reference
#include <vulkan/vulkan.h>
#include <memory>
#include <unordered_map>
#include <vector>
Include dependency graph for DescriptorBuilder.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PoolManager
 This class manages descriptor pools, and allows for the allocation of descriptor sets. More...
 
class  DescriptorSetLayoutCache
 The use of this class is to cache descriptor set layouts. More...
 
struct  DescriptorSetLayoutCache::DescriptorSetLayoutInfo
 
struct  DescriptorSetLayoutCache::DescriptorLayoutHasher
 
class  DescriptorBuilder
 DescriptorBuilder uses PoolManager and DescriptorLayoutCache to manage and create descriptor sets. More...
 

Functions

const std::vector< VkDescriptorPoolSize > STANDARD_POOL_SIZES ({{VK_DESCRIPTOR_TYPE_SAMPLER, 1000}, {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1000}, {VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 1000}, {VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, 1000}, {VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, 1000}})
 

Variables

constexpr VkDeviceSize POOL_CHUNK_SIZE = 256
 

Function Documentation

◆ STANDARD_POOL_SIZES()

const std::vector<VkDescriptorPoolSize> STANDARD_POOL_SIZES ( {{VK_DESCRIPTOR_TYPE_SAMPLER, 1000}, {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1000}, {VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 1000}, {VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1000}, {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 1000}, {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, 1000}, {VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, 1000}}  )
Here is the caller graph for this function:

Variable Documentation

◆ POOL_CHUNK_SIZE

constexpr VkDeviceSize POOL_CHUNK_SIZE = 256
constexpr