![]() |
VPP
0.8
A high-level modern C++ API for Vulkan
|
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. | |
RenderGraph & | graph () const |
Retrieves render graph associated with this render pass. | |
const Device & | device () const |
Retrieves the device associated with this render pass. | |
const PipelineCache & | pipelineCache () const |
Retrieves the pipeline cache associated with this render pass. | |
const Pipeline & | pipeline (unsigned int iProcess, unsigned int iPipeline) const |
Retrieves a pipeline associated with this render pass, specified process and pipeline index. | |
const Pipeline & | pipeline (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. | |
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.