blob: f1b7b6baf572a00ee4a620cb7f8926df4ec8ba21 [file] [log] [blame]
Mark Youngd66edd52017-03-10 17:31:18 -07001/*
2 * Copyright (c) 2015-2017 The Khronos Group Inc.
3 * Copyright (c) 2015-2017 Valve Corporation
4 * Copyright (c) 2015-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: Mark Young <marky@lunarg.com>
19 */
20
21#pragma once
22
23// ---- Manually added trampoline/terminator functions
24
25// These functions, for whatever reason, require more complex changes than
26// can easily be automatically generated.
27
Lenny Komow82e15e02017-10-02 15:08:53 -060028/*VKAPI_ATTR VkResult VKAPI_CALL EnumeratePhysicalDeviceGroupsKHR(
Mark Youngd66edd52017-03-10 17:31:18 -070029 VkInstance instance, uint32_t *pPhysicalDeviceGroupCount,
Mark Lobodzinski7c7c8d22017-09-18 16:28:27 -060030 VkPhysicalDeviceGroupPropertiesKHR *pPhysicalDeviceGroupProperties);
Mark Youngd66edd52017-03-10 17:31:18 -070031
Mark Lobodzinski7c7c8d22017-09-18 16:28:27 -060032VKAPI_ATTR VkResult VKAPI_CALL terminator_EnumeratePhysicalDeviceGroupsKHR(
Mark Youngd66edd52017-03-10 17:31:18 -070033 VkInstance instance, uint32_t *pPhysicalDeviceGroupCount,
Lenny Komow82e15e02017-10-02 15:08:53 -060034 VkPhysicalDeviceGroupPropertiesKHR *pPhysicalDeviceGroupProperties);*/
Mark Youngd66edd52017-03-10 17:31:18 -070035
36VKAPI_ATTR VkResult VKAPI_CALL
37GetPhysicalDeviceExternalImageFormatPropertiesNV(
38 VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type,
39 VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags,
40 VkExternalMemoryHandleTypeFlagsNV externalHandleType,
41 VkExternalImageFormatPropertiesNV *pExternalImageFormatProperties);
42
43VKAPI_ATTR VkResult VKAPI_CALL
44terminator_GetPhysicalDeviceExternalImageFormatPropertiesNV(
45 VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type,
46 VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags,
47 VkExternalMemoryHandleTypeFlagsNV externalHandleType,
48 VkExternalImageFormatPropertiesNV *pExternalImageFormatProperties);
49
Lenny Komow4687c7f2017-05-30 13:04:46 -060050VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice,
51 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
52 VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
53
54VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceCapabilities2KHR(
55 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
56 VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
57
58VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice,
59 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
60 uint32_t* pSurfaceFormatCount,
61 VkSurfaceFormat2KHR* pSurfaceFormats);
62
63VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice,
64 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
65 uint32_t* pSurfaceFormatCount,
66 VkSurfaceFormat2KHR* pSurfaceFormats);
Lenny Komow728ff062017-06-01 13:32:28 -060067
68VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceCapabilities2EXT(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface,
69 VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
70
71VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceCapabilities2EXT(VkPhysicalDevice physicalDevice,
72 VkSurfaceKHR surface,
73 VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
74
75VKAPI_ATTR VkResult VKAPI_CALL ReleaseDisplayEXT(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
76
77VKAPI_ATTR VkResult VKAPI_CALL terminator_ReleaseDisplayEXT(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
78
79#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
80VKAPI_ATTR VkResult VKAPI_CALL AcquireXlibDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, VkDisplayKHR display);
81
82VKAPI_ATTR VkResult VKAPI_CALL terminator_AcquireXlibDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy,
83 VkDisplayKHR display);
84
85VKAPI_ATTR VkResult VKAPI_CALL GetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput,
86 VkDisplayKHR* pDisplay);
87
88VKAPI_ATTR VkResult VKAPI_CALL terminator_GetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput,
89 VkDisplayKHR* pDisplay);
90#endif // VK_USE_PLATFORM_XLIB_XRANDR_EXT