SPARK
0.1.0
A general purpose game engine written in C++.
|
Implementation of ISurface for Vulkan. More...
#include <VulkanSurface.h>
Classes | |
struct | Impl |
Public Member Functions | |
VulkanSurface (const VkSurfaceKHR &surface, const VkInstance &instance) | |
Initializes the surface from a surface, instance and window handle. | |
VulkanSurface (const VulkanSurface &other)=delete | |
VulkanSurface (VulkanSurface &&other) noexcept=delete | |
VulkanSurface & | operator= (const VulkanSurface &other)=delete |
VulkanSurface & | operator= (VulkanSurface &&other) noexcept=delete |
const VkInstance & | instance () const noexcept |
Gets the backend handle from which the surface was created. | |
![]() | |
Resource (VkSurfaceKHR handle) noexcept | |
Initializes the managed resource with the given handle. | |
Resource (const Resource &other)=delete | |
Resource (Resource &&other) noexcept=delete | |
Resource & | operator= (const Resource &other)=delete |
Resource & | operator= (Resource &&other) noexcept=delete |
const VkSurfaceKHR & | handle () const final |
Gets the managed resource handle. | |
Additional Inherited Members | |
![]() | |
using | handle_type |
![]() | |
VkSurfaceKHR & | handle () final |
Gets the managed resource handle. | |
Implementation of ISurface for Vulkan.
spark::render::vk::VulkanSurface::VulkanSurface | ( | const VkSurfaceKHR & | surface, |
const VkInstance & | instance ) |
Initializes the surface from a surface, instance and window handle.
surface | A VulkanSurfaceKHR handle to the vulkan surface. |
instance | A VkInstance handle to the parent instance. |
|
nodiscardnoexcept |
Gets the backend handle from which the surface was created.