src/video/uikit/SDL_uikitvideo.m
changeset 11365 a9bd2625fa01
parent 11327 770196e01af1
child 11381 2610f8f0a9c6
     1.1 --- a/src/video/uikit/SDL_uikitvideo.m	Sun Aug 27 19:10:30 2017 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitvideo.m	Sun Aug 27 22:15:57 2017 -0400
     1.3 @@ -37,6 +37,7 @@
     1.4  #include "SDL_uikitwindow.h"
     1.5  #include "SDL_uikitopengles.h"
     1.6  #include "SDL_uikitclipboard.h"
     1.7 +#include "SDL_uikitvulkan.h"
     1.8  
     1.9  #define UIKITVID_DRIVER_NAME "uikit"
    1.10  
    1.11 @@ -123,6 +124,15 @@
    1.12          device->GL_LoadLibrary      = UIKit_GL_LoadLibrary;
    1.13          device->free = UIKit_DeleteDevice;
    1.14  
    1.15 +    #if SDL_VIDEO_VULKAN_SURFACE
    1.16 +        device->Vulkan_LoadLibrary = UIKit_Vulkan_LoadLibrary;
    1.17 +        device->Vulkan_UnloadLibrary = UIKit_Vulkan_UnloadLibrary;
    1.18 +        device->Vulkan_GetInstanceExtensions
    1.19 +                                     = UIKit_Vulkan_GetInstanceExtensions;
    1.20 +        device->Vulkan_CreateSurface = UIKit_Vulkan_CreateSurface;
    1.21 +        device->Vulkan_GetDrawableSize = UIKit_Vulkan_GetDrawableSize;
    1.22 +    #endif
    1.23 +
    1.24          device->gl_config.accelerated = 1;
    1.25  
    1.26          return device;