コード例 #1
0
        private async void Button_Click(object sender, RoutedEventArgs e)
        {
#if __WASM__
            Uno.Foundation.WebAssemblyRuntime.InvokeJS("Uno.UI.Demo.Analytics.reportPageView('benchmark');");
#endif

            RayTraceBenchmark.Console.WriteLineCallback = print;
            BenchmarkMain.SaveImageCallback             = showImage;
            await BenchmarkMain.Start();
        }
コード例 #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     RayTraceBenchmark.Console.WriteLineCallback = print;
     BenchmarkMain.SaveImageCallback             = showImage;
     BenchmarkMain.Start();
 }