Debug concrete frame metal shader

Hi there!

Let’s say that I have come computation logic that is done in the GPU (kernel function) and triggered with a condition in some frames.
How can I capture the GPU frame to debug it?
I’m trying to put a breakpoint inside the same condition after I commit the command buffer but when I capture the GPU frame no encoder appears in the debugger…

Any hint?

Thanks in advance

Presumably you’ve done the easy shader debugging?

https://developer.apple.com/documentation/metal/shader_authoring/developing_and_debugging_metal_shaders

Beyond that, I’m afraid I tend to just break up my app until I can work it out. There are other debugging tools, but I haven’t used them.

This looks like the right video to watch:

This is an older one: Metal Shader Debugging and Profiling - WWDC 2018 - Videos - Apple Developer

2 Likes

Thank you very much!!!

Yes, easy way done. I’ll investigate these videos