SDEngine
Game Engine
Loading...
Searching...
No Matches
VulkanFramebuffer.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace sd {
7
9public:
12
13 void resize(uint32_t width, uint32_t height);
14
15 vk::Framebuffer get_framebuffer() const { return *m_framebuffer; }
16 vk::RenderPass get_render_pass() const { return *m_render_pass; }
17 vk::ImageView get_color_image_view() const { return *m_color_image_view; }
18 vk::Extent2D get_extent() const { return m_extent; }
19
20private:
21 void create_resources();
22 void destroy_resources();
23
24private:
26 vk::Extent2D m_extent;
27
28 vk::UniqueImage m_color_image;
29 vk::UniqueDeviceMemory m_color_image_memory;
30 vk::UniqueImageView m_color_image_view;
31
32 vk::UniqueRenderPass m_render_pass;
33 vk::UniqueFramebuffer m_framebuffer;
34};
35
36} // namespace sd
Definition VulkanContext.hpp:22
Definition VulkanFramebuffer.hpp:8
~VulkanFramebuffer()
Definition VulkanFramebuffer.cpp:12
vk::Extent2D get_extent() const
Definition VulkanFramebuffer.hpp:18
vk::UniqueDeviceMemory m_color_image_memory
Definition VulkanFramebuffer.hpp:29
vk::Framebuffer get_framebuffer() const
Definition VulkanFramebuffer.hpp:15
VulkanContext & m_ctx
Definition VulkanFramebuffer.hpp:25
vk::Extent2D m_extent
Definition VulkanFramebuffer.hpp:26
vk::UniqueFramebuffer m_framebuffer
Definition VulkanFramebuffer.hpp:33
vk::UniqueRenderPass m_render_pass
Definition VulkanFramebuffer.hpp:32
vk::RenderPass get_render_pass() const
Definition VulkanFramebuffer.hpp:16
void resize(uint32_t width, uint32_t height)
Definition VulkanFramebuffer.cpp:16
vk::UniqueImageView m_color_image_view
Definition VulkanFramebuffer.hpp:30
void create_resources()
Definition VulkanFramebuffer.cpp:28
void destroy_resources()
Definition VulkanFramebuffer.cpp:86
vk::ImageView get_color_image_view() const
Definition VulkanFramebuffer.hpp:17
vk::UniqueImage m_color_image
Definition VulkanFramebuffer.hpp:28
Definition Application.hpp:28
constexpr T g_type_max
Definition types.hpp:21