Common: Split some routines into CocoaTools

This commit is contained in:
Stenzek
2023-09-23 22:20:50 +10:00
parent c8dc8849ea
commit a115b40ef7
8 changed files with 200 additions and 77 deletions

12
src/util/metal_layer.h Normal file
View File

@ -0,0 +1,12 @@
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
struct WindowInfo;
namespace CocoaTools {
/// Creates metal layer on specified window surface.
bool CreateMetalLayer(WindowInfo* wi);
/// Destroys metal layer on specified window surface.
void DestroyMetalLayer(WindowInfo* wi);
} // namespace CocoaTools