public static bool IsDestinationSupported(FrameCaptureDestination dest) { bool flag = dest != FrameCaptureDestination.DevTools && dest != FrameCaptureDestination.GPUTraceDocument; if (flag) { throw new ArgumentException("dest", "Argument dest has bad value (not one of FrameCaptureDestination enum values)"); } return(FrameCapture.IsDestinationSupportedImpl(dest)); }
public static bool IsDestinationSupported(FrameCaptureDestination dest) { // i am not sure how paranoid should we be about enum values // but this is way easier to ignore error checks in lower level code, so we check here once if (dest != FrameCaptureDestination.DevTools && dest != FrameCaptureDestination.GPUTraceDocument) { throw new ArgumentException("dest", "Argument dest has bad value (not one of FrameCaptureDestination enum values)"); } return(IsDestinationSupportedImpl(dest)); }
private static extern void CaptureNextFrameImpl(FrameCaptureDestination dest, string path);
private static extern void BeginCaptureImpl(FrameCaptureDestination dest, string path);
private static extern bool IsDestinationSupportedImpl(FrameCaptureDestination dest);
[FreeFunction("FrameCaptureMetalScripting::BeginCapture")] extern private static void BeginCaptureImpl(FrameCaptureDestination dest, string path);
[FreeFunction("FrameCaptureMetalScripting::IsDestinationSupported")] extern private static bool IsDestinationSupportedImpl(FrameCaptureDestination dest);