Lugdunum  0.1.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lug::Graphics::Vulkan::API::DescriptorSet Class Reference

#include <DescriptorSet.hpp>

Collaboration diagram for lug::Graphics::Vulkan::API::DescriptorSet:
[legend]

Public Member Functions

 DescriptorSet ()=default
 
 DescriptorSet (const DescriptorSet &)=delete
 
 DescriptorSet (DescriptorSet &&DescriptorSet)
 
DescriptorSetoperator= (const DescriptorSet &)=delete
 
DescriptorSetoperator= (DescriptorSet &&DescriptorSet)
 
 ~DescriptorSet ()
 
 operator VkDescriptorSet () const
 
void updateBuffers (uint32_t dstBinding, uint32_t dstArrayElement, VkDescriptorType descriptorType, const std::vector< VkDescriptorBufferInfo > &bufferInfos) const
 Update the descriptor set buffers. More...
 
void updateImages (uint32_t dstBinding, uint32_t dstArrayElement, VkDescriptorType descriptorType, const std::vector< VkDescriptorImageInfo > &imageInfos) const
 Update the descriptor set images. More...
 
void destroy ()
 

Private Member Functions

 DescriptorSet (VkDescriptorSet descriptorSet, const Device *device)
 

Private Attributes

VkDescriptorSet _descriptorSet {VK_NULL_HANDLE}
 
const Device_device {nullptr}
 

Friends

class Builder::DescriptorSet
 

Detailed Description

Definition at line 18 of file DescriptorSet.hpp.

Constructor & Destructor Documentation

◆ DescriptorSet() [1/4]

lug::Graphics::Vulkan::API::DescriptorSet::DescriptorSet ( )
default

◆ DescriptorSet() [2/4]

lug::Graphics::Vulkan::API::DescriptorSet::DescriptorSet ( const DescriptorSet )
delete

◆ DescriptorSet() [3/4]

lug::Graphics::Vulkan::API::DescriptorSet::DescriptorSet ( DescriptorSet &&  DescriptorSet)

Definition at line 14 of file DescriptorSet.cpp.

◆ ~DescriptorSet()

lug::Graphics::Vulkan::API::DescriptorSet::~DescriptorSet ( )

Definition at line 35 of file DescriptorSet.cpp.

◆ DescriptorSet() [4/4]

lug::Graphics::Vulkan::API::DescriptorSet::DescriptorSet ( VkDescriptorSet  descriptorSet,
const Device device 
)
explicitprivate

Definition at line 12 of file DescriptorSet.cpp.

Member Function Documentation

◆ operator=() [1/2]

DescriptorSet& lug::Graphics::Vulkan::API::DescriptorSet::operator= ( const DescriptorSet )
delete

◆ operator=() [2/2]

DescriptorSet & lug::Graphics::Vulkan::API::DescriptorSet::operator= ( DescriptorSet &&  DescriptorSet)

Definition at line 23 of file DescriptorSet.cpp.

◆ operator VkDescriptorSet()

lug::Graphics::Vulkan::API::DescriptorSet::operator VkDescriptorSet ( ) const
inlineexplicit

Definition at line 32 of file DescriptorSet.hpp.

◆ updateBuffers()

void lug::Graphics::Vulkan::API::DescriptorSet::updateBuffers ( uint32_t  dstBinding,
uint32_t  dstArrayElement,
VkDescriptorType  descriptorType,
const std::vector< VkDescriptorBufferInfo > &  bufferInfos 
) const

Update the descriptor set buffers.

Parameters
[in]dstBindingThe destination binding
[in]dstArrayElementThe starting element in the descriptor set binding array
[in]descriptorTypeThe descriptor type
[in]bufferInfosThe buffers to bind to the descriptor set

Definition at line 39 of file DescriptorSet.cpp.

◆ updateImages()

void lug::Graphics::Vulkan::API::DescriptorSet::updateImages ( uint32_t  dstBinding,
uint32_t  dstArrayElement,
VkDescriptorType  descriptorType,
const std::vector< VkDescriptorImageInfo > &  imageInfos 
) const

Update the descriptor set images.

Parameters
[in]dstBindingThe destination binding
[in]dstArrayElementThe starting element in the descriptor set binding array
[in]descriptorTypeThe descriptor type
[in]imageInfosThe images to bind to the descriptor set

Definition at line 61 of file DescriptorSet.cpp.

◆ destroy()

void lug::Graphics::Vulkan::API::DescriptorSet::destroy ( )

Definition at line 83 of file DescriptorSet.cpp.

Friends And Related Function Documentation

◆ Builder::DescriptorSet

friend class Builder::DescriptorSet
friend

Definition at line 19 of file DescriptorSet.hpp.

Member Data Documentation

◆ _descriptorSet

VkDescriptorSet lug::Graphics::Vulkan::API::DescriptorSet::_descriptorSet {VK_NULL_HANDLE}
private

Definition at line 72 of file DescriptorSet.hpp.

◆ _device

const Device* lug::Graphics::Vulkan::API::DescriptorSet::_device {nullptr}
private

Definition at line 73 of file DescriptorSet.hpp.


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