1 /* 2 * 3 * Copyright (c) 2016-2017 Valve Corporation 4 * Copyright (c) 2016-2017 LunarG, Inc. 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 * Author: Arda Coskunses <arda@lunarg.com> 19 * 20 */ 21 22 #ifndef __VK_DEVICE_PROFILE_API_H__ 23 #define __VK_DEVICE_PROFILE_API_H__ 24 25 #include "vulkan/vulkan.h" 26 #ifdef __cplusplus 27 extern "C" { 28 #endif // __cplusplus 29 30 // Device Profile Api Vulkan Extension API 31 32 #define DEVICE_PROFILE_API_EXTENSION_NAME "VK_LUNARG_DEVICE_PROFILE" 33 34 // API functions 35 36 typedef void(VKAPI_PTR *PFN_vkSetPhysicalDeviceLimitsEXT)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceLimits *newLimits); 37 typedef void(VKAPI_PTR *PFN_vkGetOriginalPhysicalDeviceLimitsEXT)(VkPhysicalDevice physicalDevice, 38 const VkPhysicalDeviceLimits *orgLimits); 39 typedef void(VKAPI_PTR *PFN_vkGetOriginalPhysicalDeviceFormatPropertiesEXT)(VkPhysicalDevice physicalDevice, VkFormat format, 40 const VkFormatProperties *properties); 41 typedef void(VKAPI_PTR *PFN_vkSetPhysicalDeviceFormatPropertiesEXT)(VkPhysicalDevice physicalDevice, VkFormat format, 42 const VkFormatProperties newProperties); 43 #ifdef __cplusplus 44 } // extern "C" 45 #endif // __cplusplus 46 47 #endif // __VK_DEVICE_PROFILE_API_H__ 48