Search code examples
xcodemacosgpumetal

Enabling GPU Frame Capture


I am trying to build a Metal compute application. I wrote my first kernel, and now I want to see it's output from the compute shader. But, the "GPU Frame Capture" options are disabled in XCode. I'm using XCode 9.2. I have already enabled GPU Frame Capture in the schemes, that I'm running. Any hint about, why this might be happening?


Solution

  • Apparently you cannot debug compute shaders on XCode 9.2. I moved to Xcode 10.2, and I was able to use GPU Frame Capture to debug my Compute Kernels.

    P.S I'm not sure if this is a documented limitation, but this is what I experienced.