vengine  0.1.0
3D graphics engine made with Vulkan
Loading...
Searching...
No Matches
ven::DescriptorSetLayout::Builder Class Reference

#include <Descriptors.hpp>

+ Collaboration diagram for ven::DescriptorSetLayout::Builder:

Public Member Functions

 Builder (Device &device)
 
BuilderaddBinding (uint32_t binding, VkDescriptorType descriptorType, VkShaderStageFlags stageFlags, uint32_t count=1)
 
std::unique_ptr< DescriptorSetLayoutbuild () const
 

Private Attributes

Devicem_device
 
std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > m_bindings
 

Detailed Description

Definition at line 25 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ Builder()

ven::DescriptorSetLayout::Builder::Builder ( Device & device)
inlineexplicit

Definition at line 29 of file Descriptors.hpp.

Member Function Documentation

◆ addBinding()

ven::DescriptorSetLayout::Builder & ven::DescriptorSetLayout::Builder::addBinding ( uint32_t binding,
VkDescriptorType descriptorType,
VkShaderStageFlags stageFlags,
uint32_t count = 1 )

Definition at line 5 of file descriptors.cpp.

References m_bindings.

Referenced by ven::Engine::mainLoop().

+ Here is the caller graph for this function:

◆ build()

std::unique_ptr< DescriptorSetLayout > ven::DescriptorSetLayout::Builder::build ( ) const
inline

Definition at line 32 of file Descriptors.hpp.

References m_bindings, and m_device.

Referenced by ven::Engine::mainLoop().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bindings

std::unordered_map<uint32_t, VkDescriptorSetLayoutBinding> ven::DescriptorSetLayout::Builder::m_bindings
private

Definition at line 36 of file Descriptors.hpp.

Referenced by addBinding(), and build().

◆ m_device

Device& ven::DescriptorSetLayout::Builder::m_device
private

Definition at line 35 of file Descriptors.hpp.

Referenced by build().


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