VulkanSDK post-1.2.198 is broken on macOS
Thanks @t01va and @eliheuer for helping me track this down.
This is currently blocked on https://github.com/aclysma/skulpin/issues/108#issuecomment-1221852846
I know @aclysma doesn't have much time to work on Skulpin anymore so I'm already looking into how to apply the fix suggested on Stack Overflow to our skulpin branch
Workaround: Build with VulkanSDK 1.2.198 (per @Subject38 and @eliheuer).
I was getting this error Failed to initialize Skulpin: VkCreateInstanceError(InstanceError(VkError(ERROR_INCOMPATIBLE_DRIVER))) when trying to run MFEKglif on an Intel mac today. The following steps fixed my problem
brew install cmake- Uninstall the newer version of the Vulkan SDK I had installed
- Install an older version of the Vulkan SDK, specifically
1.2.198
That fixed the problem for me and I was able to build and run MFEKglif.
@eliheuer I know exactly what's wrong now.
The new VulkanSDK requires to load an extension called VK_KHR_portability_enumeration.
Skulpin doesn't do this.
Rafx offers no way to do it. (Cf. https://github.com/aclysma/skulpin/issues/108#issuecomment-1221912763)
So basically, either @aclysma has to update rafx-api and close out that old TODO, or I have to fork rafx-api, hack it in probably much worse than he would as I'm far from an expert on 3D graphics lol, (but know enough to be dangerous,) then change MFEK/skulpin.rlib to use the as-yet-nonexistent MFEK/rafx.rlib and close this.
I'm gonna wait like a week or two for @aclysma since I'm not looking forward to writing those patches lol…it's way outside of my normal area of work but hopefully since I've documented so well what's wrong he can fix it easily.
Closing, fixed by egui. Thanks @lucasmerlin / @matthewblanchard.