Go to the documentation of this file.
19 #ifndef AVUTIL_VULKAN_FUNCTIONS_H
20 #define AVUTIL_VULKAN_FUNCTIONS_H
22 #define VK_NO_PROTOTYPES
23 #define VK_ENABLE_BETA_EXTENSIONS
37 FF_VK_EXT_EXTERNAL_WIN32_MEMORY = 1ULL << 6,
38 FF_VK_EXT_EXTERNAL_WIN32_SEM = 1ULL << 7,
61 #define FN_LIST(MACRO) \
63 MACRO(0, 0, FF_VK_EXT_NO_FLAG, EnumerateInstanceExtensionProperties) \
64 MACRO(0, 0, FF_VK_EXT_NO_FLAG, EnumerateInstanceLayerProperties) \
65 MACRO(0, 0, FF_VK_EXT_NO_FLAG, CreateInstance) \
66 MACRO(1, 0, FF_VK_EXT_NO_FLAG, DestroyInstance) \
69 MACRO(1, 0, FF_VK_EXT_NO_FLAG, CreateDebugUtilsMessengerEXT) \
70 MACRO(1, 0, FF_VK_EXT_NO_FLAG, DestroyDebugUtilsMessengerEXT) \
73 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetDeviceProcAddr) \
74 MACRO(1, 0, FF_VK_EXT_NO_FLAG, CreateDevice) \
75 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceFeatures2) \
76 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceProperties) \
77 MACRO(1, 0, FF_VK_EXT_VIDEO_QUEUE, GetPhysicalDeviceVideoCapabilitiesKHR) \
78 MACRO(1, 0, FF_VK_EXT_VIDEO_QUEUE, GetPhysicalDeviceVideoFormatPropertiesKHR) \
79 MACRO(1, 0, FF_VK_EXT_NO_FLAG, DeviceWaitIdle) \
80 MACRO(1, 0, FF_VK_EXT_NO_FLAG, DestroyDevice) \
82 MACRO(1, 0, FF_VK_EXT_NO_FLAG, EnumeratePhysicalDevices) \
83 MACRO(1, 0, FF_VK_EXT_NO_FLAG, EnumerateDeviceExtensionProperties) \
85 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceProperties2) \
86 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceMemoryProperties) \
87 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceFormatProperties2) \
88 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceImageFormatProperties2) \
89 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceQueueFamilyProperties) \
90 MACRO(1, 0, FF_VK_EXT_NO_FLAG, GetPhysicalDeviceQueueFamilyProperties2) \
91 MACRO(1, 0, FF_VK_EXT_COOP_MATRIX, GetPhysicalDeviceCooperativeMatrixPropertiesKHR) \
94 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateCommandPool) \
95 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyCommandPool) \
98 MACRO(1, 1, FF_VK_EXT_NO_FLAG, AllocateCommandBuffers) \
99 MACRO(1, 1, FF_VK_EXT_NO_FLAG, BeginCommandBuffer) \
100 MACRO(1, 1, FF_VK_EXT_NO_FLAG, EndCommandBuffer) \
101 MACRO(1, 1, FF_VK_EXT_NO_FLAG, FreeCommandBuffers) \
102 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdDispatch) \
105 MACRO(1, 1, FF_VK_EXT_NO_FLAG, GetDeviceQueue) \
106 MACRO(1, 1, FF_VK_EXT_NO_FLAG, QueueSubmit) \
107 MACRO(1, 1, FF_VK_EXT_NO_FLAG, QueueSubmit2) \
110 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateFence) \
111 MACRO(1, 1, FF_VK_EXT_NO_FLAG, WaitForFences) \
112 MACRO(1, 1, FF_VK_EXT_NO_FLAG, ResetFences) \
113 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyFence) \
116 MACRO(1, 1, FF_VK_EXT_EXTERNAL_FD_SEM, GetSemaphoreFdKHR) \
117 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateSemaphore) \
118 MACRO(1, 1, FF_VK_EXT_NO_FLAG, WaitSemaphores) \
119 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroySemaphore) \
122 MACRO(1, 1, FF_VK_EXT_EXTERNAL_FD_MEMORY, GetMemoryFdKHR) \
123 MACRO(1, 1, FF_VK_EXT_NO_FLAG, GetMemoryFdPropertiesKHR) \
124 MACRO(1, 1, FF_VK_EXT_EXTERNAL_HOST_MEMORY, GetMemoryHostPointerPropertiesEXT) \
125 MACRO(1, 1, FF_VK_EXT_NO_FLAG, AllocateMemory) \
126 MACRO(1, 1, FF_VK_EXT_NO_FLAG, MapMemory) \
127 MACRO(1, 1, FF_VK_EXT_NO_FLAG, FlushMappedMemoryRanges) \
128 MACRO(1, 1, FF_VK_EXT_NO_FLAG, InvalidateMappedMemoryRanges) \
129 MACRO(1, 1, FF_VK_EXT_NO_FLAG, UnmapMemory) \
130 MACRO(1, 1, FF_VK_EXT_NO_FLAG, FreeMemory) \
133 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdBindDescriptorSets) \
134 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdPushConstants) \
135 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdBindPipeline) \
136 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdPipelineBarrier) \
137 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdCopyBufferToImage) \
138 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdCopyImageToBuffer) \
141 MACRO(1, 1, FF_VK_EXT_NO_FLAG, GetBufferMemoryRequirements2) \
142 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateBuffer) \
143 MACRO(1, 1, FF_VK_EXT_NO_FLAG, BindBufferMemory) \
144 MACRO(1, 1, FF_VK_EXT_NO_FLAG, GetBufferDeviceAddress) \
145 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdFillBuffer) \
146 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyBuffer) \
149 MACRO(1, 1, FF_VK_EXT_DRM_MODIFIER_FLAGS, GetImageDrmFormatModifierPropertiesEXT) \
150 MACRO(1, 1, FF_VK_EXT_NO_FLAG, GetImageMemoryRequirements2) \
151 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateImage) \
152 MACRO(1, 1, FF_VK_EXT_NO_FLAG, BindImageMemory2) \
153 MACRO(1, 1, FF_VK_EXT_NO_FLAG, GetImageSubresourceLayout) \
154 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyImage) \
157 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateImageView) \
158 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyImageView) \
161 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateDescriptorSetLayout) \
162 MACRO(1, 1, FF_VK_EXT_NO_FLAG, AllocateDescriptorSets) \
163 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateDescriptorPool) \
164 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyDescriptorPool) \
165 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyDescriptorSetLayout) \
168 MACRO(1, 1, FF_VK_EXT_DESCRIPTOR_BUFFER, GetDescriptorSetLayoutSizeEXT) \
169 MACRO(1, 1, FF_VK_EXT_DESCRIPTOR_BUFFER, GetDescriptorSetLayoutBindingOffsetEXT) \
170 MACRO(1, 1, FF_VK_EXT_DESCRIPTOR_BUFFER, GetDescriptorEXT) \
171 MACRO(1, 1, FF_VK_EXT_DESCRIPTOR_BUFFER, CmdBindDescriptorBuffersEXT) \
172 MACRO(1, 1, FF_VK_EXT_DESCRIPTOR_BUFFER, CmdSetDescriptorBufferOffsetsEXT) \
175 MACRO(1, 1, FF_VK_EXT_NO_FLAG, UpdateDescriptorSetWithTemplate) \
176 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateDescriptorUpdateTemplate) \
177 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyDescriptorUpdateTemplate) \
180 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateQueryPool) \
181 MACRO(1, 1, FF_VK_EXT_NO_FLAG, GetQueryPoolResults) \
182 MACRO(1, 1, FF_VK_EXT_NO_FLAG, ResetQueryPool) \
183 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdBeginQuery) \
184 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdEndQuery) \
185 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdResetQueryPool) \
186 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyQueryPool) \
189 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CmdPipelineBarrier2) \
192 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, CreateVideoSessionKHR) \
193 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, CreateVideoSessionParametersKHR) \
194 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, GetVideoSessionMemoryRequirementsKHR) \
195 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, BindVideoSessionMemoryKHR) \
196 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, CmdBeginVideoCodingKHR) \
197 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, CmdControlVideoCodingKHR) \
198 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, CmdEndVideoCodingKHR) \
199 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, DestroyVideoSessionParametersKHR) \
200 MACRO(1, 1, FF_VK_EXT_VIDEO_QUEUE, DestroyVideoSessionKHR) \
203 MACRO(1, 1, FF_VK_EXT_VIDEO_DECODE_QUEUE, CmdDecodeVideoKHR) \
206 MACRO(1, 1, FF_VK_EXT_VIDEO_ENCODE_QUEUE, CmdEncodeVideoKHR) \
207 MACRO(1, 1, FF_VK_EXT_VIDEO_ENCODE_QUEUE, GetEncodedVideoSessionParametersKHR) \
208 MACRO(1, 0, FF_VK_EXT_VIDEO_ENCODE_QUEUE, GetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR) \
211 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreatePipelineLayout) \
212 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyPipelineLayout) \
215 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateComputePipelines) \
216 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyPipeline) \
219 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateSamplerYcbcrConversion) \
220 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroySamplerYcbcrConversion) \
221 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateSampler) \
222 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroySampler) \
225 MACRO(1, 1, FF_VK_EXT_OPTICAL_FLOW, BindOpticalFlowSessionImageNV) \
226 MACRO(1, 1, FF_VK_EXT_OPTICAL_FLOW, CmdOpticalFlowExecuteNV) \
227 MACRO(1, 1, FF_VK_EXT_OPTICAL_FLOW, CreateOpticalFlowSessionNV) \
228 MACRO(1, 1, FF_VK_EXT_OPTICAL_FLOW, DestroyOpticalFlowSessionNV) \
229 MACRO(1, 0, FF_VK_EXT_OPTICAL_FLOW, GetPhysicalDeviceOpticalFlowImageFormatsNV)\
232 MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateShaderModule) \
233 MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyShaderModule) \
234 MACRO(1, 1, FF_VK_EXT_SHADER_OBJECT, CmdBindShadersEXT) \
235 MACRO(1, 1, FF_VK_EXT_SHADER_OBJECT, CreateShadersEXT) \
236 MACRO(1, 1, FF_VK_EXT_SHADER_OBJECT, DestroyShaderEXT) \
237 MACRO(1, 1, FF_VK_EXT_SHADER_OBJECT, GetShaderBinaryDataEXT)
240 #define FN_LIST_WIN32(MACRO) \
241 MACRO(1, 1, FF_VK_EXT_EXTERNAL_WIN32_SEM, GetSemaphoreWin32HandleKHR) \
242 MACRO(1, 1, FF_VK_EXT_EXTERNAL_WIN32_MEMORY, GetMemoryWin32HandleKHR)
245 #define PFN_DEF(req_inst, req_dev, ext_flag, name) \
@ FF_VK_EXT_VIDEO_ENCODE_QUEUE
@ FF_VK_EXT_VIDEO_DECODE_H264
@ FF_VK_EXT_VIDEO_DECODE_AV1
@ FF_VK_EXT_DESCRIPTOR_BUFFER
@ FF_VK_EXT_VIDEO_DECODE_H265
@ FF_VK_EXT_VIDEO_ENCODE_H264
@ FF_VK_EXT_VIDEO_DECODE_QUEUE
#define FN_LIST_WIN32(MACRO)
@ FF_VK_EXT_VIDEO_MAINTENANCE_1
@ FF_VK_EXT_EXTERNAL_HOST_MEMORY
@ FF_VK_EXT_DRM_MODIFIER_FLAGS
@ FF_VK_EXT_EXTERNAL_DMABUF_MEMORY
@ FF_VK_EXT_EXTERNAL_FD_MEMORY
@ FF_VK_EXT_SHADER_OBJECT
#define PFN_DEF(req_inst, req_dev, ext_flag, name)
@ FF_VK_EXT_EXTERNAL_FD_SEM
@ FF_VK_EXT_VIDEO_ENCODE_H265