Even after setting the debug configurations ‘Produce debugging information’ to ‘Yes, include source code’, I still get the’ Unable to create shader debug session’ error. This only happens for the fragment / vertex shaders. The compute pipeline seems to work fine. I’ve tried on multiple computers. I’m on Xcode 10.1. Am I missing something obvious?
@smehsu - since compute works fine, I assume that you are using Mojave?
Your fragment and vertex shaders work correctly? Have you tried it on the simplest fragment and vertex functions?
Your Scheme Settings (Options tab) should look like this:
(Make sure that it says
Debug under Run)
In your project build settings, make sure that Release build Configuration has No
Other than those, I am out of ideas.
Btw - I notice Apple has written a shiny new article on “Resolving Shader Issues with the Shader Debugger”. They don’t have any further suggestions either:
Unfortunately it appears my project is setup correctly. However, oddly enough, when I run on an iOS device the debug shader session works fine!