|
vk::Device | m_Device |
|
std::vector< vk::DescriptorPool > | m_Pools |
|
std::vector< vk::DescriptorPoolSize > | m_PoolSizes |
|
vk::DescriptorPoolCreateInfo | m_PoolInfo |
|
std::vector< DescriptorSet > | m_DescriptorSets |
|
◆ DescriptorManager()
vkcv::DescriptorManager::DescriptorManager |
( |
vk::Device |
device | ) |
|
|
explicitnoexcept |
Allocate the set size for the descriptor pools, namely 1000 units of each descriptor type below. Finally, create an initial pool.
◆ allocateDescriptorPool()
vk::DescriptorPool vkcv::DescriptorManager::allocateDescriptorPool |
( |
| ) |
|
|
private |
creates a descriptor pool based on the poolSizes and poolInfo defined in the constructor is called initially in the constructor and then every time the pool runs out memory
- Returns
- a DescriptorPool object
◆ convertDescriptorTypeFlag()
vk::DescriptorType vkcv::DescriptorManager::convertDescriptorTypeFlag |
( |
DescriptorType |
type | ) |
|
|
staticprivate |
Converts the flags of the descriptor types from VulkanCV (vkcv) to Vulkan (vk).
- Parameters
-
- Returns
- vk flag of the DescriptorType
◆ convertShaderStageFlag()
vk::ShaderStageFlagBits vkcv::DescriptorManager::convertShaderStageFlag |
( |
ShaderStage |
stage | ) |
|
|
staticprivate |
Converts the flags of the shader stages from VulkanCV (vkcv) to Vulkan (vk).
- Parameters
-
- Returns
- vk flag of the ShaderStage
◆ destroyDescriptorSetById()
void vkcv::DescriptorManager::destroyDescriptorSetById |
( |
uint64_t |
id | ) |
|
|
private |
Destroys a specific resource description
- Parameters
-
[in] | the | handle id of the respective resource description |
References m_DescriptorSets.
◆ m_DescriptorSets
std::vector<DescriptorSet> vkcv::DescriptorManager::m_DescriptorSets |
|
private |
Contains all the resource descriptions that were requested by the user in calls of createResourceDescription.
Referenced by destroyDescriptorSetById().
The documentation for this class was generated from the following files: