DescriptorBuilder uses PoolManager and DescriptorLayoutCache to manage and create descriptor sets.
More...
#include <DescriptorBuilder.hpp>
|
| | DescriptorBuilder (PoolManager &poolManager, DescriptorSetLayoutCache &cache) |
| |
| | ~DescriptorBuilder () |
| |
| DescriptorBuilder & | bindBuffer (VkDescriptorBufferInfo &bufferInfo, VkDescriptorType type, VkShaderStageFlags stageFlags) |
| | Creates a descriptor set layout binding and a write descriptor set for a buffer. More...
|
| |
| DescriptorBuilder & | bindBuffers (const VkDescriptorBufferInfo *bufferInfos, VkDescriptorType type, VkShaderStageFlags stageFlags, uint32_t count) |
| | Creates a descriptor set layout binding and a write descriptor set for multiple buffers. More...
|
| |
| DescriptorBuilder & | bindImage (VkDescriptorImageInfo &imageInfo, VkDescriptorType type, VkShaderStageFlags stageFlags) |
| | Creates a descriptor set layout binding and a write descriptor set for an image. More...
|
| |
| DescriptorBuilder & | bindImages (const VkDescriptorImageInfo *imageInfos, VkDescriptorType type, VkShaderStageFlags stageFlags, uint32_t count) |
| | Binds multiple images to the descriptor set as an array. More...
|
| |
| bool | build (VkDescriptorSet &set, VkDescriptorSetLayout &layout) |
| | Builds a descriptor set and sets a created layout to the supplied parameter. Also updates the descriptor sets. More...
|
| |
| bool | build (VkDescriptorSet &set) |
| | Builds a descriptor set. More...
|
| |
| void | setDescriptorSetLayout (const VkDescriptorSetLayoutBinding *bindings, uint32_t bindingCount, VkDescriptorSetLayout &layout) |
| | Sets a layout to the supplied parameter from the given bindings. More...
|
| |
| const PoolManager & | getPoolManager () const |
| |
DescriptorBuilder uses PoolManager and DescriptorLayoutCache to manage and create descriptor sets.
◆ DescriptorBuilder()
◆ ~DescriptorBuilder()
| DescriptorBuilder::~DescriptorBuilder |
( |
| ) |
|
◆ bindBuffer()
| DescriptorBuilder & DescriptorBuilder::bindBuffer |
( |
VkDescriptorBufferInfo & |
bufferInfo, |
|
|
VkDescriptorType |
type, |
|
|
VkShaderStageFlags |
stageFlags |
|
) |
| |
Creates a descriptor set layout binding and a write descriptor set for a buffer.
- Parameters
-
| bufferInfo | struct decribing the buffer data. |
| type | of descriptor |
| stageFlags | Descriptor stage |
- Returns
- The builder itself.
◆ bindBuffers()
| DescriptorBuilder & DescriptorBuilder::bindBuffers |
( |
const VkDescriptorBufferInfo * |
bufferInfos, |
|
|
VkDescriptorType |
type, |
|
|
VkShaderStageFlags |
stageFlags, |
|
|
uint32_t |
count |
|
) |
| |
Creates a descriptor set layout binding and a write descriptor set for multiple buffers.
- Parameters
-
| bufferInfos | is a pointer to the list of buffer info structs. |
| type | is the type of resource. |
| stageFlags | is the shader stage. |
| count | is the number of elements in the bufferInfos array. |
- Returns
- The builder itself
◆ bindImage()
| DescriptorBuilder & DescriptorBuilder::bindImage |
( |
VkDescriptorImageInfo & |
imageInfo, |
|
|
VkDescriptorType |
type, |
|
|
VkShaderStageFlags |
stageFlags |
|
) |
| |
Creates a descriptor set layout binding and a write descriptor set for an image.
- Parameters
-
| imageInfo | struct decribing the image data. |
| type | of descriptor. |
| stageFlags | Descriptor stage. |
- Returns
- The builder itself.
◆ bindImages()
| DescriptorBuilder & DescriptorBuilder::bindImages |
( |
const VkDescriptorImageInfo * |
imageInfos, |
|
|
VkDescriptorType |
type, |
|
|
VkShaderStageFlags |
stageFlags, |
|
|
uint32_t |
count |
|
) |
| |
Binds multiple images to the descriptor set as an array.
- Parameters
-
| imageInfos | is an array of image info structs. |
| type | of resource. |
| stageFlags | is the shader stage. |
| count | is the number of images to bind. Must match what is in the imageInfos array. |
- Returns
- the builder itself.
◆ build() [1/2]
| bool DescriptorBuilder::build |
( |
VkDescriptorSet & |
set | ) |
|
Builds a descriptor set.
- Parameters
-
- Returns
- Boolean indicating operation status
◆ build() [2/2]
| bool DescriptorBuilder::build |
( |
VkDescriptorSet & |
set, |
|
|
VkDescriptorSetLayout & |
layout |
|
) |
| |
Builds a descriptor set and sets a created layout to the supplied parameter. Also updates the descriptor sets.
- Parameters
-
| set | to be created. |
| layout | to be filled. |
- Returns
- Boolean indicating operation status.
◆ getPoolManager()
| const PoolManager & DescriptorBuilder::getPoolManager |
( |
| ) |
const |
◆ setDescriptorSetLayout()
| void DescriptorBuilder::setDescriptorSetLayout |
( |
const VkDescriptorSetLayoutBinding * |
bindings, |
|
|
uint32_t |
bindingCount, |
|
|
VkDescriptorSetLayout & |
layout |
|
) |
| |
Sets a layout to the supplied parameter from the given bindings.
- Parameters
-
| layout | to be set |
| bindings | to be used |
◆ currentBindingM
| uint32_t DescriptorBuilder::currentBindingM |
|
private |
◆ layoutBindingsM
| std::vector<VkDescriptorSetLayoutBinding> DescriptorBuilder::layoutBindingsM |
|
private |
◆ pLayoutCacheM
◆ pPoolManagerM
| std::unique_ptr<PoolManager> DescriptorBuilder::pPoolManagerM |
|
private |
◆ writeSetsM
| std::vector<VkWriteDescriptorSet> DescriptorBuilder::writeSetsM |
|
private |
The documentation for this class was generated from the following files: