Hymn to Beauty
C++ 3D Engine
Video::RenderPass Class Referenceabstract

A render pass. More...

#include <RenderPass.hpp>

Inheritance diagram for Video::RenderPass:
Video::OpenGLRenderPass Video::VulkanRenderPass

Public Types

enum class  LoadOperation { LOAD , CLEAR , DONT_CARE }
 What to do with an image being rendered to before rendering to it. More...
 

Public Member Functions

 RenderPass ()
 Create new render pass. More...
 
virtual ~RenderPass ()
 Destructor. More...
 
virtual const glm::uvec2 & GetSize () const =0
 Get the size of the frame buffer. More...
 

Detailed Description

A render pass.

Todo:
Better documentation. This is not an intuitive concept (and doesn't map neatly to OpenGL or Vulkan).

Member Enumeration Documentation

◆ LoadOperation

What to do with an image being rendered to before rendering to it.

Enumerator
LOAD 

Load the previous image contents.

CLEAR 

Clear the image contents.

DONT_CARE 

Don't care. The contents will be overwritten anyway.

Constructor & Destructor Documentation

◆ RenderPass()

Video::RenderPass::RenderPass ( )
inline

Create new render pass.

◆ ~RenderPass()

virtual Video::RenderPass::~RenderPass ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ GetSize()

virtual const glm::uvec2 & Video::RenderPass::GetSize ( ) const
pure virtual

Get the size of the frame buffer.

Returns
The size of the frame buffer in pixels.

Implemented in Video::OpenGLRenderPass, and Video::VulkanRenderPass.


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