diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 06791225..f4913419 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -56,8 +56,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.WinUI", "src\C EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.SwapChain.WinUI", "samples\ComputeSharp.SwapChain.WinUI\ComputeSharp.SwapChain.WinUI.csproj", "{0071701E-B9C5-4098-BE5F-EF556C4553C6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.SwapChain.Uwp", "samples\ComputeSharp.SwapChain.Uwp\ComputeSharp.SwapChain.Uwp.csproj", "{FBD388A5-7855-4408-98FF-E689F509DB5A}" -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}" @@ -282,18 +280,6 @@ Global {0071701E-B9C5-4098-BE5F-EF556C4553C6}.Release|x64.ActiveCfg = Release|x64 {0071701E-B9C5-4098-BE5F-EF556C4553C6}.Release|x64.Build.0 = Release|x64 {0071701E-B9C5-4098-BE5F-EF556C4553C6}.Release|x64.Deploy.0 = Release|x64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Debug|ARM64.Build.0 = Debug|ARM64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Debug|ARM64.Deploy.0 = Debug|ARM64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Debug|x64.ActiveCfg = Debug|x64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Debug|x64.Build.0 = Debug|x64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Debug|x64.Deploy.0 = Debug|x64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Release|ARM64.ActiveCfg = Release|ARM64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Release|ARM64.Build.0 = Release|ARM64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Release|ARM64.Deploy.0 = Release|ARM64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Release|x64.ActiveCfg = Release|x64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Release|x64.Build.0 = Release|x64 - {FBD388A5-7855-4408-98FF-E689F509DB5A}.Release|x64.Deploy.0 = Release|x64 {4A8FCE22-851C-442A-8BC9-3EC3FD00B637}.Debug|ARM64.ActiveCfg = Debug|Any CPU {4A8FCE22-851C-442A-8BC9-3EC3FD00B637}.Debug|ARM64.Build.0 = Debug|Any CPU {4A8FCE22-851C-442A-8BC9-3EC3FD00B637}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -453,7 +439,6 @@ Global {A5997814-D8D2-4541-87AC-C3E53CAA67C0} = {8DCE343F-BA78-4FE1-B562-B57C603A8BAA} {514FF00E-BBF0-4D55-A47C-EEEB6208ADCE} = {8DCE343F-BA78-4FE1-B562-B57C603A8BAA} {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} {4A8FCE22-851C-442A-8BC9-3EC3FD00B637} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} @@ -511,8 +496,5 @@ Global src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5 src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{f8bf7666-7ccf-4fe4-b055-2eba4bcd4564}*SharedItemsImports = 13 - samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{fbd388a5-7855-4408-98ff-e689f509db5a}*SharedItemsImports = 4 - samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.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 EndGlobal diff --git a/samples/ComputeSharp.SwapChain.Uwp/App.xaml b/samples/ComputeSharp.SwapChain.Uwp/App.xaml deleted file mode 100644 index 69db7e92..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/App.xaml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - diff --git a/samples/ComputeSharp.SwapChain.Uwp/App.xaml.cs b/samples/ComputeSharp.SwapChain.Uwp/App.xaml.cs deleted file mode 100644 index 5dd2acb4..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/App.xaml.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System; -using ComputeSharp.SwapChain.Core.Services; -using ComputeSharp.SwapChain.Core.ViewModels; -using ComputeSharp.SwapChain.Uwp.Services; -using ComputeSharp.SwapChain.Uwp.Views; -using Microsoft.Extensions.DependencyInjection; -using Windows.ApplicationModel.Activation; -using Windows.ApplicationModel.Core; -using Windows.UI; -using Windows.UI.ViewManagement; -using Windows.UI.Xaml; - -#nullable enable - -namespace ComputeSharp.SwapChain.Uwp; - -/// -/// Provides application-specific behavior to supplement the default Application class. -/// -sealed partial class App : Application -{ - /// - /// Initializes the singleton application object. This is the first line of authored code - /// executed, and as such is the logical equivalent of main() or WinMain(). - /// - public App() - { - InitializeComponent(); - } - - /// - public static new App Current => (App)Application.Current; - - /// - /// Gets the current instance. - /// - public IServiceProvider Services { get; } = ConfigureServices(); - - /// - protected override void OnLaunched(LaunchActivatedEventArgs e) - { - if (Window.Current.Content is not MainView) - { - StyleTitleBar(); - ExpandViewIntoTitleBar(); - - Window.Current.Content = new MainView(); - } - - if (!e.PrelaunchActivated) - { - Window.Current.Activate(); - } - } - - /// - /// Configures the services for the application. - /// - /// The instance to use. - private static IServiceProvider ConfigureServices() - { - ServiceCollection services = new(); - - _ = services.AddAnalyticsService(); - _ = services.AddTransient(static services => new MainViewModel(services.GetRequiredService())); - - return services.BuildServiceProvider(); - } - - /// - /// Styles the title bar buttons according to the theme in use - /// - private static void StyleTitleBar() - { - ApplicationViewTitleBar titleBar = ApplicationView.GetForCurrentView().TitleBar; - - // Transparent colors - titleBar.ForegroundColor = Colors.Transparent; - titleBar.BackgroundColor = Colors.Transparent; - titleBar.ButtonBackgroundColor = Colors.Transparent; - titleBar.InactiveBackgroundColor = Colors.Transparent; - titleBar.ButtonInactiveBackgroundColor = Colors.Transparent; - - // Theme aware colors - titleBar.ButtonForegroundColor = titleBar.ButtonHoverForegroundColor = titleBar.ButtonPressedForegroundColor = Colors.White; - titleBar.ButtonHoverBackgroundColor = Color.FromArgb(0x20, 0xFF, 0xFF, 0xFF); - titleBar.ButtonPressedBackgroundColor = Color.FromArgb(0x40, 0xFF, 0xFF, 0xFF); - titleBar.ButtonInactiveForegroundColor = Color.FromArgb(0xC0, 0xFF, 0xFF, 0xFF); - titleBar.InactiveForegroundColor = Color.FromArgb(0xA0, 0xA0, 0xA0, 0xA0); - } - - /// - /// Sets up the app UI to be expanded into the title bar - /// - private static void ExpandViewIntoTitleBar() - { - CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar; - - coreTitleBar.ExtendViewIntoTitleBar = true; - } -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Generated/ServiceTokens.g.cs b/samples/ComputeSharp.SwapChain.Uwp/Assets/Generated/ServiceTokens.g.cs deleted file mode 100644 index ba2fc97b..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Assets/Generated/ServiceTokens.g.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -#pragma warning disable -#nullable enable - -namespace ComputeSharp.SwapChain.Uwp; - -/// -/// A with some secret service tokens. -/// -public static class ServiceTokens -{ - /// - /// The secret token for the AppService connection. - /// -#if RELEASE - internal const string AppService = ""; -#else - internal const string AppService = ""; -#endif -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-100.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-100.png deleted file mode 100644 index a15aa789..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-100.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-125.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-125.png deleted file mode 100644 index cdd395eb..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-125.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-150.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-150.png deleted file mode 100644 index a11860e1..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-150.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-200.png deleted file mode 100644 index 27b8d951..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-400.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-400.png deleted file mode 100644 index 451db4e9..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/LargeTile.scale-400.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/LockScreenLogo.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/LockScreenLogo.scale-200.png deleted file mode 100644 index 735f57ad..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/LockScreenLogo.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Misc/noise_low.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Misc/noise_low.png deleted file mode 100644 index 0784c124..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Misc/noise_low.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-100.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-100.png deleted file mode 100644 index 4186c153..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-100.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-125.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-125.png deleted file mode 100644 index b89a3b30..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-125.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-150.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-150.png deleted file mode 100644 index bd2cc348..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-150.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-200.png deleted file mode 100644 index b3791a08..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-400.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-400.png deleted file mode 100644 index ccf5830b..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SmallTile.scale-400.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-100.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-100.png deleted file mode 100644 index 06b1422b..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-100.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-125.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-125.png deleted file mode 100644 index 74b67d70..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-125.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-150.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-150.png deleted file mode 100644 index 81754d90..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-150.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-200.png deleted file mode 100644 index dd6c312b..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-400.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-400.png deleted file mode 100644 index b28b180c..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/SplashScreen.scale-400.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-100.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-100.png deleted file mode 100644 index 32bd822d..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-100.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-125.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-125.png deleted file mode 100644 index f4342abc..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-125.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-150.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-150.png deleted file mode 100644 index c1107980..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-150.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-200.png deleted file mode 100644 index 79e9c5e4..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-400.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-400.png deleted file mode 100644 index 73ceb76b..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square150x150Logo.scale-400.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png deleted file mode 100644 index 18275c6f..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png deleted file mode 100644 index 7561de6f..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png deleted file mode 100644 index f50843bd..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png deleted file mode 100644 index 3d4ee641..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png deleted file mode 100644 index e003e7e6..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-16.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-16.png deleted file mode 100644 index 18275c6f..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-16.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-256.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-256.png deleted file mode 100644 index f50843bd..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-256.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-32.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-32.png deleted file mode 100644 index 3d4ee641..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-32.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-48.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-48.png deleted file mode 100644 index e003e7e6..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.altform-unplated_targetsize-48.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-100.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-100.png deleted file mode 100644 index e6b266e0..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-100.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-125.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-125.png deleted file mode 100644 index ba883192..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-125.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-150.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-150.png deleted file mode 100644 index 6a0ee022..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-150.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-200.png deleted file mode 100644 index 3ce9873d..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-400.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-400.png deleted file mode 100644 index 74d1bded..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.scale-400.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-16.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-16.png deleted file mode 100644 index 18275c6f..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-16.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-24.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-24.png deleted file mode 100644 index 7561de6f..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-24.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png deleted file mode 100644 index e3ab7e4c..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-256.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-256.png deleted file mode 100644 index f50843bd..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-256.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-32.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-32.png deleted file mode 100644 index b44a854c..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-32.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-48.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-48.png deleted file mode 100644 index 1bf9d6f6..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Square44x44Logo.targetsize-48.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.backup.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.backup.png deleted file mode 100644 index 7385b56c..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.backup.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-100.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-100.png deleted file mode 100644 index 1ed8820e..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-100.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-125.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-125.png deleted file mode 100644 index cf1dbb07..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-125.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-150.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-150.png deleted file mode 100644 index fa496dca..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-150.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-200.png deleted file mode 100644 index 829aa3b5..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-400.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-400.png deleted file mode 100644 index 6e28acc7..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/StoreLogo.scale-400.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-100.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-100.png deleted file mode 100644 index 96ad84bc..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-100.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-125.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-125.png deleted file mode 100644 index 6bb12caa..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-125.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-150.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-150.png deleted file mode 100644 index 47b73b95..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-150.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-200.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-200.png deleted file mode 100644 index 06b1422b..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-200.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-400.png b/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-400.png deleted file mode 100644 index dd6c312b..00000000 Binary files a/samples/ComputeSharp.SwapChain.Uwp/Assets/Wide310x150Logo.scale-400.png and /dev/null differ diff --git a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj deleted file mode 100644 index 0606b34d..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Debug - x64 - {FBD388A5-7855-4408-98FF-E689F509DB5A} - AppContainerExe - Properties - ComputeSharp.SwapChain.Uwp - ComputeSharp.SwapChain.Uwp - en-US - UAP - 10.0.22621.0 - 10.0.17763.0 - 14 - 512 - {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - true - false - x64;ARM64 - $(NoWarn);IDE0240 - - - true - bin\ARM64\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - $(NoWarn);2008 - full - ARM64 - false - prompt - true - true - - - bin\ARM64\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - $(NoWarn);2008 - pdbonly - ARM64 - false - prompt - true - true - - - true - bin\x64\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - $(NoWarn);2008 - full - x64 - false - prompt - true - - - bin\x64\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - $(NoWarn);2008 - pdbonly - x64 - false - prompt - true - true - - - $(DefineConstants);SAMPLE_APP - - - PackageReference - - - - App.xaml - - - - - - - MainView.xaml - - - - - Designer - - - - - - - - - - PreserveNewest - - - Assets\Textures\RustyMetal.png - PreserveNewest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MSBuild:Compile - Designer - - - - - 8.2.1 - - - 8.2.1 - - - 2.2.0-preview1 - - - 2.2.0-preview1 - - - 5.0.2 - - - 5.0.2 - - - 7.0.0 - - - 6.2.14 - - - 7.1.3 - - - 7.1.3 - - - 2.8.5 - - - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - - - - - 14.0 - - - - powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File $(SolutionDir)\build\CreateBlankServiceTokens.ps1 - - \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Controls/D2D1AnimatedPixelShaderPanel.xaml b/samples/ComputeSharp.SwapChain.Uwp/Controls/D2D1AnimatedPixelShaderPanel.xaml deleted file mode 100644 index b7c172e8..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Controls/D2D1AnimatedPixelShaderPanel.xaml +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/samples/ComputeSharp.SwapChain.Uwp/Package.appxmanifest b/samples/ComputeSharp.SwapChain.Uwp/Package.appxmanifest deleted file mode 100644 index e741c88d..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Package.appxmanifest +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - ComputeSharp Sample App - Sergio Pedri - Assets\StoreLogo.png - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs b/samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs deleted file mode 100644 index bf5595ef..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ComputeSharp.SwapChain.Uwp")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ComputeSharp.SwapChain.Uwp")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: ComVisible(false)] - -[module: SkipLocalsInit] \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Properties/Default.rd.xml b/samples/ComputeSharp.SwapChain.Uwp/Properties/Default.rd.xml deleted file mode 100644 index cbb037d2..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Properties/Default.rd.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Services/AppCenterService.cs b/samples/ComputeSharp.SwapChain.Uwp/Services/AppCenterService.cs deleted file mode 100644 index af5e4f99..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Services/AppCenterService.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using ComputeSharp.SwapChain.Core.Services; -using Microsoft.AppCenter; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; - -#nullable enable - -namespace ComputeSharp.SwapChain.Uwp.Services; - -/// -/// An implementation using AppCenter. -/// -public sealed class AppCenterService : IAnalyticsService -{ - /// - /// The maximum length for any property name and value - /// - /// It's 125, but one character is reserved for the leading '|' to indicate trimming. - private const int PropertyStringMaxLength = 124; - - /// - public AppCenterService(string secret) - { - AppCenter.Start(secret, typeof(Crashes), typeof(Analytics)); - } - - /// - public void Log(string title, params (string Property, object? Value)[]? data) - { - Analytics.TrackEvent(title, GetProperties(data)); - } - - /// - public void Log(Exception exception, params (string Property, object? Value)[]? data) - { - Crashes.TrackError(exception, GetProperties(data)); - } - - /// - /// Gets the additional logging properties from the input data. - /// - /// The optional event properties. - /// The additional logging properties to track. - private static IDictionary? GetProperties((string Property, object? Value)[]? data) - { - return - data?.ToDictionary( - pair => pair.Property, - pair => - { - string text = (pair.Value ?? "").ToString(); - - return text.Length <= PropertyStringMaxLength - ? text - : $"|{text.Substring(text.Length - PropertyStringMaxLength)}"; - }); - } -} \ No newline at end of file diff --git a/samples/ComputeSharp.SwapChain.Uwp/Services/ServiceCollectionExtensions.cs b/samples/ComputeSharp.SwapChain.Uwp/Services/ServiceCollectionExtensions.cs deleted file mode 100644 index c1bdecc9..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Services/ServiceCollectionExtensions.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Diagnostics; -using ComputeSharp.SwapChain.Core.Services; -using Microsoft.Extensions.DependencyInjection; - -namespace ComputeSharp.SwapChain.Uwp.Services; - -/// -/// Extensions for the type. -/// -public static class ServiceCollectionExtensions -{ - /// - /// Adds the correct registration to the given instance. - /// - /// The input instance to use to register services. - /// The same instance as . - public static IServiceCollection AddAnalyticsService(this IServiceCollection services) - { - if (Guid.TryParse(ServiceTokens.AppService, out _) && !Debugger.IsAttached) - { - _ = services.AddSingleton(new AppCenterService(ServiceTokens.AppService)); - } - else - { - _ = services.AddSingleton(new DebugAnalyticsService()); - } - - return services; - } -} diff --git a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml deleted file mode 100644 index ea7f8a1d..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs deleted file mode 100644 index 0b1cc07d..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using ComputeSharp.SwapChain.Core.Constants; -using ComputeSharp.SwapChain.Core.Services; -using ComputeSharp.SwapChain.Core.ViewModels; -using ComputeSharp.Uwp; -using Microsoft.Extensions.DependencyInjection; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Input; - -namespace ComputeSharp.SwapChain.Uwp.Views; - -/// -/// A view for . -/// -public sealed partial class MainView : UserControl -{ - public MainView() - { - InitializeComponent(); - - DataContext = App.Current.Services.GetRequiredService(); - } - - /// - /// Gets the instance for the current view. - /// - public MainViewModel ViewModel => (MainViewModel)DataContext; - - // Opens the shader selection panel - private void OpenShaderSelectionPanelButton_Click(object sender, RoutedEventArgs e) - { - App.Current.Services.GetRequiredService().Log(Event.OpenShaderSelectionPanel); - - _ = this.Root.Resources.Remove(nameof(this.ShaderSelectionPanel)); - - this.Root.Children.Add(this.ShaderSelectionPanel); - } - - // Hides the shader selection panel - private void ShaderSelectionPanel_Tapped(object sender, TappedRoutedEventArgs e) - { - App.Current.Services.GetRequiredService().Log(Event.CloseShaderSelectionPanel); - - _ = this.Root.Children.Remove(this.ShaderSelectionPanel); - } - - // Updates the size of the shaders list panel - private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e) - { - this.ShadersListContainerPanel.Height = Math.Round(e.NewSize.Height * 0.35); - } - - // Logs rendering failed in the main panel - private void MainShaderPanel_RenderingFailed(AnimatedComputeShaderPanel sender, RenderingFailedEventArgs args) - { - App.Current.Services.GetRequiredService().Log(args.Exception, (nameof(Error), Error.RenderingFailedOnMainPanel)); - - this.RenderingErrorInfoBar.IsOpen = true; - } - - // Logs rendering failed in a secondary panel - private void SelectionShaderPanel_RenderingFailed(AnimatedComputeShaderPanel sender, RenderingFailedEventArgs args) - { - App.Current.Services.GetRequiredService().Log(args.Exception, (nameof(Error), Error.RenderingFailedOnSelectionPanel)); - - this.RenderingErrorInfoBar.IsOpen = true; - } -} \ No newline at end of file