VPP  0.8
A high-level modern C++ API for Vulkan
vpp::Pipeline Class Reference

Compiled pipeline class for graphics pipelines. More...

#include <vppPipeline.hpp>

Public Member Functions

 Pipeline ()
 Constructs null reference.
 
 Pipeline (VkPipeline hPipeline, const Device &hDevice)
 Constructs a pipeline object from Vulkan handle.
 
VkPipeline handle () const
 Retrieves the Vulkan handle of the pipeline.
 
void cmdBind (CommandBuffer hCmdBuffer=CommandBuffer()) const
 Generates a command to select the current pipeline. More...
 

Detailed Description

Compiled pipeline class for graphics pipelines.

Represents compiled rendering pipeline. Usually objects of this class are managed by RenderPass class. The RenderPass creates compiled pipelines for registered PipelineLayout objects. You can then retrieve the pipeline object by index. The reason for doing so is the access to cmdBind method, which allows to select active pipeline inside Process command sequence. You call this method when the rendering process consists of multiple draw commands, using different pipelines.

Although you can also construct the Pipeline object directly, there is rarely any need to do this.

This object is reference counted and can be passed by value.

Member Function Documentation

◆ cmdBind()

void vpp::Pipeline::cmdBind ( CommandBuffer  hCmdBuffer = CommandBuffer()) const

Generates a command to select the current pipeline.

The command will be generated into specified command buffer, or the default command buffer if omitted.


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