KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::FVulkanDescriptorSets Struct Reference

Public Member Functions

 FVulkanDescriptorSets (FVulkanDevice *InDevice, const FVulkanDescriptorSetsLayout &InLayout)
 Constructor for FVulkanDescriptorSets.
void UpdateUniformBufferDescriptorSet (class VulkanUniformBuffer *Uniform, uint32_t SetLayoutIndex, uint32_t DescriptorSetIndex, uint32_t FrameIndex)
 Assigns an Engine's uniform buffer to a specific descriptor set of a specific layout.
void UpdateTextureDescriptorSet (class VulkanTexture *Texture, uint32_t SetLayoutIndex, uint32_t DescriptorSetIndex)
 Assigns an Engine's texture to a specific descriptor set of a specific layout.

Public Attributes

FVulkanDevicem_Device
KarmaVector< KarmaVector< VkDescriptorSet > > m_DescriptorSets

Constructor & Destructor Documentation

◆ FVulkanDescriptorSets()

Karma::FVulkanDescriptorSets::FVulkanDescriptorSets ( FVulkanDevice * InDevice,
const FVulkanDescriptorSetsLayout & InLayout )

Constructor for FVulkanDescriptorSets.

Initializes the descriptor sets based on the provided Vulkan device and descriptor set layout.

The descriptor sets are allocated based on the layout information, and are stored in a vector of vectors, where each inner vector corresponds to a specific descriptor set layout, and contains the allocated descriptor sets for that layout.

Parameters
InDeviceThe Vulkan device used for creating descriptor sets.
InLayoutThe descriptor set layout defining the structure of the descriptor sets.
Since
Karma 1.0.0

Member Function Documentation

◆ UpdateTextureDescriptorSet()

void Karma::FVulkanDescriptorSets::UpdateTextureDescriptorSet ( class VulkanTexture * Texture,
uint32_t SetLayoutIndex,
uint32_t DescriptorSetIndex )

Assigns an Engine's texture to a specific descriptor set of a specific layout.

Parameters
TextureThe texture to be assigned to the descriptor set
SetLayoutIndexThe index of the descriptor set layout to which the descriptor set belongs
DescriptorSetIndexThe index of the descriptor set within the specified layout to which the texture will be assigned
Since
Karma 1.0.0

◆ UpdateUniformBufferDescriptorSet()

void Karma::FVulkanDescriptorSets::UpdateUniformBufferDescriptorSet ( class VulkanUniformBuffer * Uniform,
uint32_t SetLayoutIndex,
uint32_t DescriptorSetIndex,
uint32_t FrameIndex )

Assigns an Engine's uniform buffer to a specific descriptor set of a specific layout.

Parameters
UniformThe uniform buffer to be assigned to the descriptor set
SetLayoutIndexThe index of the descriptor set layout to which the descriptor set belongs
DescriptorSetIndexThe index of the descriptor set within the specified layout to which the uniform buffer will be assigned
FrameIndexThe index of the the frame for which the descriptor set will be updated with the uniform buffer. Uniform buffers are for each frame in flight, so the descriptor sets must be updated for each frame in flight, with the corresponding uniform buffer for that frame
Since
Karma 1.0.0

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