jGL
Loading...
Searching...
No Matches
framebuffer.h
Go to the documentation of this file.
1#ifndef FRAMEBUFFER
2#define FRAMEBUFFER
3
8
9namespace jGL::Vulkan
10{
12 {
13
14 /*
15
16 Simple framebuffer supporting one colour attachment with MSAA
17 refer also to jGL::Vulkan::RenderPass
18
19 */
20
21 public:
22
24 (
25 const Device & device,
26 const Swapchain & swapchain,
27 const RenderPass & renderPass,
28 const VkImageView & msaaView,
29 const VkImageView & resolveView
30 );
31
33 {
34 vkDestroyFramebuffer(device.getVkDevice(), buffer, nullptr);
35 }
36
37 const VkFramebuffer & getVkFramebuffer() const { return buffer; }
38
39 private:
40
41 const Device & device;
42 VkFramebuffer buffer;
43 };
44}
45
46#endif /* FRAMEBUFFER */
Definition device.h:10
const VkDevice & getVkDevice() const
Definition device.h:24
Definition framebuffer.h:12
~Framebuffer()
Definition framebuffer.h:32
const VkFramebuffer & getVkFramebuffer() const
Definition framebuffer.h:37
Definition renderPass.h:11
Definition swapchain.h:15
Definition buffer.h:10