Path: blob/21.2-virgl/include/MoltenVK/mvk_vulkan.h
4558 views
/*1* mvk_vulkan.h2*3* Copyright (c) 2015-2021 The Brenwill Workshop Ltd. (http://www.brenwill.com)4*5* Licensed under the Apache License, Version 2.0 (the "License");6* you may not use this file except in compliance with the License.7* You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*/171819/**20* This is a convenience header file that loads vulkan.h with the appropriate Vulkan platform extensions.21*22* This header automatically enables the VK_EXT_metal_surface Vulkan extension.23*24* When building for iOS, this header also automatically enables the obsolete VK_MVK_ios_surface Vulkan extension.25* When building for macOS, this header also automatically enables the obsolete VK_MVK_macos_surface Vulkan extension.26* Both of these extensions are obsolete. Consider using the portable VK_EXT_metal_surface extension instead.27*/2829#ifndef __mvk_vulkan_h_30#define __mvk_vulkan_h_ 1313233#include <Availability.h>3435#define VK_USE_PLATFORM_METAL_EXT 13637#define VK_ENABLE_BETA_EXTENSIONS 1 // VK_KHR_portability_subset3839#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED40# define VK_USE_PLATFORM_IOS_MVK 141#endif4243#ifdef __MAC_OS_X_VERSION_MAX_ALLOWED44# define VK_USE_PLATFORM_MACOS_MVK 145#endif4647#include <vulkan/vulkan.h>4849#endif505152