Hymn to Beauty
C++ 3D Engine
RenderPass.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace Video {
6
8
12 public:
14 enum class LoadOperation {
15 LOAD,
16 CLEAR,
18 };
19
22
24 virtual ~RenderPass() {}
25
27
30 virtual const glm::uvec2& GetSize() const = 0;
31
32 private:
33 RenderPass(const RenderPass& other) = delete;
34};
35
36}
A render pass.
Definition: RenderPass.hpp:11
virtual ~RenderPass()
Destructor.
Definition: RenderPass.hpp:24
virtual const glm::uvec2 & GetSize() const =0
Get the size of the frame buffer.
LoadOperation
What to do with an image being rendered to before rendering to it.
Definition: RenderPass.hpp:14
@ DONT_CARE
Don't care. The contents will be overwritten anyway.
@ LOAD
Load the previous image contents.
@ CLEAR
Clear the image contents.
RenderPass()
Create new render pass.
Definition: RenderPass.hpp:21
Definition: Editor.hpp:18