feat: base visionOS bgfx implementation (#3289)

Co-authored-by: mani3xis <mariusz.pas+dev@protonmail.com>

fix: properly set storageMode

cleanup: remove unused variables

fix crash while releasing m_drawable on visionOS

fix: remove unused timing variable

fix: file name cases, cleanup

feat: integrate visionOS into bgfx examples
This commit is contained in:
Oskar Kwaśniewski
2024-06-03 17:14:53 +02:00
committed by GitHub
parent 00fa5ad179
commit 3195593d8d
8 changed files with 110 additions and 30 deletions

View File

@@ -68,7 +68,7 @@ void openUrl(const bx::StringView& _url)
#if BX_PLATFORM_WINDOWS
void* result = ShellExecuteA(NULL, NULL, tmp, NULL, NULL, false);
BX_UNUSED(result);
#elif !BX_PLATFORM_IOS
#elif !BX_PLATFORM_IOS && !BX_PLATFORM_VISIONOS
int32_t result = system(tmp);
BX_UNUSED(result);
#endif // BX_PLATFORM_*

View File

@@ -68,7 +68,7 @@ namespace entry
else
# endif // ENTRY_CONFIG_USE_WAYLAND
return (void*)wmi.info.x11.window;
# elif BX_PLATFORM_OSX || BX_PLATFORM_IOS
# elif BX_PLATFORM_OSX || BX_PLATFORM_IOS || BX_PLATFORM_VISIONOS
return wmi.info.cocoa.window;
# elif BX_PLATFORM_WINDOWS
return wmi.info.win.window;