Skip to content

Commit d2a6ba3

Browse files
committed
Tests: Use Avalonia/Skia software rendering so that it doesn't interfere with RenderDoc
1 parent 0ebed49 commit d2a6ba3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sources/tests/xunit.runner.stride/StrideXunitRunner.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ public static void Main(string[] _, Action<bool>? setInteractiveMode = null, Act
2626
public static AppBuilder BuildAvaloniaApp(Action<bool>? setInteractiveMode = null, Action<bool>? setForceSaveImage = null)
2727
=> AppBuilder.Configure(() => new App { setInteractiveMode = setInteractiveMode, setForceSaveImage = setForceSaveImage })
2828
.UsePlatformDetect()
29+
.With(new Win32PlatformOptions
30+
{
31+
// Use Software rendering, otherwise default renderer (OpenGL) interfere with GPU capture tools such as RenderDoc
32+
RenderingMode = new[] { Win32RenderingMode.Software }
33+
})
2934
.WithInterFont()
3035
.LogToTrace();
3136
}

0 commit comments

Comments
 (0)