diff --git a/ComputeSharp.sln b/ComputeSharp.sln index c9e1a061..d4c0b7a6 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -66,8 +66,11 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.UI", "src\Comp EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.SwapChain.Shaders.Shared", "samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.shproj", "{0800BD51-499D-44C2-9417-FD1F7FDFE9C4}" EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.SwapChain.Core.Shared", "samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.shproj", "{751BB05B-563D-4B3A-94C6-15E2D79D35EA}" +EndProject Global GlobalSection(SharedMSBuildProjectFiles) = preSolution + samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{0071701e-b9c5-4098-be5f-ef556c4553c6}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{0071701e-b9c5-4098-be5f-ef556c4553c6}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{0800bd51-499d-44c2-9417-fd1f7fdfe9c4}*SharedItemsImports = 13 src\ComputeSharp.UI\ComputeSharp.UI.projitems*{0c82ede1-5b8a-4df3-87da-700b29d5e265}*SharedItemsImports = 13 @@ -75,11 +78,14 @@ Global src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{314eb353-e7e3-4146-8111-685cc83ec1de}*SharedItemsImports = 5 src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{514ff00e-bbf0-4d55-a47c-eeeb6208adce}*SharedItemsImports = 13 samples\ComputeSharp.Sample.Shared\ComputeSharp.Sample.Shared.projitems*{7048deea-0a6f-46a0-b951-b682a8f1cb75}*SharedItemsImports = 5 + samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{751bb05b-563d-4b3a-94c6-15e2d79d35ea}*SharedItemsImports = 13 samples\ComputeSharp.Sample.Shared\ComputeSharp.Sample.Shared.projitems*{8cefc324-ca6c-4845-9ad9-70b92bd87057}*SharedItemsImports = 13 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{a5997814-d8d2-4541-87ac-c3e53caa67c0}*SharedItemsImports = 13 src\ComputeSharp.UI\ComputeSharp.UI.projitems*{afaafdc9-be42-45d4-8c79-0ee8c8edbf52}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{e7c9247d-016b-4819-af9f-0e9b3591e04b}*SharedItemsImports = 5 + samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{e91f4d24-922a-4921-a8d7-9c45a143c45d}*SharedItemsImports = 5 src\ComputeSharp.UI\ComputeSharp.UI.projitems*{fa18ba9f-76bf-4de0-8d24-02fc7657e6cb}*SharedItemsImports = 5 + samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{fbd388a5-7855-4408-98ff-e689f509db5a}*SharedItemsImports = 4 samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{fbd388a5-7855-4408-98ff-e689f509db5a}*SharedItemsImports = 4 EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -316,6 +322,7 @@ Global {0071701E-B9C5-4098-BE5F-EF556C4553C6} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1} {FBD388A5-7855-4408-98FF-E689F509DB5A} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1} {0800BD51-499D-44C2-9417-FD1F7FDFE9C4} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1} + {751BB05B-563D-4B3A-94C6-15E2D79D35EA} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC} diff --git a/samples/ComputeSharp.SwapChain.Core.Shared/ComputeSharp.SwapChain.Core.Shared.projitems b/samples/ComputeSharp.SwapChain.Core.Shared/ComputeSharp.SwapChain.Core.Shared.projitems new file mode 100644 index 00000000..2a5e911c --- /dev/null +++ b/samples/ComputeSharp.SwapChain.Core.Shared/ComputeSharp.SwapChain.Core.Shared.projitems @@ -0,0 +1,18 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + true + 751bb05b-563d-4b3a-94c6-15e2d79d35ea + + + ComputeSharp.SwapChain.Core.Shared + + + + + + + + + \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Core.Shared/ComputeSharp.SwapChain.Core.Shared.shproj b/samples/ComputeSharp.SwapChain.Core.Shared/ComputeSharp.SwapChain.Core.Shared.shproj new file mode 100644 index 00000000..db365a5b --- /dev/null +++ b/samples/ComputeSharp.SwapChain.Core.Shared/ComputeSharp.SwapChain.Core.Shared.shproj @@ -0,0 +1,13 @@ + + + + 751bb05b-563d-4b3a-94c6-15e2d79d35ea + 14.0 + + + + + + + + diff --git a/samples/ComputeSharp.SwapChain.WinUI/Converters/RenderingPauseConverter.cs b/samples/ComputeSharp.SwapChain.Core.Shared/Converters/RenderingPauseConverter.cs similarity index 77% rename from samples/ComputeSharp.SwapChain.WinUI/Converters/RenderingPauseConverter.cs rename to samples/ComputeSharp.SwapChain.Core.Shared/Converters/RenderingPauseConverter.cs index 5c8ae0bf..18c8479b 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Converters/RenderingPauseConverter.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/Converters/RenderingPauseConverter.cs @@ -1,6 +1,10 @@ -using Microsoft.UI.Xaml.Controls; +#if WINDOWS_UWP +using Windows.UI.Xaml.Controls; +#else +using Microsoft.UI.Xaml.Controls; +#endif -namespace ComputeSharp.SwapChain.WinUI.Converters; +namespace ComputeSharp.SwapChain.Core.Converters; /// /// A class with some static converters for rendering state. diff --git a/samples/ComputeSharp.SwapChain.WinUI/Converters/ResolutionScaleConverter.cs b/samples/ComputeSharp.SwapChain.Core.Shared/Converters/ResolutionScaleConverter.cs similarity index 94% rename from samples/ComputeSharp.SwapChain.WinUI/Converters/ResolutionScaleConverter.cs rename to samples/ComputeSharp.SwapChain.Core.Shared/Converters/ResolutionScaleConverter.cs index 1d242fc7..b13c844a 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Converters/ResolutionScaleConverter.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/Converters/ResolutionScaleConverter.cs @@ -1,4 +1,4 @@ -namespace ComputeSharp.SwapChain.WinUI.Converters; +namespace ComputeSharp.SwapChain.Core.Converters; /// /// A class with some static converters for resolution scale settings. diff --git a/samples/ComputeSharp.SwapChain.WinUI/Models/ComputeShader.cs b/samples/ComputeSharp.SwapChain.Core.Shared/Models/ComputeShader.cs similarity index 91% rename from samples/ComputeSharp.SwapChain.WinUI/Models/ComputeShader.cs rename to samples/ComputeSharp.SwapChain.Core.Shared/Models/ComputeShader.cs index 9816232b..77ff496f 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Models/ComputeShader.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/Models/ComputeShader.cs @@ -1,7 +1,13 @@ using CommunityToolkit.Mvvm.ComponentModel; +#if WINDOWS_UWP +using ComputeSharp.Uwp; +#else using ComputeSharp.WinUI; +#endif -namespace ComputeSharp.SwapChain.WinUI.Models; +#nullable enable + +namespace ComputeSharp.SwapChain.Core.Models; /// /// A model for a compute shader. diff --git a/samples/ComputeSharp.SwapChain.WinUI/Shaders/Runners/ContouredLayersRunner.cs b/samples/ComputeSharp.SwapChain.Core.Shared/Shaders/Runners/ContouredLayersRunner.cs similarity index 88% rename from samples/ComputeSharp.SwapChain.WinUI/Shaders/Runners/ContouredLayersRunner.cs rename to samples/ComputeSharp.SwapChain.Core.Shared/Shaders/Runners/ContouredLayersRunner.cs index 1a09c53a..6e91c5e5 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Shaders/Runners/ContouredLayersRunner.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/Shaders/Runners/ContouredLayersRunner.cs @@ -1,10 +1,16 @@ using System; using System.IO; using ComputeSharp.SwapChain.Shaders; +#if WINDOWS_UWP +using ComputeSharp.Uwp; +#else using ComputeSharp.WinUI; +#endif using Windows.ApplicationModel; -namespace ComputeSharp.SwapChain.WinUI.Shaders.Runners; +#nullable enable + +namespace ComputeSharp.SwapChain.Core.Shaders.Runners; /// /// A specialized for . diff --git a/samples/ComputeSharp.SwapChain.WinUI/ViewModels/MainViewModel.cs b/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs similarity index 95% rename from samples/ComputeSharp.SwapChain.WinUI/ViewModels/MainViewModel.cs rename to samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs index 0340006a..db1a5868 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/ViewModels/MainViewModel.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs @@ -1,12 +1,18 @@ using System.Collections.Generic; -using ComputeSharp.SwapChain.Shaders; -using ComputeSharp.SwapChain.WinUI.Models; -using ComputeSharp.WinUI; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; -using ComputeSharp.SwapChain.WinUI.Shaders.Runners; +using ComputeSharp.SwapChain.Core.Models; +using ComputeSharp.SwapChain.Core.Shaders.Runners; +using ComputeSharp.SwapChain.Shaders; +#if WINDOWS_UWP +using ComputeSharp.Uwp; +#else +using ComputeSharp.WinUI; +#endif -namespace ComputeSharp.SwapChain.WinUI.ViewModels; +#nullable enable + +namespace ComputeSharp.SwapChain.Core.ViewModels; /// /// The viewmodel for for a view that allows users to select shaders and customize settings. diff --git a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj index e81396ee..e234c7c3 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj +++ b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj @@ -119,12 +119,7 @@ App.xaml - - - - - MainView.xaml @@ -158,12 +153,12 @@ + + 7.1.2 + 6.2.13 - - 7.1.2 - 7.1.2 @@ -184,6 +179,7 @@ + 14.0 diff --git a/samples/ComputeSharp.SwapChain.Uwp/Converters/RenderingPauseConverter.cs b/samples/ComputeSharp.SwapChain.Uwp/Converters/RenderingPauseConverter.cs deleted file mode 100644 index 2407f8ae..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Converters/RenderingPauseConverter.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Windows.UI.Xaml.Controls; - -namespace ComputeSharp.SwapChain.Uwp.Converters -{ - /// - /// A class with some static converters for rendering state. - /// - public static class RenderingPauseConverter - { - /// - /// Gets a symbol for an input rendering state. - /// - /// Whether or not the rendering is currently paaused. - /// A symbol representing the next action for the rendering. - public static Symbol ConvertPausedToSymbol(bool value) - { - return value ? Symbol.Play : Symbol.Pause; - } - } -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Converters/ResolutionScaleConverter.cs b/samples/ComputeSharp.SwapChain.Uwp/Converters/ResolutionScaleConverter.cs deleted file mode 100644 index 0831ff76..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Converters/ResolutionScaleConverter.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace ComputeSharp.SwapChain.Uwp.Converters -{ - /// - /// A class with some static converters for resolution scale settings. - /// - public static class ResolutionScaleConverter - { - /// - /// Converts a resolution scale to a formatted string. - /// - /// The input resolution scale (in percentage). - /// A formatted percentage string for . - public static string ConvertPercentageToFormattedString(int value) - { - return $"{value}%"; - } - - /// - /// Converts a percentage value to a scaled value in the [0, 1] range. - /// - /// The input percentage value to scale. - /// The input percentage scaled to the [0, 1] range. - public static double ConvertPercentageToScale(int value) - { - return value / 100.0; - } - } -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Models/ComputeShader.cs b/samples/ComputeSharp.SwapChain.Uwp/Models/ComputeShader.cs deleted file mode 100644 index 3ac72447..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Models/ComputeShader.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Microsoft.Toolkit.Mvvm.ComponentModel; -using ComputeSharp.Uwp; - -namespace ComputeSharp.SwapChain.Uwp.Models -{ - /// - /// A model for a compute shader. - /// - /// This can be converted to a record when bindings are fixed, see notes in the XAML code. - public sealed class ComputeShader : ObservableObject - { - /// - /// Creates a new instance. - /// - /// The name of the shader. - /// The instance to execute. - public ComputeShader(string name, IShaderRunner shaderRunner) - { - Name = name; - ShaderRunner = shaderRunner; - } - - /// - /// Gets the name of the shader. - /// - public string Name { get; } - - /// - /// Gets the instance to execute. - /// - public IShaderRunner ShaderRunner { get; } - - private bool isSelected; - - /// - /// Gets or sets whether the current shader is selected. - /// - public bool IsSelected - { - get => this.isSelected; - set => SetProperty(ref this.isSelected, value); - } - } -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Shaders/Runners/ContouredLayersRunner.cs b/samples/ComputeSharp.SwapChain.Uwp/Shaders/Runners/ContouredLayersRunner.cs deleted file mode 100644 index d6bf8f11..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Shaders/Runners/ContouredLayersRunner.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.IO; -using ComputeSharp.SwapChain.Shaders; -using ComputeSharp.Uwp; -using Windows.ApplicationModel; - -#nullable enable - -namespace ComputeSharp.SwapChain.Uwp.Shaders.Runners -{ - /// - /// A specialized for . - /// - public sealed class ContouredLayersRunner : IShaderRunner - { - /// - /// A texture for \Textures\RustyMetal.png. - /// - private ReadOnlyTexture2D? texture; - - /// - public void Execute(IReadWriteTexture2D texture, TimeSpan timespan) - { - if (this.texture is null) - { - string filename = Path.Combine(Package.Current.InstalledLocation.Path, "Assets", "Textures", "RustyMetal.png"); - - this.texture = Gpu.Default.LoadReadOnlyTexture2D(filename.AsSpan()); - } - - Gpu.Default.ForEach(texture, new ContouredLayers((float)timespan.TotalSeconds, this.texture)); - } - } -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/ViewModels/MainViewModel.cs b/samples/ComputeSharp.SwapChain.Uwp/ViewModels/MainViewModel.cs deleted file mode 100644 index 35792641..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/ViewModels/MainViewModel.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System.Collections.Generic; -using ComputeSharp.SwapChain.Shaders; -using ComputeSharp.SwapChain.Uwp.Models; -using ComputeSharp.SwapChain.Uwp.Shaders.Runners; -using ComputeSharp.Uwp; -using Microsoft.Toolkit.Mvvm.ComponentModel; -using Microsoft.Toolkit.Mvvm.Input; - -namespace ComputeSharp.SwapChain.Uwp.ViewModels -{ - /// - /// The viewmodel for for a view that allows users to select shaders and customize settings. - /// - public sealed class MainViewModel : ObservableObject - { - /// - /// Creates a new instance. - /// - public MainViewModel() - { - this.isDynamicResolutionEnabled = true; - this.selectedResolutionScale = 100; - this.selectedComputeShader = ComputeShaderOptions[0]; - this.selectedComputeShader.IsSelected = true; - - SetResolutionScaleCommand = new RelayCommand(SetResolutionScale); - ToggleRenderingPausedCommand = new RelayCommand(ToggleRenderingPaused); - } - - /// - /// Gets the available resolution scaling options (as percentage values). - /// - public IList ResolutionScaleOptions { get; } = new[] { 25, 50, 75, 100 }; - - private bool isDynamicResolutionEnabled; - - /// - /// Gets or sets whether the dynamic resolution is enabled. - /// - public bool IsDynamicResolutionEnabled - { - get => this.isDynamicResolutionEnabled; - set => SetProperty(ref this.isDynamicResolutionEnabled, value); - } - - private int selectedResolutionScale; - - /// - /// Gets the currently selected resolution scale setting (as percentage valaue). - /// - public int SelectedResolutionScale - { - get => this.selectedResolutionScale; - private set => SetProperty(ref this.selectedResolutionScale, value); - } - - /// - /// Gets the command that sets . - /// - public IRelayCommand SetResolutionScaleCommand { get; } - - /// - /// Sets . - /// - private void SetResolutionScale(int resolutionScale) - { - SelectedResolutionScale = resolutionScale; - } - - /// - /// Gets the collection of available compute shader. - /// - public IReadOnlyList ComputeShaderOptions { get; } = new ComputeShader[] - { - new("Colorful infinity", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Extruded truchet", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Fractal tiling", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Menger Journey", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Octagrams", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Protean clouds", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Two tiled truchet", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Pyramid pattern", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Triangle grid contouring", new ShaderRunner(static time => new((float)time.TotalSeconds))), - new("Contoured layers", new ContouredLayersRunner()) - }; - - private ComputeShader selectedComputeShader; - - /// - /// Gets or sets the currently selected compute shader. - /// - public ComputeShader SelectedComputeShader - { - get => this.selectedComputeShader; - set - { - this.selectedComputeShader.IsSelected = false; - - if (SetProperty(ref this.selectedComputeShader, value) && - value is not null) - { - value.IsSelected = true; - } - } - } - - private bool isRenderingPaused; - - /// - /// Gets or sets whether the rendering is currently paused. - /// - public bool IsRenderingPaused - { - get => this.isRenderingPaused; - set => SetProperty(ref this.isRenderingPaused, value); - } - - /// - /// Gets the command that toggles . - /// - public IRelayCommand ToggleRenderingPausedCommand { get; } - - /// - /// Toggles . - /// - private void ToggleRenderingPaused() - { - IsRenderingPaused = !IsRenderingPaused; - } - } -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml index e76991f4..495f471a 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml +++ b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml @@ -9,9 +9,9 @@ xmlns:animations="using:Microsoft.Toolkit.Uwp.UI.Animations" xmlns:media="using:Microsoft.Toolkit.Uwp.UI.Media" xmlns:computesharp="using:ComputeSharp.Uwp" - xmlns:converters="using:ComputeSharp.SwapChain.Uwp.Converters" - xmlns:viewmodels="using:ComputeSharp.SwapChain.Uwp.ViewModels" - xmlns:models="using:ComputeSharp.SwapChain.Uwp.Models" + xmlns:converters="using:ComputeSharp.SwapChain.Core.Converters" + xmlns:viewmodels="using:ComputeSharp.SwapChain.Core.ViewModels" + xmlns:models="using:ComputeSharp.SwapChain.Core.Models" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" diff --git a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs index 9d1947a8..92b663c5 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs +++ b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs @@ -6,7 +6,7 @@ using Windows.UI.Xaml.Input; namespace ComputeSharp.SwapChain.Uwp.Views; /// -/// A view for . +/// A view for . /// public sealed partial class MainView : UserControl { diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj index 6d1008a7..ae6db506 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj +++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj @@ -49,4 +49,6 @@ + + diff --git a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml index b089a455..7ed51252 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml +++ b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml @@ -9,9 +9,9 @@ xmlns:animations="using:CommunityToolkit.WinUI.UI.Animations" xmlns:media="using:CommunityToolkit.WinUI.UI.Media" xmlns:computesharp="using:ComputeSharp.WinUI" - xmlns:converters="using:ComputeSharp.SwapChain.WinUI.Converters" - xmlns:viewmodels="using:ComputeSharp.SwapChain.WinUI.ViewModels" - xmlns:models="using:ComputeSharp.SwapChain.WinUI.Models" + xmlns:converters="using:ComputeSharp.SwapChain.Core.Converters" + xmlns:viewmodels="using:ComputeSharp.SwapChain.Core.ViewModels" + xmlns:models="using:ComputeSharp.SwapChain.Core.Models" mc:Ignorable="d" SizeChanged="UserControl_SizeChanged"> diff --git a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs index 078c477b..58076c68 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs +++ b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs @@ -5,7 +5,7 @@ using Microsoft.UI.Xaml.Input; namespace ComputeSharp.SwapChain.WinUI.Views; /// -/// A view for . +/// A view for . /// public sealed partial class MainWindow : Window { diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index 17cf3c3e..d4c166a1 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -29,6 +29,8 @@ + + $(NoWarn);CS0649