Class for descriptor writer. More...
#include <Writer.hpp>
Public Member Functions | |
DescriptorWriter (DescriptorSetLayout &setLayout, DescriptorPool &pool) | |
~DescriptorWriter ()=default | |
DescriptorWriter (const DescriptorWriter &)=delete | |
DescriptorWriter & | operator= (const DescriptorWriter &)=delete |
DescriptorWriter (DescriptorWriter &&)=delete | |
DescriptorWriter & | operator= (DescriptorWriter &&)=delete |
DescriptorWriter & | writeBuffer (uint32_t binding, const VkDescriptorBufferInfo *bufferInfo) |
DescriptorWriter & | writeImage (uint32_t binding, const VkDescriptorImageInfo *imageInfo) |
bool | build (VkDescriptorSet &set) |
void | overwrite (const VkDescriptorSet &set) |
Private Attributes | |
DescriptorSetLayout & | m_setLayout |
DescriptorPool & | m_pool |
std::vector< VkWriteDescriptorSet > | m_writes |
Class for descriptor writer.
Definition at line 19 of file Writer.hpp.
|
inline |
Definition at line 23 of file Writer.hpp.
|
default |
|
delete |
|
delete |
bool ven::DescriptorWriter::build | ( | VkDescriptorSet & | set | ) |
Definition at line 43 of file writer.cpp.
Referenced by ven::ObjectRenderSystem::render(), and ven::Engine::run().
|
delete |
|
delete |
void ven::DescriptorWriter::overwrite | ( | const VkDescriptorSet & | set | ) |
Definition at line 52 of file writer.cpp.
ven::DescriptorWriter & ven::DescriptorWriter::writeBuffer | ( | uint32_t | binding, |
const VkDescriptorBufferInfo * | bufferInfo ) |
Definition at line 5 of file writer.cpp.
References ven::DescriptorSetLayout::m_bindings, m_setLayout, and m_writes.
Referenced by ven::ObjectRenderSystem::render(), and ven::Engine::run().
ven::DescriptorWriter & ven::DescriptorWriter::writeImage | ( | uint32_t | binding, |
const VkDescriptorImageInfo * | imageInfo ) |
Definition at line 24 of file writer.cpp.
Referenced by ven::ObjectRenderSystem::render().
|
private |
Definition at line 40 of file Writer.hpp.
|
private |
Definition at line 39 of file Writer.hpp.
Referenced by writeBuffer().
|
private |
Definition at line 41 of file Writer.hpp.
Referenced by writeBuffer().