HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
gfx_system_vulkan_macos.hpp
1// Copyright Take Vos 2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "gfx_system_vulkan.hpp"
8#include <span>
9
10namespace tt {
11
13public:
16
18 gfx_system_vulkan_macos &operator=(const gfx_system_vulkan_macos &) = delete;
21
22 vk::ResultValueType<vk::SurfaceKHR>::type createMetalSurfaceKHR(const vk::MetalSurfaceCreateInfoEXT& createInfo) const {
23 tt_axiom(gfx_system_mutex.recurse_lock_count());
24 return intrinsic.createMetalSurfaceEXT(createInfo);
25 }
26};
27
28}
Vulkan gfx_device controller.
Definition gfx_system_vulkan.hpp:15
vk::Instance intrinsic
Vulkan instance.
Definition gfx_system_vulkan.hpp:24
Definition gfx_system_vulkan_macos.hpp:12
Definition gui_system_delegate.hpp:11
int recurse_lock_count() const noexcept
This function should be used in tt_axiom() to check if the lock is held by current thread.
Definition unfair_recursive_mutex.hpp:60