From be9de30b76765e0f64bc9200a0ef9fcd2779216b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 22:33:10 +0200 Subject: [PATCH] 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