Layout class that abstracts the handling of descriptor set layouts and push constants in Vulkan.
More...
#include <Layout.h>
|
MANDRILL_API | Layout (ptr< Device > pDevice, const std::vector< LayoutDesc > &desc, VkDescriptorSetLayoutCreateFlags flags=0) |
| Create a new layout.
|
|
MANDRILL_API | ~Layout () |
| Destructor for layout.
|
|
MANDRILL_API const std::vector< VkDescriptorSetLayout > & | getDescriptorSetLayouts () const |
| Get the descriptor set layouts.
|
|
MANDRILL_API const std::vector< VkPushConstantRange > & | getPushConstantRanges () const |
| Get the push constant ranges.
|
|
MANDRILL_API void | addPushConstantRange (VkPushConstantRange pushConstantRange) |
| Add a new push constant range.
|
|
Layout class that abstracts the handling of descriptor set layouts and push constants in Vulkan.
◆ Layout()
Layout::Layout |
( |
ptr< Device > |
pDevice, |
|
|
const std::vector< LayoutDesc > & |
desc, |
|
|
VkDescriptorSetLayoutCreateFlags |
flags = 0 |
|
) |
| |
Create a new layout.
- Parameters
-
pDevice | Device to use |
desc | Description of the layout |
flags | Creation flags |
◆ addPushConstantRange()
MANDRILL_API void Mandrill::Layout::addPushConstantRange |
( |
VkPushConstantRange |
pushConstantRange | ) |
|
|
inline |
Add a new push constant range.
- Parameters
-
pushConstantRange | Push constant range to add |
◆ getDescriptorSetLayouts()
MANDRILL_API const std::vector< VkDescriptorSetLayout > & Mandrill::Layout::getDescriptorSetLayouts |
( |
| ) |
const |
|
inline |
Get the descriptor set layouts.
- Returns
- Vector of descriptor set layouts
◆ getPushConstantRanges()
MANDRILL_API const std::vector< VkPushConstantRange > & Mandrill::Layout::getPushConstantRanges |
( |
| ) |
const |
|
inline |
Get the push constant ranges.
- Returns
- Vector of push constant ranges
The documentation for this class was generated from the following files:
- /home/runner/work/Mandrill/Mandrill/src/Layout.h
- /home/runner/work/Mandrill/Mandrill/src/Layout.cpp