Open jnorris441 opened 4 months ago
It appears that MoltenVK does not yet support visionOS. I will include a visionOS demo once I obtain an Apple Silicon MacBook. Contributions via PR are also welcome.
@cxfksword I thought when they fixed building for VisionOS it would mean it was supported. I hope it gets straightened out
Any update on this?
Not fixed yet. https://github.com/KhronosGroup/MoltenVK/issues/1984
Hi, I got the same result as above trying to port iOS code to VisionOS :
[mvk-error] Could not compile command shaders (Error code 3): error: invalid value 'ios-metal0.0' in '-std=ios-metal0.0'
Is there a new version which fixes this issue ? Which one ? Do I need to specify a version to make it work ? I am trying on a simulator.
I was able to launch my Vulkan App with success and shaders working using a patch on MoltenVK. It's working on VisionOS simulator. I did not test on real VisionOS device because I don't have one. I changed some tests on MVKDevice.mm, MVKCommonEnvironnement.h and SPIRVToMSLConverter.cpp.
I did not make a PR because I'm not sure that all I've done is ok on real VisionOS device and if I did all correctly.
If some people want my sources, I can fork the MoltenVK project or upload modified files. Just ask.
@HyperCed Great work. I have a Vision Pro I can test on. Could you make a fork and let me know?
I'd be happy to try as well!
You can try on https://github.com/HyperCed/MoltenVK On visionOSSimulator branch
@HyperCed I downloaded the MoltenVK-all binary from the Github action running your branch. How do I actually get MPVKit to use it?
You have to compile MoltenVK like this
./fetchDependencies --macos --ios --iossim --maccat --tvos --tvossim --visionos --visionossim
make all
make visionos visionossim
and then integrate the xcframework in MPVKit project.
@HyperCed Thanks for the instructions. I managed to get a HDR video playing in the VisionPro with your update.
https://github.com/user-attachments/assets/0dd7b355-8e36-4a3f-94c0-7462d9ad2c89
Thanks for this project. I took the tvOS demo project and tried building it for VisionOS. It builds successfully.
It does not play anything. I get a
SIGABRT
fromvo
, caused by libplacebo I believe.It would be great if you could add a VisionOS demo similar to the other OSs. Thanks