Jesse Hall | d02edcb | 2015-09-08 07:44:48 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 17 | #ifndef LIBVULKAN_LOADER_H |
| 18 | #define LIBVULKAN_LOADER_H 1 |
| 19 | |
| 20 | #define VK_PROTOTYPES |
| 21 | #include <vulkan/vulkan.h> |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 22 | #include <vulkan/vk_ext_khr_swapchain.h> |
| 23 | #include <vulkan/vk_ext_khr_device_swapchain.h> |
| 24 | #include <vulkan/vk_ext_android_native_buffer.h> |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 25 | |
| 26 | namespace vulkan { |
| 27 | |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 28 | // TODO(jessehall): The InstanceVtbl and DeviceVtbl both have a set of |
| 29 | // functions used in the app->layers/loader interface, and a different set of |
| 30 | // functions used only in the loader->driver interface. We should probably |
| 31 | // split them into two structures: one used for dispatch of application calls, |
| 32 | // and one to hold the driver entry points. |
| 33 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 34 | struct InstanceVtbl { |
| 35 | // clang-format off |
| 36 | VkInstance instance; |
| 37 | |
| 38 | PFN_vkCreateInstance CreateInstance; |
| 39 | PFN_vkDestroyInstance DestroyInstance; |
| 40 | PFN_vkGetInstanceProcAddr GetInstanceProcAddr; |
| 41 | PFN_vkEnumeratePhysicalDevices EnumeratePhysicalDevices; |
| 42 | |
| 43 | PFN_vkGetPhysicalDeviceFeatures GetPhysicalDeviceFeatures; |
| 44 | PFN_vkGetPhysicalDeviceFormatProperties GetPhysicalDeviceFormatProperties; |
| 45 | PFN_vkGetPhysicalDeviceImageFormatProperties GetPhysicalDeviceImageFormatProperties; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 46 | PFN_vkGetPhysicalDeviceProperties GetPhysicalDeviceProperties; |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 47 | PFN_vkGetPhysicalDeviceQueueFamilyProperties GetPhysicalDeviceQueueFamilyProperties; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 48 | PFN_vkGetPhysicalDeviceMemoryProperties GetPhysicalDeviceMemoryProperties; |
| 49 | PFN_vkCreateDevice CreateDevice; |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 50 | PFN_vkEnumerateDeviceExtensionProperties EnumerateDeviceExtensionProperties; |
| 51 | PFN_vkEnumerateDeviceLayerProperties EnumerateDeviceLayerProperties; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 52 | PFN_vkGetPhysicalDeviceSparseImageFormatProperties GetPhysicalDeviceSparseImageFormatProperties; |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 53 | |
| 54 | // Layers and loader only, not implemented by drivers |
| 55 | PFN_vkGetPhysicalDeviceSurfaceSupportKHR GetPhysicalDeviceSurfaceSupportKHR; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 56 | // clang-format on |
| 57 | }; |
| 58 | |
| 59 | struct DeviceVtbl { |
| 60 | void* device; |
| 61 | |
| 62 | PFN_vkGetDeviceProcAddr GetDeviceProcAddr; |
| 63 | PFN_vkDestroyDevice DestroyDevice; |
| 64 | PFN_vkGetDeviceQueue GetDeviceQueue; |
| 65 | PFN_vkDeviceWaitIdle DeviceWaitIdle; |
| 66 | PFN_vkAllocMemory AllocMemory; |
| 67 | PFN_vkFreeMemory FreeMemory; |
| 68 | PFN_vkMapMemory MapMemory; |
| 69 | PFN_vkUnmapMemory UnmapMemory; |
| 70 | PFN_vkFlushMappedMemoryRanges FlushMappedMemoryRanges; |
| 71 | PFN_vkInvalidateMappedMemoryRanges InvalidateMappedMemoryRanges; |
| 72 | PFN_vkGetDeviceMemoryCommitment GetDeviceMemoryCommitment; |
| 73 | PFN_vkBindBufferMemory BindBufferMemory; |
| 74 | PFN_vkBindImageMemory BindImageMemory; |
| 75 | PFN_vkGetBufferMemoryRequirements GetBufferMemoryRequirements; |
| 76 | PFN_vkGetImageMemoryRequirements GetImageMemoryRequirements; |
| 77 | PFN_vkGetImageSparseMemoryRequirements GetImageSparseMemoryRequirements; |
| 78 | PFN_vkCreateFence CreateFence; |
| 79 | PFN_vkDestroyFence DestroyFence; |
| 80 | PFN_vkResetFences ResetFences; |
| 81 | PFN_vkGetFenceStatus GetFenceStatus; |
| 82 | PFN_vkWaitForFences WaitForFences; |
| 83 | PFN_vkCreateSemaphore CreateSemaphore; |
| 84 | PFN_vkDestroySemaphore DestroySemaphore; |
| 85 | PFN_vkCreateEvent CreateEvent; |
| 86 | PFN_vkDestroyEvent DestroyEvent; |
| 87 | PFN_vkGetEventStatus GetEventStatus; |
| 88 | PFN_vkSetEvent SetEvent; |
| 89 | PFN_vkResetEvent ResetEvent; |
| 90 | PFN_vkCreateQueryPool CreateQueryPool; |
| 91 | PFN_vkDestroyQueryPool DestroyQueryPool; |
| 92 | PFN_vkGetQueryPoolResults GetQueryPoolResults; |
| 93 | PFN_vkCreateBuffer CreateBuffer; |
| 94 | PFN_vkDestroyBuffer DestroyBuffer; |
| 95 | PFN_vkCreateBufferView CreateBufferView; |
| 96 | PFN_vkDestroyBufferView DestroyBufferView; |
| 97 | PFN_vkCreateImage CreateImage; |
| 98 | PFN_vkDestroyImage DestroyImage; |
| 99 | PFN_vkGetImageSubresourceLayout GetImageSubresourceLayout; |
| 100 | PFN_vkCreateImageView CreateImageView; |
| 101 | PFN_vkDestroyImageView DestroyImageView; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 102 | PFN_vkCreateShaderModule CreateShaderModule; |
| 103 | PFN_vkDestroyShaderModule DestroyShaderModule; |
| 104 | PFN_vkCreateShader CreateShader; |
| 105 | PFN_vkDestroyShader DestroyShader; |
| 106 | PFN_vkCreatePipelineCache CreatePipelineCache; |
| 107 | PFN_vkDestroyPipelineCache DestroyPipelineCache; |
| 108 | PFN_vkGetPipelineCacheSize GetPipelineCacheSize; |
| 109 | PFN_vkGetPipelineCacheData GetPipelineCacheData; |
| 110 | PFN_vkMergePipelineCaches MergePipelineCaches; |
| 111 | PFN_vkCreateGraphicsPipelines CreateGraphicsPipelines; |
| 112 | PFN_vkCreateComputePipelines CreateComputePipelines; |
| 113 | PFN_vkDestroyPipeline DestroyPipeline; |
| 114 | PFN_vkCreatePipelineLayout CreatePipelineLayout; |
| 115 | PFN_vkDestroyPipelineLayout DestroyPipelineLayout; |
| 116 | PFN_vkCreateSampler CreateSampler; |
| 117 | PFN_vkDestroySampler DestroySampler; |
| 118 | PFN_vkCreateDescriptorSetLayout CreateDescriptorSetLayout; |
| 119 | PFN_vkDestroyDescriptorSetLayout DestroyDescriptorSetLayout; |
| 120 | PFN_vkCreateDescriptorPool CreateDescriptorPool; |
| 121 | PFN_vkDestroyDescriptorPool DestroyDescriptorPool; |
| 122 | PFN_vkResetDescriptorPool ResetDescriptorPool; |
| 123 | PFN_vkAllocDescriptorSets AllocDescriptorSets; |
| 124 | PFN_vkFreeDescriptorSets FreeDescriptorSets; |
| 125 | PFN_vkUpdateDescriptorSets UpdateDescriptorSets; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 126 | PFN_vkCreateFramebuffer CreateFramebuffer; |
| 127 | PFN_vkDestroyFramebuffer DestroyFramebuffer; |
| 128 | PFN_vkCreateRenderPass CreateRenderPass; |
| 129 | PFN_vkDestroyRenderPass DestroyRenderPass; |
| 130 | PFN_vkGetRenderAreaGranularity GetRenderAreaGranularity; |
| 131 | PFN_vkCreateCommandPool CreateCommandPool; |
| 132 | PFN_vkDestroyCommandPool DestroyCommandPool; |
| 133 | PFN_vkResetCommandPool ResetCommandPool; |
| 134 | PFN_vkCreateCommandBuffer CreateCommandBuffer; |
| 135 | PFN_vkDestroyCommandBuffer DestroyCommandBuffer; |
| 136 | |
| 137 | PFN_vkQueueSubmit QueueSubmit; |
| 138 | PFN_vkQueueWaitIdle QueueWaitIdle; |
| 139 | PFN_vkQueueBindSparseBufferMemory QueueBindSparseBufferMemory; |
| 140 | PFN_vkQueueBindSparseImageOpaqueMemory QueueBindSparseImageOpaqueMemory; |
| 141 | PFN_vkQueueBindSparseImageMemory QueueBindSparseImageMemory; |
| 142 | PFN_vkQueueSignalSemaphore QueueSignalSemaphore; |
| 143 | PFN_vkQueueWaitSemaphore QueueWaitSemaphore; |
| 144 | |
| 145 | PFN_vkBeginCommandBuffer BeginCommandBuffer; |
| 146 | PFN_vkEndCommandBuffer EndCommandBuffer; |
| 147 | PFN_vkResetCommandBuffer ResetCommandBuffer; |
| 148 | PFN_vkCmdBindPipeline CmdBindPipeline; |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 149 | PFN_vkCmdSetViewport CmdSetViewport; |
| 150 | PFN_vkCmdSetScissor CmdSetScissor; |
| 151 | PFN_vkCmdSetLineWidth CmdSetLineWidth; |
| 152 | PFN_vkCmdSetDepthBias CmdSetDepthBias; |
| 153 | PFN_vkCmdSetBlendConstants CmdSetBlendConstants; |
| 154 | PFN_vkCmdSetDepthBounds CmdSetDepthBounds; |
| 155 | PFN_vkCmdSetStencilCompareMask CmdSetStencilCompareMask; |
| 156 | PFN_vkCmdSetStencilWriteMask CmdSetStencilWriteMask; |
| 157 | PFN_vkCmdSetStencilReference CmdSetStencilReference; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 158 | PFN_vkCmdBindDescriptorSets CmdBindDescriptorSets; |
| 159 | PFN_vkCmdBindIndexBuffer CmdBindIndexBuffer; |
| 160 | PFN_vkCmdBindVertexBuffers CmdBindVertexBuffers; |
| 161 | PFN_vkCmdDraw CmdDraw; |
| 162 | PFN_vkCmdDrawIndexed CmdDrawIndexed; |
| 163 | PFN_vkCmdDrawIndirect CmdDrawIndirect; |
| 164 | PFN_vkCmdDrawIndexedIndirect CmdDrawIndexedIndirect; |
| 165 | PFN_vkCmdDispatch CmdDispatch; |
| 166 | PFN_vkCmdDispatchIndirect CmdDispatchIndirect; |
| 167 | PFN_vkCmdCopyBuffer CmdCopyBuffer; |
| 168 | PFN_vkCmdCopyImage CmdCopyImage; |
| 169 | PFN_vkCmdBlitImage CmdBlitImage; |
| 170 | PFN_vkCmdCopyBufferToImage CmdCopyBufferToImage; |
| 171 | PFN_vkCmdCopyImageToBuffer CmdCopyImageToBuffer; |
| 172 | PFN_vkCmdUpdateBuffer CmdUpdateBuffer; |
| 173 | PFN_vkCmdFillBuffer CmdFillBuffer; |
| 174 | PFN_vkCmdClearColorImage CmdClearColorImage; |
| 175 | PFN_vkCmdClearDepthStencilImage CmdClearDepthStencilImage; |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 176 | PFN_vkCmdClearAttachments CmdClearAttachments; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 177 | PFN_vkCmdResolveImage CmdResolveImage; |
| 178 | PFN_vkCmdSetEvent CmdSetEvent; |
| 179 | PFN_vkCmdResetEvent CmdResetEvent; |
| 180 | PFN_vkCmdWaitEvents CmdWaitEvents; |
| 181 | PFN_vkCmdPipelineBarrier CmdPipelineBarrier; |
| 182 | PFN_vkCmdBeginQuery CmdBeginQuery; |
| 183 | PFN_vkCmdEndQuery CmdEndQuery; |
| 184 | PFN_vkCmdResetQueryPool CmdResetQueryPool; |
| 185 | PFN_vkCmdWriteTimestamp CmdWriteTimestamp; |
| 186 | PFN_vkCmdCopyQueryPoolResults CmdCopyQueryPoolResults; |
| 187 | PFN_vkCmdPushConstants CmdPushConstants; |
| 188 | PFN_vkCmdBeginRenderPass CmdBeginRenderPass; |
| 189 | PFN_vkCmdNextSubpass CmdNextSubpass; |
| 190 | PFN_vkCmdEndRenderPass CmdEndRenderPass; |
| 191 | PFN_vkCmdExecuteCommands CmdExecuteCommands; |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 192 | |
| 193 | // Layers and loader only, not implemented by drivers |
| 194 | PFN_vkGetSurfacePropertiesKHR GetSurfacePropertiesKHR; |
| 195 | PFN_vkGetSurfaceFormatsKHR GetSurfaceFormatsKHR; |
| 196 | PFN_vkGetSurfacePresentModesKHR GetSurfacePresentModesKHR; |
| 197 | PFN_vkCreateSwapchainKHR CreateSwapchainKHR; |
| 198 | PFN_vkDestroySwapchainKHR DestroySwapchainKHR; |
| 199 | PFN_vkGetSwapchainImagesKHR GetSwapchainImagesKHR; |
| 200 | PFN_vkAcquireNextImageKHR AcquireNextImageKHR; |
| 201 | PFN_vkQueuePresentKHR QueuePresentKHR; |
| 202 | |
| 203 | // Implemented only by drivers, not by layers or the loader |
Jesse Hall | 70f9335 | 2015-11-04 09:41:31 -0800 | [diff] [blame] | 204 | PFN_vkGetSwapchainGrallocUsageANDROID GetSwapchainGrallocUsageANDROID; |
Jesse Hall | ab9aeef | 2015-11-04 10:56:20 -0800 | [diff] [blame] | 205 | PFN_vkAcquireImageANDROID AcquireImageANDROID; |
| 206 | PFN_vkQueueSignalReleaseImageANDROID QueueSignalReleaseImageANDROID; |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 207 | PFN_vkImportNativeFenceANDROID ImportNativeFenceANDROID; |
| 208 | PFN_vkQueueSignalNativeFenceANDROID QueueSignalNativeFenceANDROID; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 209 | }; |
| 210 | |
| 211 | // ----------------------------------------------------------------------------- |
| 212 | // loader.cpp |
| 213 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 214 | VkResult EnumerateInstanceExtensionProperties( |
| 215 | const char* layer_name, |
| 216 | uint32_t* count, |
| 217 | VkExtensionProperties* properties); |
| 218 | VkResult EnumerateInstanceLayerProperties(uint32_t* count, |
| 219 | VkLayerProperties* properties); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 220 | VkResult CreateInstance(const VkInstanceCreateInfo* create_info, |
| 221 | VkInstance* instance); |
| 222 | PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* name); |
| 223 | PFN_vkVoidFunction GetDeviceProcAddr(VkDevice drv_device, const char* name); |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 224 | void GetDeviceQueue(VkDevice drv_device, |
| 225 | uint32_t family, |
| 226 | uint32_t index, |
| 227 | VkQueue* out_queue); |
Jesse Hall | c7a6eb5 | 2015-08-31 12:52:03 -0700 | [diff] [blame] | 228 | VkResult CreateCommandBuffer(VkDevice device, |
| 229 | const VkCmdBufferCreateInfo* create_info, |
| 230 | VkCmdBuffer* out_cmdbuf); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 231 | VkResult DestroyDevice(VkDevice drv_device); |
| 232 | |
Jesse Hall | d7b994a | 2015-09-07 14:17:37 -0700 | [diff] [blame] | 233 | void* AllocDeviceMem(VkDevice device, |
| 234 | size_t size, |
| 235 | size_t align, |
| 236 | VkSystemAllocType type); |
| 237 | void FreeDeviceMem(VkDevice device, void* ptr); |
| 238 | const DeviceVtbl& GetDriverVtbl(VkDevice device); |
| 239 | const DeviceVtbl& GetDriverVtbl(VkQueue queue); |
| 240 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 241 | // ----------------------------------------------------------------------------- |
| 242 | // get_proc_addr.cpp |
| 243 | |
| 244 | PFN_vkVoidFunction GetGlobalInstanceProcAddr(const char* name); |
| 245 | PFN_vkVoidFunction GetGlobalDeviceProcAddr(const char* name); |
| 246 | PFN_vkVoidFunction GetSpecificInstanceProcAddr(const InstanceVtbl* vtbl, |
| 247 | const char* name); |
| 248 | PFN_vkVoidFunction GetSpecificDeviceProcAddr(const DeviceVtbl* vtbl, |
| 249 | const char* name); |
| 250 | |
| 251 | bool LoadInstanceVtbl(VkInstance instance, |
Michael Lentine | 03c64b0 | 2015-08-26 18:27:26 -0500 | [diff] [blame] | 252 | VkInstance next_instance, |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 253 | PFN_vkGetInstanceProcAddr get_proc_addr, |
| 254 | InstanceVtbl& vtbl); |
| 255 | bool LoadDeviceVtbl(VkDevice device, |
Michael Lentine | 03c64b0 | 2015-08-26 18:27:26 -0500 | [diff] [blame] | 256 | VkDevice next_device, |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 257 | PFN_vkGetDeviceProcAddr get_proc_addr, |
| 258 | DeviceVtbl& vtbl); |
| 259 | |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 260 | // ----------------------------------------------------------------------------- |
| 261 | // swapchain.cpp |
| 262 | |
| 263 | VkResult GetPhysicalDeviceSurfaceSupportKHR( |
| 264 | VkPhysicalDevice pdev, |
| 265 | uint32_t queue_family, |
| 266 | const VkSurfaceDescriptionKHR* surface_desc, |
| 267 | VkBool32* supported); |
| 268 | VkResult GetSurfacePropertiesKHR(VkDevice device, |
| 269 | const VkSurfaceDescriptionKHR* surface_desc, |
| 270 | VkSurfacePropertiesKHR* properties); |
| 271 | VkResult GetSurfaceFormatsKHR(VkDevice device, |
| 272 | const VkSurfaceDescriptionKHR* surface_desc, |
| 273 | uint32_t* count, |
| 274 | VkSurfaceFormatKHR* formats); |
| 275 | VkResult GetSurfacePresentModesKHR(VkDevice device, |
| 276 | const VkSurfaceDescriptionKHR* surface_desc, |
| 277 | uint32_t* count, |
| 278 | VkPresentModeKHR* modes); |
| 279 | VkResult CreateSwapchainKHR(VkDevice device, |
| 280 | const VkSwapchainCreateInfoKHR* create_info, |
Jesse Hall | d7b994a | 2015-09-07 14:17:37 -0700 | [diff] [blame] | 281 | VkSwapchainKHR* swapchain_handle); |
| 282 | VkResult DestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain_handle); |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 283 | VkResult GetSwapchainImagesKHR(VkDevice device, |
Jesse Hall | d7b994a | 2015-09-07 14:17:37 -0700 | [diff] [blame] | 284 | VkSwapchainKHR swapchain_handle, |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 285 | uint32_t* count, |
Jesse Hall | d7b994a | 2015-09-07 14:17:37 -0700 | [diff] [blame] | 286 | VkImage* images); |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 287 | VkResult AcquireNextImageKHR(VkDevice device, |
Jesse Hall | d7b994a | 2015-09-07 14:17:37 -0700 | [diff] [blame] | 288 | VkSwapchainKHR swapchain_handle, |
Jesse Hall | b1352bc | 2015-09-04 16:12:33 -0700 | [diff] [blame] | 289 | uint64_t timeout, |
| 290 | VkSemaphore semaphore, |
| 291 | uint32_t* image_index); |
| 292 | VkResult QueuePresentKHR(VkQueue queue, VkPresentInfoKHR* present_info); |
| 293 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 294 | } // namespace vulkan |
| 295 | |
| 296 | #endif // LIBVULKAN_LOADER_H |