Replies: 1 comment
|
well you can do this on your application no? I mean it would be better to have a shared thing for everyone to use, but I don't get your claim that "Standalone Odin programs have no way to do this currently" either way, feel free to open a PR, I'll be glad to test and review |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Apple's documented pattern for programmatic GPU capture, Capturing a Metal workload programmatically, assumes the Metal device is already wrapped with the capture layer.
Currently
MTLCaptureManager.startCaptureWithDescriptor:error:returnsCapture layer is not inserted.error while otherMTLCaptureManager.startCaptureWith*dont emit the recorded .GPUTraceDocument when ending the recording.Xcode injects this layer automatically when launching a Metal app. Standalone Odin programs have no way to do this currently. In effect, MTLCaptureManager and MTLCaptureDescriptor are unusable from Odin today.
Proposal:
Add an extra package under Metal or extend the current Metal package to expose a way to wrap the MTLDevice. Change would be extra ~10 lines.
All reactions