|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Render target wrapper for one OpenXR swapchain image. More...
#include <Headset.h>
Public Member Functions | |
| void | cleanup (const Core::ApplicationContext *context) |
| Destroys framebuffer and image view resources for this render target. | |
Public Attributes | |
| VkImage | image = nullptr |
| Borrowed swapchain image for this render target. | |
| VkImageView | imageView = nullptr |
| View used when sampling or copying the swapchain image. | |
| VkFramebuffer | framebuffer = nullptr |
| Legacy render-pass framebuffer for this swapchain image. | |
Private Attributes | |
| VkImageLayout | imageLayout = VK_IMAGE_LAYOUT_UNDEFINED |
| Tracked layout for legacy render-target paths. | |
Render target wrapper for one OpenXR swapchain image.
The image handle is owned by the OpenXR swapchain. cleanup() destroys only the Vulkan image view and framebuffer created by the engine, then clears the borrowed image handle.
| void Engine::Rendering::RenderTarget::cleanup | ( | const Core::ApplicationContext * | context | ) |
Destroys framebuffer and image view resources for this render target.
| context | Application context that owns the Vulkan device. |
| VkFramebuffer Engine::Rendering::RenderTarget::framebuffer = nullptr |
| VkImage Engine::Rendering::RenderTarget::image = nullptr |
|
private |
| VkImageView Engine::Rendering::RenderTarget::imageView = nullptr |