From 9a8183340e14b0ea4c92960ab654455c672fc74f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 21 Jan 2023 21:06:46 +0100 Subject: [PATCH] Use SwitchPresenter to toggle between renderers --- .../Runners/D2D1ContouredLayersRunner.cs | 2 +- .../Views/MainView.xaml | 37 ++++++++++--------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/samples/ComputeSharp.SwapChain.Core.Shared/Shaders/Runners/D2D1ContouredLayersRunner.cs b/samples/ComputeSharp.SwapChain.Core.Shared/Shaders/Runners/D2D1ContouredLayersRunner.cs index 3277e6b3..ae464de0 100644 --- a/samples/ComputeSharp.SwapChain.Core.Shared/Shaders/Runners/D2D1ContouredLayersRunner.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/Shaders/Runners/D2D1ContouredLayersRunner.cs @@ -33,7 +33,7 @@ public sealed class D2D1ContouredLayersRunner : ID2D1ShaderRunner { D2D1ResourceTextureManager resourceTextureManager; - string filename = Path.Combine(Package.Current.InstalledLocation.Path, "Assets", "Textures", "RustyMetal.1024x1024rgba32"); + string filename = Path.Combine(Package.Current.InstalledLocation.Path, "Assets", "Textures", "RustyMetal.1024x1024rgba32"); // Open a file to read from the file (we're doing synchronous IO here by design, doesn't really matter) using (FileStream fileStream = new(filename, FileMode.Open, FileAccess.Read)) diff --git a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml index ad971545..31029efd 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml +++ b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml @@ -146,24 +146,27 @@ - - + + + - + + + + + + + + +