diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 2f3abadc..0e19890b 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -91,7 +91,7 @@ jobs:
run: dotnet test tests\ComputeSharp.Tests.SourceGenerators\ComputeSharp.Tests.SourceGenerators.csproj -v n -l "console;verbosity=detailed"
shell: cmd
- # Run all the D2D1 unit tests (referencing ComputeSharp.D2D1Interop)
+ # Run all the D2D1 unit tests (referencing ComputeSharp.D2D1)
run-d2d1-tests:
if: success()
needs: [build-solution-debug, build-solution-release]
@@ -103,8 +103,8 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- - name: Run ComputeSharp.D2D1Interop.Tests
- run: dotnet test tests\ComputeSharp.D2D1Interop.Tests\ComputeSharp.D2D1Interop.Tests.csproj -c Release -v n -l "console;verbosity=detailed"
+ - name: Run ComputeSharp.D2D1.Tests
+ run: dotnet test tests\ComputeSharp.D2D1.Tests\ComputeSharp.D2D1.Tests.csproj -c Release -v n -l "console;verbosity=detailed"
shell: cmd
# Run all the local samples to ensure they build and run with no errors
@@ -209,14 +209,14 @@ jobs:
with:
name: ComputeSharp.Dynamic.nupkg
path: src\ComputeSharp.Dynamic.Package\bin\Release\*.nupkg
- - name: Build ComputeSharp.D2D1Interop package
- run: dotnet build src\ComputeSharp.D2D1Interop.Package\ComputeSharp.D2D1Interop.Package.msbuildproj -c Release /p:ContinuousIntegrationBuild=True
+ - name: Build ComputeSharp.D2D1 package
+ run: dotnet build src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj -c Release /p:ContinuousIntegrationBuild=True
shell: cmd
- - name: Upload ComputeSharp.D2D1Interop package artifact
+ - name: Upload ComputeSharp.D2D1 package artifact
uses: actions/upload-artifact@v2
with:
- name: ComputeSharp.D2D1Interop.nupkg
- path: src\ComputeSharp.D2D1Interop.Package\bin\Release\*.nupkg
+ name: ComputeSharp.D2D1.nupkg
+ path: src\ComputeSharp.D2D1.Package\bin\Release\*.nupkg
# Download the NuGet packages generated in the previous job and use them
# to build and run the sample project referencing them. This is used as
diff --git a/ComputeSharp.sln b/ComputeSharp.sln
index 945e4d6c..b8413535 100644
--- a/ComputeSharp.sln
+++ b/ComputeSharp.sln
@@ -31,7 +31,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuGet", "NuGet", "{FB17EF84-9208-47AC-921F-680CB1DAD8BA}"
ProjectSection(SolutionItems) = preProject
src\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj = src\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj
- src\ComputeSharp.D2D1Interop.Package\ComputeSharp.D2D1Interop.Package.msbuildproj = src\ComputeSharp.D2D1Interop.Package\ComputeSharp.D2D1Interop.Package.msbuildproj
+ src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj = src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj
src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj = src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj
src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj = src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj
src\ComputeSharp.Core.Package\icon.png = src\ComputeSharp.Core.Package\icon.png
@@ -78,11 +78,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Dynamic", "src
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "TerraFX.Interop.Windows.Dynamic", "src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.shproj", "{158F984D-CD96-4062-BD02-2268946031A0}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1Interop", "src\ComputeSharp.D2D1Interop\ComputeSharp.D2D1Interop.csproj", "{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1", "src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj", "{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}"
EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "TerraFX.Interop.Windows.D2D1Interop", "src\TerraFX.Interop.Windows.D2D1Interop\TerraFX.Interop.Windows.D2D1Interop.shproj", "{9DA1DA9F-F8B2-4B25-BE80-C21F773029E3}"
+Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "TerraFX.Interop.Windows.D2D1", "src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.shproj", "{9DA1DA9F-F8B2-4B25-BE80-C21F773029E3}"
EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.D2D1Interop.NetStandard", "src\ComputeSharp.D2D1Interop.NetStandard\ComputeSharp.D2D1Interop.NetStandard.shproj", "{2608EB41-F98B-4BE5-9F4D-68FED6115088}"
+Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.D2D1.NetStandard", "src\ComputeSharp.D2D1.NetStandard\ComputeSharp.D2D1.NetStandard.shproj", "{2608EB41-F98B-4BE5-9F4D-68FED6115088}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Core", "src\ComputeSharp.Core\ComputeSharp.Core.csproj", "{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}"
EndProject
@@ -90,13 +90,13 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.Core.NetStanda
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Core.SourceGenerators", "src\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj", "{BFB003D1-788B-48DE-8065-39479C162CB0}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1Interop.SourceGenerators", "src\ComputeSharp.D2D1Interop.SourceGenerators\ComputeSharp.D2D1Interop.SourceGenerators.csproj", "{E44053BD-A761-47FB-AA78-087A599672EA}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.SourceGenerators", "src\ComputeSharp.D2D1.SourceGenerators\ComputeSharp.D2D1.SourceGenerators.csproj", "{E44053BD-A761-47FB-AA78-087A599672EA}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.SourceGeneration", "src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.shproj", "{51D5A422-D3A5-4C4D-8A6D-A048940BF279}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.SourceGeneration.Hlsl", "src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.shproj", "{9AC496A3-BBF0-4C8F-A50D-A20BF01C5E05}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1Interop.Tests", "tests\ComputeSharp.D2D1Interop.Tests\ComputeSharp.D2D1Interop.Tests.csproj", "{209C95A3-FA53-431B-B688-3299CA6C29D2}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests", "tests\ComputeSharp.D2D1.Tests\ComputeSharp.D2D1.Tests.csproj", "{209C95A3-FA53-431B-B688-3299CA6C29D2}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
@@ -105,12 +105,12 @@ Global
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
- src\ComputeSharp.D2D1Interop.NetStandard\ComputeSharp.D2D1Interop.NetStandard.projitems*{2608eb41-f98b-4be5-9f4d-68fed6115088}*SharedItemsImports = 13
+ src\ComputeSharp.D2D1.NetStandard\ComputeSharp.D2D1.NetStandard.projitems*{2608eb41-f98b-4be5-9f4d-68fed6115088}*SharedItemsImports = 13
src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{314eb353-e7e3-4146-8111-685cc83ec1de}*SharedItemsImports = 5
src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{314eb353-e7e3-4146-8111-685cc83ec1de}*SharedItemsImports = 5
src\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems*{3acacf03-6b20-40ba-b8ec-11ac1624d2c9}*SharedItemsImports = 13
- src\ComputeSharp.D2D1Interop.NetStandard\ComputeSharp.D2D1Interop.NetStandard.projitems*{4d7d9ba8-a821-4b1c-9ee2-cbcf5849906e}*SharedItemsImports = 5
- src\TerraFX.Interop.Windows.D2D1Interop\TerraFX.Interop.Windows.D2D1Interop.projitems*{4d7d9ba8-a821-4b1c-9ee2-cbcf5849906e}*SharedItemsImports = 5
+ src\ComputeSharp.D2D1.NetStandard\ComputeSharp.D2D1.NetStandard.projitems*{4d7d9ba8-a821-4b1c-9ee2-cbcf5849906e}*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.Sample.Shared\ComputeSharp.Sample.Shared.projitems*{7048deea-0a6f-46a0-b951-b682a8f1cb75}*SharedItemsImports = 5
@@ -119,16 +119,16 @@ Global
src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{76c66257-fdaa-47ab-85e7-ef757eab10c0}*SharedItemsImports = 5
samples\ComputeSharp.Sample.Shared\ComputeSharp.Sample.Shared.projitems*{8cefc324-ca6c-4845-9ad9-70b92bd87057}*SharedItemsImports = 13
src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.projitems*{9ac496a3-bbf0-4c8f-a50d-a20bf01c5e05}*SharedItemsImports = 13
- src\TerraFX.Interop.Windows.D2D1Interop\TerraFX.Interop.Windows.D2D1Interop.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13
+ src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13
src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{a5997814-d8d2-4541-87ac-c3e53caa67c0}*SharedItemsImports = 13
src\ComputeSharp.UI\ComputeSharp.UI.projitems*{afaafdc9-be42-45d4-8c79-0ee8c8edbf52}*SharedItemsImports = 5
src\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5
src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5
src\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems*{e44053bd-a761-47fb-aa78-087a599672ea}*SharedItemsImports = 5
- src\ComputeSharp.D2D1Interop.NetStandard\ComputeSharp.D2D1Interop.NetStandard.projitems*{e44053bd-a761-47fb-aa78-087a599672ea}*SharedItemsImports = 5
+ src\ComputeSharp.D2D1.NetStandard\ComputeSharp.D2D1.NetStandard.projitems*{e44053bd-a761-47fb-aa78-087a599672ea}*SharedItemsImports = 5
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.D2D1Interop\TerraFX.Interop.Windows.D2D1Interop.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
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.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5
diff --git a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs b/src/ComputeSharp.Core/Properties/AssemblyInfo.cs
index c304de2b..0a698d43 100644
--- a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs
+++ b/src/ComputeSharp.Core/Properties/AssemblyInfo.cs
@@ -6,4 +6,4 @@
[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
[assembly: InternalsVisibleTo("ComputeSharp.Uwp")]
[assembly: InternalsVisibleTo("ComputeSharp.WinUI")]
-[assembly: InternalsVisibleTo("ComputeSharp.D2D1Interop")]
\ No newline at end of file
+[assembly: InternalsVisibleTo("ComputeSharp.D2D1")]
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1Interop.NetStandard/ComputeSharp.D2D1Interop.NetStandard.projitems b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
similarity index 94%
rename from src/ComputeSharp.D2D1Interop.NetStandard/ComputeSharp.D2D1Interop.NetStandard.projitems
rename to src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
index 1148036b..897c1c96 100644
--- a/src/ComputeSharp.D2D1Interop.NetStandard/ComputeSharp.D2D1Interop.NetStandard.projitems
+++ b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
@@ -6,7 +6,7 @@
2608eb41-f98b-4be5-9f4d-68fed6115088
- ComputeSharp.D2D1Interop.NetStandard
+ ComputeSharp.D2D1.NetStandard
diff --git a/src/ComputeSharp.D2D1Interop.NetStandard/ComputeSharp.D2D1Interop.NetStandard.shproj b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.shproj
similarity index 91%
rename from src/ComputeSharp.D2D1Interop.NetStandard/ComputeSharp.D2D1Interop.NetStandard.shproj
rename to src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.shproj
index a0343881..78c7c427 100644
--- a/src/ComputeSharp.D2D1Interop.NetStandard/ComputeSharp.D2D1Interop.NetStandard.shproj
+++ b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.shproj
@@ -8,6 +8,6 @@
-
+
diff --git a/src/ComputeSharp.D2D1Interop.NetStandard/System/Diagnostics.CodeAnalysis/DoesNotReturnAttribute.cs b/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DoesNotReturnAttribute.cs
similarity index 100%
rename from src/ComputeSharp.D2D1Interop.NetStandard/System/Diagnostics.CodeAnalysis/DoesNotReturnAttribute.cs
rename to src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DoesNotReturnAttribute.cs
diff --git a/src/ComputeSharp.D2D1Interop.NetStandard/System/Runtime/CompilerServices/RuntimeHelpers.cs b/src/ComputeSharp.D2D1.NetStandard/System/Runtime/CompilerServices/RuntimeHelpers.cs
similarity index 88%
rename from src/ComputeSharp.D2D1Interop.NetStandard/System/Runtime/CompilerServices/RuntimeHelpers.cs
rename to src/ComputeSharp.D2D1.NetStandard/System/Runtime/CompilerServices/RuntimeHelpers.cs
index 3f99a60d..b7a2c4ee 100644
--- a/src/ComputeSharp.D2D1Interop.NetStandard/System/Runtime/CompilerServices/RuntimeHelpers.cs
+++ b/src/ComputeSharp.D2D1.NetStandard/System/Runtime/CompilerServices/RuntimeHelpers.cs
@@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
-namespace ComputeSharp.D2D1Interop.NetStandard.System.Runtime.CompilerServices;
+namespace ComputeSharp.D2D1.NetStandard.System.Runtime.CompilerServices;
///
/// A polyfill type that mirrors some methods from on .NET 5.
diff --git a/src/ComputeSharp.D2D1Interop.NetStandard/System/Text/EncodingExtensions.cs b/src/ComputeSharp.D2D1.NetStandard/System/Text/EncodingExtensions.cs
similarity index 94%
rename from src/ComputeSharp.D2D1Interop.NetStandard/System/Text/EncodingExtensions.cs
rename to src/ComputeSharp.D2D1.NetStandard/System/Text/EncodingExtensions.cs
index 7d1e31e3..2beda15a 100644
--- a/src/ComputeSharp.D2D1Interop.NetStandard/System/Text/EncodingExtensions.cs
+++ b/src/ComputeSharp.D2D1.NetStandard/System/Text/EncodingExtensions.cs
@@ -2,7 +2,7 @@
using System.Runtime.InteropServices;
using System.Text;
-namespace ComputeSharp.D2D1Interop.NetStandard.System.Text;
+namespace ComputeSharp.D2D1.NetStandard.System.Text;
///
/// A polyfill type that mirrors some methods from on .NET 5.
diff --git a/src/ComputeSharp.D2D1Interop.Package/ComputeSharp.D2D1Interop.Package.msbuildproj b/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj
similarity index 61%
rename from src/ComputeSharp.D2D1Interop.Package/ComputeSharp.D2D1Interop.Package.msbuildproj
rename to src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj
index b4417082..2e056410 100644
--- a/src/ComputeSharp.D2D1Interop.Package/ComputeSharp.D2D1Interop.Package.msbuildproj
+++ b/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj
@@ -5,9 +5,9 @@
- ComputeSharp.D2D1Interop
- ComputeSharp.D2D1Interop
- A library containing basic primitives to support ComputeSharp (this package is not supposed to be referenced directly by developers)
+ ComputeSharp.D2D1
+ ComputeSharp.D2D1
+ A library to write D2D1 pixel shaders entirely with C# code, and to easily register and create ID2D1Effect-s from them
@@ -15,8 +15,8 @@
-
-
+
+
PackageVersion=$(PackageVersion)
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/AnalyzerReleases.Shipped.md b/src/ComputeSharp.D2D1.SourceGenerators/AnalyzerReleases.Shipped.md
new file mode 100644
index 00000000..7f490bdf
--- /dev/null
+++ b/src/ComputeSharp.D2D1.SourceGenerators/AnalyzerReleases.Shipped.md
@@ -0,0 +1,43 @@
+; Shipped analyzer releases
+; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
+
+## Release 1.0
+
+### New Rules
+
+Rule ID | Category | Severity | Notes
+--------|----------|----------|-------
+CMPSD2D0001 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0002 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0003 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0004 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0005 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0006 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0007 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0008 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0009 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0010 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0011 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0012 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0013 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0014 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0015 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0016 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0017 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0018 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0019 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0020 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0021 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0022 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0023 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0024 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0025 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0026 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0027 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0028 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0029 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0030 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0031 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0032 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0033 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+CMPSD2D0034 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/AnalyzerReleases.Unshipped.md b/src/ComputeSharp.D2D1.SourceGenerators/AnalyzerReleases.Unshipped.md
similarity index 100%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/AnalyzerReleases.Unshipped.md
rename to src/ComputeSharp.D2D1.SourceGenerators/AnalyzerReleases.Unshipped.md
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ComputeSharp.D2D1Interop.SourceGenerators.csproj b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj
similarity index 68%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ComputeSharp.D2D1Interop.SourceGenerators.csproj
rename to src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj
index fe08f3b8..095fcb7d 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ComputeSharp.D2D1Interop.SourceGenerators.csproj
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj
@@ -3,7 +3,7 @@
netstandard2.0
false
- ComputeSharp.D2D1Interop.SourceGenerators
+ ComputeSharp.D2D1.SourceGenerators
$(NoWarn);CS1591;CS0649;CS1574
@@ -62,24 +62,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -99,6 +99,6 @@
-
-
+
+
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs b/src/ComputeSharp.D2D1.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
similarity index 92%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
index c1459a22..0175dd9a 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
@@ -1,6 +1,6 @@
using Microsoft.CodeAnalysis;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics;
+namespace ComputeSharp.D2D1.SourceGenerators.Diagnostics;
#pragma warning disable IDE0090 // Use 'new(...)'
@@ -19,7 +19,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0001",
title: "Invalid shader field",
messageFormat: "The compute shader of type {0} contains a field \"{1}\" of an invalid type {2}",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A type representing a compute shader contains a field of a type that is not supported in HLSL.",
@@ -35,7 +35,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0002",
title: "Invalid object creation expression",
messageFormat: "The type {0} cannot be created in a compute shader (only unmanaged types are supported)",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "Only unmanaged value type objects can be created in a compute shader.",
@@ -48,7 +48,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0003",
title: "Anonymous object creation expression",
messageFormat: "An anonymous object cannot be created in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "An anonymous object cannot be created in a compute shader.",
@@ -61,7 +61,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0004",
title: "Async modifier on method or function",
messageFormat: "The async modifier cannot be used in methods or functions used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The async modifier cannot be used in methods or functions used in a compute shader.",
@@ -74,7 +74,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0005",
title: "Await expression",
messageFormat: "The await expression cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The await expression cannot be used in a compute shader.",
@@ -87,7 +87,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0006",
title: "Checked expression",
messageFormat: "A checked expression cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A checked expression cannot be used in a compute shader.",
@@ -100,7 +100,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0007",
title: "Checked statement",
messageFormat: "A checked statement cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A checked statement cannot be used in a compute shader.",
@@ -113,7 +113,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0008",
title: "Fixed statement",
messageFormat: "A fixed statement cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A fixed statement cannot be used in a compute shader.",
@@ -126,7 +126,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0009",
title: "Foreach statement",
messageFormat: "A foreach statement cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A foreach statement cannot be used in a compute shader.",
@@ -139,7 +139,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0010",
title: "Foreach statement",
messageFormat: "A lock statement cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A lock statement cannot be used in a compute shader.",
@@ -152,7 +152,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0011",
title: "Foreach statement",
messageFormat: "A LINQ query expression cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A LINQ query expression cannot be used in a compute shader.",
@@ -165,7 +165,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0012",
title: "Range expression",
messageFormat: "A range expression cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A range expression cannot be used in a compute shader.",
@@ -178,7 +178,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0013",
title: "Recursive pattern",
messageFormat: "A recursive pattern cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A recursive pattern cannot be used in a compute shader.",
@@ -191,7 +191,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0014",
title: "Ref type",
messageFormat: "A compute shader cannot have a ref type declaration",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A compute shader cannot have a ref type declaration.",
@@ -204,7 +204,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0015",
title: "Relational pattern",
messageFormat: "A relational pattern cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A relational pattern cannot be used in a compute shader.",
@@ -217,7 +217,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0016",
title: "Sizeof expression",
messageFormat: "A sizeof expression cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A sizeof expression cannot be used in a compute shader.",
@@ -230,7 +230,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0017",
title: "Stackalloc expression",
messageFormat: "A stackalloc expression cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A stackalloc expression cannot be used in a compute shader.",
@@ -243,7 +243,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0018",
title: "Throw expression or statement",
messageFormat: "Throw expressions and statements cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "Throw expressions and statements cannot be used in a compute shader.",
@@ -256,7 +256,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0019",
title: "Try statement",
messageFormat: "A try statement cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A try statement cannot be used in a compute shader.",
@@ -269,7 +269,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0020",
title: "Tuple type",
messageFormat: "A compute shader cannot have a tuple type declaration",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A compute shader cannot have a tuple type declaration.",
@@ -282,7 +282,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0021",
title: "Using statement or declaration",
messageFormat: "Using statements and declarations cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "Using statements and declarations cannot be used in a compute shader.",
@@ -295,7 +295,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0022",
title: "Yield statement",
messageFormat: "A yield statement cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A yield statement cannot be used in a compute shader.",
@@ -311,7 +311,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0023",
title: "Invalid object declaration",
messageFormat: "A variable of type {0} cannot be declared in a compute shader (only unmanaged types are supported)",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "Only unmanaged value type objects can be declared in a compute shader.",
@@ -324,7 +324,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0024",
title: "Pointer type",
messageFormat: "A compute shader cannot have a pointer type declaration",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A compute shader cannot have a pointer type declaration.",
@@ -337,7 +337,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0025",
title: "Function pointer type",
messageFormat: "A compute shader cannot have a function pointer type declaration",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A compute shader cannot have a function pointer type declaration.",
@@ -350,7 +350,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0026",
title: "Unsafe statement",
messageFormat: "A compute shader cannot have an unsafe statement",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A compute shader cannot have an unsafe statement.",
@@ -363,7 +363,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0027",
title: "Unsafe modifier on method or function",
messageFormat: "The unsafe modifier cannot be used in methods or functions used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The unsafe modifier cannot be used in methods or functions used in a compute shader.",
@@ -376,7 +376,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0028",
title: "String literal expression",
messageFormat: "String literal expressions cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "String literal expressions cannot be used in a compute shader.",
@@ -389,7 +389,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0029",
title: "Non constant matrix swizzled property argument",
messageFormat: "The arguments in a swizzled indexer for a matrix type must be compile-time constants",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The arguments in a swizzled indexer for a matrix type must be compile-time constants.",
@@ -405,7 +405,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0030",
title: "Invalid shader static readonly field type",
messageFormat: "The compute shader of type {0} contains a static readonly field \"{1}\" of an invalid type {2} (only primitive, vector and matrix types are supported)",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A type representing a compute shader contains a static readonly field of a type that is not supported.",
@@ -418,7 +418,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0031",
title: "Property declaration",
messageFormat: "Property declarations cannot be used in a compute shader",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "Property declarations cannot be used in a compute shader.",
@@ -434,7 +434,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0032",
title: "Shader dispatch data size exceeded",
messageFormat: "The compute shader of type {0} has exceeded the maximum allowed size for captured values and resources",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The compute shader of type {0} has exceeded the maximum allowed size for captured values and resources.",
@@ -450,7 +450,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0033",
title: "Embedded bytecode compilation failed due to Win32 exception",
messageFormat: "The shader of type {0} failed to compile due to a Win32 exception (HRESULT: {1:X8}, Message: \"{2}\")",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The embedded bytecode for a shader failed to be compiled due to a Win32 exception.",
@@ -466,7 +466,7 @@ internal static class DiagnosticDescriptors
id: "CMPSD2D0034",
title: "Embedded bytecode compilation failed due to an HLSL compiler error",
messageFormat: "The shader of type {0} failed to compile due to an HLSL compiler error (Message: \"{1}\")",
- category: "ComputeSharp.D2D1Interop.Shaders",
+ category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The embedded bytecode for a shader failed to be compiled due to an HLSL compiler error.",
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.Syntax.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.Syntax.cs
similarity index 83%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.Syntax.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.Syntax.cs
index e1a06c0e..9676c21f 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.Syntax.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.Syntax.cs
@@ -1,11 +1,11 @@
-using ComputeSharp.D2D1Interop.__Internals;
+using ComputeSharp.D2D1.__Internals;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
partial class ID2D1ShaderGenerator
@@ -22,13 +22,13 @@ partial class ID2D1ShaderGenerator
{
// This code produces a method declaration as follows:
//
- // readonly void global::ComputeSharp.D2D1Interop.__Internals.ID2D1Shader.BuildHlslSource(out string hlslSource)
+ // readonly void global::ComputeSharp.D2D1.__Internals.ID2D1Shader.BuildHlslSource(out string hlslSource)
// {
// hlslSource = ;
// }
return
MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier("BuildHlslSource"))
- .WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.D2D1Interop.__Internals.{nameof(ID2D1Shader)}")))
+ .WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.D2D1.__Internals.{nameof(ID2D1Shader)}")))
.AddModifiers(Token(SyntaxKind.ReadOnlyKeyword))
.AddParameterListParameters(
Parameter(Identifier("hlslSource")).AddModifiers(Token(SyntaxKind.OutKeyword)).WithType(PredefinedType(Token(SyntaxKind.StringKeyword))))
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.cs
index a18bbba2..d39b44d9 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateBuildHlslSourceMethod.cs
@@ -3,20 +3,20 @@ using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
-using ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics;
-using ComputeSharp.D2D1Interop.SourceGenerators.SyntaxRewriters;
+using ComputeSharp.D2D1.SourceGenerators.Diagnostics;
+using ComputeSharp.D2D1.SourceGenerators.SyntaxRewriters;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
using ComputeSharp.SourceGeneration.Mappings;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-using static ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics.DiagnosticDescriptors;
+using static ComputeSharp.D2D1.SourceGenerators.Diagnostics.DiagnosticDescriptors;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
#pragma warning disable CS0618, RS1024
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
partial class ID2D1ShaderGenerator
@@ -387,16 +387,16 @@ partial class ID2D1ShaderGenerator
{
switch (attributeData.AttributeClass?.GetFullMetadataName())
{
- case "ComputeSharp.D2D1Interop.D2DInputCountAttribute":
+ case "ComputeSharp.D2D1.D2DInputCountAttribute":
inputCount = (int)attributeData.ConstructorArguments[0].Value!;
break;
- case "ComputeSharp.D2D1Interop.D2DInputSimpleAttribute":
+ case "ComputeSharp.D2D1.D2DInputSimpleAttribute":
inputSimpleIndicesBuilder.Add((int)attributeData.ConstructorArguments[0].Value!);
break;
- case "ComputeSharp.D2D1Interop.D2DInputComplexAttribute":
+ case "ComputeSharp.D2D1.D2DInputComplexAttribute":
inputComplexIndicesBuilder.Add((int)attributeData.ConstructorArguments[0].Value!);
break;
- case "ComputeSharp.D2D1Interop.D2DRequiresScenePositionAttribute":
+ case "ComputeSharp.D2D1.D2DRequiresScenePositionAttribute":
requiresScenePosition = true;
break;
default:
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs
similarity index 92%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs
index 16e64716..27be5445 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs
@@ -1,7 +1,7 @@
using System;
using ComputeSharp.__Internals;
-using ComputeSharp.D2D1Interop.__Internals;
-using ComputeSharp.D2D1Interop.SourceGenerators.Models;
+using ComputeSharp.D2D1.__Internals;
+using ComputeSharp.D2D1.SourceGenerators.Models;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -9,7 +9,7 @@ using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
partial class ID2D1ShaderGenerator
@@ -38,7 +38,7 @@ partial class ID2D1ShaderGenerator
// This code produces a method declaration as follows:
//
- // readonly void global::ComputeSharp.D2D1Interop.__Internals.ID2D1Shader.LoadBytecode(ref TLoader loader, global::ComputeSharp.D2D1Interop.D2D1ShaderProfile? shaderProfile)
+ // readonly void global::ComputeSharp.D2D1.__Internals.ID2D1Shader.LoadBytecode(ref TLoader loader, global::ComputeSharp.D2D1.D2D1ShaderProfile? shaderProfile)
// {
//
// }
@@ -46,12 +46,12 @@ partial class ID2D1ShaderGenerator
MethodDeclaration(
PredefinedType(Token(SyntaxKind.VoidKeyword)),
Identifier("LoadBytecode"))
- .WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.D2D1Interop.__Internals.{nameof(ID2D1Shader)}")))
+ .WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.D2D1.__Internals.{nameof(ID2D1Shader)}")))
.AddModifiers(Token(SyntaxKind.ReadOnlyKeyword))
.AddTypeParameterListParameters(TypeParameter(Identifier("TLoader")))
.AddParameterListParameters(
Parameter(Identifier("loader")).AddModifiers(Token(SyntaxKind.RefKeyword)).WithType(IdentifierName("TLoader")),
- Parameter(Identifier("shaderProfile")).WithType(NullableType(IdentifierName("global::ComputeSharp.D2D1Interop.D2D1ShaderProfile"))))
+ Parameter(Identifier("shaderProfile")).WithType(NullableType(IdentifierName("global::ComputeSharp.D2D1.D2D1ShaderProfile"))))
.WithBody(block);
}
@@ -65,13 +65,13 @@ partial class ID2D1ShaderGenerator
{
// This code produces a method declaration as follows:
//
- // ComputeSharp.D2D1Interop.__Internals.D2D1ShaderCompiler.LoadDynamicBytecode(ref loader, in this, shaderProfile, );
+ // ComputeSharp.D2D1.__Internals.D2D1ShaderCompiler.LoadDynamicBytecode(ref loader, in this, shaderProfile, );
ExpressionStatementSyntax dynamicLoadingStatement =
ExpressionStatement(
InvocationExpression(
MemberAccessExpression(
SyntaxKind.SimpleMemberAccessExpression,
- IdentifierName("ComputeSharp.D2D1Interop.__Internals.D2D1ShaderCompiler"),
+ IdentifierName("ComputeSharp.D2D1.__Internals.D2D1ShaderCompiler"),
IdentifierName("LoadDynamicBytecode")))
.AddArgumentListArguments(
Argument(IdentifierName("loader")).WithRefKindKeyword(Token(SyntaxKind.RefKeyword)),
@@ -110,7 +110,7 @@ partial class ID2D1ShaderGenerator
ConstantPattern(
MemberAccessExpression(
SyntaxKind.SimpleMemberAccessExpression,
- IdentifierName("global::ComputeSharp.D2D1Interop.D2D1ShaderProfile"),
+ IdentifierName("global::ComputeSharp.D2D1.D2D1ShaderProfile"),
IdentifierName(bytecodeInfo.ShaderProfile.GetValueOrDefault().ToString()))))),
Block(
LocalDeclarationStatement(
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.cs
similarity index 88%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.cs
index dffe3314..6260c545 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.cs
@@ -4,18 +4,18 @@ using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
-using ComputeSharp.D2D1Interop.Exceptions;
-using ComputeSharp.D2D1Interop.Shaders.Translation;
-using ComputeSharp.D2D1Interop.SourceGenerators.Models;
+using ComputeSharp.D2D1.Exceptions;
+using ComputeSharp.D2D1.Shaders.Translation;
+using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Models;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
-using static ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics.DiagnosticDescriptors;
+using static ComputeSharp.D2D1.SourceGenerators.Diagnostics.DiagnosticDescriptors;
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
partial class ID2D1ShaderGenerator
@@ -30,7 +30,7 @@ partial class ID2D1ShaderGenerator
/// The shader profile to use to compile the shader, if present.
public static D2D1ShaderProfile? GetShaderProfile(INamedTypeSymbol structDeclarationSymbol)
{
- if (structDeclarationSymbol.TryGetAttributeWithFullMetadataName("ComputeSharp.D2D1Interop.D2DEmbeddedBytecodeAttribute", out AttributeData? attributeData))
+ if (structDeclarationSymbol.TryGetAttributeWithFullMetadataName("ComputeSharp.D2D1.D2DEmbeddedBytecodeAttribute", out AttributeData? attributeData))
{
return (D2D1ShaderProfile)attributeData!.ConstructorArguments[0].Value!;
}
@@ -45,7 +45,7 @@ partial class ID2D1ShaderGenerator
/// Whether the shader only has simple inputs.
public static bool IsSimpleInputShader(INamedTypeSymbol structDeclarationSymbol)
{
- if (!structDeclarationSymbol.TryGetAttributeWithFullMetadataName("ComputeSharp.D2D1Interop.D2DInputCountAttribute", out AttributeData? inputCountAttribute))
+ if (!structDeclarationSymbol.TryGetAttributeWithFullMetadataName("ComputeSharp.D2D1.D2DInputCountAttribute", out AttributeData? inputCountAttribute))
{
return false;
}
@@ -58,7 +58,7 @@ partial class ID2D1ShaderGenerator
{
switch (attributeData.AttributeClass?.GetFullMetadataName())
{
- case "ComputeSharp.D2D1Interop.D2DInputSimpleAttribute":
+ case "ComputeSharp.D2D1.D2DInputSimpleAttribute":
simpleInputsMap[(int)attributeData.ConstructorArguments[0].Value!] = true;
break;
}
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.Syntax.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.Syntax.cs
similarity index 95%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.Syntax.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.Syntax.cs
index 2dea769d..e05a6d25 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.Syntax.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.Syntax.cs
@@ -1,13 +1,13 @@
using System.Collections.Immutable;
-using ComputeSharp.D2D1Interop.__Internals;
-using ComputeSharp.D2D1Interop.SourceGenerators.Models;
+using ComputeSharp.D2D1.__Internals;
+using ComputeSharp.D2D1.SourceGenerators.Models;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
partial class ID2D1ShaderGenerator
@@ -24,13 +24,13 @@ partial class ID2D1ShaderGenerator
{
// This code produces a method declaration as follows:
//
- // readonly void global::ComputeSharp.D2D1Interop.__Internals.ID2D1Shader.LoadDispatchData(ref TLoader loader)
+ // readonly void global::ComputeSharp.D2D1.__Internals.ID2D1Shader.LoadDispatchData(ref TLoader loader)
// {
//
// }
return
MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier("LoadDispatchData"))
- .WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.D2D1Interop.__Internals.{nameof(ID2D1Shader)}")))
+ .WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.D2D1.__Internals.{nameof(ID2D1Shader)}")))
.AddModifiers(Token(SyntaxKind.ReadOnlyKeyword))
.AddTypeParameterListParameters(TypeParameter(Identifier("TLoader")))
.AddParameterListParameters(Parameter(Identifier("loader")).AddModifiers(Token(SyntaxKind.RefKeyword)).WithType(IdentifierName("TLoader")))
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.cs
index 6ba508be..14f23044 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadDispatchDataMethod.cs
@@ -4,13 +4,13 @@ using System.Collections.Immutable;
using System.Linq;
using System.Runtime.CompilerServices;
using ComputeSharp.Core.Helpers;
-using ComputeSharp.D2D1Interop.SourceGenerators.Models;
+using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Mappings;
using Microsoft.CodeAnalysis;
-using static ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics.DiagnosticDescriptors;
+using static ComputeSharp.D2D1.SourceGenerators.Diagnostics.DiagnosticDescriptors;
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
partial class ID2D1ShaderGenerator
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.Helpers.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.Helpers.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.Helpers.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.Helpers.cs
index 776958fe..9232e403 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.Helpers.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.Helpers.cs
@@ -5,7 +5,7 @@ using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
partial class ID2D1ShaderGenerator
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs
index c7818a45..fa125b74 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/ID2D1ShaderGenerator.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs
@@ -2,14 +2,14 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
-using ComputeSharp.D2D1Interop.SourceGenerators.Models;
+using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Models;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-namespace ComputeSharp.D2D1Interop.SourceGenerators;
+namespace ComputeSharp.D2D1.SourceGenerators;
///
/// A source generator creating data loaders for the type.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownKeywords.cs b/src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownKeywords.cs
similarity index 80%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownKeywords.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownKeywords.cs
index 96565e25..78098a82 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownKeywords.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownKeywords.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Reflection;
using ComputeSharp.Core.Intrinsics.Attributes;
-using ComputeSharp.D2D1Interop;
+using ComputeSharp.D2D1;
namespace ComputeSharp.SourceGeneration.Mappings;
@@ -12,7 +12,7 @@ partial class HlslKnownKeywords
static partial void AddKnownKeywords(ICollection knownKeywords)
{
// D2D1 intrinsics method names
- foreach (var method in typeof(D2D1).GetMethods(BindingFlags.Public | BindingFlags.Static))
+ foreach (var method in typeof(D2D).GetMethods(BindingFlags.Public | BindingFlags.Static))
{
string name = method.GetCustomAttribute()?.Name ?? method.Name;
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownMethods.cs b/src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownMethods.cs
similarity index 75%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownMethods.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownMethods.cs
index 807d76f9..99964394 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownMethods.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownMethods.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using ComputeSharp.Core.Intrinsics.Attributes;
-using ComputeSharp.D2D1Interop;
+using ComputeSharp.D2D1;
namespace ComputeSharp.SourceGeneration.Mappings;
@@ -16,14 +16,14 @@ partial class HlslKnownMethods
{
// Programmatically load mappings from the D2D1 class as well
foreach (var method in
- from method in typeof(D2D1).GetMethods(BindingFlags.Public | BindingFlags.Static)
+ from method in typeof(D2D).GetMethods(BindingFlags.Public | BindingFlags.Static)
group method by method.Name
into groups
select groups.First())
{
string hlslName = method.GetCustomAttribute()?.Name ?? method.Name;
- knownMethods.Add($"{typeof(D2D1).FullName}{Type.Delimiter}{method.Name}", hlslName);
+ knownMethods.Add($"{typeof(D2D).FullName}{Type.Delimiter}{method.Name}", hlslName);
}
}
}
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownTypes.cs b/src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownTypes.cs
similarity index 100%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Mappings/HlslKnownTypes.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Mappings/HlslKnownTypes.cs
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/DispatchDataInfo.cs b/src/ComputeSharp.D2D1.SourceGenerators/Models/DispatchDataInfo.cs
similarity index 95%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Models/DispatchDataInfo.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Models/DispatchDataInfo.cs
index 5cbba012..a34e3bad 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/DispatchDataInfo.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Models/DispatchDataInfo.cs
@@ -4,7 +4,7 @@ using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.Models;
+namespace ComputeSharp.D2D1.SourceGenerators.Models;
///
/// A model representing gathered info on a shader dispatch data.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/EmbeddedBytecodeInfo.cs b/src/ComputeSharp.D2D1.SourceGenerators/Models/EmbeddedBytecodeInfo.cs
similarity index 96%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Models/EmbeddedBytecodeInfo.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Models/EmbeddedBytecodeInfo.cs
index f021d3c7..385b0144 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/EmbeddedBytecodeInfo.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Models/EmbeddedBytecodeInfo.cs
@@ -4,7 +4,7 @@ using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.Models;
+namespace ComputeSharp.D2D1.SourceGenerators.Models;
///
/// A model representing a shared and its compiled bytecode, if available.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/FieldInfo.cs b/src/ComputeSharp.D2D1.SourceGenerators/Models/FieldInfo.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Models/FieldInfo.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Models/FieldInfo.cs
index 92cd2a81..073900bd 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/FieldInfo.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Models/FieldInfo.cs
@@ -4,7 +4,7 @@ using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.Models;
+namespace ComputeSharp.D2D1.SourceGenerators.Models;
///
/// A base type for a model describing a given captured field in a shader.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/HlslShaderSourceInfo.cs b/src/ComputeSharp.D2D1.SourceGenerators/Models/HlslShaderSourceInfo.cs
similarity index 87%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/Models/HlslShaderSourceInfo.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/Models/HlslShaderSourceInfo.cs
index 8dd702e9..ff513d26 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/Models/HlslShaderSourceInfo.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Models/HlslShaderSourceInfo.cs
@@ -1,4 +1,4 @@
-namespace ComputeSharp.D2D1Interop.SourceGenerators.Models;
+namespace ComputeSharp.D2D1.SourceGenerators.Models;
///
/// A model for extracted info on a processed HLSL shader.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs
index 5fbba895..d722dd00 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs
@@ -2,9 +2,9 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-using static ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics.DiagnosticDescriptors;
+using static ComputeSharp.D2D1.SourceGenerators.Diagnostics.DiagnosticDescriptors;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.SyntaxRewriters;
+namespace ComputeSharp.D2D1.SourceGenerators.SyntaxRewriters;
///
internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs
index fc277419..04ecca4e 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs
@@ -10,10 +10,10 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Operations;
-using static ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics.DiagnosticDescriptors;
+using static ComputeSharp.D2D1.SourceGenerators.Diagnostics.DiagnosticDescriptors;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.SyntaxRewriters;
+namespace ComputeSharp.D2D1.SourceGenerators.SyntaxRewriters;
///
/// A base type that processes C# source to convert to HLSL compliant code.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs
index 172d588d..1233cb6e 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs
@@ -10,10 +10,10 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Operations;
-using static ComputeSharp.D2D1Interop.SourceGenerators.Diagnostics.DiagnosticDescriptors;
+using static ComputeSharp.D2D1.SourceGenerators.Diagnostics.DiagnosticDescriptors;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.SyntaxRewriters;
+namespace ComputeSharp.D2D1.SourceGenerators.SyntaxRewriters;
///
/// A custom type that processes C# methods to convert to HLSL compliant code.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs
rename to src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs
index 42e92e28..2486b718 100644
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs
@@ -11,7 +11,7 @@ using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Operations;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
-namespace ComputeSharp.D2D1Interop.SourceGenerators.SyntaxRewriters;
+namespace ComputeSharp.D2D1.SourceGenerators.SyntaxRewriters;
///
/// A custom type that processes C# static field to convert to HLSL static fields (possibly constant).
diff --git a/src/ComputeSharp.D2D1Interop/Attributes/D2DEmbeddedBytecodeAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DEmbeddedBytecodeAttribute.cs
similarity index 96%
rename from src/ComputeSharp.D2D1Interop/Attributes/D2DEmbeddedBytecodeAttribute.cs
rename to src/ComputeSharp.D2D1/Attributes/D2DEmbeddedBytecodeAttribute.cs
index 9cf5a4a5..ab9ab4c7 100644
--- a/src/ComputeSharp.D2D1Interop/Attributes/D2DEmbeddedBytecodeAttribute.cs
+++ b/src/ComputeSharp.D2D1/Attributes/D2DEmbeddedBytecodeAttribute.cs
@@ -1,9 +1,9 @@
using System;
#if !SOURCE_GENERATOR
-using ComputeSharp.D2D1Interop.Helpers;
+using ComputeSharp.D2D1.Helpers;
#endif
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// An attribute that indicates that a given D2D1 shader should be precompiled at build time and embedded
diff --git a/src/ComputeSharp.D2D1Interop/Attributes/D2DInputComplexAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DInputComplexAttribute.cs
similarity index 96%
rename from src/ComputeSharp.D2D1Interop/Attributes/D2DInputComplexAttribute.cs
rename to src/ComputeSharp.D2D1/Attributes/D2DInputComplexAttribute.cs
index b482502b..59f8188b 100644
--- a/src/ComputeSharp.D2D1Interop/Attributes/D2DInputComplexAttribute.cs
+++ b/src/ComputeSharp.D2D1/Attributes/D2DInputComplexAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// An attribute for a D2D1 shader indicating that an input resource at a specified index uses complex sampling.
diff --git a/src/ComputeSharp.D2D1Interop/Attributes/D2DInputCountAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DInputCountAttribute.cs
similarity index 96%
rename from src/ComputeSharp.D2D1Interop/Attributes/D2DInputCountAttribute.cs
rename to src/ComputeSharp.D2D1/Attributes/D2DInputCountAttribute.cs
index e0648a41..e578bf23 100644
--- a/src/ComputeSharp.D2D1Interop/Attributes/D2DInputCountAttribute.cs
+++ b/src/ComputeSharp.D2D1/Attributes/D2DInputCountAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// An attribute for a D2D1 shader indicating the number of texture inputs for the shader.
diff --git a/src/ComputeSharp.D2D1Interop/Attributes/D2DInputSimpleAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DInputSimpleAttribute.cs
similarity index 96%
rename from src/ComputeSharp.D2D1Interop/Attributes/D2DInputSimpleAttribute.cs
rename to src/ComputeSharp.D2D1/Attributes/D2DInputSimpleAttribute.cs
index 2f201fcf..7a23e2ac 100644
--- a/src/ComputeSharp.D2D1Interop/Attributes/D2DInputSimpleAttribute.cs
+++ b/src/ComputeSharp.D2D1/Attributes/D2DInputSimpleAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// An attribute for a D2D1 shader indicating that an input resource at a specified index uses simple
diff --git a/src/ComputeSharp.D2D1Interop/Attributes/D2DRequiresScenePositionAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DRequiresScenePositionAttribute.cs
similarity index 80%
rename from src/ComputeSharp.D2D1Interop/Attributes/D2DRequiresScenePositionAttribute.cs
rename to src/ComputeSharp.D2D1/Attributes/D2DRequiresScenePositionAttribute.cs
index bc57cc65..f61dbc35 100644
--- a/src/ComputeSharp.D2D1Interop/Attributes/D2DRequiresScenePositionAttribute.cs
+++ b/src/ComputeSharp.D2D1/Attributes/D2DRequiresScenePositionAttribute.cs
@@ -1,10 +1,10 @@
using System;
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// An attribute for a D2D1 shader indicating that the shader function calls helper methods that use the scene position
-/// value (that is, ). This parameter should only be included when necessary, since
+/// value (that is, ). This parameter should only be included when necessary, since
/// only one function per linked shader can utilize this parameter. Defining this value is optional.
///
///
diff --git a/src/ComputeSharp.D2D1Interop/Attributes/Profiles/D2D1ShaderProfile.cs b/src/ComputeSharp.D2D1/Attributes/Profiles/D2D1ShaderProfile.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop/Attributes/Profiles/D2D1ShaderProfile.cs
rename to src/ComputeSharp.D2D1/Attributes/Profiles/D2D1ShaderProfile.cs
index d2454180..2580c5d2 100644
--- a/src/ComputeSharp.D2D1Interop/Attributes/Profiles/D2D1ShaderProfile.cs
+++ b/src/ComputeSharp.D2D1/Attributes/Profiles/D2D1ShaderProfile.cs
@@ -1,4 +1,4 @@
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// A to be used with to indicate the shader profile to use to precompile a shader.
diff --git a/src/ComputeSharp.D2D1Interop/ComputeSharp.D2D1Interop.csproj b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj
similarity index 81%
rename from src/ComputeSharp.D2D1Interop/ComputeSharp.D2D1Interop.csproj
rename to src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj
index 14ab14ea..d10a8131 100644
--- a/src/ComputeSharp.D2D1Interop/ComputeSharp.D2D1Interop.csproj
+++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj
@@ -2,7 +2,7 @@
netstandard2.0;net6.0
bin\Release
- ComputeSharp.D2D1Interop.xml
+ ComputeSharp.D2D1.xml
@@ -30,8 +30,8 @@
-
+
-
+
diff --git a/src/ComputeSharp.D2D1Interop/ComputeSharp.D2D1Interop.targets b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets
similarity index 86%
rename from src/ComputeSharp.D2D1Interop/ComputeSharp.D2D1Interop.targets
rename to src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets
index 2f53663d..7db216b0 100644
--- a/src/ComputeSharp.D2D1Interop/ComputeSharp.D2D1Interop.targets
+++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets
@@ -1,9 +1,9 @@
-
+
- <_ComputeSharpAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'ComputeSharp.D2D1Interop'" />
+ <_ComputeSharpAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'ComputeSharp.D2D1'" />
@@ -38,7 +38,7 @@
-
+
diff --git a/src/ComputeSharp.D2D1Interop/Extensions/ComPtrExtensions.cs b/src/ComputeSharp.D2D1/Extensions/ComPtrExtensions.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop/Extensions/ComPtrExtensions.cs
rename to src/ComputeSharp.D2D1/Extensions/ComPtrExtensions.cs
index f2f181b6..ef82e319 100644
--- a/src/ComputeSharp.D2D1Interop/Extensions/ComPtrExtensions.cs
+++ b/src/ComputeSharp.D2D1/Extensions/ComPtrExtensions.cs
@@ -1,7 +1,7 @@
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
-namespace ComputeSharp.D2D1Interop.Extensions;
+namespace ComputeSharp.D2D1.Extensions;
///
/// Helper methods for working with the type.
diff --git a/src/ComputeSharp.D2D1Interop/Extensions/HResultExtensions.cs b/src/ComputeSharp.D2D1/Extensions/HResultExtensions.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop/Extensions/HResultExtensions.cs
rename to src/ComputeSharp.D2D1/Extensions/HResultExtensions.cs
index 39d82d56..1d5ef42c 100644
--- a/src/ComputeSharp.D2D1Interop/Extensions/HResultExtensions.cs
+++ b/src/ComputeSharp.D2D1/Extensions/HResultExtensions.cs
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
-namespace ComputeSharp.D2D1Interop.Extensions;
+namespace ComputeSharp.D2D1.Extensions;
///
/// Helper methods to efficiently throw exceptions.
diff --git a/src/ComputeSharp.D2D1Interop/Helpers/ThrowHelper.cs b/src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop/Helpers/ThrowHelper.cs
rename to src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs
index f39bf501..3a19393f 100644
--- a/src/ComputeSharp.D2D1Interop/Helpers/ThrowHelper.cs
+++ b/src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs
@@ -1,7 +1,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
-namespace ComputeSharp.D2D1Interop.Helpers;
+namespace ComputeSharp.D2D1.Helpers;
///
/// Helper methods to efficiently throw exceptions.
diff --git a/src/ComputeSharp.D2D1Interop/Interfaces/ID2D1PixelShader.cs b/src/ComputeSharp.D2D1/Interfaces/ID2D1PixelShader.cs
similarity index 81%
rename from src/ComputeSharp.D2D1Interop/Interfaces/ID2D1PixelShader.cs
rename to src/ComputeSharp.D2D1/Interfaces/ID2D1PixelShader.cs
index 3c7207f5..c748211a 100644
--- a/src/ComputeSharp.D2D1Interop/Interfaces/ID2D1PixelShader.cs
+++ b/src/ComputeSharp.D2D1/Interfaces/ID2D1PixelShader.cs
@@ -1,8 +1,8 @@
-using ComputeSharp.D2D1Interop.__Internals;
+using ComputeSharp.D2D1.__Internals;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// An representing a D2D1 pixel shader.
diff --git a/src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1BytecodeLoader.cs b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1BytecodeLoader.cs
similarity index 95%
rename from src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1BytecodeLoader.cs
rename to src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1BytecodeLoader.cs
index 44ba0862..1a20a785 100644
--- a/src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1BytecodeLoader.cs
+++ b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1BytecodeLoader.cs
@@ -1,7 +1,7 @@
using System;
using System.ComponentModel;
-namespace ComputeSharp.D2D1Interop.__Internals;
+namespace ComputeSharp.D2D1.__Internals;
///
/// A base representing a bytecode loader for a D2D1 shader.
diff --git a/src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1DispatchDataLoader.cs b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1DispatchDataLoader.cs
similarity index 92%
rename from src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1DispatchDataLoader.cs
rename to src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1DispatchDataLoader.cs
index 6593d706..447e3cc9 100644
--- a/src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1DispatchDataLoader.cs
+++ b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1DispatchDataLoader.cs
@@ -1,7 +1,7 @@
using System;
using System.ComponentModel;
-namespace ComputeSharp.D2D1Interop.__Internals;
+namespace ComputeSharp.D2D1.__Internals;
///
/// A base representing a data loader for a D2D1 shader being dispatched.
diff --git a/src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1Shader.cs b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1Shader.cs
rename to src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs
index ff16fac8..da52d5db 100644
--- a/src/ComputeSharp.D2D1Interop/Interfaces/__Internals/ID2D1Shader.cs
+++ b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs
@@ -1,7 +1,7 @@
using System;
using System.ComponentModel;
-namespace ComputeSharp.D2D1Interop.__Internals;
+namespace ComputeSharp.D2D1.__Internals;
///
/// A base representing a given shader that can be dispatched.
diff --git a/src/ComputeSharp.D2D1Interop/Intrinsics/D2D1.cs b/src/ComputeSharp.D2D1/Intrinsics/D2D.cs
similarity index 86%
rename from src/ComputeSharp.D2D1Interop/Intrinsics/D2D1.cs
rename to src/ComputeSharp.D2D1/Intrinsics/D2D.cs
index 1054a413..328e7dbd 100644
--- a/src/ComputeSharp.D2D1Interop/Intrinsics/D2D1.cs
+++ b/src/ComputeSharp.D2D1/Intrinsics/D2D.cs
@@ -1,13 +1,13 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1;
///
/// A that maps the supported HLSL intrinsic functions specifically for D2D1 shaders.
///
/// For more info, see .
-public static class D2D1
+public static class D2D
{
///
/// Returns the color of the input texture at a specific index, for the curreent coordinate.
@@ -16,7 +16,7 @@ public static class D2D1
/// The color from the target input at the current coordinate, in INPUTN format.
/// This method is only available for simple inputs.
[HlslIntrinsicName("D2DGetInput")]
- public static Float4 GetInput(int index) => throw new InvalidExecutionContextException($"{typeof(D2D1)}.{nameof(GetInput)}({typeof(int)})");
+ public static Float4 GetInput(int index) => throw new InvalidExecutionContextException($"{typeof(D2D)}.{nameof(GetInput)}({typeof(int)})");
///
/// Returns the coordinate of the input texture at a specific index.
@@ -25,7 +25,7 @@ public static class D2D1
/// The input coordinate, in TEXCOORDN format.
/// This method is only available for complex inputs.
[HlslIntrinsicName("D2DGetInputCoordinate")]
- public static Float4 GetInputCoordinate(int index) => throw new InvalidExecutionContextException($"{typeof(D2D1)}.{nameof(GetInputCoordinate)}({typeof(int)})");
+ public static Float4 GetInputCoordinate(int index) => throw new InvalidExecutionContextException($"{typeof(D2D)}.{nameof(GetInputCoordinate)}({typeof(int)})");
///
/// Returns the value of the current scene position.
@@ -33,7 +33,7 @@ public static class D2D1
/// The current scene position, in SCENE_POSITION format.
/// This method is only available when is used on the shader type.
[HlslIntrinsicName("D2DGetScenePosition")]
- public static Float4 GetScenePosition() => throw new InvalidExecutionContextException($"{typeof(D2D1)}.{nameof(GetScenePosition)}()");
+ public static Float4 GetScenePosition() => throw new InvalidExecutionContextException($"{typeof(D2D)}.{nameof(GetScenePosition)}()");
///
/// Samples the input texture at a specified index and at a given position.
@@ -43,7 +43,7 @@ public static class D2D1
/// The sampled value from the texture, in TEXCOORDN format.
/// This method is only available for complex inputs.
[HlslIntrinsicName("D2DSampleInput")]
- public static Float4 SampleInput(int index, Float2 uv) => throw new InvalidExecutionContextException($"{typeof(D2D1)}.{nameof(SampleInput)}({typeof(int)}, {typeof(Float2)})");
+ public static Float4 SampleInput(int index, Float2 uv) => throw new InvalidExecutionContextException($"{typeof(D2D)}.{nameof(SampleInput)}({typeof(int)}, {typeof(Float2)})");
///
/// Samples the input texturee at a specified index and at a given offset from the input coordinate.
@@ -53,7 +53,7 @@ public static class D2D1
/// The sampled value from the texture, in TEXCOORDN format.
/// This method is only available for simple inputs.
[HlslIntrinsicName("D2DSampleInputAtOffset")]
- public static Float4 SampleInputAtOffset(int index, Float2 offset) => throw new InvalidExecutionContextException($"{typeof(D2D1)}.{nameof(SampleInputAtOffset)}({typeof(int)}, {typeof(Float2)})");
+ public static Float4 SampleInputAtOffset(int index, Float2 offset) => throw new InvalidExecutionContextException($"{typeof(D2D)}.{nameof(SampleInputAtOffset)}({typeof(int)}, {typeof(Float2)})");
///
/// Samples the input texture at a specified index and at an absolute scene position (not an input-relative position).
@@ -63,5 +63,5 @@ public static class D2D1
/// The sampled value from the texture, in TEXCOORDN format.
/// This method is only available for complex inputs.
[HlslIntrinsicName("D2DSampleInputAtPosition")]
- public static Float4 SampleInputAtPosition(int index, Float2 uv) => throw new InvalidExecutionContextException($"{typeof(D2D1)}.{nameof(SampleInputAtPosition)}({typeof(int)}, {typeof(Float2)})");
+ public static Float4 SampleInputAtPosition(int index, Float2 uv) => throw new InvalidExecutionContextException($"{typeof(D2D)}.{nameof(SampleInputAtPosition)}({typeof(int)}, {typeof(Float2)})");
}
diff --git a/src/ComputeSharp.D2D1Interop/Properties/AssemblyInfo.cs b/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs
similarity index 100%
rename from src/ComputeSharp.D2D1Interop/Properties/AssemblyInfo.cs
rename to src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1ByteArrayDispatchDataLoader.cs b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1ByteArrayDispatchDataLoader.cs
similarity index 90%
rename from src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1ByteArrayDispatchDataLoader.cs
rename to src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1ByteArrayDispatchDataLoader.cs
index cc701968..2b00632a 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1ByteArrayDispatchDataLoader.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1ByteArrayDispatchDataLoader.cs
@@ -1,12 +1,12 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using ComputeSharp.D2D1Interop.__Internals;
+using ComputeSharp.D2D1.__Internals;
using TerraFX.Interop.DirectX;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop.Shaders.Dispatching;
+namespace ComputeSharp.D2D1.Shaders.Dispatching;
///
/// A data loader for D2D1 pixel shaders dispatched via .
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1DrawInfoDispatchDataLoader.cs b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1DrawInfoDispatchDataLoader.cs
similarity index 92%
rename from src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1DrawInfoDispatchDataLoader.cs
rename to src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1DrawInfoDispatchDataLoader.cs
index 0c473b1d..be47d04c 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1DrawInfoDispatchDataLoader.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1DrawInfoDispatchDataLoader.cs
@@ -1,12 +1,12 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using ComputeSharp.D2D1Interop.__Internals;
+using ComputeSharp.D2D1.__Internals;
using TerraFX.Interop.DirectX;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop.Shaders.Dispatching;
+namespace ComputeSharp.D2D1.Shaders.Dispatching;
///
/// A data loader for D2D1 pixel shaders dispatched via .
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1EffectDispatchDataLoader.cs b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1EffectDispatchDataLoader.cs
similarity index 89%
rename from src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1EffectDispatchDataLoader.cs
rename to src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1EffectDispatchDataLoader.cs
index 45a70c6b..e5697042 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1EffectDispatchDataLoader.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1EffectDispatchDataLoader.cs
@@ -1,13 +1,13 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using ComputeSharp.D2D1Interop.__Internals;
-using ComputeSharp.D2D1Interop.Extensions;
+using ComputeSharp.D2D1.__Internals;
+using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.DirectX;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop.Shaders.Dispatching;
+namespace ComputeSharp.D2D1.Shaders.Dispatching;
///
/// A data loader for D2D1 pixel shaders dispatched via .
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1ShaderBytecodeLoader.cs b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1ShaderBytecodeLoader.cs
similarity index 93%
rename from src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1ShaderBytecodeLoader.cs
rename to src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1ShaderBytecodeLoader.cs
index 31773a15..0d0da779 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Dispatching/D2D1ShaderBytecodeLoader.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Dispatching/D2D1ShaderBytecodeLoader.cs
@@ -1,15 +1,15 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using ComputeSharp.D2D1Interop.__Internals;
-using ComputeSharp.D2D1Interop.Extensions;
-using ComputeSharp.D2D1Interop.Helpers;
+using ComputeSharp.D2D1.__Internals;
+using ComputeSharp.D2D1.Extensions;
+using ComputeSharp.D2D1.Helpers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop.Shaders.Dispatching;
+namespace ComputeSharp.D2D1.Shaders.Dispatching;
///
/// A bytecode loader for D2D1 shaders.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Exceptions/FxcCompilationException.cs b/src/ComputeSharp.D2D1/Shaders/Exceptions/FxcCompilationException.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop/Shaders/Exceptions/FxcCompilationException.cs
rename to src/ComputeSharp.D2D1/Shaders/Exceptions/FxcCompilationException.cs
index 97e4a3bc..cdb5e2a3 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Exceptions/FxcCompilationException.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Exceptions/FxcCompilationException.cs
@@ -1,7 +1,7 @@
using System;
using System.Text;
-namespace ComputeSharp.D2D1Interop.Exceptions;
+namespace ComputeSharp.D2D1.Exceptions;
///
/// A custom type that indicates when a shader compilation with the FXC compiler has failed.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Buffers/PinnedBufferMemoryManager.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/PinnedBufferMemoryManager.cs
similarity index 93%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/Buffers/PinnedBufferMemoryManager.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/Buffers/PinnedBufferMemoryManager.cs
index 96163845..4fb3d71d 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Buffers/PinnedBufferMemoryManager.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/PinnedBufferMemoryManager.cs
@@ -2,9 +2,9 @@
using System.Buffers;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using ComputeSharp.D2D1Interop.Helpers;
+using ComputeSharp.D2D1.Helpers;
-namespace ComputeSharp.D2D1Interop.Shaders.Interop.Buffers;
+namespace ComputeSharp.D2D1.Shaders.Interop.Buffers;
///
/// A custom that wraps a pinned memory buffer.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1InteropServices.Effects.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.Effects.cs
similarity index 96%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1InteropServices.Effects.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.Effects.cs
index 9a076ca1..df1ebcf2 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1InteropServices.Effects.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.Effects.cs
@@ -4,15 +4,15 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#endif
using System.Text;
-using ComputeSharp.D2D1Interop.Extensions;
-using ComputeSharp.D2D1Interop.Interop.Effects;
-using ComputeSharp.D2D1Interop.Shaders.Dispatching;
+using ComputeSharp.D2D1.Extensions;
+using ComputeSharp.D2D1.Interop.Effects;
+using ComputeSharp.D2D1.Shaders.Dispatching;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1.Interop;
///
unsafe partial class D2D1InteropServices
@@ -44,7 +44,7 @@ unsafe partial class D2D1InteropServices
-
+
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1InteropServices.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1InteropServices.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs
index 134b5b20..0c2c2ae5 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1InteropServices.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs
@@ -1,13 +1,13 @@
using System;
using System.Runtime.CompilerServices;
-using ComputeSharp.D2D1Interop.Shaders.Dispatching;
-using ComputeSharp.D2D1Interop.Shaders.Interop.Buffers;
+using ComputeSharp.D2D1.Shaders.Dispatching;
+using ComputeSharp.D2D1.Shaders.Interop.Buffers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1.Interop;
///
/// Provides methods to extract reflection info on D2D1 shaders generated using this library.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1ReflectionServices.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ReflectionServices.cs
similarity index 96%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1ReflectionServices.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/D2D1ReflectionServices.cs
index ffd59fa0..e226bed9 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1ReflectionServices.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ReflectionServices.cs
@@ -1,14 +1,14 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using ComputeSharp.D2D1Interop.Extensions;
-using ComputeSharp.D2D1Interop.Shaders.Dispatching;
+using ComputeSharp.D2D1.Extensions;
+using ComputeSharp.D2D1.Shaders.Dispatching;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable CS0618
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1.Interop;
///
/// Provides methods to extract reflection info on D2D1 shaders generated using this library.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1ShaderInfo.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1ShaderInfo.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs
index be0b9a77..1fada0b5 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/D2D1ShaderInfo.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs
@@ -1,4 +1,4 @@
-namespace ComputeSharp.D2D1Interop;
+namespace ComputeSharp.D2D1.Interop;
///
/// A model representing reflection info for a given D2D1 shader.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
similarity index 99%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
index ea5db4c0..176b7422 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
@@ -6,7 +6,7 @@ using TerraFX.Interop.Windows;
using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
#endif
-namespace ComputeSharp.D2D1Interop.Interop.Effects;
+namespace ComputeSharp.D2D1.Interop.Effects;
///
partial struct PixelShaderEffect
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.ID2D1EffectImplMethods.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1EffectImplMethods.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.ID2D1EffectImplMethods.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1EffectImplMethods.cs
index e8d6181a..902fbaa5 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.ID2D1EffectImplMethods.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1EffectImplMethods.cs
@@ -6,7 +6,7 @@ using TerraFX.Interop.Windows;
using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
#endif
-namespace ComputeSharp.D2D1Interop.Interop.Effects;
+namespace ComputeSharp.D2D1.Interop.Effects;
///
/// A simple and implementation for a given pixel shader.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.cs
rename to src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs
index 23c3e056..7d78ad65 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Interop/Effects/PixelShaderEffect.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs
@@ -7,11 +7,11 @@ using TerraFX.Interop.Windows;
#if NET6_0_OR_GREATER
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
#else
-using RuntimeHelpers = ComputeSharp.D2D1Interop.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
+using RuntimeHelpers = ComputeSharp.D2D1.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
#endif
-namespace ComputeSharp.D2D1Interop.Interop.Effects;
+namespace ComputeSharp.D2D1.Interop.Effects;
///
/// A simple and implementation for a given pixel shader.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.ID3DInclude.cs b/src/ComputeSharp.D2D1/Shaders/Translation/D2D1ShaderCompiler.ID3DInclude.cs
similarity index 92%
rename from src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.ID3DInclude.cs
rename to src/ComputeSharp.D2D1/Shaders/Translation/D2D1ShaderCompiler.ID3DInclude.cs
index 0d267a74..7e59f3ab 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.ID3DInclude.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Translation/D2D1ShaderCompiler.ID3DInclude.cs
@@ -7,11 +7,11 @@ using TerraFX.Interop.Windows;
#if NET6_0_OR_GREATER
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
#else
-using RuntimeHelpers = ComputeSharp.D2D1Interop.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
+using RuntimeHelpers = ComputeSharp.D2D1.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
#endif
-namespace ComputeSharp.D2D1Interop.Shaders.Translation;
+namespace ComputeSharp.D2D1.Shaders.Translation;
///
partial class D2D1ShaderCompiler
@@ -129,9 +129,9 @@ partial class D2D1ShaderCompiler
private static void* LoadD2D1EffectHelpersHeader(out int size)
{
#if SOURCE_GENERATOR
- const string headerFilename = "ComputeSharp.D2D1Interop.SourceGenerators.ComputeSharp.D2D1Interop.Shaders.Translation.Headers.d2d1effecthelpers.hlsli";
+ const string headerFilename = "ComputeSharp.D2D1.SourceGenerators.ComputeSharp.D2D1.Shaders.Translation.Headers.d2d1effecthelpers.hlsli";
#else
- const string headerFilename = "ComputeSharp.D2D1Interop.Shaders.Translation.Headers.d2d1effecthelpers.hlsli";
+ const string headerFilename = "ComputeSharp.D2D1.Shaders.Translation.Headers.d2d1effecthelpers.hlsli";
#endif
using Stream source = Assembly.GetExecutingAssembly().GetManifestResourceStream(headerFilename)!;
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.cs b/src/ComputeSharp.D2D1/Shaders/Translation/D2D1ShaderCompiler.cs
similarity index 98%
rename from src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.cs
rename to src/ComputeSharp.D2D1/Shaders/Translation/D2D1ShaderCompiler.cs
index 76c274ab..39ad1855 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Translation/D2D1ShaderCompiler.cs
@@ -5,17 +5,17 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
-using ComputeSharp.D2D1Interop.Exceptions;
-using ComputeSharp.D2D1Interop.Extensions;
+using ComputeSharp.D2D1.Exceptions;
+using ComputeSharp.D2D1.Extensions;
#if !NET6_0_OR_GREATER
-using ComputeSharp.D2D1Interop.NetStandard.System.Text;
+using ComputeSharp.D2D1.NetStandard.System.Text;
#endif
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable IDE1006
-namespace ComputeSharp.D2D1Interop.Shaders.Translation;
+namespace ComputeSharp.D2D1.Shaders.Translation;
///
/// A that uses the FXC APIs to compile D2D1 pixel shaders.
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Translation/Headers/d2d1effecthelpers.hlsli b/src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli
similarity index 100%
rename from src/ComputeSharp.D2D1Interop/Shaders/Translation/Headers/d2d1effecthelpers.hlsli
rename to src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli
diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Translation/__Internals/D2D1ShaderCompiler.cs b/src/ComputeSharp.D2D1/Shaders/Translation/__Internals/D2D1ShaderCompiler.cs
similarity index 97%
rename from src/ComputeSharp.D2D1Interop/Shaders/Translation/__Internals/D2D1ShaderCompiler.cs
rename to src/ComputeSharp.D2D1/Shaders/Translation/__Internals/D2D1ShaderCompiler.cs
index 4ff2dd9d..47867a3a 100644
--- a/src/ComputeSharp.D2D1Interop/Shaders/Translation/__Internals/D2D1ShaderCompiler.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Translation/__Internals/D2D1ShaderCompiler.cs
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
-namespace ComputeSharp.D2D1Interop.__Internals;
+namespace ComputeSharp.D2D1.__Internals;
///
/// A that uses the DXC APIs to compile compute shaders.
diff --git a/src/ComputeSharp.D2D1Interop.SourceGenerators/AnalyzerReleases.Shipped.md b/src/ComputeSharp.D2D1Interop.SourceGenerators/AnalyzerReleases.Shipped.md
deleted file mode 100644
index 6b75ee60..00000000
--- a/src/ComputeSharp.D2D1Interop.SourceGenerators/AnalyzerReleases.Shipped.md
+++ /dev/null
@@ -1,43 +0,0 @@
-; Shipped analyzer releases
-; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
-
-## Release 1.0
-
-### New Rules
-
-Rule ID | Category | Severity | Notes
---------|----------|----------|-------
-CMPSD2D0001 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0002 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0003 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0004 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0005 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0006 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0007 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0008 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0009 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0010 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0011 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0012 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0013 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0014 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0015 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0016 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0017 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0018 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0019 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0020 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0021 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0022 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0023 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0024 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0025 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0026 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0027 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0028 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0029 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0030 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0031 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0032 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0033 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
-CMPSD2D0034 | ComputeSharp.D2D1Interop.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/D2D1_PROPERTY_TYPE.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/D2D1_PROPERTY_TYPE.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/D2D1_PROPERTY_TYPE.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/D2D1_PROPERTY_TYPE.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/ID2D1DeviceContext.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/ID2D1DeviceContext.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/ID2D1DeviceContext.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/ID2D1DeviceContext.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/ID2D1Effect.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/ID2D1Effect.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/ID2D1Effect.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/ID2D1Effect.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/ID2D1Factory1.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/ID2D1Factory1.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1_1/ID2D1Factory1.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1_1/ID2D1Factory1.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/D2D1_CHANGE_TYPE.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/D2D1_CHANGE_TYPE.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/D2D1_CHANGE_TYPE.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/D2D1_CHANGE_TYPE.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/D2D1_PIXEL_OPTIONS.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/D2D1_PIXEL_OPTIONS.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/D2D1_PIXEL_OPTIONS.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/D2D1_PIXEL_OPTIONS.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/D2D1_PROPERTY_BINDING.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/D2D1_PROPERTY_BINDING.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/D2D1_PROPERTY_BINDING.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/D2D1_PROPERTY_BINDING.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1DrawInfo.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1DrawTransform.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1EffectContext.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1EffectImpl.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1Transform.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1Transform.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1Transform.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1Transform.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1TransformGraph.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d2d1effectauthor/ID2D1TransformNode.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3d11shadeer/D3D11_SHADER_DESC.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3d11shadeer/D3D11_SHADER_DESC.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3d11shadeer/D3D11_SHADER_DESC.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3d11shadeer/D3D11_SHADER_DESC.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3d11shadeer/ID3D11ShaderReflection.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3d11shadeer/ID3D11ShaderReflection.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3d11shadeer/ID3D11ShaderReflection.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3d11shadeer/ID3D11ShaderReflection.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcommon/D3D_INCLUDE_TYPE.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcommon/D3D_INCLUDE_TYPE.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcommon/D3D_INCLUDE_TYPE.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcommon/D3D_INCLUDE_TYPE.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcommon/D3D_SHADER_MACRO.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcommon/D3D_SHADER_MACRO.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcommon/D3D_SHADER_MACRO.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcommon/D3D_SHADER_MACRO.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcommon/ID3DInclude.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcommon/ID3DInclude.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcommon/ID3DInclude.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcommon/ID3DInclude.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcompiler/D3DCOMPILE.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcompiler/D3DCOMPILE.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcompiler/D3DCOMPILE.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcompiler/D3DCOMPILE.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcompiler/D3D_BLOB_PART.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcompiler/D3D_BLOB_PART.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcompiler/D3D_BLOB_PART.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcompiler/D3D_BLOB_PART.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcompiler/DirectX.cs b/src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcompiler/DirectX.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/DirectX/um/d3dcompiler/DirectX.cs
rename to src/TerraFX.Interop.Windows.D2D1/DirectX/um/d3dcompiler/DirectX.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/TerraFX.Interop.Windows.D2D1Interop.projitems b/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.projitems
similarity index 98%
rename from src/TerraFX.Interop.Windows.D2D1Interop/TerraFX.Interop.Windows.D2D1Interop.projitems
rename to src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.projitems
index 208d7c76..942865b5 100644
--- a/src/TerraFX.Interop.Windows.D2D1Interop/TerraFX.Interop.Windows.D2D1Interop.projitems
+++ b/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.projitems
@@ -6,7 +6,7 @@
9da1da9f-f8b2-4b25-be80-c21f773029e3
- TerraFX.Interop.Windows.D2D1Interop
+ TerraFX.Interop.Windows.D2D1
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/TerraFX.Interop.Windows.D2D1Interop.shproj b/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.shproj
similarity index 92%
rename from src/TerraFX.Interop.Windows.D2D1Interop/TerraFX.Interop.Windows.D2D1Interop.shproj
rename to src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.shproj
index 00af33c8..4ebe595b 100644
--- a/src/TerraFX.Interop.Windows.D2D1Interop/TerraFX.Interop.Windows.D2D1Interop.shproj
+++ b/src/TerraFX.Interop.Windows.D2D1/TerraFX.Interop.Windows.D2D1.shproj
@@ -8,6 +8,6 @@
-
+
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/uuids/Windows.Manual.cs b/src/TerraFX.Interop.Windows.D2D1/Windows/shared/uuids/Windows.Manual.cs
similarity index 97%
rename from src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/uuids/Windows.Manual.cs
rename to src/TerraFX.Interop.Windows.D2D1/Windows/shared/uuids/Windows.Manual.cs
index 779ae778..d8316436 100644
--- a/src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/uuids/Windows.Manual.cs
+++ b/src/TerraFX.Interop.Windows.D2D1/Windows/shared/uuids/Windows.Manual.cs
@@ -9,7 +9,7 @@ using System.Runtime.CompilerServices;
#if NET6_0_OR_GREATER
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
#else
-using RuntimeHelpers = ComputeSharp.D2D1Interop.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
+using RuntimeHelpers = ComputeSharp.D2D1.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
#endif
namespace TerraFX.Interop.Windows
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/windef/RECT.cs b/src/TerraFX.Interop.Windows.D2D1/Windows/shared/windef/RECT.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/windef/RECT.cs
rename to src/TerraFX.Interop.Windows.D2D1/Windows/shared/windef/RECT.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/winerror/E.cs b/src/TerraFX.Interop.Windows.D2D1/Windows/shared/winerror/E.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/winerror/E.cs
rename to src/TerraFX.Interop.Windows.D2D1/Windows/shared/winerror/E.cs
diff --git a/src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/winerror/Windows.cs b/src/TerraFX.Interop.Windows.D2D1/Windows/shared/winerror/Windows.cs
similarity index 100%
rename from src/TerraFX.Interop.Windows.D2D1Interop/Windows/shared/winerror/Windows.cs
rename to src/TerraFX.Interop.Windows.D2D1/Windows/shared/winerror/Windows.cs
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/Assets/Landscape.png b/tests/ComputeSharp.D2D1.Tests/Assets/Landscape.png
similarity index 100%
rename from tests/ComputeSharp.D2D1Interop.Tests/Assets/Landscape.png
rename to tests/ComputeSharp.D2D1.Tests/Assets/Landscape.png
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/Assets/Landscape_Inverted.png b/tests/ComputeSharp.D2D1.Tests/Assets/Landscape_Inverted.png
similarity index 100%
rename from tests/ComputeSharp.D2D1Interop.Tests/Assets/Landscape_Inverted.png
rename to tests/ComputeSharp.D2D1.Tests/Assets/Landscape_Inverted.png
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/Assets/Landscape_Pixelate.png b/tests/ComputeSharp.D2D1.Tests/Assets/Landscape_Pixelate.png
similarity index 100%
rename from tests/ComputeSharp.D2D1Interop.Tests/Assets/Landscape_Pixelate.png
rename to tests/ComputeSharp.D2D1.Tests/Assets/Landscape_Pixelate.png
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/ComputeSharp.D2D1Interop.Tests.csproj b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
similarity index 82%
rename from tests/ComputeSharp.D2D1Interop.Tests/ComputeSharp.D2D1Interop.Tests.csproj
rename to tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
index 3522b4d2..d2d22ced 100644
--- a/tests/ComputeSharp.D2D1Interop.Tests/ComputeSharp.D2D1Interop.Tests.csproj
+++ b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
@@ -21,8 +21,8 @@
-
-
+
+
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/EndToEndTests.cs b/tests/ComputeSharp.D2D1.Tests/EndToEndTests.cs
similarity index 88%
rename from tests/ComputeSharp.D2D1Interop.Tests/EndToEndTests.cs
rename to tests/ComputeSharp.D2D1.Tests/EndToEndTests.cs
index b717ef3a..21186ea6 100644
--- a/tests/ComputeSharp.D2D1Interop.Tests/EndToEndTests.cs
+++ b/tests/ComputeSharp.D2D1.Tests/EndToEndTests.cs
@@ -1,11 +1,11 @@
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
-using ComputeSharp.D2D1Interop.Tests.Helpers;
+using ComputeSharp.D2D1.Tests.Helpers;
using ComputeSharp.Tests.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-namespace ComputeSharp.D2D1Interop.Tests;
+namespace ComputeSharp.D2D1.Tests;
[TestClass]
[TestCategory("EndToEnd")]
@@ -68,7 +68,7 @@ public partial struct InvertShader : ID2D1PixelShader
public float4 Execute()
{
- float4 color = D2D1.GetInput(0);
+ float4 color = D2D.GetInput(0);
float3 rgb = Hlsl.Saturate(this.number - color.RGB);
return new(rgb, 1);
@@ -94,7 +94,7 @@ public partial struct PixelateShader : ID2D1PixelShader
public float4 Execute()
{
- float2 scenePos = D2D1.GetScenePosition().XY;
+ float2 scenePos = D2D.GetScenePosition().XY;
uint x = (uint)Hlsl.Floor(scenePos.X);
uint y = (uint)Hlsl.Floor(scenePos.Y);
@@ -107,10 +107,10 @@ public partial struct PixelateShader : ID2D1PixelShader
int x1 = Hlsl.Min(this.constants.inputWidth, x0 + this.constants.cellSize) - 1;
int y1 = Hlsl.Min(this.constants.inputHeight, y0 + this.constants.cellSize) - 1;
- float4 sample0 = D2D1.SampleInputAtPosition(0, new int2(x0, y0));
- float4 sample1 = D2D1.SampleInputAtPosition(0, new int2(x1, y0));
- float4 sample2 = D2D1.SampleInputAtPosition(0, new int2(x0, y1));
- float4 sample3 = D2D1.SampleInputAtPosition(0, new int2(x1, y1));
+ float4 sample0 = D2D.SampleInputAtPosition(0, new int2(x0, y0));
+ float4 sample1 = D2D.SampleInputAtPosition(0, new int2(x1, y0));
+ float4 sample2 = D2D.SampleInputAtPosition(0, new int2(x0, y1));
+ float4 sample3 = D2D.SampleInputAtPosition(0, new int2(x1, y1));
float4 color = (sample0 + sample1 + sample2 + sample3) / 4;
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/Extensions/ComPtrExtensions.cs b/tests/ComputeSharp.D2D1.Tests/Extensions/ComPtrExtensions.cs
similarity index 94%
rename from tests/ComputeSharp.D2D1Interop.Tests/Extensions/ComPtrExtensions.cs
rename to tests/ComputeSharp.D2D1.Tests/Extensions/ComPtrExtensions.cs
index e2045c45..27904fb6 100644
--- a/tests/ComputeSharp.D2D1Interop.Tests/Extensions/ComPtrExtensions.cs
+++ b/tests/ComputeSharp.D2D1.Tests/Extensions/ComPtrExtensions.cs
@@ -1,7 +1,7 @@
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
-namespace ComputeSharp.D2D1Interop.Tests.Extensions;
+namespace ComputeSharp.D2D1.Tests.Extensions;
///
/// Helper methods for working with the type.
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/Extensions/HResultExtensions.cs b/tests/ComputeSharp.D2D1.Tests/Extensions/HResultExtensions.cs
similarity index 97%
rename from tests/ComputeSharp.D2D1Interop.Tests/Extensions/HResultExtensions.cs
rename to tests/ComputeSharp.D2D1.Tests/Extensions/HResultExtensions.cs
index ff9a88a6..c0d233a6 100644
--- a/tests/ComputeSharp.D2D1Interop.Tests/Extensions/HResultExtensions.cs
+++ b/tests/ComputeSharp.D2D1.Tests/Extensions/HResultExtensions.cs
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
-namespace ComputeSharp.D2D1Interop.Tests.Extensions;
+namespace ComputeSharp.D2D1.Tests.Extensions;
///
/// Helper methods to efficiently throw exceptions.
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/Helpers/D2D1ShaderTestHelper.cs b/tests/ComputeSharp.D2D1.Tests/Helpers/D2D1ShaderTestHelper.cs
similarity index 98%
rename from tests/ComputeSharp.D2D1Interop.Tests/Helpers/D2D1ShaderTestHelper.cs
rename to tests/ComputeSharp.D2D1.Tests/Helpers/D2D1ShaderTestHelper.cs
index 4ad1cc80..c04d9fea 100644
--- a/tests/ComputeSharp.D2D1Interop.Tests/Helpers/D2D1ShaderTestHelper.cs
+++ b/tests/ComputeSharp.D2D1.Tests/Helpers/D2D1ShaderTestHelper.cs
@@ -1,8 +1,9 @@
-using ComputeSharp.D2D1Interop.Tests.Extensions;
+using ComputeSharp.D2D1.Interop;
+using ComputeSharp.D2D1.Tests.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
-namespace ComputeSharp.D2D1Interop.Tests.Helpers;
+namespace ComputeSharp.D2D1.Tests.Helpers;
///
/// A test helper for D2D1 pixel shaders.
diff --git a/tests/ComputeSharp.D2D1Interop.Tests/Helpers/WICHelper.cs b/tests/ComputeSharp.D2D1.Tests/Helpers/WICHelper.cs
similarity index 98%
rename from tests/ComputeSharp.D2D1Interop.Tests/Helpers/WICHelper.cs
rename to tests/ComputeSharp.D2D1.Tests/Helpers/WICHelper.cs
index 95da0608..34b2e0af 100644
--- a/tests/ComputeSharp.D2D1Interop.Tests/Helpers/WICHelper.cs
+++ b/tests/ComputeSharp.D2D1.Tests/Helpers/WICHelper.cs
@@ -1,9 +1,9 @@
using System;
using System.Runtime.CompilerServices;
-using ComputeSharp.D2D1Interop.Tests.Extensions;
+using ComputeSharp.D2D1.Tests.Extensions;
using TerraFX.Interop.Windows;
-namespace ComputeSharp.D2D1Interop.Tests.Helpers;
+namespace ComputeSharp.D2D1.Tests.Helpers;
///
/// A that uses the WIC APIs to load and decode images.