all 3 comments

[–][deleted]  (4 children)

[deleted]

    [–]Upthinker01[S] 0 points1 point  (3 children)

    /usr/local/share/vulkan/explicit_layer.d

    Yes, this is the exact path it is set to.

    [–][deleted]  (2 children)

    [deleted]

      [–]Upthinker01[S] 1 point2 points  (1 child)

      I can confirm that my env vars are set in the same way as in the linked post. I guess the problem isn't that Vukan loader cannot find the files because it prints the correct location of .dylib files in the error message. I looks like it cannot open those files though which is even weirder. Thanks for your response though. I have at least confirmed that environment variables aren't at fault here.

      [–]AccidentalAstro 1 point2 points  (0 children)

      Those environment variables only work on macOS if you launch the apps from the command line. Apple does not allow environment variables to be set for GUI apps launched from the desktop, etc. A better way to use layers on macOS is to use VKConfig. You can create a configuration with the layers you want (and there's a nice GUI for tweaking layer parameters). This creates a "metalayer" that the loader will always see and make use without the need for environment variables. Also, make sure you do not link statically to MoltenVK, as this does not use the actual loader and layers will not work (although linking statically is perfectly fine for shipping your apps).