HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
gfx_system_vulkan_impl.hpp
1
2#pragma once
3
4namespace hi { inline namespace v1 {
5
6inline gfx_system::~gfx_system()
7{
8 hilet lock = std::scoped_lock(gfx_system_mutex);
9#ifndef NDEBUG
10 intrinsic.destroy(debugUtilsMessager, nullptr, loader());
11#endif
12}
13
14[[nodiscard]] inline gfx_system& gfx_system::global()
15{
16 if (not _global) {
17 _global = std::make_unique<gfx_system>();
18 }
19 return *_global;
20}
21
22}} // namespace hi::v1
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
T lock(T... args)