feat: add visionOS support (#323)

* feat: define BX_PLATFORM_VISIONOS

* chore: add xros, xrsimulator toolchain support
This commit is contained in:
Oskar Kwaśniewski
2024-04-29 19:18:36 +02:00
committed by GitHub
parent 0b8bb71897
commit f8dc7147b6
9 changed files with 95 additions and 11 deletions

View File

@@ -9,7 +9,8 @@
#if BX_CRT_NONE
#elif BX_PLATFORM_OSX \
|| BX_PLATFORM_IOS
|| BX_PLATFORM_IOS \
|| BX_PLATFORM_VISIONOS
# include <dispatch/dispatch.h>
#elif BX_PLATFORM_POSIX
# include <errno.h>
@@ -36,7 +37,8 @@ namespace bx
#if BX_CRT_NONE
#elif BX_PLATFORM_OSX \
|| BX_PLATFORM_IOS
|| BX_PLATFORM_IOS \
|| BX_PLATFORM_VISIONOS
dispatch_semaphore_t m_handle;
#elif BX_PLATFORM_POSIX
pthread_mutex_t m_mutex;
@@ -70,7 +72,8 @@ namespace bx
return false;
}
#elif BX_PLATFORM_OSX \
|| BX_PLATFORM_IOS
|| BX_PLATFORM_IOS \
|| BX_PLATFORM_VISIONOS
Semaphore::Semaphore()
{