Fixed compiling Metal renderer on iOS
This commit is contained in:
parent
6fc4a1cdb8
commit
40be7cbc97
4 changed files with 186 additions and 142 deletions
|
@ -154,8 +154,9 @@
|
|||
#define SDL_VIDEO_RENDER_OGL_ES 1
|
||||
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||
|
||||
/* Enable Vulkan support on 64-bit devices when an iOS 8+ SDK is used. */
|
||||
/* Enable Metal and Vulkan support on 64-bit devices when an iOS 8+ SDK is used. */
|
||||
#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM && defined(__IPHONE_8_0)
|
||||
#define SDL_VIDEO_RENDER_METAL 1
|
||||
#define SDL_VIDEO_VULKAN 1
|
||||
#else
|
||||
#define SDL_VIDEO_VULKAN 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue