Class WindowSurface

Class Documentation

class inexor::vulkan_renderer::wrapper::WindowSurface

RAII wrapper class for VkSurfaceKHR.

Public Functions

WindowSurface(VkInstance instance, GLFWwindow *window)

Default constructor.

Parameters
  • instance – The Vulkan instance which will be associated with this surface.

  • window – The window which will be associated with this surface.

WindowSurface(const WindowSurface&) = delete
WindowSurface(WindowSurface&&) noexcept
~WindowSurface()
WindowSurface &operator=(const WindowSurface&) = delete
WindowSurface &operator=(WindowSurface&&) = default
inline VkSurfaceKHR get() const

Private Members

VkInstance m_instance = {VK_NULL_HANDLE}
VkSurfaceKHR m_surface = {VK_NULL_HANDLE}