HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
hikogui
GFX
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
10
namespace
hi::inline v1 {
11
12
class
gfx_system_vulkan_macos
final :
public
gfx_system_vulkan
{
13
public
:
14
gfx_system_vulkan_macos
(
gui_system_delegate
*delegate);
15
~gfx_system_vulkan_macos
();
16
17
gfx_system_vulkan_macos
(
const
gfx_system_vulkan_macos
&) =
delete
;
18
gfx_system_vulkan_macos
&operator=(
const
gfx_system_vulkan_macos
&) =
delete
;
19
gfx_system_vulkan_macos
(
gfx_system_vulkan_macos
&&) =
delete
;
20
gfx_system_vulkan_macos
&operator=(
gfx_system_vulkan_macos
&&) =
delete
;
21
22
vk::ResultValueType<vk::SurfaceKHR>::type createMetalSurfaceKHR(
const
vk::MetalSurfaceCreateInfoEXT &createInfo)
const
23
{
24
hi_axiom(gfx_system_mutex.
recurse_lock_count
());
25
return
intrinsic.createMetalSurfaceEXT(createInfo);
26
}
27
};
28
29
}
// namespace hi::inline v1
v1::gfx_system_vulkan
Vulkan gfx_device controller.
Definition
gfx_system_vulkan.hpp:15
v1::gfx_system_vulkan_macos
Definition
gfx_system_vulkan_macos.hpp:12
v1::gui_system_delegate
Definition
gui_system_delegate.hpp:11
v1::unfair_recursive_mutex::recurse_lock_count
int recurse_lock_count() const noexcept
This function should be used in hi_axiom() to check if the lock is held by current thread.
Definition
unfair_recursive_mutex.hpp:60
Generated on Mon Apr 22 2024 12:52:40 for HikoGUI by
1.10.0