HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
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
tt {
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
tt_axiom(gfx_system_mutex.
recurse_lock_count
());
24
return
intrinsic
.createMetalSurfaceEXT(createInfo);
25
}
26
};
27
28
}
tt::gfx_system_vulkan
Vulkan gfx_device controller.
Definition
gfx_system_vulkan.hpp:15
tt::gfx_system_vulkan::intrinsic
vk::Instance intrinsic
Vulkan instance.
Definition
gfx_system_vulkan.hpp:24
tt::gfx_system_vulkan_macos
Definition
gfx_system_vulkan_macos.hpp:12
tt::gui_system_delegate
Definition
gui_system_delegate.hpp:11
tt::unfair_recursive_mutex::recurse_lock_count
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
Generated on Mon Apr 22 2024 12:53:34 for HikoGUI by
1.10.0