Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add visionOS support #3289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

okwasniewski
Copy link

Hello,

This PR adds visionOS support to bgfx. It's the continuation of this PR which added support to bx library. I've worked on this together with @mani3xis.

Apple Vision uses bgfx in single threaded mode (BGFX_CONFIG_MULTITHREADED = 0), but the example framework isn't really working nice with single threaded mode, so there might be some crashes in the examples but it works great when integrated separately.

Simulator Screenshot - Apple Vision Pro - 2024-05-09 at 11 27 58

@bkaradzic
Copy link
Owner

Follow existing file name convention when adding new files...

Copy link
Owner

@bkaradzic bkaradzic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please split this into two PRs. One where you just add BX_PLATFORM_VISIONOS defines, and after that PR one where you add new files, change scripts, etc.

src/renderer_mtl.mm Outdated Show resolved Hide resolved
@bkaradzic
Copy link
Owner

You should investigate how to avoid using 4 files for visionOS entry. Ideally only one file would be there.

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
@okwasniewski
Copy link
Author

Hey @bkaradzic,

I've removed "example" needed changes from this PR. I will open a separate one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants