Descriptor class for managing Vulkan descriptor sets.
More...
#include <Descriptor.h>
|
MANDRILL_API | Descriptor (ptr< Device > pDevice, const std::vector< DescriptorDesc > &desc, VkDescriptorSetLayout layout) |
| Create a new descriptor.
|
|
MANDRILL_API | ~Descriptor () |
| Destructor for descriptor.
|
|
MANDRILL_API void | bind (VkCommandBuffer cmd, VkPipelineBindPoint bindPoint, VkPipelineLayout pipelineLayout, uint32_t firstSet, std::vector< uint32_t > offsets) |
| Bind descriptor with vector of dynamic offsets.
|
|
MANDRILL_API void | bind (VkCommandBuffer cmd, VkPipelineBindPoint bindPoint, VkPipelineLayout pipelineLayout, uint32_t firstSet, uint32_t offset) |
| Bind descriptor with one dynamic offset.
|
|
MANDRILL_API void | bind (VkCommandBuffer cmd, VkPipelineBindPoint bindPoint, VkPipelineLayout pipelineLayout, uint32_t firstSet) |
| Bind descriptor.
|
|
MANDRILL_API VkDescriptorSet | getSet () const |
| Get the descriptor set handle.
|
|
Descriptor class for managing Vulkan descriptor sets.
◆ Descriptor()
Descriptor::Descriptor |
( |
ptr< Device > |
pDevice, |
|
|
const std::vector< DescriptorDesc > & |
desc, |
|
|
VkDescriptorSetLayout |
layout |
|
) |
| |
Create a new descriptor.
- Parameters
-
pDevice | Device to use |
desc | Description of the descriptor being created |
layout | Layout to use |
◆ bind() [1/3]
MANDRILL_API void Mandrill::Descriptor::bind |
( |
VkCommandBuffer |
cmd, |
|
|
VkPipelineBindPoint |
bindPoint, |
|
|
VkPipelineLayout |
pipelineLayout, |
|
|
uint32_t |
firstSet |
|
) |
| |
|
inline |
Bind descriptor.
- Parameters
-
cmd | Command buffer to use |
bindPoint | Bind point in pipeline |
pipelineLayout | Layout of pipeline |
firstSet | At which index to put the start of the descriptor |
- Returns
◆ bind() [2/3]
MANDRILL_API void Mandrill::Descriptor::bind |
( |
VkCommandBuffer |
cmd, |
|
|
VkPipelineBindPoint |
bindPoint, |
|
|
VkPipelineLayout |
pipelineLayout, |
|
|
uint32_t |
firstSet, |
|
|
std::vector< uint32_t > |
offsets |
|
) |
| |
|
inline |
Bind descriptor with vector of dynamic offsets.
- Parameters
-
cmd | Command buffer to use |
bindPoint | Bind point in pipeline |
pipelineLayout | Layout of pipeline |
firstSet | At which index to put the start of the descriptor |
offsets | Vector of dynamic offsets |
- Returns
◆ bind() [3/3]
MANDRILL_API void Mandrill::Descriptor::bind |
( |
VkCommandBuffer |
cmd, |
|
|
VkPipelineBindPoint |
bindPoint, |
|
|
VkPipelineLayout |
pipelineLayout, |
|
|
uint32_t |
firstSet, |
|
|
uint32_t |
offset |
|
) |
| |
|
inline |
Bind descriptor with one dynamic offset.
- Parameters
-
cmd | Command buffer to use |
bindPoint | Bind point in pipeline |
pipelineLayout | Layout of pipeline |
firstSet | At which index to put the start of the descriptor |
offset | A dynamic offset |
- Returns
◆ getSet()
MANDRILL_API VkDescriptorSet Mandrill::Descriptor::getSet |
( |
| ) |
const |
|
inline |
Get the descriptor set handle.
- Returns
- Descriptor set handle
The documentation for this class was generated from the following files:
- /home/runner/work/Mandrill/Mandrill/src/Descriptor.h
- /home/runner/work/Mandrill/Mandrill/src/Descriptor.cpp