sdlVulkanGetVkGetInstanceProcAddr function

Pointer<NativeType> sdlVulkanGetVkGetInstanceProcAddr()

Get the address of the vkGetInstanceProcAddr function.

This should be called after either calling SDL_Vulkan_LoadLibrary() or creating an SDL_Window with the SDL_WINDOW_VULKAN flag.

\returns the function pointer for vkGetInstanceProcAddr or NULL on error.

\since This function is available since SDL 2.0.6.

extern DECLSPEC void *SDLCALL SDL_Vulkan_GetVkGetInstanceProcAddr(void)

Implementation

Pointer<NativeType> sdlVulkanGetVkGetInstanceProcAddr() {
  final sdlVulkanGetVkGetInstanceProcAddrLookupFunction =
      libSdl2.lookupFunction<
          Pointer<NativeType> Function(),
          Pointer<NativeType>
              Function()>('SDL_Vulkan_GetVkGetInstanceProcAddr');
  return sdlVulkanGetVkGetInstanceProcAddrLookupFunction();
}