Explorar el Código

Add GPU to iOS build config

Caleb Cornett hace 1 año
padre
commit
b2f216f9e2
Se han modificado 1 ficheros con 5 adiciones y 8 borrados
  1. 5 8
      include/build_config/SDL_build_config_ios.h

+ 5 - 8
include/build_config/SDL_build_config_ios.h

@@ -196,16 +196,13 @@
 #define SDL_PLATFORM_SUPPORTS_METAL 0
 #endif
 
-#if SDL_PLATFORM_SUPPORTS_METAL
-#define SDL_VIDEO_RENDER_METAL  1
-#endif
-
-#if SDL_PLATFORM_SUPPORTS_METAL
-#define SDL_VIDEO_VULKAN 1
-#endif
-
 #if SDL_PLATFORM_SUPPORTS_METAL
 #define SDL_VIDEO_METAL 1
+#define SDL_GPU_METAL 1
+#define SDL_VIDEO_RENDER_METAL 1
+#define SDL_VIDEO_VULKAN 1
+#define SDL_GPU_VULKAN 1
+#define SDL_VIDEO_RENDER_GPU  1
 #endif
 
 /* Enable system power support */