blob: fe4287effb5333e172178eb96d39a9898e7cd643 [file] [log] [blame]
Mark Young0746fce2017-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
Mark Young0746fce2017-03-10 17:31:18 -070028VKAPI_ATTR VkResult VKAPI_CALL
29GetPhysicalDeviceExternalImageFormatPropertiesNV(
30 VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type,
31 VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags,
32 VkExternalMemoryHandleTypeFlagsNV externalHandleType,
33 VkExternalImageFormatPropertiesNV *pExternalImageFormatProperties);
34
35VKAPI_ATTR VkResult VKAPI_CALL
36terminator_GetPhysicalDeviceExternalImageFormatPropertiesNV(
37 VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type,
38 VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags,
39 VkExternalMemoryHandleTypeFlagsNV externalHandleType,
40 VkExternalImageFormatPropertiesNV *pExternalImageFormatProperties);
41
Lenny Komow3d31f062017-05-30 13:04:46 -060042VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice,
43 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
44 VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
45
46VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceCapabilities2KHR(
47 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
48 VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
49
50VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice,
51 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
52 uint32_t* pSurfaceFormatCount,
53 VkSurfaceFormat2KHR* pSurfaceFormats);
54
55VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice,
56 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
57 uint32_t* pSurfaceFormatCount,
58 VkSurfaceFormat2KHR* pSurfaceFormats);
Lenny Komow0e5b07e2017-06-01 13:32:28 -060059
60VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceCapabilities2EXT(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface,
61 VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
62
63VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceCapabilities2EXT(VkPhysicalDevice physicalDevice,
64 VkSurfaceKHR surface,
65 VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
66
67VKAPI_ATTR VkResult VKAPI_CALL ReleaseDisplayEXT(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
68
69VKAPI_ATTR VkResult VKAPI_CALL terminator_ReleaseDisplayEXT(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
70
71#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
72VKAPI_ATTR VkResult VKAPI_CALL AcquireXlibDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, VkDisplayKHR display);
73
74VKAPI_ATTR VkResult VKAPI_CALL terminator_AcquireXlibDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy,
75 VkDisplayKHR display);
76
77VKAPI_ATTR VkResult VKAPI_CALL GetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput,
78 VkDisplayKHR* pDisplay);
79
80VKAPI_ATTR VkResult VKAPI_CALL terminator_GetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput,
81 VkDisplayKHR* pDisplay);
82#endif // VK_USE_PLATFORM_XLIB_XRANDR_EXT
Lenny Komowc51f36f2019-04-15 14:49:58 -060083
84#ifdef VK_USE_PLATFORM_WIN32_KHR
85VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfacePresentModes2EXT(
86 VkPhysicalDevice physicalDevice,
87 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
88 uint32_t* pPresentModeCount,
89 VkPresentModeKHR* pPresentModes);
90
91VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfacePresentModes2EXT(
92 VkPhysicalDevice physicalDevice,
93 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
94 uint32_t* pPresentModeCount,
95 VkPresentModeKHR* pPresentModes);
96#endif // VK_USE_PLATFORM_WIN32_KHR
97
98VKAPI_ATTR VkResult VKAPI_CALL GetDeviceGroupSurfacePresentModes2EXT(
99 VkDevice device,
100 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
101 VkDeviceGroupPresentModeFlagsKHR* pModes);
102
103VKAPI_ATTR VkResult VKAPI_CALL terminator_GetDeviceGroupSurfacePresentModes2EXT(
104 VkDevice device,
105 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
106 VkDeviceGroupPresentModeFlagsKHR* pModes);
Lenny Komow20697982019-12-12 15:38:07 -0700107
108// ---- VK_EXT_tooling_info extension trampoline/terminators
109
110VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceToolPropertiesEXT(
111 VkPhysicalDevice physicalDevice,
112 uint32_t* pToolCount,
113 VkPhysicalDeviceToolPropertiesEXT* pToolProperties);
114
115VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceToolPropertiesEXT(
116 VkPhysicalDevice physicalDevice,
117 uint32_t* pToolCount,
118 VkPhysicalDeviceToolPropertiesEXT* pToolProperties);