Class VulkanSurface#
Defined in File VulkanSurface.h
Class Documentation#
-
class VulkanSurface#
Remark
Headless mode: This class is not available in headless mode.
Public Functions
-
VulkanSurface(TRAP::Ref<VulkanInstance> instance, const VulkanDevice &device, const TRAP::Window &window)#
Constructor.
- Parameters:
instance – Vulkan instance.
device – Vulkan device.
window – Window to create surface for.
-
~VulkanSurface()#
Destructor.
-
consteval VulkanSurface(const VulkanSurface&) noexcept = delete#
Copy constructor.
-
consteval VulkanSurface &operator=(const VulkanSurface&) noexcept = delete#
Copy assignment operator.
-
VulkanSurface(VulkanSurface&&) noexcept = default#
Move constructor.
-
VulkanSurface &operator=(VulkanSurface&&) noexcept = default#
Move assignment operator.
-
constexpr VkSurfaceKHR GetVkSurface() const noexcept#
Retrieve the Vulkan surface handle.
- Returns:
Vulkan surface handle.
-
constexpr const VkSurfaceCapabilitiesKHR &GetVkSurfaceCapabilities() const noexcept#
Retrieve the Vulkan surface capabilities.
- Returns:
Vulkan surface capabilities.
-
constexpr const std::vector<VkSurfaceFormatKHR> &GetVkSurfaceFormats() const noexcept#
Retrieve all formats supported by the surface.
- Returns:
All formats supported by the surface.
-
constexpr const std::vector<VkPresentModeKHR> &GetVkSurfacePresentModes() const noexcept#
Retrieve all present modes supported by the surface.
- Returns:
All present modes supported by the surface.
-
VulkanSurface(TRAP::Ref<VulkanInstance> instance, const VulkanDevice &device, const TRAP::Window &window)#