Browse Source

android: enable vulkan renderer

captain0xff 9 months ago
parent
commit
0506cf18ab
2 changed files with 7 additions and 0 deletions
  1. 4 0
      CMakeLists.txt
  2. 3 0
      include/build_config/SDL_build_config_android.h

+ 4 - 0
CMakeLists.txt

@@ -1339,6 +1339,10 @@ if(ANDROID)
       if(VULKAN_PASSED_ANDROID_CHECKS)
         set(SDL_VIDEO_VULKAN 1)
         set(HAVE_VULKAN TRUE)
+        if(SDL_RENDER_VULKAN)
+          set(SDL_VIDEO_RENDER_VULKAN 1)
+          set(HAVE_RENDER_VULKAN TRUE)
+        endif()
       endif()
     endif()
   endif()

+ 3 - 0
include/build_config/SDL_build_config_android.h

@@ -193,6 +193,9 @@
 #define SDL_VIDEO_VULKAN 0
 #else
 #define SDL_VIDEO_VULKAN 1
+#ifndef SDL_VIDEO_RENDER_VULKAN
+#define SDL_VIDEO_RENDER_VULKAN    1
+#endif
 #endif
 
 /* Enable system power support */