bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.05k stars 1.94k forks source link

feat: add visionOS Examples #3292

Open okwasniewski opened 5 months ago

okwasniewski commented 5 months ago

This PR follows #3289 by adding visionOS examples.

Commands

Generate example project for visionOS simulator:

genie --with-combined-examples --xcode=xros --gcc=xros-simulator xcode15

Generate example project for visionOS device:

genie --with-combined-examples --xcode=xros --gcc=xros-simulator xcode15

CleanShot 2024-07-01 at 12 23 43@2x

bkaradzic commented 4 months ago

You should submit just renderer_mtl.mm/.h changes in separate PR.

okwasniewski commented 4 months ago

Will do! Once I get this to work properly on actual device I will separate the last commit to another PR

okwasniewski commented 4 months ago

Hey @bkaradzic,

I reduced the number of files needed for visionOS integration to 3. I've tried to reduce it further but visionOS requires the entry point to be written in Swift and the rest is just the integration layer with bgfx. Let me know what you think.