|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
#include <LayoutBindingsBuilder.h>
Public Member Functions | |
| LayoutBindingsBuilder ()=default | |
| LayoutBindingsBuilder & | addUniformBuffer (uint32_t binding, VkShaderStageFlags stageFlags) |
| Adds a uniform buffer for binding. | |
| LayoutBindingsBuilder & | addStorageBuffer (uint32_t binding, VkShaderStageFlags stageFlags) |
| Adds a storage buffer to for binding. | |
| LayoutBindingsBuilder & | addTextureBuffer (uint32_t binding, VkShaderStageFlags stageFlags) |
| Adds a texture buffer for binding. | |
| void | build () |
| Decorative. Finishes the nodiscard chain of added buffers. | |
| const std::vector< VkDescriptorSetLayoutBinding > & | getBindings () const |
| Getter for the descriptor bindings. | |
| const std::vector< VkDescriptorBindingFlags > & | getFlags () const |
| Getter for the descriptor flags. | |
Private Attributes | |
| std::vector< VkDescriptorSetLayoutBinding > | bindings |
| std::vector< VkDescriptorBindingFlags > | flags |
Definition at line 21 of file LayoutBindingsBuilder.h.
|
default |
References LayoutBindingsBuilder().
Referenced by addStorageBuffer(), addTextureBuffer(), addUniformBuffer(), and LayoutBindingsBuilder().
|
nodiscard |
Adds a storage buffer to for binding.
| binding | which index of the descriptor set layout to bind to |
| stageFlags | which stages this buffer is used by |
Definition at line 19 of file LayoutBindingsBuilder.cpp.
References bindings, flags, and LayoutBindingsBuilder().
|
nodiscard |
Adds a texture buffer for binding.
| binding | which index to bind to. Usually set by enums |
| stageFlags | which stages this buffer is used by |
Definition at line 31 of file LayoutBindingsBuilder.cpp.
References bindings, flags, LayoutBindingsBuilder(), and MAX_TEXTURE_COUNT.
|
nodiscard |
Adds a uniform buffer for binding.
| binding | which index of the descriptor set layout to bind to |
| stageFlags | which stages this buffer is used by |
Definition at line 7 of file LayoutBindingsBuilder.cpp.
References bindings, flags, and LayoutBindingsBuilder().
| void EngineCore::LayoutBindingsBuilder::build | ( | ) |
Decorative. Finishes the nodiscard chain of added buffers.
Definition at line 43 of file LayoutBindingsBuilder.cpp.
|
inlinenodiscard |
Getter for the descriptor bindings.
Definition at line 71 of file LayoutBindingsBuilder.h.
References bindings.
|
inlinenodiscard |
Getter for the descriptor flags.
Definition at line 80 of file LayoutBindingsBuilder.h.
References flags.
|
private |
Definition at line 84 of file LayoutBindingsBuilder.h.
Referenced by addStorageBuffer(), addTextureBuffer(), addUniformBuffer(), and getBindings().
|
private |
Definition at line 85 of file LayoutBindingsBuilder.h.
Referenced by addStorageBuffer(), addTextureBuffer(), addUniformBuffer(), and getFlags().