Open jnorris441 opened 3 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?
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