Browse Source

Try open the softrender mode tode debug the FramebufferRenderTarget

pull/17118/head
lindexi 2 years ago
parent
commit
9e245be7f4
  1. 3
      samples/RenderDemo/App.xaml.cs

3
samples/RenderDemo/App.xaml.cs

@ -1,6 +1,8 @@
using Avalonia; using Avalonia;
using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml; using Avalonia.Markup.Xaml;
using Avalonia.Media;
using System.Collections.Generic;
namespace RenderDemo namespace RenderDemo
{ {
@ -29,6 +31,7 @@ namespace RenderDemo
.With(new Win32PlatformOptions .With(new Win32PlatformOptions
{ {
OverlayPopups = true, OverlayPopups = true,
RenderingMode = new List<Win32RenderingMode>(){ Win32RenderingMode.Software }
}) })
.UsePlatformDetect() .UsePlatformDetect()
.LogToTrace(); .LogToTrace();

Loading…
Cancel
Save