Hymn to Beauty
C++ 3D Engine
Video::VulkanGraphicsPipeline Class Reference

Vulkan implementation of GraphicsPipeline. More...

#include <VulkanGraphicsPipeline.hpp>

Inheritance diagram for Video::VulkanGraphicsPipeline:
Video::GraphicsPipeline

Public Member Functions

 VulkanGraphicsPipeline (const VulkanRenderer &renderer, VkDevice device, const ShaderProgram *shaderProgram, const Configuration &configuration, const VertexDescription *vertexDescription=nullptr)
 Create new Vulkan graphics pipeline. More...
 
 ~VulkanGraphicsPipeline () final
 Destructor. More...
 
VkPipeline GetPipeline (const VulkanRenderPass *renderPass)
 Get the Vulkan pipeline for a given render pass. More...
 
VkPipelineLayout GetPipelineLayout () const
 Get the Vulkan pipeline layout. More...
 
const VulkanShaderProgramGetShaderProgram () const
 Get the Vulkan shader program. More...
 
- Public Member Functions inherited from Video::GraphicsPipeline
 GraphicsPipeline ()
 Create a new graphics pipeline. More...
 
virtual ~GraphicsPipeline ()
 Destructor. More...
 

Detailed Description

Vulkan implementation of GraphicsPipeline.

Constructor & Destructor Documentation

◆ VulkanGraphicsPipeline()

Video::VulkanGraphicsPipeline::VulkanGraphicsPipeline ( const VulkanRenderer renderer,
VkDevice  device,
const ShaderProgram shaderProgram,
const Configuration configuration,
const VertexDescription vertexDescription = nullptr 
)

Create new Vulkan graphics pipeline.

Parameters
rendererThe Vulkan renderer.
deviceThe Vulkan device.
shaderProgramThe shader program to use.
configurationThe configuration of the pipeline.
vertexDescriptionThe description of the vertex input to the pipeline.

◆ ~VulkanGraphicsPipeline()

Video::VulkanGraphicsPipeline::~VulkanGraphicsPipeline ( )
final

Destructor.

Member Function Documentation

◆ GetPipeline()

VkPipeline Video::VulkanGraphicsPipeline::GetPipeline ( const VulkanRenderPass renderPass)

Get the Vulkan pipeline for a given render pass.

Parameters
renderPassThe RenderPass to be compatible with.
Returns
The internal Vulkan pipeline.

◆ GetPipelineLayout()

VkPipelineLayout Video::VulkanGraphicsPipeline::GetPipelineLayout ( ) const

Get the Vulkan pipeline layout.

Returns
The pipeline layout.

◆ GetShaderProgram()

const VulkanShaderProgram * Video::VulkanGraphicsPipeline::GetShaderProgram ( ) const

Get the Vulkan shader program.

Returns
The shader program.

The documentation for this class was generated from the following files: