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

@@ -16,7 +16,7 @@
|| BX_PLATFORM_WINRT \
|| BX_PLATFORM_XBOXONE
extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char* _str);
#elif BX_PLATFORM_IOS || BX_PLATFORM_OSX
#elif BX_PLATFORM_IOS || BX_PLATFORM_OSX || BX_PLATFORM_VISIONOS
# if defined(__OBJC__)
# import <Foundation/NSObjCRuntime.h>
# else
@@ -73,7 +73,8 @@ namespace bx
|| BX_PLATFORM_XBOXONE
OutputDebugStringA(_out);
#elif BX_PLATFORM_IOS \
|| BX_PLATFORM_OSX
|| BX_PLATFORM_OSX \
|| BX_PLATFORM_VISIONOS
# if defined(__OBJC__)
NSLog(@"%s", _out);
# else