VPP  0.7
A high-level modern C++ API for Vulkan
Public Member Functions | List of all members
vpp::RenderPass Class Reference

Represents Vulkan render pass. More...

#include <vppRenderPass.hpp>

Public Member Functions

 RenderPass (const RenderGraph &renderGraph, const Device &hDevice)
 Construct a render pass from given render graph.
 
 RenderPass (const RenderGraph &renderGraph, const Device &hDevice, const PipelineCache &hPipelineCache)
 Construct a render pass from given render graph and user-supplied pipeline cache.
 
VkRenderPass handle () const
 Retrieves Vulkan handle to the render pass.
 
RenderGraphgraph () const
 Retrieves render graph associated with this render pass.
 
const Devicedevice () const
 Retrieves the device associated with this render pass.
 
const PipelineCachepipelineCache () const
 Retrieves the pipeline cache associated with this render pass.
 
const Pipelinepipeline (unsigned int iProcess, unsigned int iPipeline) const
 Retrieves a pipeline associated with this render pass, specified process and pipeline index.
 
const Pipelinepipeline (const Process &hProcess, unsigned int iPipeline) const
 Retrieves a pipeline associated with this render pass, specified process and pipeline index.
 
unsigned int addPipeline (unsigned int iProcess, const PipelineLayoutBase &layout, const RenderingOptions &options)
 Registers a pipeline with this render pass and associates it with specified process and rendering options. Returns pipeline index.
 
unsigned int addPipeline (const Process &hProcess, const PipelineLayoutBase &layout, const RenderingOptions &options)
 Registers a pipeline with this render pass and associates it with specified process and rendering options. Returns pipeline index.
 
void beginRendering ()
 Call before manually recording commands for this render pass. The CommandBufferRecorder class calls this automatically.
 
void endRendering ()
 Call after finishing manually recording commands for this render pass. The CommandBufferRecorder class calls this automatically.
 

Detailed Description

Represents Vulkan render pass.

In VPP, the RenderPass class is usually used in conjunction with CommandBufferRecorder class. CommandBufferRecorder produces a command buffer from given RenderPass and FrameBuffer. This command buffer, when submitted to a queue, instructs the device to do actual rendering.


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