KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::FVulkanDescriptorSetsLayoutInfo Class Reference
Inheritance diagram for Karma::FVulkanDescriptorSetsLayoutInfo:
Karma::FVulkanDescriptorSetsLayout

Classes

struct  FSetLayout
 Structure representing a descriptor set layout. More...

Public Member Functions

 FVulkanDescriptorSetsLayoutInfo ()
 Constructor.
void SetLayoutTypes (const KarmaVector< VkDescriptorType > &NeededDescriptorTypes)
uint32_t GetTypesUsed (VkDescriptorType Type) const
 Returns the number of descriptors of a specific type used in the layout, across all descriptor sets.
const KarmaVector< FSetLayout > & GetLayouts () const
const KarmaMap< VkDescriptorType, uint32_t > & GetLayoutTypes () const
void AddDescriptor (int32_t DescriptorSetIndex, const VkDescriptorSetLayoutBinding &Descriptor)
void AddDescriptorSet (FSetLayout SetLayout)

Protected Attributes

KarmaMap< VkDescriptorType, uint32_t > m_LayoutTypes
 Map storing the count of each Vulkan descriptor type used in the layout.
KarmaVector< FSetLayoutm_SetLayouts
uint32_t m_Hash = 0
VkPipelineBindPoint m_BindPoint = VK_PIPELINE_BIND_POINT_MAX_ENUM

Constructor & Destructor Documentation

◆ FVulkanDescriptorSetsLayoutInfo()

Karma::FVulkanDescriptorSetsLayoutInfo::FVulkanDescriptorSetsLayoutInfo ( )
inline

Constructor.

Adds all the Vulkan descriptor types currently needed.

Since
Karma 1.0.0

Member Function Documentation

◆ GetTypesUsed()

uint32_t Karma::FVulkanDescriptorSetsLayoutInfo::GetTypesUsed ( VkDescriptorType Type) const
inline

Returns the number of descriptors of a specific type used in the layout, across all descriptor sets.

Parameters
TypeThe Vulkan descriptor type to query.
Returns
The number of descriptors of the specified type used in the layout.
Since
Karma 1.0.0

The documentation for this class was generated from the following files: