Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Rendering::RenderTarget Struct Reference

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.

Detailed Description

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.

Definition at line 32 of file Headset.h.

Member Function Documentation

◆ cleanup()

void Engine::Rendering::RenderTarget::cleanup ( const Core::ApplicationContext * context)

Destroys framebuffer and image view resources for this render target.

Parameters
contextApplication context that owns the Vulkan device.

Member Data Documentation

◆ framebuffer

VkFramebuffer Engine::Rendering::RenderTarget::framebuffer = nullptr

Legacy render-pass framebuffer for this swapchain image.

Definition at line 36 of file Headset.h.

◆ image

VkImage Engine::Rendering::RenderTarget::image = nullptr

Borrowed swapchain image for this render target.

Definition at line 34 of file Headset.h.

◆ imageLayout

VkImageLayout Engine::Rendering::RenderTarget::imageLayout = VK_IMAGE_LAYOUT_UNDEFINED
private

Tracked layout for legacy render-target paths.

Definition at line 45 of file Headset.h.

◆ imageView

VkImageView Engine::Rendering::RenderTarget::imageView = nullptr

View used when sampling or copying the swapchain image.

Definition at line 35 of file Headset.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Renderer/Headset.h