SimpleGL
1.1.0
A framework for platform independent rendering
|
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... | |
This class wraps a Vulkan descriptor set.
Definition at line 56 of file descriptor_set.hpp.
sgl::DescriptorSet::DescriptorSet | ( | GraphicsPipeline * | graphicsPipeline | ) |
Creates a new descriptor set.
graphicsPipeline | The 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.
VkDescriptorSet sgl::DescriptorSet::getHandle | ( | ) |
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.
uniformBuffer | The uniform buffer to write. |
data | The 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.
uniformBuffer | The uniform buffer to write. |
data | The 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.
uniformBuffer | The uniform buffer to write. |
data | The 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.
textureImage | The imager to write into the descriptor set. |
Definition at line 152 of file descriptor_set.cpp.