From 58fbb2045a18032d16afba1ec790f4c7a271b4d0 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 20:42:42 +0200 Subject: [PATCH 01/10] Move files from ComputeSharp.UI to WinUI project --- src/ComputeSharp.UI/ComputeSharp.UI.projitems | 15 --------------- .../AnimatedComputeShaderPanel.Properties.cs | 0 .../Controls/AnimatedComputeShaderPanel.cs | 0 .../Controls/ComputeShaderPanel.Properties.cs | 0 .../Controls/ComputeShaderPanel.cs | 0 .../Controls/RenderingFailedEventArgs.cs | 0 .../Extensions/IDXGIAdapterExtensions.cs | 0 .../Extensions/SemaphoreSlimExtensions.cs | 0 .../Helpers/DynamicResolutionManager.cs | 0 .../Helpers/SwapChainManager.Rendering.cs | 0 .../Helpers/SwapChainManager.cs | 0 .../IFrameRequestQueue.cs | 0 .../IShaderRunner.cs | 0 .../ShaderRunner{T}.cs | 0 14 files changed, 15 deletions(-) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Controls/AnimatedComputeShaderPanel.Properties.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Controls/AnimatedComputeShaderPanel.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Controls/ComputeShaderPanel.Properties.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Controls/ComputeShaderPanel.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Controls/RenderingFailedEventArgs.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Extensions/IDXGIAdapterExtensions.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Extensions/SemaphoreSlimExtensions.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Helpers/DynamicResolutionManager.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Helpers/SwapChainManager.Rendering.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/Helpers/SwapChainManager.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/IFrameRequestQueue.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/IShaderRunner.cs (100%) rename src/{ComputeSharp.UI => ComputeSharp.WinUI}/ShaderRunner{T}.cs (100%) diff --git a/src/ComputeSharp.UI/ComputeSharp.UI.projitems b/src/ComputeSharp.UI/ComputeSharp.UI.projitems index 0944f819..305fda66 100644 --- a/src/ComputeSharp.UI/ComputeSharp.UI.projitems +++ b/src/ComputeSharp.UI/ComputeSharp.UI.projitems @@ -8,19 +8,4 @@ ComputeSharp.UI - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ComputeSharp.UI/Controls/AnimatedComputeShaderPanel.Properties.cs b/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.Properties.cs similarity index 100% rename from src/ComputeSharp.UI/Controls/AnimatedComputeShaderPanel.Properties.cs rename to src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.Properties.cs diff --git a/src/ComputeSharp.UI/Controls/AnimatedComputeShaderPanel.cs b/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.cs similarity index 100% rename from src/ComputeSharp.UI/Controls/AnimatedComputeShaderPanel.cs rename to src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.cs diff --git a/src/ComputeSharp.UI/Controls/ComputeShaderPanel.Properties.cs b/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.Properties.cs similarity index 100% rename from src/ComputeSharp.UI/Controls/ComputeShaderPanel.Properties.cs rename to src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.Properties.cs diff --git a/src/ComputeSharp.UI/Controls/ComputeShaderPanel.cs b/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.cs similarity index 100% rename from src/ComputeSharp.UI/Controls/ComputeShaderPanel.cs rename to src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.cs diff --git a/src/ComputeSharp.UI/Controls/RenderingFailedEventArgs.cs b/src/ComputeSharp.WinUI/Controls/RenderingFailedEventArgs.cs similarity index 100% rename from src/ComputeSharp.UI/Controls/RenderingFailedEventArgs.cs rename to src/ComputeSharp.WinUI/Controls/RenderingFailedEventArgs.cs diff --git a/src/ComputeSharp.UI/Extensions/IDXGIAdapterExtensions.cs b/src/ComputeSharp.WinUI/Extensions/IDXGIAdapterExtensions.cs similarity index 100% rename from src/ComputeSharp.UI/Extensions/IDXGIAdapterExtensions.cs rename to src/ComputeSharp.WinUI/Extensions/IDXGIAdapterExtensions.cs diff --git a/src/ComputeSharp.UI/Extensions/SemaphoreSlimExtensions.cs b/src/ComputeSharp.WinUI/Extensions/SemaphoreSlimExtensions.cs similarity index 100% rename from src/ComputeSharp.UI/Extensions/SemaphoreSlimExtensions.cs rename to src/ComputeSharp.WinUI/Extensions/SemaphoreSlimExtensions.cs diff --git a/src/ComputeSharp.UI/Helpers/DynamicResolutionManager.cs b/src/ComputeSharp.WinUI/Helpers/DynamicResolutionManager.cs similarity index 100% rename from src/ComputeSharp.UI/Helpers/DynamicResolutionManager.cs rename to src/ComputeSharp.WinUI/Helpers/DynamicResolutionManager.cs diff --git a/src/ComputeSharp.UI/Helpers/SwapChainManager.Rendering.cs b/src/ComputeSharp.WinUI/Helpers/SwapChainManager.Rendering.cs similarity index 100% rename from src/ComputeSharp.UI/Helpers/SwapChainManager.Rendering.cs rename to src/ComputeSharp.WinUI/Helpers/SwapChainManager.Rendering.cs diff --git a/src/ComputeSharp.UI/Helpers/SwapChainManager.cs b/src/ComputeSharp.WinUI/Helpers/SwapChainManager.cs similarity index 100% rename from src/ComputeSharp.UI/Helpers/SwapChainManager.cs rename to src/ComputeSharp.WinUI/Helpers/SwapChainManager.cs diff --git a/src/ComputeSharp.UI/IFrameRequestQueue.cs b/src/ComputeSharp.WinUI/IFrameRequestQueue.cs similarity index 100% rename from src/ComputeSharp.UI/IFrameRequestQueue.cs rename to src/ComputeSharp.WinUI/IFrameRequestQueue.cs diff --git a/src/ComputeSharp.UI/IShaderRunner.cs b/src/ComputeSharp.WinUI/IShaderRunner.cs similarity index 100% rename from src/ComputeSharp.UI/IShaderRunner.cs rename to src/ComputeSharp.WinUI/IShaderRunner.cs diff --git a/src/ComputeSharp.UI/ShaderRunner{T}.cs b/src/ComputeSharp.WinUI/ShaderRunner{T}.cs similarity index 100% rename from src/ComputeSharp.UI/ShaderRunner{T}.cs rename to src/ComputeSharp.WinUI/ShaderRunner{T}.cs From 33ec9f7570b72f7f65b4ad7bf3caa5ea435dac28 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 20:49:54 +0200 Subject: [PATCH 02/10] Remove ComputeSharp.Uwp project and update sample --- ComputeSharp.sln | 17 +------------- .../ComputeSharp.SwapChain.Uwp.csproj | 16 +++++-------- src/ComputeSharp.UI/ComputeSharp.UI.projitems | 11 --------- src/ComputeSharp.UI/ComputeSharp.UI.shproj | 12 ---------- src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj | 23 ------------------- .../ComputeSharp.WinUI.csproj | 2 -- 6 files changed, 7 insertions(+), 74 deletions(-) delete mode 100644 src/ComputeSharp.UI/ComputeSharp.UI.projitems delete mode 100644 src/ComputeSharp.UI/ComputeSharp.UI.shproj delete mode 100644 src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 5094cf24..97cdf920 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -56,12 +56,8 @@ 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("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Uwp", "src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj", "{AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}" -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.UI", "src\ComputeSharp.UI\ComputeSharp.UI.shproj", "{0C82EDE1-5B8A-4DF3-87DA-700B29D5E265}" -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}" @@ -160,7 +156,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D3D12MemoryAll EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.CodeFixers", "src\ComputeSharp.D2D1.CodeFixers\ComputeSharp.D2D1.CodeFixers.csproj", "{54654960-54B5-4E19-B3ED-993591CA39E5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.D2D1.Tests.SourceGenerators", "tests\ComputeSharp.D2D1.Tests.SourceGenerators\ComputeSharp.D2D1.Tests.SourceGenerators.csproj", "{59A17380-24A0-4BD7-9012-B105A9E7D46F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests.SourceGenerators", "tests\ComputeSharp.D2D1.Tests.SourceGenerators\ComputeSharp.D2D1.Tests.SourceGenerators.csproj", "{59A17380-24A0-4BD7-9012-B105A9E7D46F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -294,14 +290,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 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Debug|ARM64.Build.0 = Debug|ARM64 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Debug|x64.ActiveCfg = Debug|x64 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Debug|x64.Build.0 = Debug|x64 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Release|ARM64.ActiveCfg = Release|ARM64 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Release|ARM64.Build.0 = Release|ARM64 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Release|x64.ActiveCfg = Release|x64 - {AFAAFDC9-BE42-45D4-8C79-0EE8C8EDBF52}.Release|x64.Build.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 @@ -524,7 +512,6 @@ Global samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.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 src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{158f984d-cd96-4062-bd02-2268946031a0}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{209c95a3-fa53-431b-b688-3299ca6c29d2}*SharedItemsImports = 5 src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{314eb353-e7e3-4146-8111-685cc83ec1de}*SharedItemsImports = 5 @@ -546,7 +533,6 @@ Global src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{9ea5ae9d-c39a-4f43-b03e-0a848ea2558a}*SharedItemsImports = 5 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 src\ComputeSharp.D2D1.UI\ComputeSharp.D2D1.UI.projitems*{bd9e6556-357e-4c20-bfcd-fb131f9372fa}*SharedItemsImports = 5 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5 src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5 @@ -564,7 +550,6 @@ 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 - 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.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 diff --git a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj index 2057cce4..0606b34d 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj +++ b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj @@ -165,6 +165,12 @@ 8.2.1 + + 2.2.0-preview1 + + + 2.2.0-preview1 + 5.0.2 @@ -187,16 +193,6 @@ 2.8.5 - - - - - - - - - - MSBuild:Compile diff --git a/src/ComputeSharp.UI/ComputeSharp.UI.projitems b/src/ComputeSharp.UI/ComputeSharp.UI.projitems deleted file mode 100644 index 305fda66..00000000 --- a/src/ComputeSharp.UI/ComputeSharp.UI.projitems +++ /dev/null @@ -1,11 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 0c82ede1-5b8a-4df3-87da-700b29d5e265 - - - ComputeSharp.UI - - \ No newline at end of file diff --git a/src/ComputeSharp.UI/ComputeSharp.UI.shproj b/src/ComputeSharp.UI/ComputeSharp.UI.shproj deleted file mode 100644 index 4196b150..00000000 --- a/src/ComputeSharp.UI/ComputeSharp.UI.shproj +++ /dev/null @@ -1,12 +0,0 @@ - - - - 0c82ede1-5b8a-4df3-87da-700b29d5e265 - 14.0 - - - - - - - diff --git a/src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj b/src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj deleted file mode 100644 index b4bfd8f5..00000000 --- a/src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - uap10.0.17763 - 10.0 - 22621 - 17763 - $(TargetPlatformBaseVersion).$(TargetPlatformRevision).0 - $(TargetPlatformBaseVersion).$(TargetPlatformMinRevision).0 - 6.2.14 - true - true - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - x64;ARM64 - win10-x64;win-arm64 - $(NoWarn);NETSDK1023 - - - - - - - - \ No newline at end of file diff --git a/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj b/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj index 73a43d27..8b172529 100644 --- a/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj +++ b/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj @@ -13,6 +13,4 @@ - - From c1c196c7cecc94ebf214664f1fe11e3199a3d9f6 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 20:56:24 +0200 Subject: [PATCH 03/10] Remove WINDOWS_UWP leftover code paths --- .../AnimatedComputeShaderPanel.Properties.cs | 8 ------ .../Controls/AnimatedComputeShaderPanel.cs | 10 -------- .../Controls/ComputeShaderPanel.Properties.cs | 8 ------ .../Controls/ComputeShaderPanel.cs | 10 -------- .../Controls/RenderingFailedEventArgs.cs | 4 --- .../Extensions/IDXGIAdapterExtensions.cs | 4 --- .../Extensions/SemaphoreSlimExtensions.cs | 4 --- .../Helpers/DynamicResolutionManager.cs | 4 --- .../Helpers/SwapChainManager.Rendering.cs | 8 ------ .../Helpers/SwapChainManager.cs | 25 ------------------- src/ComputeSharp.WinUI/IFrameRequestQueue.cs | 4 --- src/ComputeSharp.WinUI/IShaderRunner.cs | 4 --- src/ComputeSharp.WinUI/ShaderRunner{T}.cs | 4 --- 13 files changed, 97 deletions(-) diff --git a/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.Properties.cs b/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.Properties.cs index 35a3d39d..79e84861 100644 --- a/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.Properties.cs +++ b/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.Properties.cs @@ -1,16 +1,8 @@ using System; -#if WINDOWS_UWP -using Windows.UI.Xaml; -#else using Microsoft.UI.Xaml; -#endif using Windows.Foundation; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// partial class AnimatedComputeShaderPanel diff --git a/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.cs b/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.cs index d486235a..d64c7f97 100644 --- a/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.cs +++ b/src/ComputeSharp.WinUI/Controls/AnimatedComputeShaderPanel.cs @@ -1,19 +1,9 @@ using System; -#if WINDOWS_UWP -using ComputeSharp.Uwp.Helpers; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -#else using ComputeSharp.WinUI.Helpers; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -#endif -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// /// diff --git a/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.Properties.cs b/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.Properties.cs index 2c5e37f5..aee683e9 100644 --- a/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.Properties.cs +++ b/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.Properties.cs @@ -1,16 +1,8 @@ using System; -#if WINDOWS_UWP -using Windows.UI.Xaml; -#else using Microsoft.UI.Xaml; -#endif using Windows.Foundation; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// partial class ComputeShaderPanel diff --git a/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.cs b/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.cs index dfeb8554..d68db8e9 100644 --- a/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.cs +++ b/src/ComputeSharp.WinUI/Controls/ComputeShaderPanel.cs @@ -1,19 +1,9 @@ using System; -#if WINDOWS_UWP -using ComputeSharp.Uwp.Helpers; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -#else using ComputeSharp.WinUI.Helpers; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -#endif -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// /// diff --git a/src/ComputeSharp.WinUI/Controls/RenderingFailedEventArgs.cs b/src/ComputeSharp.WinUI/Controls/RenderingFailedEventArgs.cs index c65ee832..c4d38d72 100644 --- a/src/ComputeSharp.WinUI/Controls/RenderingFailedEventArgs.cs +++ b/src/ComputeSharp.WinUI/Controls/RenderingFailedEventArgs.cs @@ -1,10 +1,6 @@ using System; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// /// The arguments for the and events. diff --git a/src/ComputeSharp.WinUI/Extensions/IDXGIAdapterExtensions.cs b/src/ComputeSharp.WinUI/Extensions/IDXGIAdapterExtensions.cs index e9878637..1d581f8a 100644 --- a/src/ComputeSharp.WinUI/Extensions/IDXGIAdapterExtensions.cs +++ b/src/ComputeSharp.WinUI/Extensions/IDXGIAdapterExtensions.cs @@ -5,11 +5,7 @@ using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using Win32 = TerraFX.Interop.Windows.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp.Extensions; -#else namespace ComputeSharp.WinUI.Extensions; -#endif /// /// A with extensions for the type. diff --git a/src/ComputeSharp.WinUI/Extensions/SemaphoreSlimExtensions.cs b/src/ComputeSharp.WinUI/Extensions/SemaphoreSlimExtensions.cs index 750e637d..33db32fd 100644 --- a/src/ComputeSharp.WinUI/Extensions/SemaphoreSlimExtensions.cs +++ b/src/ComputeSharp.WinUI/Extensions/SemaphoreSlimExtensions.cs @@ -5,11 +5,7 @@ using System.Threading.Tasks; #pragma warning disable CS0618 -#if WINDOWS_UWP -namespace ComputeSharp.Uwp.Extensions; -#else namespace ComputeSharp.WinUI.Extensions; -#endif /// /// A helper type for . diff --git a/src/ComputeSharp.WinUI/Helpers/DynamicResolutionManager.cs b/src/ComputeSharp.WinUI/Helpers/DynamicResolutionManager.cs index fc7d0e55..0f99d50c 100644 --- a/src/ComputeSharp.WinUI/Helpers/DynamicResolutionManager.cs +++ b/src/ComputeSharp.WinUI/Helpers/DynamicResolutionManager.cs @@ -2,11 +2,7 @@ using System; using System.Runtime.CompilerServices; using System.Threading; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp.Helpers; -#else namespace ComputeSharp.WinUI.Helpers; -#endif /// /// A helper type that is responsible for applying dynamic resolution changes. diff --git a/src/ComputeSharp.WinUI/Helpers/SwapChainManager.Rendering.cs b/src/ComputeSharp.WinUI/Helpers/SwapChainManager.Rendering.cs index d35d92b4..a15b7599 100644 --- a/src/ComputeSharp.WinUI/Helpers/SwapChainManager.Rendering.cs +++ b/src/ComputeSharp.WinUI/Helpers/SwapChainManager.Rendering.cs @@ -3,17 +3,9 @@ using System.Diagnostics; using System.Runtime.CompilerServices; using System.Threading; using ComputeSharp.Interop; -#if WINDOWS_UWP -using ComputeSharp.Uwp.Extensions; -#else using ComputeSharp.WinUI.Extensions; -#endif -#if WINDOWS_UWP -namespace ComputeSharp.Uwp.Helpers; -#else namespace ComputeSharp.WinUI.Helpers; -#endif #pragma warning disable CS0420 diff --git a/src/ComputeSharp.WinUI/Helpers/SwapChainManager.cs b/src/ComputeSharp.WinUI/Helpers/SwapChainManager.cs index efcd2acb..a81a0cc8 100644 --- a/src/ComputeSharp.WinUI/Helpers/SwapChainManager.cs +++ b/src/ComputeSharp.WinUI/Helpers/SwapChainManager.cs @@ -1,40 +1,21 @@ using System; using System.Diagnostics; using System.Runtime.CompilerServices; -#if WINDOWS_UWP -using System.Runtime.InteropServices; -#endif using System.Threading; using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics.Helpers; using ComputeSharp.Interop; -#if WINDOWS_UWP -using ComputeSharp.Uwp.Extensions; -#else using ComputeSharp.WinUI.Extensions; -#endif -#if !WINDOWS_UWP using Microsoft.UI.Dispatching; using Microsoft.UI.Xaml.Controls; -#endif using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using TerraFX.Interop.WinRT; -#if WINDOWS_UWP -using Windows.Foundation; -using Windows.UI.Xaml.Controls; -using Windows.System; -#else using Windows.Foundation; using WinRT; -#endif using Win32 = TerraFX.Interop.Windows.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp.Helpers; -#else namespace ComputeSharp.WinUI.Helpers; -#endif /// /// A type managing rendering on a target swap chain object. @@ -243,17 +224,11 @@ internal sealed unsafe partial class SwapChainManager : ReferenceTracked { using ComPtr swapChainPanel = default; -#if WINDOWS_UWP - swapChainPanel.Attach((IUnknown*)Marshal.GetIUnknownForObject(owner)); - - swapChainPanel.CopyTo(swapChainPanelNative).Assert(); -#else swapChainPanel.Attach((IUnknown*)((IWinRTObject)owner).NativeObject.GetRef()); swapChainPanel.CopyTo( (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(new Guid(0x63AAD0B8, 0x7C24, 0x40FF, 0x85, 0xA8, 0x64, 0x0D, 0x94, 0x4C, 0xC3, 0x25))), (void**)swapChainPanelNative).Assert(); -#endif } // Get the underlying ID3D12Device in use diff --git a/src/ComputeSharp.WinUI/IFrameRequestQueue.cs b/src/ComputeSharp.WinUI/IFrameRequestQueue.cs index 59d0ebd6..416debd6 100644 --- a/src/ComputeSharp.WinUI/IFrameRequestQueue.cs +++ b/src/ComputeSharp.WinUI/IFrameRequestQueue.cs @@ -1,10 +1,6 @@ using System.Threading; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// /// An interface for a shader runner to be used with . diff --git a/src/ComputeSharp.WinUI/IShaderRunner.cs b/src/ComputeSharp.WinUI/IShaderRunner.cs index 23e7d337..95cab2c7 100644 --- a/src/ComputeSharp.WinUI/IShaderRunner.cs +++ b/src/ComputeSharp.WinUI/IShaderRunner.cs @@ -1,10 +1,6 @@ using System; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// /// An interface for a shader runner to be used with or . diff --git a/src/ComputeSharp.WinUI/ShaderRunner{T}.cs b/src/ComputeSharp.WinUI/ShaderRunner{T}.cs index 8b355863..7ed4ce51 100644 --- a/src/ComputeSharp.WinUI/ShaderRunner{T}.cs +++ b/src/ComputeSharp.WinUI/ShaderRunner{T}.cs @@ -1,10 +1,6 @@ using System; -#if WINDOWS_UWP -namespace ComputeSharp.Uwp; -#else namespace ComputeSharp.WinUI; -#endif /// /// A simple implementation powered by a supplied shader type. From 0121c59891c41964525dd638378fabeb8d5a7022 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 20:59:04 +0200 Subject: [PATCH 04/10] Move files from ComputeSharp.D2D1.UI to WinUI project --- .../ComputeSharp.D2D1.UI.projitems | 43 ------------------- .../ICanvasDevice.cs | 0 .../ICanvasEffect.cs | 0 .../ICanvasEffectFactoryNative.cs | 0 .../ICanvasFactoryNative.cs | 0 .../ICanvasImageInterop.cs | 0 .../ICanvasResourceCreator.cs | 0 .../ICanvasResourceCreatorWithDpi.cs | 0 .../ICanvasResourceWrapperNative.cs | 0 .../ID2D1DeviceContextLease.cs | 0 .../ID2D1DeviceContextPool.cs | 0 .../Inspectable/IInspectable.cs | 0 .../WIN2D_GET_D2D_IMAGE_FLAGS.cs | 0 .../WIN2D_GET_DEVICE_ASSOCIATION_TYPE.cs | 0 .../ABI.Microsoft.Graphics.Canvas/Win2D.cs | 0 .../Buffers/GraphicsEffectSourceBuffer.cs | 0 .../Buffers/ResourceTextureManagerBuffer.cs | 0 .../Buffers/SourceReference.cs | 0 .../CanvasEffect.EffectGraph.cs | 0 .../CanvasEffect.Interop.cs | 0 .../CanvasEffect.cs | 0 .../Collections/FixedCountList{T}.cs | 0 .../Collections/IFixedCountList{T}.cs | 0 .../ComputeSharp.D2D1.WinUI.csproj | 5 +++ .../Extensions/ICanvasDeviceExtensions.cs | 0 .../ID2D1DeviceContextExtensions.cs | 0 .../Extensions/ID2D1EffectExtensions.cs | 0 .../Extensions/IUnknownExtensions.cs | 0 .../Helpers/RcwMarshaller.cs | 0 .../Helpers/ResourceManager.cs | 0 .../PixelShaderEffect{T}.ICanvasEffect.cs | 0 ...derEffect{T}.ICanvasEffectFactoryNative.cs | 0 .../PixelShaderEffect{T}.ICanvasImage.cs | 0 ...ixelShaderEffect{T}.ICanvasImageInterop.cs | 0 ...derEffect{T}.Properties.Interop.Sources.cs | 0 ...PixelShaderEffect{T}.Properties.Interop.cs | 0 ...erties.ResourceTextureManagerCollection.cs | 0 ...erEffect{T}.Properties.SourceCollection.cs | 0 .../PixelShaderEffect{T}.Properties.cs | 0 .../PixelShaderEffect{T}.ReferenceTracking.cs | 0 .../PixelShaderEffect{T}.cs | 0 41 files changed, 5 insertions(+), 43 deletions(-) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_D2D_IMAGE_FLAGS.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_DEVICE_ASSOCIATION_TYPE.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/ABI.Microsoft.Graphics.Canvas/Win2D.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Buffers/GraphicsEffectSourceBuffer.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Buffers/ResourceTextureManagerBuffer.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Buffers/SourceReference.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/CanvasEffect.EffectGraph.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/CanvasEffect.Interop.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/CanvasEffect.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Collections/FixedCountList{T}.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Collections/IFixedCountList{T}.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Extensions/ICanvasDeviceExtensions.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Extensions/ID2D1DeviceContextExtensions.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Extensions/ID2D1EffectExtensions.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Extensions/IUnknownExtensions.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Helpers/RcwMarshaller.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/Helpers/ResourceManager.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.ICanvasEffect.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.ICanvasImage.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.ICanvasImageInterop.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.Properties.Interop.Sources.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.Properties.Interop.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.Properties.SourceCollection.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.Properties.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.ReferenceTracking.cs (100%) rename src/{ComputeSharp.D2D1.UI => ComputeSharp.D2D1.WinUI}/PixelShaderEffect{T}.cs (100%) diff --git a/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems b/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems index d83501cc..20fbd434 100644 --- a/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems +++ b/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems @@ -8,47 +8,4 @@ ComputeSharp.D2D1.UI - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_D2D_IMAGE_FLAGS.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_D2D_IMAGE_FLAGS.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_D2D_IMAGE_FLAGS.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_D2D_IMAGE_FLAGS.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_DEVICE_ASSOCIATION_TYPE.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_DEVICE_ASSOCIATION_TYPE.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_DEVICE_ASSOCIATION_TYPE.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/WIN2D_GET_DEVICE_ASSOCIATION_TYPE.cs diff --git a/src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/Win2D.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/ABI.Microsoft.Graphics.Canvas/Win2D.cs rename to src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs diff --git a/src/ComputeSharp.D2D1.UI/Buffers/GraphicsEffectSourceBuffer.cs b/src/ComputeSharp.D2D1.WinUI/Buffers/GraphicsEffectSourceBuffer.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Buffers/GraphicsEffectSourceBuffer.cs rename to src/ComputeSharp.D2D1.WinUI/Buffers/GraphicsEffectSourceBuffer.cs diff --git a/src/ComputeSharp.D2D1.UI/Buffers/ResourceTextureManagerBuffer.cs b/src/ComputeSharp.D2D1.WinUI/Buffers/ResourceTextureManagerBuffer.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Buffers/ResourceTextureManagerBuffer.cs rename to src/ComputeSharp.D2D1.WinUI/Buffers/ResourceTextureManagerBuffer.cs diff --git a/src/ComputeSharp.D2D1.UI/Buffers/SourceReference.cs b/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Buffers/SourceReference.cs rename to src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs diff --git a/src/ComputeSharp.D2D1.UI/CanvasEffect.EffectGraph.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/CanvasEffect.EffectGraph.cs rename to src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs diff --git a/src/ComputeSharp.D2D1.UI/CanvasEffect.Interop.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/CanvasEffect.Interop.cs rename to src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs diff --git a/src/ComputeSharp.D2D1.UI/CanvasEffect.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/CanvasEffect.cs rename to src/ComputeSharp.D2D1.WinUI/CanvasEffect.cs diff --git a/src/ComputeSharp.D2D1.UI/Collections/FixedCountList{T}.cs b/src/ComputeSharp.D2D1.WinUI/Collections/FixedCountList{T}.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Collections/FixedCountList{T}.cs rename to src/ComputeSharp.D2D1.WinUI/Collections/FixedCountList{T}.cs diff --git a/src/ComputeSharp.D2D1.UI/Collections/IFixedCountList{T}.cs b/src/ComputeSharp.D2D1.WinUI/Collections/IFixedCountList{T}.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Collections/IFixedCountList{T}.cs rename to src/ComputeSharp.D2D1.WinUI/Collections/IFixedCountList{T}.cs diff --git a/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj b/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj index b031138d..259b4edf 100644 --- a/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj +++ b/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj @@ -19,6 +19,11 @@ $(NoWarn);IDE0065 + + + + + diff --git a/src/ComputeSharp.D2D1.UI/Extensions/ICanvasDeviceExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Extensions/ICanvasDeviceExtensions.cs rename to src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs diff --git a/src/ComputeSharp.D2D1.UI/Extensions/ID2D1DeviceContextExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Extensions/ID2D1DeviceContextExtensions.cs rename to src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs diff --git a/src/ComputeSharp.D2D1.UI/Extensions/ID2D1EffectExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Extensions/ID2D1EffectExtensions.cs rename to src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs diff --git a/src/ComputeSharp.D2D1.UI/Extensions/IUnknownExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Extensions/IUnknownExtensions.cs rename to src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs diff --git a/src/ComputeSharp.D2D1.UI/Helpers/RcwMarshaller.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Helpers/RcwMarshaller.cs rename to src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs diff --git a/src/ComputeSharp.D2D1.UI/Helpers/ResourceManager.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/Helpers/ResourceManager.cs rename to src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffect.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffect.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasImage.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasImage.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasImageInterop.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasImageInterop.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.Interop.Sources.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.Interop.Sources.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.Interop.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.Interop.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.SourceCollection.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.SourceCollection.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.SourceCollection.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.SourceCollection.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.Properties.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ReferenceTracking.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ReferenceTracking.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs similarity index 100% rename from src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.cs rename to src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs From 14df294d46b3c4aec5f61481bdc6c99e653ba97f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 21:00:33 +0200 Subject: [PATCH 05/10] Remove ComputeSharp.D2D1.Uwp project and tests --- ComputeSharp.sln | 34 ------------------ .../ComputeSharp.D2D1.UI.projitems | 11 ------ .../ComputeSharp.D2D1.UI.shproj | 13 ------- .../ComputeSharp.D2D1.Uwp.csproj | 36 ------------------- .../Properties/ComputeSharp.D2D1.Uwp.rd.xml | 18 ---------- .../ComputeSharp.D2D1.WinUI.csproj | 2 -- .../ComputeSharp.D2D1.Uwp.Tests.csproj | 1 - 7 files changed, 115 deletions(-) delete mode 100644 src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems delete mode 100644 src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.shproj delete mode 100644 src/ComputeSharp.D2D1.Uwp/ComputeSharp.D2D1.Uwp.csproj delete mode 100644 src/ComputeSharp.D2D1.Uwp/Properties/ComputeSharp.D2D1.Uwp.rd.xml diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 97cdf920..6f46c3c4 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -116,14 +116,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B86A48A7-18B src\Directory.Build.targets = src\Directory.Build.targets EndProjectSection EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Uwp", "src\ComputeSharp.D2D1.Uwp\ComputeSharp.D2D1.Uwp.csproj", "{E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}" -EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.SwapChain.Shaders.D2D1.Shared", "samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.shproj", "{F8BF7666-7CCF-4FE4-B055-2EBA4BCD4564}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.WinUI", "src\ComputeSharp.D2D1.WinUI\ComputeSharp.D2D1.WinUI.csproj", "{BD9E6556-357E-4C20-BFCD-FB131F9372FA}" EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.D2D1.UI", "src\ComputeSharp.D2D1.UI\ComputeSharp.D2D1.UI.shproj", "{902D7B44-2C6C-4FCD-840B-EBCAE811EE63}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{568E7009-5C13-4153-9C94-0AC7A3E6883C}" ProjectSection(SolutionItems) = preProject samples\Directory.Build.props = samples\Directory.Build.props @@ -148,8 +144,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Assets", "Assets", "{345F62 EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.D2D1.UI.Tests", "tests\ComputeSharp.D2D1.UI.Tests\ComputeSharp.D2D1.UI.Tests.shproj", "{346AEB10-A4EA-427E-8578-F60915DB3053}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.D2D1.Uwp.Tests", "tests\ComputeSharp.D2D1.Uwp.Tests\ComputeSharp.D2D1.Uwp.Tests.csproj", "{4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.WinUI.Tests", "tests\ComputeSharp.D2D1.WinUI.Tests\ComputeSharp.D2D1.WinUI.Tests.csproj", "{73C32D0F-64DB-4674-84E9-8FCC41228474}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D3D12MemoryAllocator", "src\ComputeSharp.D3D12MemoryAllocator\ComputeSharp.D3D12MemoryAllocator.csproj", "{E017B3B6-C7D3-4E53-A7F6-1036178E98C3}" @@ -390,14 +384,6 @@ Global {669A414F-3B46-4B55-B587-061AF63C3067}.Release|ARM64.Build.0 = Release|Any CPU {669A414F-3B46-4B55-B587-061AF63C3067}.Release|x64.ActiveCfg = Release|Any CPU {669A414F-3B46-4B55-B587-061AF63C3067}.Release|x64.Build.0 = Release|Any CPU - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Debug|ARM64.Build.0 = Debug|ARM64 - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Debug|x64.ActiveCfg = Debug|x64 - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Debug|x64.Build.0 = Debug|x64 - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Release|ARM64.ActiveCfg = Release|ARM64 - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Release|ARM64.Build.0 = Release|ARM64 - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Release|x64.ActiveCfg = Release|x64 - {E60A3B1E-FC5D-41AC-ACF0-C2D75B6590D2}.Release|x64.Build.0 = Release|x64 {BD9E6556-357E-4C20-BFCD-FB131F9372FA}.Debug|ARM64.ActiveCfg = Debug|ARM64 {BD9E6556-357E-4C20-BFCD-FB131F9372FA}.Debug|ARM64.Build.0 = Debug|ARM64 {BD9E6556-357E-4C20-BFCD-FB131F9372FA}.Debug|x64.ActiveCfg = Debug|x64 @@ -414,18 +400,6 @@ Global {9EA5AE9D-C39A-4F43-B03E-0A848EA2558A}.Release|ARM64.Build.0 = Release|ARM64 {9EA5AE9D-C39A-4F43-B03E-0A848EA2558A}.Release|x64.ActiveCfg = Release|x64 {9EA5AE9D-C39A-4F43-B03E-0A848EA2558A}.Release|x64.Build.0 = Release|x64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Debug|ARM64.Build.0 = Debug|ARM64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Debug|ARM64.Deploy.0 = Debug|ARM64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Debug|x64.ActiveCfg = Debug|x64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Debug|x64.Build.0 = Debug|x64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Debug|x64.Deploy.0 = Debug|x64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Release|ARM64.ActiveCfg = Release|ARM64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Release|ARM64.Build.0 = Release|ARM64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Release|ARM64.Deploy.0 = Release|ARM64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Release|x64.ActiveCfg = Release|x64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Release|x64.Build.0 = Release|x64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3}.Release|x64.Deploy.0 = Release|x64 {73C32D0F-64DB-4674-84E9-8FCC41228474}.Debug|ARM64.ActiveCfg = Debug|ARM64 {73C32D0F-64DB-4674-84E9-8FCC41228474}.Debug|ARM64.Build.0 = Debug|ARM64 {73C32D0F-64DB-4674-84E9-8FCC41228474}.Debug|ARM64.Deploy.0 = Debug|ARM64 @@ -500,7 +474,6 @@ Global {B54B6DCA-6EAB-46A8-83D3-15154659F47F} = {1A9C4108-F61A-4ABE-B5CF-F524521EAE2D} {9EA5AE9D-C39A-4F43-B03E-0A848EA2558A} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1} {346AEB10-A4EA-427E-8578-F60915DB3053} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {73C32D0F-64DB-4674-84E9-8FCC41228474} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {59A17380-24A0-4BD7-9012-B105A9E7D46F} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} EndGlobalSection @@ -516,10 +489,6 @@ Global samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{209c95a3-fa53-431b-b688-3299ca6c29d2}*SharedItemsImports = 5 src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{314eb353-e7e3-4146-8111-685cc83ec1de}*SharedItemsImports = 5 tests\ComputeSharp.D2D1.UI.Tests\ComputeSharp.D2D1.UI.Tests.projitems*{346aeb10-a4ea-427e-8578-f60915db3053}*SharedItemsImports = 13 - samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{4d4bb2f6-5653-4db5-a8dd-90d58d8fe4d3}*SharedItemsImports = 4 - src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{4d4bb2f6-5653-4db5-a8dd-90d58d8fe4d3}*SharedItemsImports = 4 - src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{4d4bb2f6-5653-4db5-a8dd-90d58d8fe4d3}*SharedItemsImports = 4 - tests\ComputeSharp.D2D1.UI.Tests\ComputeSharp.D2D1.UI.Tests.projitems*{4d4bb2f6-5653-4db5-a8dd-90d58d8fe4d3}*SharedItemsImports = 4 src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{4d7d9ba8-a821-4b1c-9ee2-cbcf5849906e}*SharedItemsImports = 5 src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{514ff00e-bbf0-4d55-a47c-eeeb6208adce}*SharedItemsImports = 13 src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{51d5a422-d3a5-4c4d-8a6d-a048940bf279}*SharedItemsImports = 13 @@ -528,12 +497,10 @@ Global samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{751bb05b-563d-4b3a-94c6-15e2d79d35ea}*SharedItemsImports = 13 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{764bc0f5-0c5e-49ad-abaa-e3874c0f3286}*SharedItemsImports = 5 src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{76c66257-fdaa-47ab-85e7-ef757eab10c0}*SharedItemsImports = 5 - src\ComputeSharp.D2D1.UI\ComputeSharp.D2D1.UI.projitems*{902d7b44-2c6c-4fcd-840b-ebcae811ee63}*SharedItemsImports = 13 src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.projitems*{9ac496a3-bbf0-4c8f-a50d-a20bf01c5e05}*SharedItemsImports = 13 src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{9ea5ae9d-c39a-4f43-b03e-0a848ea2558a}*SharedItemsImports = 5 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{a5997814-d8d2-4541-87ac-c3e53caa67c0}*SharedItemsImports = 13 - src\ComputeSharp.D2D1.UI\ComputeSharp.D2D1.UI.projitems*{bd9e6556-357e-4c20-bfcd-fb131f9372fa}*SharedItemsImports = 5 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5 src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{c12d7ace-98ed-4813-8118-6667c34f484f}*SharedItemsImports = 5 @@ -541,7 +508,6 @@ Global src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.projitems*{e44053bd-a761-47fb-aa78-087a599672ea}*SharedItemsImports = 5 src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{e44053bd-a761-47fb-aa78-087a599672ea}*SharedItemsImports = 5 src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{e44053bd-a761-47fb-aa78-087a599672ea}*SharedItemsImports = 5 - src\ComputeSharp.D2D1.UI\ComputeSharp.D2D1.UI.projitems*{e60a3b1e-fc5d-41ac-acf0-c2d75b6590d2}*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.NetStandard\ComputeSharp.NetStandard.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5 diff --git a/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems b/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems deleted file mode 100644 index 20fbd434..00000000 --- a/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.projitems +++ /dev/null @@ -1,11 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 902d7b44-2c6c-4fcd-840b-ebcae811ee63 - - - ComputeSharp.D2D1.UI - - \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.shproj b/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.shproj deleted file mode 100644 index 7cb7c873..00000000 --- a/src/ComputeSharp.D2D1.UI/ComputeSharp.D2D1.UI.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - 902d7b44-2c6c-4fcd-840b-ebcae811ee63 - 14.0 - - - - - - - - diff --git a/src/ComputeSharp.D2D1.Uwp/ComputeSharp.D2D1.Uwp.csproj b/src/ComputeSharp.D2D1.Uwp/ComputeSharp.D2D1.Uwp.csproj deleted file mode 100644 index 18eb8992..00000000 --- a/src/ComputeSharp.D2D1.Uwp/ComputeSharp.D2D1.Uwp.csproj +++ /dev/null @@ -1,36 +0,0 @@ - - - uap10.0.17763 - 10.0 - 22621 - 17763 - $(TargetPlatformBaseVersion).$(TargetPlatformRevision).0 - $(TargetPlatformBaseVersion).$(TargetPlatformMinRevision).0 - 6.2.14 - true - true - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - x64;ARM64 - win10-x64;win-arm64 - $(NoWarn);NETSDK1023 - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.Uwp/Properties/ComputeSharp.D2D1.Uwp.rd.xml b/src/ComputeSharp.D2D1.Uwp/Properties/ComputeSharp.D2D1.Uwp.rd.xml deleted file mode 100644 index 0ac421e8..00000000 --- a/src/ComputeSharp.D2D1.Uwp/Properties/ComputeSharp.D2D1.Uwp.rd.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj b/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj index 259b4edf..2fe6baa8 100644 --- a/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj +++ b/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj @@ -31,6 +31,4 @@ - - diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/ComputeSharp.D2D1.Uwp.Tests.csproj b/tests/ComputeSharp.D2D1.Uwp.Tests/ComputeSharp.D2D1.Uwp.Tests.csproj index 128b0d96..49569cc0 100644 --- a/tests/ComputeSharp.D2D1.Uwp.Tests/ComputeSharp.D2D1.Uwp.Tests.csproj +++ b/tests/ComputeSharp.D2D1.Uwp.Tests/ComputeSharp.D2D1.Uwp.Tests.csproj @@ -143,7 +143,6 @@ - From 3a5d7de97a17af34e7dae5e948d818a26b80a44a Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 21:03:35 +0200 Subject: [PATCH 06/10] Move files from ComputeSharp.D2D1.UI.Tests to WinUI project --- .../ComputeSharp.D2D1.UI.Tests.projitems | 7 ------- .../Helpers/TolerantImageComparer.cs | 2 +- .../Helpers/Win2DHelper.cs | 2 +- .../Tests}/CanvasEffectTests.cs | 5 ++--- .../Tests}/PixelShaderEffectTests.cs | 5 ++--- .../Tests}/ShadersTests.cs | 5 ++--- 6 files changed, 8 insertions(+), 18 deletions(-) rename tests/{ComputeSharp.D2D1.UI.Tests => ComputeSharp.D2D1.WinUI.Tests}/Helpers/TolerantImageComparer.cs (98%) rename tests/{ComputeSharp.D2D1.UI.Tests => ComputeSharp.D2D1.WinUI.Tests}/Helpers/Win2DHelper.cs (99%) rename tests/{ComputeSharp.D2D1.UI.Tests => ComputeSharp.D2D1.WinUI.Tests/Tests}/CanvasEffectTests.cs (99%) rename tests/{ComputeSharp.D2D1.UI.Tests => ComputeSharp.D2D1.WinUI.Tests/Tests}/PixelShaderEffectTests.cs (99%) rename tests/{ComputeSharp.D2D1.UI.Tests => ComputeSharp.D2D1.WinUI.Tests/Tests}/ShadersTests.cs (97%) diff --git a/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems b/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems index 826aaefe..85939ff4 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems +++ b/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems @@ -8,11 +8,4 @@ ComputeSharp.D2D1.UI.Tests - - - - - - - \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.UI.Tests/Helpers/TolerantImageComparer.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/TolerantImageComparer.cs similarity index 98% rename from tests/ComputeSharp.D2D1.UI.Tests/Helpers/TolerantImageComparer.cs rename to tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/TolerantImageComparer.cs index 60cb3c99..8017b876 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/Helpers/TolerantImageComparer.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/TolerantImageComparer.cs @@ -7,7 +7,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Graphics.Canvas; using Color = Windows.UI.Color; -namespace ComputeSharp.D2D1.UI.Tests.Helpers; +namespace ComputeSharp.D2D1.WinUI.Tests.Helpers; /// /// An tolerant image comparer type, inspired from ImageSharp. diff --git a/tests/ComputeSharp.D2D1.UI.Tests/Helpers/Win2DHelper.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs similarity index 99% rename from tests/ComputeSharp.D2D1.UI.Tests/Helpers/Win2DHelper.cs rename to tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs index caf3de5e..de80e4a1 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/Helpers/Win2DHelper.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs @@ -13,7 +13,7 @@ using WinRT.Interop; #nullable enable -namespace ComputeSharp.D2D1.UI.Tests.Helpers; +namespace ComputeSharp.D2D1.WinUI.Tests.Helpers; /// /// A helper type to marshal managed objects in unit tests. diff --git a/tests/ComputeSharp.D2D1.UI.Tests/CanvasEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs similarity index 99% rename from tests/ComputeSharp.D2D1.UI.Tests/CanvasEffectTests.cs rename to tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs index 82f2bb65..dc5fccaf 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/CanvasEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs @@ -3,11 +3,10 @@ using System.Collections.Generic; using System.IO; using System.Numerics; using System.Threading.Tasks; -using ComputeSharp.D2D1.UI.Tests.Helpers; +using ComputeSharp.D2D1.WinUI.Tests.Helpers; #if WINDOWS_UWP using ComputeSharp.D2D1.Uwp; #else -using ComputeSharp.D2D1.WinUI; #endif using ComputeSharp.SwapChain.Shaders.D2D1; using Microsoft.Graphics.Canvas; @@ -20,7 +19,7 @@ using Windows.UI; #nullable enable -namespace ComputeSharp.D2D1.UI.Tests; +namespace ComputeSharp.D2D1.WinUI.Tests; [TestClass] [TestCategory("CanvasEffect")] diff --git a/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs similarity index 99% rename from tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs rename to tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs index ba221a16..1482eb63 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs @@ -2,18 +2,17 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using ComputeSharp.D2D1.Interop; -using ComputeSharp.D2D1.UI.Tests.Helpers; +using ComputeSharp.D2D1.WinUI.Tests.Helpers; #if WINDOWS_UWP using ComputeSharp.D2D1.Uwp; #else -using ComputeSharp.D2D1.WinUI; #endif using Microsoft.Graphics.Canvas; using Microsoft.VisualStudio.TestTools.UnitTesting; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -namespace ComputeSharp.D2D1.UI.Tests; +namespace ComputeSharp.D2D1.WinUI.Tests; [TestClass] [TestCategory("PixelShaderEffect")] diff --git a/tests/ComputeSharp.D2D1.UI.Tests/ShadersTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs similarity index 97% rename from tests/ComputeSharp.D2D1.UI.Tests/ShadersTests.cs rename to tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs index bcc474da..7752916a 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/ShadersTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs @@ -3,11 +3,10 @@ using System.Diagnostics.CodeAnalysis; using System.IO; using System.Threading.Tasks; using ComputeSharp.D2D1.Descriptors; -using ComputeSharp.D2D1.UI.Tests.Helpers; +using ComputeSharp.D2D1.WinUI.Tests.Helpers; #if WINDOWS_UWP using ComputeSharp.D2D1.Uwp; #else -using ComputeSharp.D2D1.WinUI; #endif using ComputeSharp.SwapChain.Shaders.D2D1; using Microsoft.Graphics.Canvas; @@ -17,7 +16,7 @@ using Windows.UI; #nullable enable -namespace ComputeSharp.D2D1.UI.Tests; +namespace ComputeSharp.D2D1.WinUI.Tests; [TestClass] [TestCategory("Shaders")] From d2fdfd8eeae334f667a021a2debc6440e5e452ca Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 21:04:49 +0200 Subject: [PATCH 07/10] Remove leftover UWP test project --- ComputeSharp.sln | 5 - .../ComputeSharp.D2D1.UI.Tests.projitems | 11 -- .../ComputeSharp.D2D1.UI.Tests.shproj | 13 -- tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml | 4 - tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml.cs | 31 ---- .../Assets/LockScreenLogo.scale-200.png | Bin 1430 -> 0 bytes .../Assets/SplashScreen.scale-200.png | Bin 7700 -> 0 bytes .../Assets/Square150x150Logo.scale-200.png | Bin 2937 -> 0 bytes .../Assets/Square44x44Logo.scale-200.png | Bin 1647 -> 0 bytes ...x44Logo.targetsize-24_altform-unplated.png | Bin 1255 -> 0 bytes .../Assets/StoreLogo.png | Bin 1451 -> 0 bytes .../Assets/Wide310x150Logo.scale-200.png | Bin 3204 -> 0 bytes .../ComputeSharp.D2D1.Uwp.Tests.csproj | 156 ------------------ .../Package.appxmanifest | 45 ----- .../Properties/AssemblyInfo.cs | 15 -- .../Properties/Default.rd.xml | 22 --- .../ComputeSharp.D2D1.WinUI.Tests.csproj | 2 - 17 files changed, 304 deletions(-) delete mode 100644 tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems delete mode 100644 tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.shproj delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml.cs delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Assets/LockScreenLogo.scale-200.png delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Assets/SplashScreen.scale-200.png delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square150x150Logo.scale-200.png delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square44x44Logo.scale-200.png delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Assets/StoreLogo.png delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Wide310x150Logo.scale-200.png delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/ComputeSharp.D2D1.Uwp.Tests.csproj delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Package.appxmanifest delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Properties/AssemblyInfo.cs delete mode 100644 tests/ComputeSharp.D2D1.Uwp.Tests/Properties/Default.rd.xml diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 6f46c3c4..06791225 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -142,8 +142,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Assets", "Assets", "{345F62 assets\icon_highres.png = assets\icon_highres.png EndProjectSection EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.D2D1.UI.Tests", "tests\ComputeSharp.D2D1.UI.Tests\ComputeSharp.D2D1.UI.Tests.shproj", "{346AEB10-A4EA-427E-8578-F60915DB3053}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.WinUI.Tests", "tests\ComputeSharp.D2D1.WinUI.Tests\ComputeSharp.D2D1.WinUI.Tests.csproj", "{73C32D0F-64DB-4674-84E9-8FCC41228474}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D3D12MemoryAllocator", "src\ComputeSharp.D3D12MemoryAllocator\ComputeSharp.D3D12MemoryAllocator.csproj", "{E017B3B6-C7D3-4E53-A7F6-1036178E98C3}" @@ -473,7 +471,6 @@ Global {568E7009-5C13-4153-9C94-0AC7A3E6883C} = {1A9C4108-F61A-4ABE-B5CF-F524521EAE2D} {B54B6DCA-6EAB-46A8-83D3-15154659F47F} = {1A9C4108-F61A-4ABE-B5CF-F524521EAE2D} {9EA5AE9D-C39A-4F43-B03E-0A848EA2558A} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1} - {346AEB10-A4EA-427E-8578-F60915DB3053} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {73C32D0F-64DB-4674-84E9-8FCC41228474} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {59A17380-24A0-4BD7-9012-B105A9E7D46F} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} EndGlobalSection @@ -488,12 +485,10 @@ Global src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{158f984d-cd96-4062-bd02-2268946031a0}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{209c95a3-fa53-431b-b688-3299ca6c29d2}*SharedItemsImports = 5 src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{314eb353-e7e3-4146-8111-685cc83ec1de}*SharedItemsImports = 5 - tests\ComputeSharp.D2D1.UI.Tests\ComputeSharp.D2D1.UI.Tests.projitems*{346aeb10-a4ea-427e-8578-f60915db3053}*SharedItemsImports = 13 src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{4d7d9ba8-a821-4b1c-9ee2-cbcf5849906e}*SharedItemsImports = 5 src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{514ff00e-bbf0-4d55-a47c-eeeb6208adce}*SharedItemsImports = 13 src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{51d5a422-d3a5-4c4d-8a6d-a048940bf279}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{73c32d0f-64db-4674-84e9-8fcc41228474}*SharedItemsImports = 5 - tests\ComputeSharp.D2D1.UI.Tests\ComputeSharp.D2D1.UI.Tests.projitems*{73c32d0f-64db-4674-84e9-8fcc41228474}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{751bb05b-563d-4b3a-94c6-15e2d79d35ea}*SharedItemsImports = 13 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{764bc0f5-0c5e-49ad-abaa-e3874c0f3286}*SharedItemsImports = 5 src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{76c66257-fdaa-47ab-85e7-ef757eab10c0}*SharedItemsImports = 5 diff --git a/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems b/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems deleted file mode 100644 index 85939ff4..00000000 --- a/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.projitems +++ /dev/null @@ -1,11 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 346aeb10-a4ea-427e-8578-f60915db3053 - - - ComputeSharp.D2D1.UI.Tests - - \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.shproj b/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.shproj deleted file mode 100644 index 9abf6f55..00000000 --- a/tests/ComputeSharp.D2D1.UI.Tests/ComputeSharp.D2D1.UI.Tests.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - 346aeb10-a4ea-427e-8578-f60915db3053 - 14.0 - - - - - - - - diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml b/tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml deleted file mode 100644 index 606340e6..00000000 --- a/tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml.cs b/tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml.cs deleted file mode 100644 index 0f6c05d2..00000000 --- a/tests/ComputeSharp.D2D1.Uwp.Tests/App.xaml.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Windows.ApplicationModel.Activation; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; - -namespace ComputeSharp.D2D1.Uwp.Tests; - -/// -/// Provides application-specific behavior to supplement the default Application class. -/// -public sealed partial class App : Application -{ - /// - /// Creates a new instance. - /// - public App() - { - InitializeComponent(); - } - - /// - protected override void OnLaunched(LaunchActivatedEventArgs e) - { - Window.Current.Content ??= new Frame(); - - Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.CreateDefaultUI(); - - Window.Current.Activate(); - - Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.Run(e.Arguments); - } -} \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/LockScreenLogo.scale-200.png b/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/LockScreenLogo.scale-200.png deleted file mode 100644 index 735f57adb5dfc01886d137b4e493d7e97cf13af3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1430 zcmaJ>TTC2P7~aKltDttVHYH6u8Io4i*}3fO&d$gd*bA_<3j~&e7%8(eXJLfhS!M@! zKrliY>>6yT4+Kr95$!DoD(Qn-5TP|{V_KS`k~E6(LGS@#`v$hQo&^^BKsw3HIsZBT z_y6C2n`lK@apunKojRQ^(_P}Mgewt$(^BBKCTZ;*xa?J3wQ7~@S0lUvbcLeq1Bg4o zH-bvQi|wt~L7q$~a-gDFP!{&TQfc3fX*6=uHv* zT&1&U(-)L%Xp^djI2?~eBF2cxC@YOP$+9d?P&h?lPy-9M2UT9fg5jKm1t$m#iWE{M zIf%q9@;fyT?0UP>tcw-bLkz;s2LlKl2qeP0w zECS7Ate+Awk|KQ+DOk;fl}Xsy4o^CY=pwq%QAAKKl628_yNPsK>?A>%D8fQG6IgdJ ztnxttBz#NI_a@fk7SU`WtrpsfZsNs9^0(2a z@C3#YO3>k~w7?2hipBf{#b6`}Xw1hlG$yi?;1dDs7k~xDAw@jiI*+tc;t2Lflg&bM)0!Y;0_@=w%`LW^8DsYpS#-bLOklX9r?Ei}TScw|4DbpW%+7 zFgAI)f51s}{y-eWb|vrU-Ya!GuYKP)J7z#*V_k^Xo>4!1Yqj*m)x&0L^tg3GJbVAJ zJ-Pl$R=NAabouV=^z_t;^K*0AvFs!vYU>_<|I^#c?>>CR<(T?=%{;U=aI*SbZADLH z&(f2wz_Y0??Tf|g;?|1Znw6}6U43Q#qNRwv1vp9uFn1)V#*4p&%$mP9x&15^OaBiDS(XppT|z^>;B{PLVEbS3IFYV yGvCsSX*m diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/SplashScreen.scale-200.png b/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/SplashScreen.scale-200.png deleted file mode 100644 index 023e7f1feda78d5100569825acedfd213a0d84e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7700 zcmeHLYj~4Yw%(;oxoEH#Kxq-eR|+VkP17b#Vk;?4QwkI+A{L04G+#<<(x#Un1#+h5>eArRq zTw$)ZvTWW_Y?bDho0nPVTh08+s`sp!j74rJTTtXIDww0SILedFv?sZ?yb@@}GN;#8 znk_b~Q(A0YR#uV4ef!osoV1M3;vQ8N$O|fStfgf$S5;ddUNv`tWtGjM;koG#N;7M< zP*84lnx(bn_KF&9Z5Ai$)#Cs3a|$OFw>WKCT$of*L7_CqQEinflT|W{JT+aKp-E0v zsxmYg)1(T>DROm+LN1eQw8}KCTp=C!$H7`PU!t9_Hw@TsTI2`udRZv*!a5`#A9hK6Y95L(CDUX&_@QxKV z_feX{UhA#ZWlvgpL$#w^D#lq`_A4AzDqd|Zv6y9PX&DNcN|l}_D^{q@GG&H^Pg583 z8FI6N8^H7b5WjGp;urW)d7F+_lcp%KsLX0viCmE(OHH+=%ZfD_=`voUuoUxFO^L;- z;!;2{g-YiiO6m4bs89OuF9!p{FGtH-f%8<2gY!h9s)4ciN%{Kh1+`}{^}M~+TDH9N z^Z5PlgVXMC&2&k*Hw^Lb9gny#ro$MOIxIt{+r)EA10$VR3 zanN8D{TUkl+v0CQ_>ZoHP<M-x#8@8ZiT#$Kh`(uRaX1g$Bg|qy$<#7 zSSAi{Nb8Y=lvNVeio+UGLCAtoLBfL`iOv`)yoJMDJBN>4IH@(l7YRF;61@>qq1iM9 zr@b#OC~SAxSle?5Pp8Z78{VO0YFr1x7kZU64Z23eLf2T2#6J_t;-E}DkB?NufZ0Ug zi?J&byXeaB-uTNVhuiM!UVQw}bZrJ3GtAETYp->!{q#zfN7D3AS9@Q7*V^85jGx#R z(QxYV(wW#F0XF9^^s>>H8pPlVJ>)3Oz z&_X8Sf@~?cH_O*cgi$U#`v`RRfv#y3m(ZpKk^5uLup+lVs$~}FZU$r_+}#hl%?g5m z-u-}-666ssp-xWQak~>PPy$mRc|~?pVSs1_@mBEXpPVfLF6(Ktf1S* zPPh@QZ=tFMs?LM2(5P3L2;l_6XX6s&cYsP1ip#eg0`ZEP0HGYh{UmS@o`MihLLvkU zgyAG0G`b1|qjxxh1(ODKFE%AP}Dq=3vK$P7TXP4GrM1kQ72!GUVMDl`rDC&2;TA}*nF z8$nQD&6ys_nc1*E7$*1S@R8$ymy(sQV}imGSedB@{!QR5P&N_H=-^o!?LsWs+2|mH z-e=)T^SvI)=_JIm7}j4;@*Z17=(#}m=~YF~z~CLI+vdAGlJDcdF$TM?CVI1%LhUrN zaa6DJ=Yh$)$k&Oz{-~8yw^GM^8prYxSxo zvI4k#ibryMa%%*8oI-5m61Koa_A_xg=(fwp0aBX{;X4Q;NXUhtaoJDo1>TqhWtn=_ zd5~chq#&6~c%8JZK#t_&J(9EVUU&upYeIovLt1>vaHe}UUq>#RGQj!EN#5+0@T`(@ z^g~>*c`VGRiSt;!$_4+0hk^I!@O3``5=sZ8IwlxWW7km1B&_t&E*u0_9UBa#VqwY* zz>nxv?FAsVnRaD(Bui=6i==BFUw0k4n$>`umU`F2l?7CYTD^)c2X+d9X&ddS9|gj? zM?knGkGCX&W8offw8aLC2$D{PjC3nVZwd4k?eZH8*mZ)U@3Qk8RDFOz_#WUA#vnzy zyP>KrCfKwSXea7}jgJjBc}PGY+4#6%lbZyjhy`5sZd_Vy6Wz;ixa?czkN}J9It1K6 zY!eu>|AwF^fwZlLAYyQI*lM@^>O>Iu6Vf6i>Q$?v!SeUS<{>UYMwz$*%Aq?w^`j{h z!$GZbhu=^D{&ET8;))LL%ZBDZkQqRd2;u~!d9bHGmLRhLDctNgYyjsuvoSZ#iVdoB z2!f--UUA#U;<{je#?cYt^{PIyKa%hW>}uepWMyAI{{Zo7?2>?$c9;whJae%oN|I-kpTQSx_C$Z&;f zi2i)qmEn=y4U0uvk)$m;zKfjPK@oc?I`}1Jzl$Q~aoKBd3kt7L#7gyt|A_qgz6ai< z=X%D1i!d2h?rHR^R8SUj&G||dkC?DT>{o#Yau<@uqVT{Xef&XG}5*E4aPk{}~ zplx&XhaV)&1EfI3Em;Bw#O5SV^c;{twb-1Rw)+=0!e_BLbd7tYmXCH0wrlOSS+~`7He8Iqx0{CN+DVit9;*6L~JAN zD&cyT)2?h}xnYmL?^)<7YyzZ3$FHU^Eg;DLqAV{#wv#Wj7S`Jdl1pX&{3(uZ?!uh} zDc$ZTNV*7le_W6}Hju~GMTxZQ1aWCeUc%!jv3MHAzt>Y-nQK%zfT*3ebDQA5b?iGn; zBjv3B+GhLTexd_(CzZDP4|#n5^~scvB6#Pk%Ho!kQ>yYw((Dv{6=$g3jT1!u6gORW zx5#`7Wy-ZHRa~IxGHdrp(bm%lf>2%J660nj$fCqN(epv@y!l9s7@k6EvxS{AMP>WY zX4$@F8^kayphIx-RGO$+LYl9YdoI5d|4#q9##`_F5Xnx`&GPzp2fB{-{P@ATw=X@~ z_|&^UMWAKD;jjBKTK(~o?cUFRK8EX=6>cXpfzg4ZpMB>*w_^8GSiT-Jp|xBOnzM+j z*09-@-~qJ(eqWq5@R4i^u4^{McCP(!3}C|v_WsTR*bIUxN(Nx`u##3B4{sE`Z`v8w zAwIG`?1~PkID~W{uDzmqH98Pew_1(;x2%8r^vY{)_&J2K)cN{W+h5+g)ZcjP&Ci#O zgy|8K@4kyMfwilHd&6TDlhb%++Pk!>9HRld6HT7gwyZGrxS$}CsD6`>6!!2K1@Mjf z(P0WYB7V_OFZyeWrbOFb>O54BNXf~K&?}3=^v;v_wT{DKr?jN^DtN&DXwX%u?s*c6`%8>WFz z7}YW^tp0bp^NriE)AB6M2l<7rn7fzePtR*omOevpfm9n?}2V*+0iW;S)C zhg`NAjL?D=W#k*$aR{>pGf~lD-rVtD;5jW1_*Jn1j1=es@Kcx4ySM_bwcQCT=d+DV z>Sz~L=Hj@(X%31nK$mWI@7d>}ORB`K(p=+`UD)+99YUGQc7y^bHZ1F(8|tL0 zdK*DT0kSXG_{BKTpP2*2PecdKV9;dq$^ZZDP;Nyq1kp-&GI5eAyZsK!e3V zK@rPy*{(`KIfo+lc878mDKk^V#`VT05}64kBtk%DgwLrOvLMj5-;*GNKv6c6pzMuL z6EP%ob|_0IW}lLRXCP2!9wWhEw3LA7iF#1O1mIZ@Z=6&bz41F;@S_GvYAG-#CW3z{ zP3+6vHhvP&A3$##Vo9$dT^#MoGg^|MDm=Bt1d2RRwSZ<;ZHICpLBv5Xs!D?BH^(9_ z7`H=N&^v|Z-%mP}wNzG{aiFCsRgwzwq!N6obW9+7(R; z(SZ=23`|`>qil!LMGG{_Heq!BD>(Y-zV9wD)}hz25JA37YR%39;kI4y9pgtcUass6 zP24}ZY$vvYeI`zy&)A_X#nY3017ap*0&jx|mVwyGhg3;!keU53a}Uhm3BZI$N$6Se zLWlAmy1S0xKJm4G_U@sN_Tm=`$xWJSEwKU98rZ&)1R^*$$1vA3oG#&*%SMxY_~oGP zP&PFJatFLM-Ps%84IV-+Ow)T{C7cqUAvauy4C z(FRz&?6$Rypj{xO!`y=*J5o4@U8Q-(y5(*=YoKeZ+-1YdljXxkA#B)zo=FeQH#?Le zycNUmEEHWO9a=X^pb#&cOq7-`7UA87#|S22)<7RUtZo|(zibX=w;K3qur9vy#`MNV z6UUcf9ZwEnKCCp+OoBnF@OdbvH)ANXO0o~Pi9l8=x3))}L<#vO0-~O4!~--Ket?d} zJaqsj<@CD1%S2cTW%rOP{Vto%0sGW~1RMa_j^)5nil0Yw- z0EE#bP+l4#P^%PQ+N*oxu1Zq05xZ!bXfYTg>9c{(Iw*lnjR^>kz%lAN^zFce7rppy zY8zA~3GD=A6d*hze&l4D_wA~+O!56)BZTe_rEu}Ezi<4!kG|W#amBZ5{&XS2@6R~H z{9o^y*BkH4$~yX9U&@CgbOzX1bn9xqF|zh$Dh0Y5y*E0e90*$!ObrHY3Ok0`2=O~r zCuke6KrP9KOf?V(YDsM<6pX2nVoN%M$LT^q#FmtaF?1^27F*IcNX~XRB(|hCFvdcc zc)$=S-)acdk$g4?_>jRqxpI6M3vHZk?0c^3=byamYDNf;uB{3NlKW5IhnOS3DNkMV z?tK8?kJ}pmvp%&&eTVOVjHP`q34hN1@!aK}H(K!vI`~gf|Gv+FNEQD5Yd<~yX7k_l h&G-K)@HZb3BABY{)U1?^%I#E6`MGoTtustd{~yM6srvu` diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square150x150Logo.scale-200.png b/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square150x150Logo.scale-200.png deleted file mode 100644 index af49fec1a5484db1d52a7f9b5ec90a27c7030186..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2937 zcma)84OCO-8BSud5)jwMLRVKgX(S?$n?Ld|vrsm<$CF7)&zTbyy1FE5bU`Q17MRv`9ue$;R(@8kR;#vJ*IM0>cJIAOte!d7oRgdH zd%ySjdB6L9=gX^A6)VzH7p2l@v~3zJAMw|DFy#^)F@@F*`mqUn=Il>l)8_+ab;nOW{%+iPx z+s{Eu|&pIs)Z7{La9~?xKfyl z#43?gjEL15d4WbOZo#SiP%>DB^+BcnJ=7dHEe;r#G=tuw|ka z%q@}##Uh7;tc%L_64m(kHtw74ty%BJMb)_1)#S0j`)F8_1jF7vScpsnH=0V19bO8y zR`0SjIdCUo&=>JwMQF8KHA<{ODHTiQh}0^@5QRmCA?gOH6_H3K^-_sNB^RrdNuK-R zOO*vOrKCVvDwgUck`kF(E7j{I#iiN;b*ZdCt4m@HPA`EuEqGGf4%!K<;(=I=&Vyrw z%TwcWtxa}8mCZ%Cyf&ActJ6_$ox5z6-D!0-dvnRx6t7y3d+h6QYpKWO;8OdnvERo7 zuEf>ih5`wqY)~o@OeVt-wM?Q!>QzdGRj!bz6fzYrfw$hZfAKzr2-M+D+R>}~oT574c;_3zquHcElqKIsryILt3g8n3jcMb+j?i?-L3FpZJ z2WRVBRdDPc+G5aaYg#5hpE+6nQ|(VSoxT3|biF;BUq#==-27Xi=gihDPYP$7?=9cP zYKE$jeQ|3~_L0VG-(F~2ZPyD0=k{J4Q~h(t__{-mz_w8{JDY9{`1ouzz!Vr5!ECdE z6U~O1k8c}24V7~zzXWTV-Pe4)y}wQJS&q%H5`Fo_f_JvIU489aCX$;P`u#!I-=^4ijC2{&9!O&h>mi?9oYD=GC#%)6{GzN6nQYw+Fal50!#x^asjBBR50i`+mho*ttoqV)ubM2KD9S~k7+FR4>{29?6 z{!l6kDdyTN0YJ9LgkPWeXm|gyi@zM3?0@{&pXT12w|78&W-q!RRF)&iLCEZVH<|fR zN0fr2^t8H(>L?>K#>^+jWROLral(Qy-xoBq1U7A&DV||wClb)Otd9?(gZ|8znMF}D zf<1haWz^s0qgecz;RFGt0C-B4g`jNGHsFU+;{<%t65v^sjk^h$lmWn#B0#_)9ij&d z-~lc`A)YYExi^7sBuPM^Y|wA2g*5?`K?#7tzELQYNxGo$UB$4J8RJp1k(8Jj+~hMT zlN~>M@KTTh^--8y3PK_NZ@AC!{PT=CziBzGd+wTJ^@icH!Bd}%)g8V)%K?|c&WTUk zy}qv1C%(fjRoZ4ozC3{O%@5?)XzH35zHns$pgU*Q?fj4v?fp1Qbm+j;3l;9jam9Da zXVcKjPlQ73x78QPu|Ffm6x?`~e3oD=gl=4kYK?={kD5j~QCXU)`HSdduNNENzA*2$ zOm3PzF!lN5e*06-f1Uot67wY#{o-S1!KZ7E=!~7ynnk9_iJR#kFoNbAOT#^2Gd17F zMmvU6>lndZQGd|ax9kUoXXO+$N?|j@6qpsF&_j7YXvwo_C{JpmLw5&#e6k>atv%es z5)7r*Wvv_JkUpT}M!_o!nVlEk1Zbl=a*2hQ*<|%*K1Glj^FcF`6kTzGQ3lz~2tCc@ z&x|tj;aH&1&9HwcJBcT`;{?a+pnej;M1HO(6Z{#J!cZA04hnFl;NXA+&`=7bjW_^o zfC40u3LMG?NdPtwGl>Tq6u}*QG)}-y;)lu-_>ee3kibW(69n0$0Zy!}9rQz%*v1iO zT9_H>99yIrSPYVy6^);rR}7Yo=J_T@hi+qhTZXnVWyf;JDYm5#eYLTxr*?kiNn!+Y zQ+LUkBafNJ#rH#C(?d5^;gw9o#%daEI{mA*LHPIHPU`#|H$hD zwm>0&+kahQ)E#%~k>&5@&#Vg82H?s%71=)(soi@174pi9--2{w{1$}Sz4zGn3Du&x bht0Iza^2ykEt4(epJ78uh5nDlX8(TxzDYwP diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square44x44Logo.scale-200.png b/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square44x44Logo.scale-200.png deleted file mode 100644 index ce342a2ec8a61291ba76c54604aea7e9d20af11b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1647 zcmaJ?eM}Q)7(e+G1Q(|`V9JhTI2>MkceK4;p;PR&$Pi?ejk3YQ_3o`S&|W_dsOZ8# zWPTt69g`t$ab`0cj-Y0yiBSOqmd)tG7G(}M5aP0_%&9TijB#&)I{zSE^4@#z^FF`l z`8{8`o%wlL(UI|y2!cdsuVamHH~H86F!*-15em4)NqUpCQM5?aoC_eCf@lV4wvF2a zjDQn1JBL69f&@2M3rvzJcfE!eZ8FZUBlFlC5RD)it33{mF9#B82AiyQE%w)`vlwa> zv{<1sm&kSKK$&%2jSFn7$t&P%%6Ue>R=EAnG8N7fqynWG8L3p!4801a;8{+nliO(qd(jNJ_?+9W3#hLIDLoT6~3fx9=`CC-D}-AMrpEO7HK zt3$GicGPc?GmDjy7K2P@La;eu4!$zWCZ`ym{Z$b zu-O6RM&K4JT|BIZB`E-gxqG%FzanI#+2FFmqHqXG7yxWB=w55RGOM)$xMb(>kSNR z2w=1AZi%z=AmG~yea~XaXJR!v7vLn(RUnELfiB1|6D84ICOS}^Zo2AdN}<&*h}G_u z{xZ!(%>tLT3J3<5XhWy-tg+6)0nmUUENLW8TWA{R6bgVd3X;anYFZ^IRis*_P-C-r z;i>%1^eL3UI2-{w8nuFFcs0e~7J{O2k^~Ce%+Ly4U?|=!0LH=t6()xi<^I-rs+9sF z*q{E-CxZbGPeu#a;XJwE;9S1?#R&uns>^0G3p`hEUF*v`M?@h%T%J%RChmD|EVydq zmHWh*_=S%emRC*mhxaVLzT@>Z2SX0u9v*DIJ@WC^kLVdlGV6LpK$KIrlJqc zpJ921)+3JJdTx|<`G&kXpKkjGJv=76R`yYIQ{#c-`%+`#V(7}Q;&@6U8!Td1`d;?N z_9mnI#?AA}4J!r)LN4!E-@H5eXauuB7TOawS>Y|{-P?NNx-lq+z1W-+y(;39P&&LP zL{N80?&=C*qKmdA^moMZRuPcD!B<*mq$ch=0Cnlitw#txRWhb3%TQvPqjkC`F69G4b! ze7z9MZ#+;_#l?H37UqUhDFb^l&s2{oM$3I0o^Q!yx;;V)QmCMo)Tb_ui|mit8MS?U zm##6$sZZ1$@|s%?l@>4Z<*Q}sRBSKMhb4I{e5LdEhsHIHTe8Bod5c>6QtT>$XgUBz z6MK`kO$=jmt@FqggOhJ5j~e@ygRbG;<{Vu)*+nn9aQeo0;$#j;|MS=S$&L?BeV25z xs3B`@=#`5TF{^6(A1rvdY@|-RtQ|iS5{tyX+wH?;n8E)G$kykv-D^wh{{!TZT%7;_ diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png deleted file mode 100644 index f6c02ce97e0a802b85f6021e822c89f8bf57d5cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1255 zcmaJ>TWs4@7*5+{G#S+&C!qC#> zf>5N3P6jO*Cz>ug*(_DmW=)kea&m$gZ^+nyiF`;j%w@}y8)>p*SH}C`m?DXeieF2U zyQHecc_L%Gh!7GMt+hG06y;+|p4>m~}PjA}rKViGiEnn7G0ZO<>G|7q;2?NwGCM3s?eued6%hd$B+ z*kQJ{#~$S=DFE(%=E+UkmlEI*%3llUf~8Ja9YU1Vui0IbGBkW_gHB%Rd&!!ioX zs40O?i9I{};kle7GMvE7(rk`la=gTI)47=>%?q@^iL-nUo3}h4S}N-KHn8t5mVP8w z&bSErwp+37 zNJJ8?a|{r5Q3R0Z5s-LB1WHOwYC@7pCHWND#cL1cZ?{kJ368_*(UDWUDyb<}0y@o# zfMF016iMWPCb6obAxT$JlB6(2DrlXDTB&!0`!m??4F(qWMhjVZo?JXQmz`1*58Z=& zcDmB|S-E@j?BoFGix0flckqdS4jsPNzhfWyWIM98GxcLs89C(~dw%$_t;JjX-SD}E zfiGV;{8Q%8r}w9x>EEigW81>`kvnU@pK)4+xk9@+bNj9L!AAZ@SZ@q|)&BmY3+HZx zul~BeG4|}-;L%cHViQGQX?^zFfO0&#cHwel=d`lH9sJ-@Sl@n*(8J2>%Ac`IxyY?Q z{=GhWvC#gu-~Ia7*n{=+;qM?Ul_wy1+u7ho;=`>EwP^g~R@{unBds`!#@}tluZQpS zm)M~nYEifJWJGx?_6DcTy>#uh%>!H9=hb^(v`=m3F1{L>db=<5_tm+_&knAQ2EU$s Mu9UqpbNZeC0BbUo^Z)<= diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/StoreLogo.png b/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/StoreLogo.png deleted file mode 100644 index 7385b56c0e4d3c6b0efe3324aa1194157d837826..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1451 zcmaJ>eN5D57_Z|bH;{0+1#mbl)eTU3{h)Wf7EZV?;HD@XL@{B`Ui%(2aMxQ~xdXSv z5nzWi(LW)U2=Vc-cY@s7nPt{i0hc6!7xN4NNHI#EQl>YNBy8l4%x9gr_W-j zEZMQmmTIy(>;lblRfh`dIyTgc9W5d!VP$L4(kKrN1c5G~(O_#xG zAJCNTstD^5SeXFB+&$h=ToJP2H>xr$iqPs-#O*;4(!Fjw25-!gEb*)mU}=)J;Iu>w zxK(5XoD0wrPSKQ~rbL^Cw6O_03*l*}i=ydbu7adJ6y;%@tjFeXIXT+ms30pmbOP%Q zX}S;+LBh8Tea~TSkHzvX6$rYb)+n&{kSbIqh|c7hmlxmwSiq5iVhU#iEQ<>a18|O^Sln-8t&+t`*{qBWo5M?wFM(JuimAOb5!K#D}XbslM@#1ZVz_;!9U zpfEpLAOz=0g@bd6Xj_ILi-x^!M}73h^o@}hM$1jflTs|Yuj9AL@A3<-?MV4!^4q`e z)fO@A;{9K^?W?DbnesnPr6kK>$zaKo&;FhFd(GYFCIU^T+OIMb%Tqo+P%oq(IdX7S zf6+HLO?7o0m+p>~Tp5UrXWh!UH!wZ5kv!E`_w)PTpI(#Iw{AS`gH4^b(bm^ZCq^FZ zY9DD7bH}rq9mg88+KgA$Zp!iWncuU2n1AuIa@=sWvUR-s`Qb{R*kk(SPU^`$6BXz8 zn#7yaFOIK%qGxyi`dYtm#&qqox0$h=pNi#u=M8zUG@bpiZ=3sT=1}Trr}39cC)H|v zbL?W)=&s4zrh)7>L(|cc%$1#!zfL?HjpeP%T+x_a+jZ16b^iKOHxFEX$7d|8${H-* zIrOJ5w&i$>*D>AKaIoYg`;{L@jM((Kt?$N$5OnuPqVvq**Nm}(f0wwOF%iX_Pba;V z;m@wxX&NcV3?<1+u?A{y_DIj7#m3Af1rCE)o`D&Y3}0%7E;iX1yMDiS)sh0wKi!36 zL!Wmq?P^Ku&rK~HJd97KkLTRl>ScGFYZNlYytWnhmuu|)L&ND8_PmkayQb{HOY640 bno1(wj@u8DCVuFR|31B*4ek@pZJqxCDDe1x diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Wide310x150Logo.scale-200.png b/tests/ComputeSharp.D2D1.Uwp.Tests/Assets/Wide310x150Logo.scale-200.png deleted file mode 100644 index 288995b397fdbef1fb7e85afd71445d5de1952c5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3204 zcmbVPeQXow8NYmBd90>}0NP?GhXW~VaeThm=a0tV#EwJMI!)6M3}|c4_Bl3=Kd>G0 z(GHx1wl<7(tP?FsOQkTilSo*iIvF%uArExJ73~P zSv1xEy!U(Wd4A9D`FQV@W3@F^qJ@PEF$@z`Z!*BbFsS(^?B zyiAzJ+q})bkgiQHWqEb*jJD-coHYr1^iocg)l!Qa{Xqs-l~6J}p-|##ZHYofskQ3$ zI0;xzXyhazBeXhIsg5A=%ufo@f)1yy&ScKS0;HF^!r_2UE^lpZEom(+@duma3awTv zCrCL-%D_SvYWIcdHkmI}#50(fkUi)Qgx!80ju>g1za^}ff>JI8Z@^-iCiaCgg@TgF z+vtE?Q9{VQUX&MW9SYYmGcxA14%N2@7FwBTD4N<(2{nWgV8$e3?-F=L^&FrtWn~(U_Q~~^uYiyeY6-KoTnfh9AWz@ zIKje0)u!_Lw)E}G!#kEfwKVdNt(UAf9*f>tEL_(=xco-T%jTi@7YlC3hs2ik%Le0H ztj}RTeCF(5mwvi3_56>-yB?l;J>-1%!9~=fs|QcNG3J~a@JCu`4SB460s0ZO+##4fFUSGLcj_ja^fL4&BKALfb#$6$O?>P@qx2Agl^x0i&ugt zsy5Pyu=()`7HRMG3IB7F1@`_ z+-!J%#i6e^U$e#+C%Q>_qVRzWRsG^W_n+@OcX@vzI&z;mzHNb!GQ?LWA(wtpqHqTM z1OFw_{Zn?fD)p)`c`kOgv{de=v@suGRqY{N^U7gI1VF3*F=obwaXI6ob5__Yn zVTguS!%(NI09J8x#AO_aW!9W7k*UvB;IWDFC3srwftr{kHj%g)fvnAm;&h_dnl~

MY- zf+K}sCe8qU6Ujs`3ua{U0Of$R_gVQBuUA za0v=mu#vIOqiiAZOr&h*$WyOw&k-xr$;G4Ixa!#TJNr>95(h>l%)PUy4p+^SgR(uR zta%k*?ny-+nAr8spEk1fo{J4i!b^Fia`N{_F6@zidA2ZTTrjl#^5Z-2KfB@Cu}l9s z(*|Z2jc?p~vn2f)3y9i*7zJV1L{$?|&q)4oaT;uXi6>1GkRXVTOzAz(RHEmr=eFIi z`}<>-Q?K0GN8!IYxeP1XKXO+jsJbp~o^);Bc;%b7Flpe7;1`Ny@3r7ZR;?R)aJt8C ziNlEC<@3f_lIV4TwV}&e;D!Ee5_|e#g0LUh=5vmYWYm7&2h*M>QPKvGh9-)wfMMW3 z8J9b%1k7dzPzO0_NGQy92BZ^FR6R~6;^6?lqO;-QUP4BY%cG%3vEhbm#>4vIhPBh3 z-+pZGjh$x%Hp{?=FHsMp0&wNPlj00us{&`1ZOZTqs8%4X&xH=UDr*xyBW(Zp&Em94 zf)ZSfn#yg0N)>!1kWdkqJ^S*z0FF5|fj&qcE#Na|%OY0$uO>!&hP+1ywfD_WXk@4J(?MBftK7>$Nvqh@tDuarN%PrTLQ2Uzysx>UV=V zk^RrDSvdQ?0;=hY67EgII-f4`t=+i*yS=Y~!XlqIy_4x&%+OdfbKOFPXS2X5%4R{N z$SQMX^AK6(fA - - - - Debug - x64 - {4D4BB2F6-5653-4DB5-A8DD-90D58D8FE4D3} - AppContainerExe - Properties - ComputeSharp.D2D1.Uwp.Tests - ComputeSharp.D2D1.Uwp.Tests - en-US - UAP - 10.0.22621.0 - 10.0.17763.0 - 14 - 512 - {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - $(VisualStudioVersion) - false - true - - - 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 - - - PackageReference - - - - - - - - App.xaml - - - - - MSBuild:Compile - Designer - - - - - Designer - - - - - Assets\Shaders\ColorfulInfinity.png - PreserveNewest - - - Assets\Shaders\FractalTiling.png - PreserveNewest - - - Assets\Shaders\HelloWorld.png - PreserveNewest - - - Assets\Shaders\MengerJourney.png - PreserveNewest - - - Assets\Shaders\Octagrams.png - PreserveNewest - - - Assets\Shaders\ProteanClouds.png - PreserveNewest - - - Assets\Shaders\TerracedHills.png - PreserveNewest - - - - - - - - - - - - - 6.2.14 - - - 3.0.4 - - - 3.0.4 - - - - - - - - - - - - - - 14.0 - - - \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Package.appxmanifest b/tests/ComputeSharp.D2D1.Uwp.Tests/Package.appxmanifest deleted file mode 100644 index 5ffa2d0e..00000000 --- a/tests/ComputeSharp.D2D1.Uwp.Tests/Package.appxmanifest +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - ComputeSharp.D2D1.Uwp.Tests - sergiopedri - Assets\StoreLogo.png - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Properties/AssemblyInfo.cs b/tests/ComputeSharp.D2D1.Uwp.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index b5d4d1be..00000000 --- a/tests/ComputeSharp.D2D1.Uwp.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("ComputeSharp.D2D1.Uwp.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ComputeSharp.D2D1.Uwp.Tests")] -[assembly: AssemblyCopyright("Copyright © 2023")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: AssemblyMetadata("TargetPlatform", "UAP")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: ComVisible(false)] \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.Uwp.Tests/Properties/Default.rd.xml b/tests/ComputeSharp.D2D1.Uwp.Tests/Properties/Default.rd.xml deleted file mode 100644 index 922d306f..00000000 --- a/tests/ComputeSharp.D2D1.Uwp.Tests/Properties/Default.rd.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj index 337f2a91..0920ed31 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj @@ -95,7 +95,5 @@ true - - From 053a25a088d4c194ef6354ea7e9636b1ff5e04b1 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 21:13:14 +0200 Subject: [PATCH 08/10] Remove other WINDOWS_UWP leftover code paths --- .../ICanvasEffectFactoryNative.cs | 12 ------- .../ICanvasFactoryNative.cs | 6 ---- .../ICanvasImageInterop.cs | 15 -------- .../Buffers/GraphicsEffectSourceBuffer.cs | 4 --- .../Buffers/ResourceTextureManagerBuffer.cs | 4 --- .../Buffers/SourceReference.cs | 9 ----- .../CanvasEffect.EffectGraph.cs | 4 --- .../CanvasEffect.Interop.cs | 8 ----- src/ComputeSharp.D2D1.WinUI/CanvasEffect.cs | 4 --- .../Collections/FixedCountList{T}.cs | 4 --- .../Collections/IFixedCountList{T}.cs | 4 --- .../Extensions/ICanvasDeviceExtensions.cs | 4 --- .../ID2D1DeviceContextExtensions.cs | 4 --- .../Extensions/ID2D1EffectExtensions.cs | 4 --- .../Extensions/IUnknownExtensions.cs | 4 --- .../Helpers/RcwMarshaller.cs | 32 ----------------- .../Helpers/ResourceManager.cs | 36 ------------------- .../PixelShaderEffect{T}.ICanvasEffect.cs | 8 ----- ...derEffect{T}.ICanvasEffectFactoryNative.cs | 9 ----- .../PixelShaderEffect{T}.ICanvasImage.cs | 8 ----- ...ixelShaderEffect{T}.ICanvasImageInterop.cs | 9 ----- ...derEffect{T}.Properties.Interop.Sources.cs | 10 ------ ...PixelShaderEffect{T}.Properties.Interop.cs | 8 ----- ...erties.ResourceTextureManagerCollection.cs | 9 ----- ...erEffect{T}.Properties.SourceCollection.cs | 9 ----- .../PixelShaderEffect{T}.Properties.cs | 4 --- .../PixelShaderEffect{T}.ReferenceTracking.cs | 8 ----- .../PixelShaderEffect{T}.cs | 8 ----- .../TerraFX.Interop.Windows.D2D1.projitems | 2 -- .../WinRT/winrt/roapi/WinRT.cs | 16 --------- .../WinRT/winrt/winstring/WinRT.cs | 15 -------- .../Helpers/Win2DHelper.cs | 29 --------------- .../Tests/CanvasEffectTests.cs | 4 --- .../Tests/PixelShaderEffectTests.cs | 4 --- .../Tests/ShadersTests.cs | 4 --- 35 files changed, 322 deletions(-) delete mode 100644 src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/roapi/WinRT.cs delete mode 100644 src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/winstring/WinRT.cs diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs index 95c3252b..9aecc008 100644 --- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs +++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs @@ -4,10 +4,8 @@ using System.Runtime.InteropServices; using TerraFX.Interop; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -#if !WINDOWS_UWP using WinRT; using WinRT.Interop; -#endif using IInspectable = TerraFX.Interop.WinRT.IInspectable; #pragma warning disable CS0649, IDE1006 @@ -78,23 +76,14 @@ internal unsafe struct ICanvasEffectFactoryNative /// The managed implementation of . ///

[Guid("29BA1A1F-1CFE-44C3-984D-426D61B51427")] -#if WINDOWS_UWP - [ComImport] - [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] -#else [WindowsRuntimeType] [WindowsRuntimeHelperType(typeof(Interface))] -#endif public interface Interface { /// -#if WINDOWS_UWP - [PreserveSig] -#endif [return: NativeTypeName("HRESULT")] int CreateWrapper(ICanvasDevice* device, ID2D1Effect* resource, float dpi, IInspectable** wrapper); -#if !WINDOWS_UWP /// /// The vtable type for . /// @@ -147,6 +136,5 @@ internal unsafe struct ICanvasEffectFactoryNative } } } -#endif } } \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs index c89c99b6..98d88e29 100644 --- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs +++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs @@ -3,13 +3,9 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop; using TerraFX.Interop.Windows; -#if WINDOWS_UWP -using TerraFX.Interop.WinRT; -#else using WinRT; using WinRT.Interop; using IInspectable = TerraFX.Interop.WinRT.IInspectable; -#endif #pragma warning disable CS0649, IDE1006 @@ -151,7 +147,6 @@ internal unsafe struct ICanvasFactoryNative effectId); } -#if !WINDOWS_UWP /// /// The managed interface for . /// @@ -172,5 +167,4 @@ internal unsafe struct ICanvasFactoryNative public static readonly IntPtr AbiToProjectionVftablePtr = IUnknownVftbl.AbiToProjectionVftblPtr; } } -#endif } \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs index ac53ae5d..a8a143aa 100644 --- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs +++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs @@ -4,10 +4,8 @@ using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using TerraFX.Interop; -#if !WINDOWS_UWP using WinRT; using WinRT.Interop; -#endif #pragma warning disable CS0649, IDE1006 @@ -86,26 +84,15 @@ internal unsafe struct ICanvasImageInterop /// The managed implementation of . ///
[Guid("E042D1F7-F9AD-4479-A713-67627EA31863")] -#if WINDOWS_UWP - [ComImport] - [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] -#else [WindowsRuntimeType] [WindowsRuntimeHelperType(typeof(Interface))] -#endif public interface Interface { /// -#if WINDOWS_UWP - [PreserveSig] -#endif [return: NativeTypeName("HRESULT")] int GetDevice(ICanvasDevice** device, WIN2D_GET_DEVICE_ASSOCIATION_TYPE* type); /// -#if WINDOWS_UWP - [PreserveSig] -#endif [return: NativeTypeName("HRESULT")] int GetD2DImage( ICanvasDevice* device, @@ -115,7 +102,6 @@ internal unsafe struct ICanvasImageInterop float* realizeDpi, ID2D1Image** ppImage); -#if !WINDOWS_UWP /// /// The vtable type for . /// @@ -198,6 +184,5 @@ internal unsafe struct ICanvasImageInterop } } } -#endif } } \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.WinUI/Buffers/GraphicsEffectSourceBuffer.cs b/src/ComputeSharp.D2D1.WinUI/Buffers/GraphicsEffectSourceBuffer.cs index f689c6df..34502c69 100644 --- a/src/ComputeSharp.D2D1.WinUI/Buffers/GraphicsEffectSourceBuffer.cs +++ b/src/ComputeSharp.D2D1.WinUI/Buffers/GraphicsEffectSourceBuffer.cs @@ -3,11 +3,7 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using Windows.Graphics.Effects; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Buffers; -#else namespace ComputeSharp.D2D1.WinUI.Buffers; -#endif /// /// A fixed buffer type containing 16 fields. diff --git a/src/ComputeSharp.D2D1.WinUI/Buffers/ResourceTextureManagerBuffer.cs b/src/ComputeSharp.D2D1.WinUI/Buffers/ResourceTextureManagerBuffer.cs index 5efb789a..66744195 100644 --- a/src/ComputeSharp.D2D1.WinUI/Buffers/ResourceTextureManagerBuffer.cs +++ b/src/ComputeSharp.D2D1.WinUI/Buffers/ResourceTextureManagerBuffer.cs @@ -3,11 +3,7 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using ComputeSharp.D2D1.Interop; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Buffers; -#else namespace ComputeSharp.D2D1.WinUI.Buffers; -#endif /// /// A fixed buffer type containing 16 fields. diff --git a/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs b/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs index d9f917b2..e91c02ab 100644 --- a/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs +++ b/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs @@ -1,22 +1,13 @@ using System; using System.Runtime.CompilerServices; using ABI.Microsoft.Graphics.Canvas; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Extensions; -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Extensions; using ComputeSharp.D2D1.WinUI.Helpers; -#endif using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using Windows.Graphics.Effects; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Buffers; -#else namespace ComputeSharp.D2D1.WinUI.Buffers; -#endif /// /// A wrapper type for an input and its underlying native D2D images. diff --git a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs index 9af0f2a7..2122aa51 100644 --- a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs +++ b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs @@ -2,11 +2,7 @@ using System; using System.Runtime.CompilerServices; using Microsoft.Graphics.Canvas; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// partial class CanvasEffect diff --git a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs index 3f46123e..b0f6fd7b 100644 --- a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs +++ b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs @@ -3,22 +3,14 @@ using System.Diagnostics.CodeAnalysis; using System.Numerics; using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Extensions; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Helpers; -#endif using Microsoft.Graphics.Canvas; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using Windows.Foundation; using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// partial class CanvasEffect diff --git a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.cs index c9cdbf63..b138a98d 100644 --- a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.cs +++ b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.cs @@ -4,11 +4,7 @@ using System.Diagnostics.CodeAnalysis; using ABI.Microsoft.Graphics.Canvas; using Microsoft.Graphics.Canvas; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// /// A base type to implement packaged and easy to use -based effects that can be used with Win2D. diff --git a/src/ComputeSharp.D2D1.WinUI/Collections/FixedCountList{T}.cs b/src/ComputeSharp.D2D1.WinUI/Collections/FixedCountList{T}.cs index 8f93a9b0..d4c46083 100644 --- a/src/ComputeSharp.D2D1.WinUI/Collections/FixedCountList{T}.cs +++ b/src/ComputeSharp.D2D1.WinUI/Collections/FixedCountList{T}.cs @@ -1,11 +1,7 @@ using System; using System.Collections.Generic; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Collections; -#else namespace ComputeSharp.D2D1.WinUI.Collections; -#endif /// /// Shared helpers for all types implementing . diff --git a/src/ComputeSharp.D2D1.WinUI/Collections/IFixedCountList{T}.cs b/src/ComputeSharp.D2D1.WinUI/Collections/IFixedCountList{T}.cs index c3672855..6dcd595c 100644 --- a/src/ComputeSharp.D2D1.WinUI/Collections/IFixedCountList{T}.cs +++ b/src/ComputeSharp.D2D1.WinUI/Collections/IFixedCountList{T}.cs @@ -1,11 +1,7 @@ using System.Collections.Generic; using System.Collections.Immutable; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Collections; -#else namespace ComputeSharp.D2D1.WinUI.Collections; -#endif /// /// An interface for a list with a fixed collection. diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs index ab5a75e4..cf59c1f5 100644 --- a/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs +++ b/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs @@ -4,11 +4,7 @@ using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using Win32 = TerraFX.Interop.Windows.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Extensions; -#else namespace ComputeSharp.D2D1.WinUI.Extensions; -#endif /// /// A with extensions for the type. diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs index 7a3b47db..c80b7afd 100644 --- a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs +++ b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs @@ -2,11 +2,7 @@ using ComputeSharp.D2D1.Extensions; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Extensions; -#else namespace ComputeSharp.D2D1.WinUI.Extensions; -#endif /// /// A with extensions for the type. diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs index 090d6c56..c7ed870e 100644 --- a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs +++ b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs @@ -10,11 +10,7 @@ using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Extensions; -#else namespace ComputeSharp.D2D1.WinUI.Extensions; -#endif /// /// A with extensions for the type. diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs index e8e06034..8166a47c 100644 --- a/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs +++ b/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs @@ -3,11 +3,7 @@ using ComputeSharp.D2D1.Extensions; using TerraFX.Interop.Windows; using Win32 = TerraFX.Interop.Windows.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Extensions; -#else namespace ComputeSharp.D2D1.WinUI.Extensions; -#endif /// /// Helper methods for working with the type. diff --git a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs index 3adfae3c..07abf3bf 100644 --- a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs +++ b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs @@ -1,20 +1,10 @@ using System; using System.Diagnostics.CodeAnalysis; -#if WINDOWS_UWP -using System.Runtime.InteropServices; -using ComputeSharp.D2D1.Extensions; -#endif using TerraFX.Interop.Windows; -#if !WINDOWS_UWP using WinRT; -#endif using IInspectable = TerraFX.Interop.WinRT.IInspectable; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Helpers; -#else namespace ComputeSharp.D2D1.WinUI.Helpers; -#endif /// /// A helper type to handle marshalling of RCW instances. @@ -31,12 +21,7 @@ internal static unsafe class RcwMarshaller public static T GetOrCreateManagedInterface(IUnknown* nativeObject) where T : class { -#if WINDOWS_UWP - // On UWP, Marshal.GetObjectForIUnknown handles all the marshalling/wrapping logic - return (T)Marshal.GetObjectForIUnknown((IntPtr)nativeObject); -#else return MarshalInterface.FromAbi((IntPtr)nativeObject); -#endif } /// @@ -49,18 +34,7 @@ internal static unsafe class RcwMarshaller public static void GetNativeObject<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.Interfaces)] T>(T managedObject, IInspectable** nativeObject) where T : class { -#if WINDOWS_UWP - using ComPtr unknownObject = default; - - // On UWP, due to built-in COM/WinRT support, Marshal.GetIUnknownForObject can handle all the logic. - // We get back an IUnknown* pointer, so we need to QueryInterface for IInspectable* ourselves. - unknownObject.Attach((IUnknown*)Marshal.GetIUnknownForObject(managedObject)); - - unknownObject.CopyTo(nativeObject).Assert(); -#else - // On WinUI 3, delegate the RCW unwrapping or CCW creation logic to CsWinRT's APIs *nativeObject = (IInspectable*)MarshalInspectable.FromManaged(managedObject); -#endif } /// @@ -78,15 +52,9 @@ internal static unsafe class RcwMarshaller { using ComPtr unknownObject = default; -#if WINDOWS_UWP - unknownObject.Attach((IUnknown*)Marshal.GetIUnknownForObject(managedObject)); - - unknownObject.CopyTo(nativeObject).Assert(); -#else // Here we only want to get an IUnknown* pointer for a given interface, and then we'll do // QueryInterface ourselves to get the target COM type. So MarshalInterface is fine. unknownObject.Attach((IUnknown*)MarshalInterface.FromManaged(managedObject)); -#endif return unknownObject.CopyTo(nativeObject); } diff --git a/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs index f1990f56..97562833 100644 --- a/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs +++ b/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs @@ -3,22 +3,13 @@ using System.Diagnostics.CodeAnalysis; using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Extensions; using TerraFX.Interop.Windows; -#if WINDOWS_UWP -using TerraFX.Interop.WinRT; -#endif using Windows.Graphics.Effects; -#if !WINDOWS_UWP using WinRT; -#endif -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp.Helpers; -#else namespace ComputeSharp.D2D1.WinUI.Helpers; using CanvasDevice = Microsoft.Graphics.Canvas.CanvasDevice; using IInspectable = TerraFX.Interop.WinRT.IInspectable; -#endif /// /// A helper type to replicate Win2D's ResourceManager type. @@ -115,32 +106,6 @@ internal static unsafe class ResourceManager /// A pointer to the resulting activation factory. private static void GetActivationFactory(ICanvasFactoryNative** factoryNative) { -#if WINDOWS_UWP - const string activatableClassId = "Microsoft.Graphics.Canvas.CanvasDevice"; - - // On UWP, the WinRT types from Win2D are automatically registered for activation. - // This means we can simply use RoGetActivationFactory to retrieve the factory. - fixed (char* pActivatableClassId = activatableClassId) - { - HSTRING_HEADER hStringHeaderActivatableClassId; - HSTRING hStringActivatableClass; - - // Create a fast-pass HSTRING for "Microsoft.Graphics.Canvas.CanvasDevice" - WinRT.WindowsCreateStringReference( - sourceString: (ushort*)pActivatableClassId, - length: (uint)activatableClassId.Length, - hstringHeader: &hStringHeaderActivatableClassId, - @string: &hStringActivatableClass).Assert(); - - Guid canvasFactoryNativeId = typeof(ICanvasFactoryNative).GUID; - - // Get the activation factory for CanvasDevice - WinRT.RoGetActivationFactory( - activatableClassId: hStringActivatableClass, - iid: &canvasFactoryNativeId, - factory: (void**)factoryNative).Assert(); - } -#else // On WinUI 3, the types are not guaranteed to be registered for activation. Additionally, // for concistency with other types, we just use the built-in T.As() method, which will // automatically handle fallback logic to resolve types to activate if they're not registered. @@ -148,6 +113,5 @@ internal static unsafe class ResourceManager ICanvasFactoryNative.Interface canvasDeviceActivationFactory = CanvasDevice.As(); *factoryNative = (ICanvasFactoryNative*)MarshalInterface.FromManaged(canvasDeviceActivationFactory); -#endif } } diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs index a55b2506..467c1f5f 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs @@ -3,22 +3,14 @@ using System.Buffers; using System.Runtime.InteropServices; using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Extensions; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Helpers; -#endif using ComputeSharp.Interop; using TerraFX.Interop.Windows; using Windows.Foundation; using ICanvasEffect = Microsoft.Graphics.Canvas.Effects.ICanvasEffect; using ICanvasResourceCreatorWithDpi = Microsoft.Graphics.Canvas.ICanvasResourceCreatorWithDpi; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// unsafe partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs index 0fcc7e0e..eefa430b 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs @@ -3,22 +3,13 @@ using System.Runtime.CompilerServices; using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Extensions; using ComputeSharp.D2D1.Interop; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Extensions; -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Extensions; using ComputeSharp.D2D1.WinUI.Helpers; -#endif using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using TerraFX.Interop.WinRT; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// unsafe partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs index 140d13eb..3a23f23d 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs @@ -1,21 +1,13 @@ using System.Numerics; using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Extensions; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Helpers; -#endif using ComputeSharp.Interop; using TerraFX.Interop.Windows; using Windows.Foundation; using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// unsafe partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs index f63e388e..3a683c99 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs @@ -4,13 +4,8 @@ using System.Threading; using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Extensions; using ComputeSharp.D2D1.Interop; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Extensions; -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Extensions; using ComputeSharp.D2D1.WinUI.Helpers; -#endif using ComputeSharp.Interop; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -19,11 +14,7 @@ using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_D2D_IMAGE_FLAGS; using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_DEVICE_ASSOCIATION_TYPE; using Win32 = TerraFX.Interop.Windows.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// unsafe partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs index a24bdd4d..68b69134 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs @@ -3,15 +3,9 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Extensions; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Buffers; -using ComputeSharp.D2D1.Uwp.Extensions; -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Buffers; using ComputeSharp.D2D1.WinUI.Extensions; using ComputeSharp.D2D1.WinUI.Helpers; -#endif using ComputeSharp.Interop; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -24,11 +18,7 @@ using static TerraFX.Interop.DirectX.D2D1_DPICOMPENSATION_PROP; using static TerraFX.Interop.DirectX.D2D1_PROPERTY_TYPE; using Win32 = TerraFX.Interop.Windows.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// unsafe partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs index bc5e4f2f..afa2fa24 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs @@ -1,19 +1,11 @@ using System; using ComputeSharp.D2D1.Interop; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Extensions; -#else using ComputeSharp.D2D1.WinUI.Extensions; -#endif using ComputeSharp.Interop; using Microsoft.Graphics.Canvas; using TerraFX.Interop.DirectX; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// unsafe partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs index 5b47ee1d..3cd6822c 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.ResourceTextureManagerCollection.cs @@ -5,21 +5,12 @@ using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using ComputeSharp.D2D1.Interop; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Buffers; -using ComputeSharp.D2D1.Uwp.Collections; -#else using ComputeSharp.D2D1.WinUI.Buffers; using ComputeSharp.D2D1.WinUI.Collections; -#endif #pragma warning disable CS8767 -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.SourceCollection.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.SourceCollection.cs index 69c3369d..2b063129 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.SourceCollection.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.SourceCollection.cs @@ -4,20 +4,11 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Runtime.CompilerServices; using ComputeSharp.D2D1.Interop; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Buffers; -using ComputeSharp.D2D1.Uwp.Collections; -#else using ComputeSharp.D2D1.WinUI.Buffers; using ComputeSharp.D2D1.WinUI.Collections; -#endif using Windows.Graphics.Effects; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.cs index d171e39f..eb0fb811 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.cs @@ -3,11 +3,7 @@ using System.Diagnostics.CodeAnalysis; using ComputeSharp.D2D1.Interop; using Microsoft.Graphics.Canvas; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs index 97ce8fa2..76865d69 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs @@ -1,18 +1,10 @@ using System; using ComputeSharp.Interop; using System.Runtime.CompilerServices; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp.Helpers; -#else using ComputeSharp.D2D1.WinUI.Helpers; -#endif using TerraFX.Interop.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// partial class PixelShaderEffect diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs index 863d7176..7820cf68 100644 --- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs +++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs @@ -1,6 +1,4 @@ -#if !WINDOWS_UWP using System.Diagnostics.CodeAnalysis; -#endif using ABI.Microsoft.Graphics.Canvas; using ComputeSharp.D2D1.Descriptors; using ComputeSharp.D2D1.Interop; @@ -10,11 +8,7 @@ using Microsoft.Graphics.Canvas.Effects; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -#if WINDOWS_UWP -namespace ComputeSharp.D2D1.Uwp; -#else namespace ComputeSharp.D2D1.WinUI; -#endif /// /// A custom implementation powered by a supplied shader type. @@ -76,7 +70,6 @@ public sealed partial class PixelShaderEffect : IReferenceTrackedObject, ICan /// /// Creates a new instance. /// -#if !WINDOWS_UWP // Workaround for trimming bug in custom COM/WinRT components with CsWinRT. Without manually preserving metadata for // these types, using them will throw an InvalidCastException (see https://github.com/microsoft/CsWinRT/issues/1319). [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasImageInterop.Interface))] @@ -85,7 +78,6 @@ public sealed partial class PixelShaderEffect : IReferenceTrackedObject, ICan [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasFactoryNative.Interface.Vftbl))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasEffectFactoryNative.Interface))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasEffectFactoryNative.Interface.Vftbl))] -#endif public PixelShaderEffect() { using ReferenceTracker.Lease _0 = ReferenceTracker.Create(this, out this.referenceTracker); diff --git a/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.projitems b/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.projitems index cfa82c7b..60f2591b 100644 --- a/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.projitems +++ b/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.projitems @@ -75,7 +75,5 @@ - - \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/roapi/WinRT.cs b/src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/roapi/WinRT.cs deleted file mode 100644 index 0e955b67..00000000 --- a/src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/roapi/WinRT.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from winrt/roapi.h in the Windows SDK for Windows 10.0.22621.0 -// Original source is Copyright © Microsoft. All rights reserved. - -using System; -using System.Runtime.InteropServices; -using TerraFX.Interop.Windows; - -namespace TerraFX.Interop.WinRT; - -internal static unsafe partial class WinRT -{ - [DllImport("combase", ExactSpelling = true)] - public static extern HRESULT RoGetActivationFactory(HSTRING activatableClassId, [NativeTypeName("const IID &")] Guid* iid, void** factory); -} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/winstring/WinRT.cs b/src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/winstring/WinRT.cs deleted file mode 100644 index ef4c8562..00000000 --- a/src/TerraFX.Interop.Windows.D2D1/WinRT/winrt/winstring/WinRT.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from winrt/winstring.h in the Windows SDK for Windows 10.0.22621.0 -// Original source is Copyright © Microsoft. All rights reserved. - -using System.Runtime.InteropServices; -using TerraFX.Interop.Windows; - -namespace TerraFX.Interop.WinRT; - -internal static unsafe partial class WinRT -{ - [DllImport("combase", ExactSpelling = true)] - public static extern HRESULT WindowsCreateStringReference([NativeTypeName("PCWSTR")] ushort* sourceString, [NativeTypeName("UINT32")] uint length, HSTRING_HEADER* hstringHeader, HSTRING* @string); -} \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs index de80e4a1..f073f88b 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs @@ -1,15 +1,10 @@ using System; using System.Runtime.InteropServices; -#if WINDOWS_UWP -using System.Runtime.InteropServices.WindowsRuntime; -#endif using Microsoft.Graphics.Canvas; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -#if !WINDOWS_UWP using WinRT; using WinRT.Interop; -#endif #nullable enable @@ -30,15 +25,9 @@ internal static class Win2DHelper { using ComPtr activationFactoryUnknown = default; -#if WINDOWS_UWP - IActivationFactory activationFactory = WindowsRuntimeMarshal.GetActivationFactory(typeof(CanvasDevice)); - - activationFactoryUnknown.Attach((IUnknown*)Marshal.GetIUnknownForObject(activationFactory)); -#else ICanvasFactoryNative activationFactory = CanvasDevice.As(); activationFactoryUnknown.Attach((IUnknown*)MarshalInterface.FromManaged(activationFactory)); -#endif using ComPtr canvasFactoryNativeUnknown = default; @@ -53,11 +42,7 @@ internal static class Win2DHelper if (canvasDevice is not null) { -#if WINDOWS_UWP - canvasDeviceUnknown.Attach((IUnknown*)Marshal.GetIUnknownForObject(canvasDevice)); -#else canvasDeviceUnknown.Attach((IUnknown*)MarshalInspectable.FromManaged(canvasDevice)); -#endif } using ComPtr canvasDeviceInterfaceUnknown = default; @@ -83,11 +68,7 @@ internal static class Win2DHelper Marshal.ThrowExceptionForHR(hresult); // Get or create a managed object for the native object -#if WINDOWS_UWP - return Marshal.GetObjectForIUnknown((IntPtr)wrapperUnknown.Get()); -#else return MarshalInspectable.FromAbi((IntPtr)wrapperUnknown.Get()); -#endif } /// @@ -100,11 +81,7 @@ internal static class Win2DHelper { using ComPtr effectUnknown = default; -#if WINDOWS_UWP - effectUnknown.Attach((IUnknown*)Marshal.GetIUnknownForObject(canvasImage)); -#else effectUnknown.Attach((IUnknown*)MarshalInterface.FromManaged(canvasImage)); -#endif using ComPtr canvasImageInteropUnknown = default; @@ -117,11 +94,7 @@ internal static class Win2DHelper using ComPtr canvasDeviceUnknown = default; -#if WINDOWS_UWP - canvasDeviceUnknown.Attach((IUnknown*)Marshal.GetIUnknownForObject(canvasDevice)); -#else canvasDeviceUnknown.Attach((IUnknown*)MarshalInspectable.FromManaged(canvasDevice)); -#endif using ComPtr canvasDeviceInterfaceUnknown = default; @@ -145,7 +118,6 @@ internal static class Win2DHelper Marshal.ThrowExceptionForHR(hresult); } -#if !WINDOWS_UWP /// /// The managed interface for . /// @@ -166,5 +138,4 @@ internal static class Win2DHelper public static readonly IntPtr AbiToProjectionVftablePtr = IUnknownVftbl.AbiToProjectionVftblPtr; } } -#endif } \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs index dc5fccaf..b786e735 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs @@ -4,10 +4,6 @@ using System.IO; using System.Numerics; using System.Threading.Tasks; using ComputeSharp.D2D1.WinUI.Tests.Helpers; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp; -#else -#endif using ComputeSharp.SwapChain.Shaders.D2D1; using Microsoft.Graphics.Canvas; using Microsoft.Graphics.Canvas.Effects; diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs index 1482eb63..f44b0b74 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs @@ -3,10 +3,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using ComputeSharp.D2D1.Interop; using ComputeSharp.D2D1.WinUI.Tests.Helpers; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp; -#else -#endif using Microsoft.Graphics.Canvas; using Microsoft.VisualStudio.TestTools.UnitTesting; using TerraFX.Interop.DirectX; diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs index 7752916a..ed4eae97 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs @@ -4,10 +4,6 @@ using System.IO; using System.Threading.Tasks; using ComputeSharp.D2D1.Descriptors; using ComputeSharp.D2D1.WinUI.Tests.Helpers; -#if WINDOWS_UWP -using ComputeSharp.D2D1.Uwp; -#else -#endif using ComputeSharp.SwapChain.Shaders.D2D1; using Microsoft.Graphics.Canvas; using Microsoft.VisualStudio.TestTools.UnitTesting; From 8ed78fa00e9a2d944f4082b71b6fd032c74d1326 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 21:16:51 +0200 Subject: [PATCH 09/10] Remove Uwp projects from CI script --- .github/workflows/dotnet.yml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3fcb049c..63b9cf24 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -50,10 +50,6 @@ jobs: run: dotnet pack src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj -c Release - name: Build ComputeSharp.Pix package run: dotnet pack src\ComputeSharp.Pix\ComputeSharp.Pix.csproj -c Release - - name: Build ComputeSharp.Uwp package - run: msbuild src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj /restore -t:pack /p:Configuration=Release - - name: Build ComputeSharp.D2D1.Uwp package - run: msbuild src\ComputeSharp.D2D1.Uwp\ComputeSharp.D2D1.Uwp.csproj /restore -t:pack /p:Configuration=Release - name: Build ComputeSharp.WinUI package run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj /restore -t:pack /p:Configuration=Release - name: Build ComputeSharp.D2D1.WinUI package @@ -152,35 +148,19 @@ jobs: strategy: matrix: configuration: [Debug, Release] - framework: [uwp, wasdk] runs-on: windows-2022 steps: - name: Git checkout uses: actions/checkout@v3 - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.1 - - # Build the D2D1 UWP unit tests - - if: matrix.framework == 'uwp' - name: Build ComputeSharp.D2D1.Uwp.Tests - run: msbuild tests\ComputeSharp.D2D1.Uwp.Tests\ComputeSharp.D2D1.Uwp.Tests.csproj /restore -t:build /p:Configuration=${{matrix.configuration}} /p:Platform=x64 - - # Run the D2D1 UWP unit tests with VS Test (need to use vswhere to find the VS Test runner) - - if: matrix.framework == 'uwp' - name: Run ComputeSharp.D2D1.Uwp.Tests - run: > - $vs_path = vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop -requiresAny -property installationPath; - $vstest_path = join-path $vs_path 'Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe'; - & $vstest_path /Platform:x64 /framework:frameworkuap10 tests\ComputeSharp.D2D1.Uwp.Tests\bin\x64\${{matrix.configuration}}\ComputeSharp.D2D1.Uwp.Tests.build.appxrecipe # Build the D2D1 WinAppSDK unit tests - - if: matrix.framework == 'wasdk' - name: Build ComputeSharp.D2D1.WinUI.Tests + - name: Build ComputeSharp.D2D1.WinUI.Tests run: msbuild tests\ComputeSharp.D2D1.WinUI.Tests\ComputeSharp.D2D1.WinUI.Tests.csproj /restore -t:build /p:Configuration=${{matrix.configuration}} /p:Platform=x64 # Run the D2D1 WinAppSDK unit tests with VS Test again - - if: matrix.framework == 'wasdk' - name: Run ComputeSharp.D2D1.WinUI.Tests + - name: Run ComputeSharp.D2D1.WinUI.Tests run: > $vs_path = vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop -requiresAny -property installationPath; $vstest_path = join-path $vs_path 'Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe'; From be9de30b76765e0f64bc9200a0ef9fcd2779216b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 22:33:10 +0200 Subject: [PATCH 10/10] Remove all leftover UWP references across projects --- README.md | 4 ++-- src/ComputeSharp.Core/ComputeSharp.Core.csproj | 2 -- src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj | 1 - .../Shaders/Interop/D2D1InputDescription.cs | 6 ------ src/ComputeSharp/ComputeSharp.csproj | 1 - src/Directory.Build.props | 7 ------- src/Directory.Build.targets | 6 +++--- tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs | 2 -- .../Tests/CanvasEffectTests.cs | 2 -- tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs | 2 -- tests/Directory.Build.props | 3 --- 11 files changed, 5 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 1f1bd081..c3bb9bfa 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ The sample app is available in the Microsoft Store, showcasing several pixel sha | **ComputeSharp.Dynamic** | An extension for **ComputeSharp**, enabling dynamic shader compilation at runtime and shader metaprogramming | | **ComputeSharp.D3D12MemoryAllocator** | An extension for **ComputeSharp**, adding D3D12MA as the memory allocator for graphics resources. | | **ComputeSharp.Pix** | An extension library for **ComputeSharp**, enabling PIX support to produce debugging information | -| **ComputeSharp.Uwp** | A UWP library (targeting .NET Standard 2.0) with controls to render DX12 shaders powered by **ComputeSharp** | -| **ComputeSharp.WinUI** | A WinUI 3 library (targeting .NET 6) with controls to render DX12 shaders powered by **ComputeSharp** | +| **ComputeSharp.WinUI** | A WinUI 3 library with controls to render DX12 shaders powered by **ComputeSharp** | | **ComputeSharp.D2D1** | A library to write D2D1 pixel shaders entirely with C# code, and to easily register and create ID2D1Effect-s from them | +| **ComputeSharp.D2D1.WinUI** | A WinUI 3 library with custom effects for Win2D powered by **ComputeSharp.D2D1** | Preview builds are available at https://pkgs.computesharp.dev/index.json (as well as GitHub Packages). diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj index af45fa55..7022c387 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj +++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj @@ -8,10 +8,8 @@ - - diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj index 33456cca..2fdee2e1 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj @@ -5,7 +5,6 @@ - diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs index 45081c6a..0a403fd8 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs @@ -15,12 +15,6 @@ public readonly struct D2D1InputDescription /// /// The index of the resource the description belongs to. /// - /// - /// This field and the ones below are explicity used because this type is in the type layout of . - /// Since that type is used in an unmanaged context, MCG will produce a shadow copy to inform the runtime marshaller. Such a shallow copy - /// cannot process the type if it has unspeakable names in any of its members, which is the case for the generated fields. As such, this - /// type has to use explicit fields here and not readonly autoproperties, or compiling a project using ComputeSharp.D2D1 would fail on UWP. - /// private readonly int index; /// diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index a5d08ede..121ff07d 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -8,7 +8,6 @@ - diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 19fabcad..00d7ce1c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -13,9 +13,6 @@ - - - @@ -28,9 +25,6 @@ - - - @@ -38,7 +32,6 @@ $(PackageTags) d2d d2d1 direct2d pixel - $(PackageTags) uwp winui $(PackageTags) winui winui3 wasdk diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index a1986002..c605755e 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -69,10 +69,10 @@ - - + - + <_Parameter1>false diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs index f073f88b..e4b3e30a 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Helpers/Win2DHelper.cs @@ -6,8 +6,6 @@ using TerraFX.Interop.Windows; using WinRT; using WinRT.Interop; -#nullable enable - namespace ComputeSharp.D2D1.WinUI.Tests.Helpers; /// diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs index b786e735..8f549f15 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs @@ -13,8 +13,6 @@ using Windows.Foundation; using Windows.Storage; using Windows.UI; -#nullable enable - namespace ComputeSharp.D2D1.WinUI.Tests; [TestClass] diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs index ed4eae97..f88d6311 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs @@ -10,8 +10,6 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using Windows.Storage; using Windows.UI; -#nullable enable - namespace ComputeSharp.D2D1.WinUI.Tests; [TestClass] diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props index 654a3725..cf9c02d4 100644 --- a/tests/Directory.Build.props +++ b/tests/Directory.Build.props @@ -18,9 +18,6 @@ $(NoWarn);IDE0065 - - $(NoWarn);IDE0240 - $(NoWarn);IDE0251