Use custom capture scopes to control which commands get captured.
Define Capture Boundaries
begin() on your capture scope to instruct the Metal frame debugger to record your app’s subsequent Metal activity. To stop recording a frame captured with this scope and to present the Metal frame debugger, call
Label Your Capture Scope for Use in the Debug Bar
To capture your custom scope from Xcode’s debug bar, set your capture scope’s
When you’re ready to capture a frame, press and hold the camera button on the debug bar. Xcode presents a selection menu from which you choose the scope with your label.
Keep a strong reference to the capture scope for as long as you want the option to be visible in Xcode.
Make a Custom Capture Scope the Default
When you capture a frame, Xcode uses the capture scope that’s assigned to the
default property of
MTLCapture. If the value of this property is
nil, Xcode defines the default capture scope using drawable presentation boundaries; for example, using your calls to the methods