vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
ven::DescriptorWriter Class Reference

Class for descriptor writer. More...

#include <Writer.hpp>

+ Collaboration diagram for ven::DescriptorWriter:

Public Member Functions

 DescriptorWriter (DescriptorSetLayout &setLayout, DescriptorPool &pool)
 
 ~DescriptorWriter ()=default
 
 DescriptorWriter (const DescriptorWriter &)=delete
 
DescriptorWriteroperator= (const DescriptorWriter &)=delete
 
 DescriptorWriter (DescriptorWriter &&)=delete
 
DescriptorWriteroperator= (DescriptorWriter &&)=delete
 
DescriptorWriterwriteBuffer (uint32_t binding, const VkDescriptorBufferInfo *bufferInfo)
 
DescriptorWriterwriteImage (uint32_t binding, const VkDescriptorImageInfo *imageInfo)
 
bool build (VkDescriptorSet &set)
 
void overwrite (const VkDescriptorSet &set)
 

Private Attributes

DescriptorSetLayoutm_setLayout
 
DescriptorPoolm_pool
 
std::vector< VkWriteDescriptorSet > m_writes
 

Detailed Description

Class for descriptor writer.

Definition at line 19 of file Writer.hpp.

Constructor & Destructor Documentation

◆ DescriptorWriter() [1/3]

ven::DescriptorWriter::DescriptorWriter ( DescriptorSetLayout & setLayout,
DescriptorPool & pool )
inline

Definition at line 23 of file Writer.hpp.

◆ ~DescriptorWriter()

ven::DescriptorWriter::~DescriptorWriter ( )
default

◆ DescriptorWriter() [2/3]

ven::DescriptorWriter::DescriptorWriter ( const DescriptorWriter & )
delete

◆ DescriptorWriter() [3/3]

ven::DescriptorWriter::DescriptorWriter ( DescriptorWriter && )
delete

Member Function Documentation

◆ build()

bool ven::DescriptorWriter::build ( VkDescriptorSet & set)

Definition at line 43 of file writer.cpp.

Referenced by ven::ObjectRenderSystem::render(), and ven::Engine::run().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

DescriptorWriter & ven::DescriptorWriter::operator= ( const DescriptorWriter & )
delete

◆ operator=() [2/2]

DescriptorWriter & ven::DescriptorWriter::operator= ( DescriptorWriter && )
delete

◆ overwrite()

void ven::DescriptorWriter::overwrite ( const VkDescriptorSet & set)

Definition at line 52 of file writer.cpp.

◆ writeBuffer()

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().

+ Here is the caller graph for this function:

◆ writeImage()

ven::DescriptorWriter & ven::DescriptorWriter::writeImage ( uint32_t binding,
const VkDescriptorImageInfo * imageInfo )

Definition at line 24 of file writer.cpp.

Referenced by ven::ObjectRenderSystem::render().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_pool

DescriptorPool& ven::DescriptorWriter::m_pool
private

Definition at line 40 of file Writer.hpp.

◆ m_setLayout

DescriptorSetLayout& ven::DescriptorWriter::m_setLayout
private

Definition at line 39 of file Writer.hpp.

Referenced by writeBuffer().

◆ m_writes

std::vector<VkWriteDescriptorSet> ven::DescriptorWriter::m_writes
private

Definition at line 41 of file Writer.hpp.

Referenced by writeBuffer().


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