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

Does this mean that I can use Rust to build an immersive application of CompositorService on visionOS through this project? #668

Open
random-yang opened this issue Nov 7, 2024 · 4 comments
Labels
A-framework Affects the framework crates and the translator for them question Further information is requested

Comments

@random-yang
Copy link

Sorry for only asking a primary-level question, but my question is as shown in the title. I am not sure dose it make sence.

@random-yang random-yang changed the title Does this mean that I can use Rust to build an immersive application of composerService on visionOS through this project? Does this mean that I can use Rust to build an immersive application of CompositorService on visionOS through this project? Nov 7, 2024
@madsmtm madsmtm added question Further information is requested A-framework Affects the framework crates and the translator for them labels Nov 10, 2024
@madsmtm
Copy link
Owner

madsmtm commented Nov 10, 2024

The quick answer is technically yes, but currently practically no, since we don't expose bindings for the CompositorServices framework, and it's very tedious and error-prone to create them manually.

Even if we did, I would honestly say that as a beginner, you should probably try it with Swift first, there's a lot more documentation available out there for that.

@random-yang
Copy link
Author

random-yang commented Nov 10, 2024

@madsmtm Thank you for your answer. I have obtained more information. The reason I ask this is to estimate whether the existing Rust 3D rendering can be directly used in AVP development in the future.

@madsmtm
Copy link
Owner

madsmtm commented Nov 10, 2024

I think so? The most popular Rust rendering solution, wgpu, uses Metal under the hood, and that should be possible to integrate with CompositerServices, if I understand correctly.

@random-yang
Copy link
Author

random-yang commented Nov 10, 2024

Currently, CompositerServices and realityKit cannot work in the same immersive environment. This results in the inability to use realityKit to draw other content in the scene while using CompositerServices. Therefore, it is meaningful to find a way to control rendering completely based on CompositerServices.
But at the same time, I am also trying my best to find an opportunity to discuss this issue with Apple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants