Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/include/MoltenVK/mvk_vulkan.h
4558 views
1
/*
2
* mvk_vulkan.h
3
*
4
* Copyright (c) 2015-2021 The Brenwill Workshop Ltd. (http://www.brenwill.com)
5
*
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*/
18
19
20
/**
21
* This is a convenience header file that loads vulkan.h with the appropriate Vulkan platform extensions.
22
*
23
* This header automatically enables the VK_EXT_metal_surface Vulkan extension.
24
*
25
* When building for iOS, this header also automatically enables the obsolete VK_MVK_ios_surface Vulkan extension.
26
* When building for macOS, this header also automatically enables the obsolete VK_MVK_macos_surface Vulkan extension.
27
* Both of these extensions are obsolete. Consider using the portable VK_EXT_metal_surface extension instead.
28
*/
29
30
#ifndef __mvk_vulkan_h_
31
#define __mvk_vulkan_h_ 1
32
33
34
#include <Availability.h>
35
36
#define VK_USE_PLATFORM_METAL_EXT 1
37
38
#define VK_ENABLE_BETA_EXTENSIONS 1 // VK_KHR_portability_subset
39
40
#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
41
# define VK_USE_PLATFORM_IOS_MVK 1
42
#endif
43
44
#ifdef __MAC_OS_X_VERSION_MAX_ALLOWED
45
# define VK_USE_PLATFORM_MACOS_MVK 1
46
#endif
47
48
#include <vulkan/vulkan.h>
49
50
#endif
51
52