glif icon indicating copy to clipboard operation
glif copied to clipboard

VulkanSDK post-1.2.198 is broken on macOS

Open ctrlcctrlv opened this issue 3 years ago • 2 comments

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).

ctrlcctrlv avatar Aug 22 '22 05:08 ctrlcctrlv

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

  1. brew install cmake
  2. Uninstall the newer version of the Vulkan SDK I had installed
  3. 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 avatar Aug 22 '22 06:08 eliheuer

@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.

ctrlcctrlv avatar Aug 22 '22 06:08 ctrlcctrlv

Closing, fixed by egui. Thanks @lucasmerlin / @matthewblanchard.

ctrlcctrlv avatar Mar 23 '23 02:03 ctrlcctrlv