]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/renderpass.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / backends / vulkan / renderpass.h
1 #ifndef MSP_GL_RENDERPASS_H_
2 #define MSP_GL_RENDERPASS_H_
3
4 #include <vector>
5 #include "handles.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class Device;
11 class Framebuffer;
12 union ClearValue;
13
14 struct RenderPass
15 {
16         const Framebuffer *framebuffer = 0;
17         Rect render_area;
18         bool clear = false;
19         const ClearValue *clear_values = 0;
20         bool to_present = false;
21         bool discard_fb_contents = false;
22         VkRenderPass handle = 0;
23
24         void update(Device &);
25
26         std::uint64_t compute_hash() const;
27         bool discards_framebuffer_contents() const;
28         void fill_creation_info(std::vector<char> &) const;
29         void fill_begin_info(std::vector<char> &) const;
30 };
31
32 } // namespace GL
33 } // namespace Msp
34
35 #endif