1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22/*
23 * Global functions from the Vulkan Loader
24 */
25
26#ifndef VULKAN_GLOBAL_FUNCTION
27#define VULKAN_GLOBAL_FUNCTION(name)
28#endif
29VULKAN_GLOBAL_FUNCTION(vkCreateInstance)
30VULKAN_GLOBAL_FUNCTION(vkEnumerateInstanceExtensionProperties)
31VULKAN_GLOBAL_FUNCTION(vkEnumerateInstanceLayerProperties)
32
33/*
34 * vkInstance, created by global vkCreateInstance function
35 */
36
37#ifndef VULKAN_INSTANCE_FUNCTION
38#define VULKAN_INSTANCE_FUNCTION(name)
39#endif
40
41// Vulkan 1.0
42VULKAN_INSTANCE_FUNCTION(vkGetDeviceProcAddr)
43VULKAN_INSTANCE_FUNCTION(vkCreateDevice)
44VULKAN_INSTANCE_FUNCTION(vkDestroyInstance)
45VULKAN_INSTANCE_FUNCTION(vkEnumerateDeviceExtensionProperties)
46VULKAN_INSTANCE_FUNCTION(vkEnumeratePhysicalDevices)
47VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceFeatures)
48VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceQueueFamilyProperties)
49VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceFormatProperties)
50VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceImageFormatProperties)
51VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceMemoryProperties)
52VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceProperties)
53
54// VK_KHR_get_physical_device_properties2, needed for KHR_driver_properties
55VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceProperties2KHR)
56
57// VK_KHR_surface
58VULKAN_INSTANCE_FUNCTION(vkDestroySurfaceKHR)
59VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfaceCapabilitiesKHR)
60VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfaceFormatsKHR)
61VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfacePresentModesKHR)
62VULKAN_INSTANCE_FUNCTION(vkGetPhysicalDeviceSurfaceSupportKHR)
63
64// VK_EXT_debug_utils
65VULKAN_INSTANCE_FUNCTION(vkCmdBeginDebugUtilsLabelEXT)
66VULKAN_INSTANCE_FUNCTION(vkSetDebugUtilsObjectNameEXT)
67VULKAN_INSTANCE_FUNCTION(vkCmdEndDebugUtilsLabelEXT)
68VULKAN_INSTANCE_FUNCTION(vkCmdInsertDebugUtilsLabelEXT)
69
70/*
71 * vkDevice, created by a vkInstance
72 */
73
74#ifndef VULKAN_DEVICE_FUNCTION
75#define VULKAN_DEVICE_FUNCTION(name)
76#endif
77
78// Vulkan 1.0
79VULKAN_DEVICE_FUNCTION(vkAllocateCommandBuffers)
80VULKAN_DEVICE_FUNCTION(vkAllocateDescriptorSets)
81VULKAN_DEVICE_FUNCTION(vkAllocateMemory)
82VULKAN_DEVICE_FUNCTION(vkBeginCommandBuffer)
83VULKAN_DEVICE_FUNCTION(vkBindBufferMemory)
84VULKAN_DEVICE_FUNCTION(vkBindImageMemory)
85VULKAN_DEVICE_FUNCTION(vkCmdBeginRenderPass)
86VULKAN_DEVICE_FUNCTION(vkCmdBindDescriptorSets)
87VULKAN_DEVICE_FUNCTION(vkCmdBindIndexBuffer)
88VULKAN_DEVICE_FUNCTION(vkCmdBindPipeline)
89VULKAN_DEVICE_FUNCTION(vkCmdBindVertexBuffers)
90VULKAN_DEVICE_FUNCTION(vkCmdBlitImage)
91VULKAN_DEVICE_FUNCTION(vkCmdClearAttachments)
92VULKAN_DEVICE_FUNCTION(vkCmdClearColorImage)
93VULKAN_DEVICE_FUNCTION(vkCmdClearDepthStencilImage)
94VULKAN_DEVICE_FUNCTION(vkCmdCopyBuffer)
95VULKAN_DEVICE_FUNCTION(vkCmdCopyImage)
96VULKAN_DEVICE_FUNCTION(vkCmdCopyBufferToImage)
97VULKAN_DEVICE_FUNCTION(vkCmdCopyImageToBuffer)
98VULKAN_DEVICE_FUNCTION(vkCmdDispatch)
99VULKAN_DEVICE_FUNCTION(vkCmdDispatchIndirect)
100VULKAN_DEVICE_FUNCTION(vkCmdDraw)
101VULKAN_DEVICE_FUNCTION(vkCmdDrawIndexed)
102VULKAN_DEVICE_FUNCTION(vkCmdDrawIndexedIndirect)
103VULKAN_DEVICE_FUNCTION(vkCmdDrawIndirect)
104VULKAN_DEVICE_FUNCTION(vkCmdEndRenderPass)
105VULKAN_DEVICE_FUNCTION(vkCmdPipelineBarrier)
106VULKAN_DEVICE_FUNCTION(vkCmdResolveImage)
107VULKAN_DEVICE_FUNCTION(vkCmdSetBlendConstants)
108VULKAN_DEVICE_FUNCTION(vkCmdSetDepthBias)
109VULKAN_DEVICE_FUNCTION(vkCmdSetScissor)
110VULKAN_DEVICE_FUNCTION(vkCmdSetStencilReference)
111VULKAN_DEVICE_FUNCTION(vkCmdSetViewport)
112VULKAN_DEVICE_FUNCTION(vkCreateBuffer)
113VULKAN_DEVICE_FUNCTION(vkCreateCommandPool)
114VULKAN_DEVICE_FUNCTION(vkCreateDescriptorPool)
115VULKAN_DEVICE_FUNCTION(vkCreateDescriptorSetLayout)
116VULKAN_DEVICE_FUNCTION(vkCreateFence)
117VULKAN_DEVICE_FUNCTION(vkCreateFramebuffer)
118VULKAN_DEVICE_FUNCTION(vkCreateComputePipelines)
119VULKAN_DEVICE_FUNCTION(vkCreateGraphicsPipelines)
120VULKAN_DEVICE_FUNCTION(vkCreateImage)
121VULKAN_DEVICE_FUNCTION(vkCreateImageView)
122VULKAN_DEVICE_FUNCTION(vkCreatePipelineCache)
123VULKAN_DEVICE_FUNCTION(vkCreatePipelineLayout)
124VULKAN_DEVICE_FUNCTION(vkCreateRenderPass)
125VULKAN_DEVICE_FUNCTION(vkCreateSampler)
126VULKAN_DEVICE_FUNCTION(vkCreateSemaphore)
127VULKAN_DEVICE_FUNCTION(vkCreateShaderModule)
128VULKAN_DEVICE_FUNCTION(vkDestroyBuffer)
129VULKAN_DEVICE_FUNCTION(vkDestroyCommandPool)
130VULKAN_DEVICE_FUNCTION(vkDestroyDescriptorPool)
131VULKAN_DEVICE_FUNCTION(vkDestroyDescriptorSetLayout)
132VULKAN_DEVICE_FUNCTION(vkDestroyDevice)
133VULKAN_DEVICE_FUNCTION(vkDestroyFence)
134VULKAN_DEVICE_FUNCTION(vkDestroyFramebuffer)
135VULKAN_DEVICE_FUNCTION(vkDestroyImage)
136VULKAN_DEVICE_FUNCTION(vkDestroyImageView)
137VULKAN_DEVICE_FUNCTION(vkDestroyPipeline)
138VULKAN_DEVICE_FUNCTION(vkDestroyPipelineCache)
139VULKAN_DEVICE_FUNCTION(vkDestroyPipelineLayout)
140VULKAN_DEVICE_FUNCTION(vkDestroyRenderPass)
141VULKAN_DEVICE_FUNCTION(vkDestroySampler)
142VULKAN_DEVICE_FUNCTION(vkDestroySemaphore)
143VULKAN_DEVICE_FUNCTION(vkDestroyShaderModule)
144VULKAN_DEVICE_FUNCTION(vkDeviceWaitIdle)
145VULKAN_DEVICE_FUNCTION(vkEndCommandBuffer)
146VULKAN_DEVICE_FUNCTION(vkFreeCommandBuffers)
147VULKAN_DEVICE_FUNCTION(vkFreeMemory)
148VULKAN_DEVICE_FUNCTION(vkGetDeviceQueue)
149VULKAN_DEVICE_FUNCTION(vkGetPipelineCacheData)
150VULKAN_DEVICE_FUNCTION(vkGetFenceStatus)
151VULKAN_DEVICE_FUNCTION(vkGetBufferMemoryRequirements)
152VULKAN_DEVICE_FUNCTION(vkGetImageMemoryRequirements)
153VULKAN_DEVICE_FUNCTION(vkMapMemory)
154VULKAN_DEVICE_FUNCTION(vkQueueSubmit)
155VULKAN_DEVICE_FUNCTION(vkQueueWaitIdle)
156VULKAN_DEVICE_FUNCTION(vkResetCommandBuffer)
157VULKAN_DEVICE_FUNCTION(vkResetCommandPool)
158VULKAN_DEVICE_FUNCTION(vkResetDescriptorPool)
159VULKAN_DEVICE_FUNCTION(vkResetFences)
160VULKAN_DEVICE_FUNCTION(vkUnmapMemory)
161VULKAN_DEVICE_FUNCTION(vkUpdateDescriptorSets)
162VULKAN_DEVICE_FUNCTION(vkWaitForFences)
163
164// VK_KHR_swapchain
165VULKAN_DEVICE_FUNCTION(vkAcquireNextImageKHR)
166VULKAN_DEVICE_FUNCTION(vkCreateSwapchainKHR)
167VULKAN_DEVICE_FUNCTION(vkDestroySwapchainKHR)
168VULKAN_DEVICE_FUNCTION(vkQueuePresentKHR)
169VULKAN_DEVICE_FUNCTION(vkGetSwapchainImagesKHR)
170
171/*
172 * Redefine these every time you include this header!
173 */
174#undef VULKAN_GLOBAL_FUNCTION
175#undef VULKAN_INSTANCE_FUNCTION
176#undef VULKAN_DEVICE_FUNCTION
177