xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.42k stars 507 forks source link

[metal] Capture metal frame #6316

Open johnson3d opened 5 years ago

johnson3d commented 5 years ago

hello,I want to capture GPU frame in an metal app, xcode can capture the app that it run.but ios xamarin is not a xcode project. Can i run xamarin app from xcode and capture it?

dalexsoto commented 5 years ago

Hello!

What do you mean by capture? Could you show me documentation or a tutorial on the Xcode feature you want?

If you mean taking a video from macOS you can always use QuickTime https://support.apple.com/en-us/HT201066#record to record your devices or if you want a screenshot from the simulator, hitting cmd + s keys while on sim should put a screenshot in your ~/Desktop/. If you need an screenshot from the actual phone, open Xcode -> Window menu -> Devices and Simulators menu -> Select device on the left panel -> Take Screenshot.

Screen Shot 2019-06-15 at 7 39 03 AM Screen Shot 2019-06-15 at 7 40 58 AM

Hope this helps.

dalexsoto commented 5 years ago

Ahh never mind, I found the feature you want https://developer.apple.com/documentation/metal/frame_capture_debugging_tools/metal_frame_capture?language=objc

Unfortunately no, we do not have support it, maybe you could use Xcode instruments' metal tools with your Xamarin app.

I will leave this bug open as a future enhancement that we can research. Thank you for pointing this out.

johnson3d commented 5 years ago

Yes! We are working for a cross platform 3D Game engine. So i need Metal Frame Capture to find out my graphics bugs now. I have tried the Xcod instruments, It's a performance profiler usually. So I am looking forward to get that future enhancement :)