#include <Shader.h>
Class which encapsulates a single shader consisting of several ShaderModule instances.
◆ Shader()
| VulkanEngine::Shader::Shader |
( |
const std::vector< std::shared_ptr< ShaderModule > > & |
_shader_modules | ) |
|
|
explicit |
◆ bindDescriptorSet()
| void VulkanEngine::Shader::bindDescriptorSet |
( |
const vk::CommandBuffer & |
command_buffer, |
|
|
uint32_t |
descriptor_set_index |
|
) |
| |
Bind a set of descriptors to an index.
- Parameters
-
| command_buffer | Command buffer used for binding. |
| descriptor_set_index | The index to bind to. |
◆ createVkPipelineLayout()
| const vk::PipelineLayout VulkanEngine::Shader::createVkPipelineLayout |
( |
| ) |
|
- Returns
- Vulkan PipelineLayout instances.
◆ getVkShaderStages()
| const std::vector< vk::PipelineShaderStageCreateInfo > & VulkanEngine::Shader::getVkShaderStages |
( |
| ) |
const |
- Returns
- Vulkan PipelineShaderStageCreateInfo instances.
◆ setDescriptors()
| void VulkanEngine::Shader::setDescriptors |
( |
const std::vector< std::vector< std::shared_ptr< Descriptor > > > & |
_descriptors | ) |
|
Set descriptors for this shader, such as images and buffers.
- Parameters
-
| _descriptors | List of descriptors to set. |
The documentation for this class was generated from the following files:
- include/VulkanEngine/Shader.h
- src/Shader.cpp