Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::DescriptorBuilder Class Reference

#include <vkDescriptors.h>

Public Member Functions

DescriptorBuilderbindBuffer (U32 binding, VkDescriptorBufferInfo *bufferInfo, VkDescriptorType type, VkShaderStageFlags stageFlags)
 
DescriptorBuilderbindImage (U32 binding, VkDescriptorImageInfo *imageInfo, VkDescriptorType type, VkShaderStageFlags stageFlags)
 
bool buildSetFromLayout (VkDescriptorSet &set, const VkDescriptorSetLayout &layoutIn, VkDevice device)
 
bool buildSetAndLayout (VkDescriptorSet &set, VkDescriptorSetLayout &layoutOut, VkDevice device)
 

Static Public Member Functions

static DescriptorBuilder Begin (DescriptorLayoutCache *layoutCache, vke::DescriptorAllocatorHandle *allocator)
 

Private Attributes

eastl::fixed_vector< VkWriteDescriptorSet, MAX_BINDINGS_PER_DESCRIPTOR_SET, false > writes
 
eastl::fixed_vector< VkDescriptorSetLayoutBinding, MAX_BINDINGS_PER_DESCRIPTOR_SET, false > bindings
 
DescriptorLayoutCachecache { nullptr }
 
vke::DescriptorAllocatorHandlealloc { nullptr }
 

Detailed Description

Definition at line 92 of file vkDescriptors.h.

Member Function Documentation

◆ Begin()

DescriptorBuilder Divide::DescriptorBuilder::Begin ( DescriptorLayoutCache layoutCache,
vke::DescriptorAllocatorHandle allocator 
)
static

Definition at line 108 of file vkDescriptors.cpp.

◆ bindBuffer()

DescriptorBuilder & Divide::DescriptorBuilder::bindBuffer ( U32  binding,
VkDescriptorBufferInfo *  bufferInfo,
VkDescriptorType  type,
VkShaderStageFlags  stageFlags 
)

Definition at line 119 of file vkDescriptors.cpp.

◆ bindImage()

DescriptorBuilder & Divide::DescriptorBuilder::bindImage ( U32  binding,
VkDescriptorImageInfo *  imageInfo,
VkDescriptorType  type,
VkShaderStageFlags  stageFlags 
)

Definition at line 134 of file vkDescriptors.cpp.

◆ buildSetAndLayout()

bool Divide::DescriptorBuilder::buildSetAndLayout ( VkDescriptorSet &  set,
VkDescriptorSetLayout &  layoutOut,
VkDevice  device 
)

Definition at line 174 of file vkDescriptors.cpp.

◆ buildSetFromLayout()

bool Divide::DescriptorBuilder::buildSetFromLayout ( VkDescriptorSet &  set,
const VkDescriptorSetLayout &  layoutIn,
VkDevice  device 
)

Definition at line 148 of file vkDescriptors.cpp.

Member Data Documentation

◆ alloc

vke::DescriptorAllocatorHandle* Divide::DescriptorBuilder::alloc { nullptr }
private

Definition at line 108 of file vkDescriptors.h.

◆ bindings

eastl::fixed_vector<VkDescriptorSetLayoutBinding, MAX_BINDINGS_PER_DESCRIPTOR_SET, false> Divide::DescriptorBuilder::bindings
private

Definition at line 105 of file vkDescriptors.h.

◆ cache

DescriptorLayoutCache* Divide::DescriptorBuilder::cache { nullptr }
private

Definition at line 107 of file vkDescriptors.h.

◆ writes

eastl::fixed_vector<VkWriteDescriptorSet, MAX_BINDINGS_PER_DESCRIPTOR_SET, false> Divide::DescriptorBuilder::writes
private

Definition at line 104 of file vkDescriptors.h.


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