SimpleGL  1.1.0
A framework for platform independent rendering
Public Member Functions | List of all members
sgl::DescriptorSet Class Reference

This class wraps a Vulkan descriptor set. More...

#include <descriptor_set.hpp>

Public Member Functions

 DescriptorSet (GraphicsPipeline *graphicsPipeline)
 Creates a new descriptor set. More...
 
 ~DescriptorSet (void)
 Destroys the descriptor set. More...
 
VkDescriptorSet getHandle ()
 Returns the handle of the descriptor set. More...
 
void update (UniformBuffer *uniformBuffer, std::vector< glm::mat2 > data)
 Updates the descriptor set. More...
 
void update (UniformBuffer *uniformBuffer, std::vector< glm::mat3 > data)
 Updates the descriptor set. More...
 
void update (UniformBuffer *uniformBuffer, std::vector< glm::mat4 > data)
 Updates the descriptor set. More...
 
void update (TextureImage *textureImage)
 Updates the descriptor set. More...
 

Detailed Description

This class wraps a Vulkan descriptor set.

Definition at line 56 of file descriptor_set.hpp.

Constructor & Destructor Documentation

sgl::DescriptorSet::DescriptorSet ( GraphicsPipeline graphicsPipeline)

Creates a new descriptor set.

Parameters
graphicsPipelineThe graphics pipeline to get the descriptor set layout from.

Definition at line 53 of file descriptor_set.cpp.

sgl::DescriptorSet::~DescriptorSet ( void  )

Destroys the descriptor set.

Definition at line 71 of file descriptor_set.cpp.

Member Function Documentation

VkDescriptorSet sgl::DescriptorSet::getHandle ( )

Returns the handle of the descriptor set.

Returns
The handle of the descriptor set.

Definition at line 79 of file descriptor_set.cpp.

void sgl::DescriptorSet::update ( UniformBuffer uniformBuffer,
std::vector< glm::mat2 >  data 
)

Updates the descriptor set.

Parameters
uniformBufferThe uniform buffer to write.
dataThe value to write into the descriptor set.

Definition at line 83 of file descriptor_set.cpp.

void sgl::DescriptorSet::update ( UniformBuffer uniformBuffer,
std::vector< glm::mat3 >  data 
)

Updates the descriptor set.

Parameters
uniformBufferThe uniform buffer to write.
dataThe value to write into the descriptor set.

Definition at line 106 of file descriptor_set.cpp.

void sgl::DescriptorSet::update ( UniformBuffer uniformBuffer,
std::vector< glm::mat4 >  data 
)

Updates the descriptor set.

Parameters
uniformBufferThe uniform buffer to write.
dataThe value to write into the descriptor set.

Definition at line 129 of file descriptor_set.cpp.

void sgl::DescriptorSet::update ( TextureImage textureImage)

Updates the descriptor set.

Parameters
textureImageThe imager to write into the descriptor set.

Definition at line 152 of file descriptor_set.cpp.


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