vOOlkan
An object oriented approach to Vulkan
Vulkan::DescriptorSet< S > Class Template Reference

A DescriptorSet is an object which holds the handles (pointers) to the bindings (variables) in a specific set. More...

#include <DescriptorSet.h>

Public Member Functions

 DescriptorSet (const LogicalDevice &virtualGpu, const DescriptorSetPool &descriptorPool, const S &set)
 Builds a DescriptorSet by following the information of the passed-in set. More...
 
const VkDescriptorSet & operator+ () const
 
const S & getSet () const
 Returns the underlying set of this descriptor set. More...
 

Detailed Description

template<std::derived_from< Vulkan::Set > S>
class Vulkan::DescriptorSet< S >

A DescriptorSet is an object which holds the handles (pointers) to the bindings (variables) in a specific set.

If the layout of the set is { Data 40bytes, Data 6bytes, Data 10bytes }, then, by default, the descriptor set will hold 3 pointers into a UniformBuffer.

Constructor & Destructor Documentation

◆ DescriptorSet()

template<std::derived_from< Vulkan::Set > S>
Vulkan::DescriptorSet< S >::DescriptorSet ( const LogicalDevice virtualGpu,
const DescriptorSetPool descriptorPool,
const S &  set 
)
inline

Builds a DescriptorSet by following the information of the passed-in set.

Parameters
virtualGpuThe LogicalDevice.
realGpuThe PhysicalDevice.
descriptorPoolThe pool from which allocate the buffers.
setThe set from which to create this descriptor set. A DynamicSet has all the info about the layout of the bindings, such as their size and the buffers where they must be stored.

Member Function Documentation

◆ getSet()

template<std::derived_from< Vulkan::Set > S>
const S & Vulkan::DescriptorSet< S >::getSet ( ) const
inline

Returns the underlying set of this descriptor set.

◆ operator+()

template<std::derived_from< Vulkan::Set > S>
const VkDescriptorSet & Vulkan::DescriptorSet< S >::operator+ ( ) const
inline

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