diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 3db33d13..0ad476a6 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -154,7 +154,7 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.D2D1.UI.Tests" 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", "{4D5019D5-3D1F-48C0-B134-7F01F93A3573}" +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 Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -432,14 +432,18 @@ Global {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 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Debug|ARM64.Build.0 = Debug|ARM64 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Debug|x64.ActiveCfg = Debug|x64 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Debug|x64.Build.0 = Debug|x64 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Release|ARM64.ActiveCfg = Release|ARM64 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Release|ARM64.Build.0 = Release|ARM64 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Release|x64.ActiveCfg = Release|x64 - {4D5019D5-3D1F-48C0-B134-7F01F93A3573}.Release|x64.Build.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 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Debug|x64.ActiveCfg = Debug|x64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Debug|x64.Build.0 = Debug|x64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Debug|x64.Deploy.0 = Debug|x64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Release|ARM64.ActiveCfg = Release|ARM64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Release|ARM64.Build.0 = Release|ARM64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Release|ARM64.Deploy.0 = Release|ARM64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Release|x64.ActiveCfg = Release|x64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Release|x64.Build.0 = Release|x64 + {73C32D0F-64DB-4674-84E9-8FCC41228474}.Release|x64.Deploy.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -479,7 +483,7 @@ Global {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} - {4D5019D5-3D1F-48C0-B134-7F01F93A3573} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} + {73C32D0F-64DB-4674-84E9-8FCC41228474} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC} @@ -498,11 +502,11 @@ Global 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 - samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{4d5019d5-3d1f-48c0-b134-7f01f93a3573}*SharedItemsImports = 5 - tests\ComputeSharp.D2D1.UI.Tests\ComputeSharp.D2D1.UI.Tests.projitems*{4d5019d5-3d1f-48c0-b134-7f01f93a3573}*SharedItemsImports = 5 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.Uwp.Tests/Package.appxmanifest b/tests/ComputeSharp.D2D1.Uwp.Tests/Package.appxmanifest index 24fb011e..5ffa2d0e 100644 --- a/tests/ComputeSharp.D2D1.Uwp.Tests/Package.appxmanifest +++ b/tests/ComputeSharp.D2D1.Uwp.Tests/Package.appxmanifest @@ -5,9 +5,10 @@ xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" IgnorableNamespaces="uap mp"> - + diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml b/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml new file mode 100644 index 00000000..e2692d1f --- /dev/null +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml.cs new file mode 100644 index 00000000..335c3778 --- /dev/null +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml.cs @@ -0,0 +1,25 @@ +using System; +using Microsoft.UI.Xaml; +using Microsoft.VisualStudio.TestPlatform.TestExecutor; + +namespace ComputeSharp.D2D1.WinUI.Tests; + +/// +/// Provides application-specific behavior to supplement the default Application class. +/// +public partial class App : Application +{ + /// + /// Creates a new instance. + /// + public App() + { + InitializeComponent(); + } + + /// + protected override void OnLaunched(LaunchActivatedEventArgs args) + { + UnitTestClient.Run(Environment.CommandLine); + } +} diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/LockScreenLogo.scale-200.png b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 00000000..7440f0d4 Binary files /dev/null and b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/LockScreenLogo.scale-200.png differ diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/SplashScreen.scale-200.png b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/SplashScreen.scale-200.png new file mode 100644 index 00000000..32f486a8 Binary files /dev/null and b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/SplashScreen.scale-200.png differ diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square150x150Logo.scale-200.png b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 00000000..53ee3777 Binary files /dev/null and b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square150x150Logo.scale-200.png differ diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square44x44Logo.scale-200.png b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square44x44Logo.scale-200.png new file mode 100644 index 00000000..f713bba6 Binary files /dev/null and b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square44x44Logo.scale-200.png differ diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 00000000..dc9f5bea Binary files /dev/null and b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/StoreLogo.png b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/StoreLogo.png new file mode 100644 index 00000000..a4586f26 Binary files /dev/null and b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/StoreLogo.png differ diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Wide310x150Logo.scale-200.png b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Wide310x150Logo.scale-200.png new file mode 100644 index 00000000..8b4a5d0d Binary files /dev/null and b/tests/ComputeSharp.D2D1.WinUI.Tests/Assets/Wide310x150Logo.scale-200.png differ 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 5b310862..d53a7513 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj @@ -1,14 +1,62 @@ - net6.0-windows10.0.22621 + WinExe + net6.0-windows10.0.22621.0 + 10.0.17763.0 + app.manifest x64;ARM64 + win10-x64;win10-arm64 + win10-$(Platform).pubxml + true + true - - - + + 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 + + + + + + + + + + + + + + + + + @@ -19,6 +67,29 @@ + + + + + + + + + + + + + true + + diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Package.appxmanifest b/tests/ComputeSharp.D2D1.WinUI.Tests/Package.appxmanifest new file mode 100644 index 00000000..adbf9a7a --- /dev/null +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Package.appxmanifest @@ -0,0 +1,49 @@ + + + + + + + + ComputeSharp.D2D1.WinUI.Tests + sergiopedri + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/PublishProfiles/win10-arm64.pubxml b/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/PublishProfiles/win10-arm64.pubxml new file mode 100644 index 00000000..13886493 --- /dev/null +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/PublishProfiles/win10-arm64.pubxml @@ -0,0 +1,14 @@ + + + + FileSystem + ARM64 + win10-arm64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + false + false + true + false + + \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/PublishProfiles/win10-x64.pubxml b/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/PublishProfiles/win10-x64.pubxml new file mode 100644 index 00000000..f76db08c --- /dev/null +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/PublishProfiles/win10-x64.pubxml @@ -0,0 +1,14 @@ + + + + FileSystem + x64 + win10-x64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + false + false + true + false + + \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/launchSettings.json b/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/launchSettings.json new file mode 100644 index 00000000..e6724a08 --- /dev/null +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "ComputeSharp.D2D1.WinUI.Tests (Package)": { + "commandName": "MsixPackage" + }, + "ComputeSharp.D2D1.WinUI.Tests (Unpackaged)": { + "commandName": "Project" + } + } +} \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/app.manifest b/tests/ComputeSharp.D2D1.WinUI.Tests/app.manifest new file mode 100644 index 00000000..f2f15019 --- /dev/null +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/app.manifest @@ -0,0 +1,17 @@ + + + + + + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + \ No newline at end of file