From 36e67494b993b7cc5c5bdece9ebf410f180d9ab6 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 29 Sep 2024 11:29:20 -0700 Subject: [PATCH] Move WinUI 3 code behind to shared project --- .../ComputeSharp.SwapChain.UI.projitems | 11 +++++++++++ .../Controls/D2D1AnimatedPixelShaderPanel.cs | 0 .../Converters/RenderingPauseConverter.cs | 0 .../Converters/ResolutionScaleConverter.cs | 0 .../Enums/RenderingMode.cs | 0 .../Shaders/PixelShaderEffect.cs | 0 .../Shaders/Runners/ContouredLayersRunner.cs | 0 .../Shaders/Runners/D2D1ContouredLayersRunner.cs | 0 .../ViewModels/MainViewModel.cs | 0 .../ViewModels/ShaderRunnerViewModel.cs | 0 10 files changed, 11 insertions(+) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/Controls/D2D1AnimatedPixelShaderPanel.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/Converters/RenderingPauseConverter.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/Converters/ResolutionScaleConverter.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/Enums/RenderingMode.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/Shaders/PixelShaderEffect.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/Shaders/Runners/ContouredLayersRunner.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/Shaders/Runners/D2D1ContouredLayersRunner.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/ViewModels/MainViewModel.cs (100%) rename samples/{ComputeSharp.SwapChain.WinUI => ComputeSharp.SwapChain.UI}/ViewModels/ShaderRunnerViewModel.cs (100%) diff --git a/samples/ComputeSharp.SwapChain.UI/ComputeSharp.SwapChain.UI.projitems b/samples/ComputeSharp.SwapChain.UI/ComputeSharp.SwapChain.UI.projitems index 8391cab17..dbe456796 100644 --- a/samples/ComputeSharp.SwapChain.UI/ComputeSharp.SwapChain.UI.projitems +++ b/samples/ComputeSharp.SwapChain.UI/ComputeSharp.SwapChain.UI.projitems @@ -64,4 +64,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.WinUI/Controls/D2D1AnimatedPixelShaderPanel.cs b/samples/ComputeSharp.SwapChain.UI/Controls/D2D1AnimatedPixelShaderPanel.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/Controls/D2D1AnimatedPixelShaderPanel.cs rename to samples/ComputeSharp.SwapChain.UI/Controls/D2D1AnimatedPixelShaderPanel.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/Converters/RenderingPauseConverter.cs b/samples/ComputeSharp.SwapChain.UI/Converters/RenderingPauseConverter.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/Converters/RenderingPauseConverter.cs rename to samples/ComputeSharp.SwapChain.UI/Converters/RenderingPauseConverter.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/Converters/ResolutionScaleConverter.cs b/samples/ComputeSharp.SwapChain.UI/Converters/ResolutionScaleConverter.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/Converters/ResolutionScaleConverter.cs rename to samples/ComputeSharp.SwapChain.UI/Converters/ResolutionScaleConverter.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/Enums/RenderingMode.cs b/samples/ComputeSharp.SwapChain.UI/Enums/RenderingMode.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/Enums/RenderingMode.cs rename to samples/ComputeSharp.SwapChain.UI/Enums/RenderingMode.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/Shaders/PixelShaderEffect.cs b/samples/ComputeSharp.SwapChain.UI/Shaders/PixelShaderEffect.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/Shaders/PixelShaderEffect.cs rename to samples/ComputeSharp.SwapChain.UI/Shaders/PixelShaderEffect.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/Shaders/Runners/ContouredLayersRunner.cs b/samples/ComputeSharp.SwapChain.UI/Shaders/Runners/ContouredLayersRunner.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/Shaders/Runners/ContouredLayersRunner.cs rename to samples/ComputeSharp.SwapChain.UI/Shaders/Runners/ContouredLayersRunner.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/Shaders/Runners/D2D1ContouredLayersRunner.cs b/samples/ComputeSharp.SwapChain.UI/Shaders/Runners/D2D1ContouredLayersRunner.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/Shaders/Runners/D2D1ContouredLayersRunner.cs rename to samples/ComputeSharp.SwapChain.UI/Shaders/Runners/D2D1ContouredLayersRunner.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/ViewModels/MainViewModel.cs b/samples/ComputeSharp.SwapChain.UI/ViewModels/MainViewModel.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/ViewModels/MainViewModel.cs rename to samples/ComputeSharp.SwapChain.UI/ViewModels/MainViewModel.cs diff --git a/samples/ComputeSharp.SwapChain.WinUI/ViewModels/ShaderRunnerViewModel.cs b/samples/ComputeSharp.SwapChain.UI/ViewModels/ShaderRunnerViewModel.cs similarity index 100% rename from samples/ComputeSharp.SwapChain.WinUI/ViewModels/ShaderRunnerViewModel.cs rename to samples/ComputeSharp.SwapChain.UI/ViewModels/ShaderRunnerViewModel.cs