I have written compute metal kernel in shader language. But it's not working as I expected so I thought about debugging and I am following Metal Tips and Techniques for debugging. I have called the
insertDebugCaptureBoundary
method of MTLCommandQueue
to inform Xcode about debugging.But still not able to debug GPU part of code like we do in CPU. While doing step debugging in CPU part of code how I will be get prompted to GPU code(.metal file) ?
Is it possible to debug the step by step code of GPU ?
If I am asking something meaningless please tell me how to do debugging of GPU code ( compute kernel) (.metal file) in Xcode ?
Thanks for reading....