Rename package to ComputeSharp.D2D1
Also rename D2D1 to D2D for consistency with HLSL, and tweak namespaces
このコミットが含まれているのは:
1 親
d4501323d7
コミット
5390d8b27c
104ファイル変更
+274
-273
検索条件に一致するファイルはありません
@@ -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
|
||||
|
||||
+12
-12
@@ -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
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Uwp")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.WinUI")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.D2D1Interop")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.D2D1")]
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
<SharedGUID>2608eb41-f98b-4be5-9f4d-68fed6115088</SharedGUID>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>ComputeSharp.D2D1Interop.NetStandard</Import_RootNamespace>
|
||||
<Import_RootNamespace>ComputeSharp.D2D1.NetStandard</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics.CodeAnalysis\DoesNotReturnAttribute.cs" />
|
||||
+1
-1
@@ -8,6 +8,6 @@
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
|
||||
<PropertyGroup />
|
||||
<Import Project="ComputeSharp.D2D1Interop.NetStandard.projitems" Label="Shared" />
|
||||
<Import Project="ComputeSharp.D2D1.NetStandard.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
|
||||
</Project>
|
||||
差分なしでファイル名を変更。
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.NetStandard.System.Runtime.CompilerServices;
|
||||
namespace ComputeSharp.D2D1.NetStandard.System.Runtime.CompilerServices;
|
||||
|
||||
/// <summary>
|
||||
/// A polyfill type that mirrors some methods from <see cref="RuntimeHelpers"/> on .NET 5.
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.NetStandard.System.Text;
|
||||
namespace ComputeSharp.D2D1.NetStandard.System.Text;
|
||||
|
||||
/// <summary>
|
||||
/// A polyfill type that mirrors some methods from <see cref="Encoding"/> on .NET 5.
|
||||
+5
-5
@@ -5,9 +5,9 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<PackageId>ComputeSharp.D2D1Interop</PackageId>
|
||||
<Title>ComputeSharp.D2D1Interop</Title>
|
||||
<Description>A library containing basic primitives to support ComputeSharp (this package is not supposed to be referenced directly by developers)</Description>
|
||||
<PackageId>ComputeSharp.D2D1</PackageId>
|
||||
<Title>ComputeSharp.D2D1</Title>
|
||||
<Description>A library to write D2D1 pixel shaders entirely with C# code, and to easily register and create ID2D1Effect-s from them</Description>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -15,8 +15,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ComputeSharp.D2D1Interop\ComputeSharp.D2D1Interop.csproj" />
|
||||
<ProjectReference Include="..\ComputeSharp.D2D1Interop.SourceGenerators\ComputeSharp.D2D1Interop.SourceGenerators.csproj" PackFolder="analyzers\dotnet\cs" />
|
||||
<ProjectReference Include="..\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj" />
|
||||
<ProjectReference Include="..\ComputeSharp.D2D1.SourceGenerators\ComputeSharp.D2D1.SourceGenerators.csproj" PackFolder="analyzers\dotnet\cs" />
|
||||
<ProjectReference Include="..\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj" TargetFramework="net6.0">
|
||||
<AdditionalProperties>PackageVersion=$(PackageVersion)</AdditionalProperties>
|
||||
</ProjectReference>
|
||||
@@ -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)
|
||||
差分なしでファイル名を変更。
+21
-21
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<PackSymbols>false</PackSymbols>
|
||||
<Description>ComputeSharp.D2D1Interop.SourceGenerators</Description>
|
||||
<Description>ComputeSharp.D2D1.SourceGenerators</Description>
|
||||
<NoWarn>$(NoWarn);CS1591;CS0649;CS1574</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -62,24 +62,24 @@
|
||||
<Compile Include="..\ComputeSharp\Core\Helpers\AlignmentHelper.cs" Link="ComputeSharp\Core\Helpers\AlignmentHelper.cs" />
|
||||
<Compile Include="..\ComputeSharp\Shaders\Dispatching\__Internals\ArrayPoolStringBuilder.cs" Link="ComputeSharp\Shaders\Dispatching\__Internals\ArrayPoolStringBuilder.cs" />
|
||||
|
||||
<!-- ComputeSharp.D2D1Interop APIs -->
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Attributes\Profiles\D2D1ShaderProfile.cs" Link="ComputeSharp.D2D1Interop\Attributes\Profiles\D2D1ShaderProfile.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Attributes\D2DEmbeddedBytecodeAttribute.cs" Link="ComputeSharp.D2D1Interop\Attributes\D2DEmbeddedBytecodeAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Attributes\D2DInputComplexAttribute.cs" Link="ComputeSharp.D2D1Interop\Attributes\D2DInputComplexAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Attributes\D2DInputCountAttribute.cs" Link="ComputeSharp.D2D1Interop\Attributes\D2DInputCountAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Attributes\D2DInputSimpleAttribute.cs" Link="ComputeSharp.D2D1Interop\Attributes\D2DInputSimpleAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Attributes\D2DRequiresScenePositionAttribute.cs" Link="ComputeSharp.D2D1Interop\Attributes\D2DRequiresScenePositionAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Extensions\ComPtrExtensions.cs" Link="ComputeSharp.D2D1Interop\Extensions\ComPtrExtensions.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Extensions\HResultExtensions.cs" Link="ComputeSharp.D2D1Interop\Extensions\HResultExtensions.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Interfaces\ID2D1PixelShader.cs" Link="ComputeSharp.D2D1Interop\Interfaces\ID2D1PixelShader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Interfaces\__Internals\ID2D1BytecodeLoader.cs" Link="ComputeSharp.D2D1Interop\Interfaces\__Internals\ID2D1BytecodeLoader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Interfaces\__Internals\ID2D1DispatchDataLoader.cs" Link="ComputeSharp.D2D1Interop\Interfaces\__Internals\ID2D1DispatchDataLoader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Interfaces\__Internals\ID2D1Shader.cs" Link="ComputeSharp.D2D1Interop\Interfaces\__Internals\ID2D1Shader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Intrinsics\D2D1.cs" Link="ComputeSharp.D2D1Interop\Intrinsics\D2D1.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Shaders\Exceptions\FxcCompilationException.cs" Link="ComputeSharp.D2D1Interop\Shaders\Exceptions\FxcCompilationException.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Shaders\Translation\D2D1ShaderCompiler.cs" Link="ComputeSharp.D2D1Interop\Shaders\Translation\D2D1ShaderCompiler.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1Interop\Shaders\Translation\D2D1ShaderCompiler.ID3DInclude.cs" Link="ComputeSharp.D2D1Interop\Shaders\Translation\D2D1ShaderCompiler.ID3DInclude.cs" />
|
||||
<EmbeddedResource Include="..\ComputeSharp.D2D1Interop\Shaders\Translation\Headers\d2d1effecthelpers.hlsli" Link="ComputeSharp.D2D1Interop\Shaders\Translation\Headers\d2d1effecthelpers.hlsli" />
|
||||
<!-- ComputeSharp.D2D1 APIs -->
|
||||
<Compile Include="..\ComputeSharp.D2D1\Attributes\Profiles\D2D1ShaderProfile.cs" Link="ComputeSharp.D2D1\Attributes\Profiles\D2D1ShaderProfile.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Attributes\D2DEmbeddedBytecodeAttribute.cs" Link="ComputeSharp.D2D1\Attributes\D2DEmbeddedBytecodeAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Attributes\D2DInputComplexAttribute.cs" Link="ComputeSharp.D2D1\Attributes\D2DInputComplexAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Attributes\D2DInputCountAttribute.cs" Link="ComputeSharp.D2D1\Attributes\D2DInputCountAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Attributes\D2DInputSimpleAttribute.cs" Link="ComputeSharp.D2D1\Attributes\D2DInputSimpleAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Attributes\D2DRequiresScenePositionAttribute.cs" Link="ComputeSharp.D2D1\Attributes\D2DRequiresScenePositionAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Extensions\ComPtrExtensions.cs" Link="ComputeSharp.D2D1\Extensions\ComPtrExtensions.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Extensions\HResultExtensions.cs" Link="ComputeSharp.D2D1\Extensions\HResultExtensions.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Interfaces\ID2D1PixelShader.cs" Link="ComputeSharp.D2D1\Interfaces\ID2D1PixelShader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Interfaces\__Internals\ID2D1BytecodeLoader.cs" Link="ComputeSharp.D2D1\Interfaces\__Internals\ID2D1BytecodeLoader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Interfaces\__Internals\ID2D1DispatchDataLoader.cs" Link="ComputeSharp.D2D1\Interfaces\__Internals\ID2D1DispatchDataLoader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Interfaces\__Internals\ID2D1Shader.cs" Link="ComputeSharp.D2D1\Interfaces\__Internals\ID2D1Shader.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Intrinsics\D2D.cs" Link="ComputeSharp.D2D1\Intrinsics\D2D.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Shaders\Exceptions\FxcCompilationException.cs" Link="ComputeSharp.D2D1\Shaders\Exceptions\FxcCompilationException.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Shaders\Translation\D2D1ShaderCompiler.cs" Link="ComputeSharp.D2D1\Shaders\Translation\D2D1ShaderCompiler.cs" />
|
||||
<Compile Include="..\ComputeSharp.D2D1\Shaders\Translation\D2D1ShaderCompiler.ID3DInclude.cs" Link="ComputeSharp.D2D1\Shaders\Translation\D2D1ShaderCompiler.ID3DInclude.cs" />
|
||||
<EmbeddedResource Include="..\ComputeSharp.D2D1\Shaders\Translation\Headers\d2d1effecthelpers.hlsli" Link="ComputeSharp.D2D1\Shaders\Translation\Headers\d2d1effecthelpers.hlsli" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -99,6 +99,6 @@
|
||||
<Import Project="..\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems" Label="Shared" />
|
||||
|
||||
<!-- Shared project with TerraFX.Interop.Windows fork -->
|
||||
<Import Project="..\TerraFX.Interop.Windows.D2D1Interop\TerraFX.Interop.Windows.D2D1Interop.projitems" Label="Shared" />
|
||||
<Import Project="..\ComputeSharp.D2D1Interop.NetStandard\ComputeSharp.D2D1Interop.NetStandard.projitems" Label="Shared" />
|
||||
<Import Project="..\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems" Label="Shared" />
|
||||
<Import Project="..\ComputeSharp.D2D1.NetStandard\ComputeSharp.D2D1.NetStandard.projitems" Label="Shared" />
|
||||
</Project>
|
||||
+35
-35
@@ -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.",
|
||||
+4
-4
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
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 = <HLSL_SOURCE>;
|
||||
// }
|
||||
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))))
|
||||
+8
-8
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
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:
|
||||
+9
-9
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
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<TLoader>(ref TLoader loader, global::ComputeSharp.D2D1Interop.D2D1ShaderProfile? shaderProfile)
|
||||
// readonly void global::ComputeSharp.D2D1.__Internals.ID2D1Shader.LoadBytecode<TLoader>(ref TLoader loader, global::ComputeSharp.D2D1.D2D1ShaderProfile? shaderProfile)
|
||||
// {
|
||||
// <BODY>
|
||||
// }
|
||||
@@ -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, <ENABLE_LINKING_SUPPORT>);
|
||||
// ComputeSharp.D2D1.__Internals.D2D1ShaderCompiler.LoadDynamicBytecode(ref loader, in this, shaderProfile, <ENABLE_LINKING_SUPPORT>);
|
||||
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(
|
||||
+8
-8
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class ID2D1ShaderGenerator
|
||||
@@ -30,7 +30,7 @@ partial class ID2D1ShaderGenerator
|
||||
/// <returns>The shader profile to use to compile the shader, if present.</returns>
|
||||
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
|
||||
/// <returns>Whether the shader only has simple inputs.</returns>
|
||||
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;
|
||||
}
|
||||
+5
-5
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
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<TLoader>(ref TLoader loader)
|
||||
// readonly void global::ComputeSharp.D2D1.__Internals.ID2D1Shader.LoadDispatchData<TLoader>(ref TLoader loader)
|
||||
// {
|
||||
// <BODY>
|
||||
// }
|
||||
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")))
|
||||
+3
-3
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class ID2D1ShaderGenerator
|
||||
+1
-1
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial class ID2D1ShaderGenerator
|
||||
+2
-2
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A source generator creating data loaders for the <see cref="ID2D1PixelShader"/> type.
|
||||
+2
-2
@@ -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<string> 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<HlslIntrinsicNameAttribute>()?.Name ?? method.Name;
|
||||
|
||||
+3
-3
@@ -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<HlslIntrinsicNameAttribute>()?.Name ?? method.Name;
|
||||
|
||||
knownMethods.Add($"{typeof(D2D1).FullName}{Type.Delimiter}{method.Name}", hlslName);
|
||||
knownMethods.Add($"{typeof(D2D).FullName}{Type.Delimiter}{method.Name}", hlslName);
|
||||
}
|
||||
}
|
||||
}
|
||||
差分なしでファイル名を変更。
+1
-1
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing gathered info on a shader dispatch data.
|
||||
+1
-1
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing a shared and its compiled bytecode, if available.
|
||||
+1
-1
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A base type for a model describing a given captured field in a shader.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace ComputeSharp.D2D1Interop.SourceGenerators.Models;
|
||||
namespace ComputeSharp.D2D1.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model for extracted info on a processed HLSL shader.
|
||||
+2
-2
@@ -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;
|
||||
|
||||
/// <inheritdoc cref="HlslSourceRewriter"/>
|
||||
internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter
|
||||
+2
-2
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A base <see cref="CSharpSyntaxRewriter"/> type that processes C# source to convert to HLSL compliant code.
|
||||
+2
-2
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A custom <see cref="CSharpSyntaxRewriter"/> type that processes C# methods to convert to HLSL compliant code.
|
||||
+1
-1
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A custom <see cref="CSharpSyntaxRewriter"/> type that processes C# static field to convert to HLSL static fields (possibly constant).
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
#if !SOURCE_GENERATOR
|
||||
using ComputeSharp.D2D1Interop.Helpers;
|
||||
using ComputeSharp.D2D1.Helpers;
|
||||
#endif
|
||||
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute that indicates that a given D2D1 shader should be precompiled at build time and embedded
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute for a D2D1 shader indicating that an input resource at a specified index uses complex sampling.
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute for a D2D1 shader indicating the number of texture inputs for the shader.
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute for a D2D1 shader indicating that an input resource at a specified index uses simple
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute for a D2D1 shader indicating that the shader function calls helper methods that use the scene position
|
||||
/// value (that is, <see cref="D2D1.GetScenePosition"/>). This parameter should only be included when necessary, since
|
||||
/// value (that is, <see cref="D2D.GetScenePosition"/>). This parameter should only be included when necessary, since
|
||||
/// only one function per linked shader can utilize this parameter. Defining this value is optional.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="enum"/> to be used with <see cref="D2DEmbeddedBytecodeAttribute"/> to indicate the shader profile to use to precompile a shader.
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DocumentationFile>ComputeSharp.D2D1Interop.xml</DocumentationFile>
|
||||
<DocumentationFile>ComputeSharp.D2D1.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Remove="Shaders\Translation\Headers\d2d1effecthelpers.hlsli" />
|
||||
@@ -30,8 +30,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Shared project with the trimmed down fork of TerraFX.Interop.Windows with just the D3D bindings -->
|
||||
<Import Project="..\TerraFX.Interop.Windows.D2D1Interop\TerraFX.Interop.Windows.D2D1Interop.projitems" Label="Shared" />
|
||||
<Import Project="..\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems" Label="Shared" />
|
||||
|
||||
<!-- Shared project with .NET Standard 2.0 polyfills -->
|
||||
<Import Condition="'$(TargetFramework)' == 'netstandard2.0'" Project="..\ComputeSharp.D2D1Interop.NetStandard\ComputeSharp.D2D1Interop.NetStandard.projitems" Label="Shared" />
|
||||
<Import Condition="'$(TargetFramework)' == 'netstandard2.0'" Project="..\ComputeSharp.D2D1.NetStandard\ComputeSharp.D2D1.NetStandard.projitems" Label="Shared" />
|
||||
</Project>
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
<Project>
|
||||
|
||||
<!-- Get the analyzer from the ComputeSharp.D2D1Interop NuGet package -->
|
||||
<!-- Get the analyzer from the ComputeSharp.D2D1 NuGet package -->
|
||||
<Target Name="_ComputeSharpGatherAnalyzers">
|
||||
<ItemGroup>
|
||||
<_ComputeSharpAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'ComputeSharp.D2D1Interop'" />
|
||||
<_ComputeSharpAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'ComputeSharp.D2D1'" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<!-- If the source generators are disabled, also emit an error. This would've been produced by MSBuild itself as well, but
|
||||
emitting this manually lets us customize the message to inform developers as to why exactly the generators have been
|
||||
disabled, and that ComputeSharp will not work at all unless a more up to date IDE or compiler version are used. -->
|
||||
<Error Condition ="'$(CurrentCompilerVersionIsNotNewEnough)' == 'true'" Text="The ComputeSharp.D2D1Interop source generators have been disabled on the current configuration, as they need Roslyn 4.x in order to work. ComputeSharp.D2D1Interop requires the source generators to run in order to process shaders, so the library cannot be used without a more up to date IDE (eg. VS2022) or .NET SDK version."/>
|
||||
<Error Condition ="'$(CurrentCompilerVersionIsNotNewEnough)' == 'true'" Text="The ComputeSharp.D2D1 source generators have been disabled on the current configuration, as they need Roslyn 4.x in order to work. ComputeSharp.D2D1 requires the source generators to run in order to process shaders, so the library cannot be used without a more up to date IDE (eg. VS2022) or .NET SDK version."/>
|
||||
</Target>
|
||||
|
||||
<!-- Remove the analyzer if Roslyn is missing -->
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.Extensions;
|
||||
namespace ComputeSharp.D2D1.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// Helper methods for working with the <see cref="ComPtr{T}"/> type.
|
||||
+1
-1
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.Extensions;
|
||||
namespace ComputeSharp.D2D1.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// Helper methods to efficiently throw exceptions.
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.Helpers;
|
||||
namespace ComputeSharp.D2D1.Helpers;
|
||||
|
||||
/// <summary>
|
||||
/// Helper methods to efficiently throw exceptions.
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
using ComputeSharp.D2D1Interop.__Internals;
|
||||
using ComputeSharp.D2D1.__Internals;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An <see langword="interface"/> representing a D2D1 pixel shader.
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.__Internals;
|
||||
namespace ComputeSharp.D2D1.__Internals;
|
||||
|
||||
/// <summary>
|
||||
/// A base <see langword="interface"/> representing a bytecode loader for a D2D1 shader.
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.__Internals;
|
||||
namespace ComputeSharp.D2D1.__Internals;
|
||||
|
||||
/// <summary>
|
||||
/// A base <see langword="interface"/> representing a data loader for a D2D1 shader being dispatched.
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.__Internals;
|
||||
namespace ComputeSharp.D2D1.__Internals;
|
||||
|
||||
/// <summary>
|
||||
/// A base <see langword="interface"/> representing a given shader that can be dispatched.
|
||||
+8
-8
@@ -1,13 +1,13 @@
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
using ComputeSharp.Exceptions;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that maps the supported HLSL intrinsic functions specifically for D2D1 shaders.
|
||||
/// </summary>
|
||||
/// <remarks>For more info, see <see href="https://docs.microsoft.com/en-us/windows/win32/direct2d/hlsl-helpers"/>.</remarks>
|
||||
public static class D2D1
|
||||
public static class D2D
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the color of the input texture at a specific index, for the curreent coordinate.
|
||||
@@ -16,7 +16,7 @@ public static class D2D1
|
||||
/// <returns>The color from the target input at the current coordinate, in <c>INPUTN</c> format.</returns>
|
||||
/// <remarks>This method is only available for simple inputs.</remarks>
|
||||
[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)})");
|
||||
|
||||
/// <summary>
|
||||
/// Returns the coordinate of the input texture at a specific index.
|
||||
@@ -25,7 +25,7 @@ public static class D2D1
|
||||
/// <returns>The input coordinate, in <c>TEXCOORDN</c> format.</returns>
|
||||
/// <remarks>This method is only available for complex inputs.</remarks>
|
||||
[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)})");
|
||||
|
||||
/// <summary>
|
||||
/// Returns the value of the current scene position.
|
||||
@@ -33,7 +33,7 @@ public static class D2D1
|
||||
/// <returns>The current scene position, in <c>SCENE_POSITION</c> format.</returns>
|
||||
/// <remarks>This method is only available when <see cref="D2DRequiresScenePositionAttribute"/> is used on the shader type.</remarks>
|
||||
[HlslIntrinsicName("D2DGetScenePosition")]
|
||||
public static Float4 GetScenePosition() => throw new InvalidExecutionContextException($"{typeof(D2D1)}.{nameof(GetScenePosition)}()");
|
||||
public static Float4 GetScenePosition() => throw new InvalidExecutionContextException($"{typeof(D2D)}.{nameof(GetScenePosition)}()");
|
||||
|
||||
/// <summary>
|
||||
/// Samples the input texture at a specified index and at a given position.
|
||||
@@ -43,7 +43,7 @@ public static class D2D1
|
||||
/// <returns>The sampled value from the texture, in <c>TEXCOORDN</c> format.</returns>
|
||||
/// <remarks>This method is only available for complex inputs.</remarks>
|
||||
[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)})");
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// <returns>The sampled value from the texture, in <c>TEXCOORDN</c> format.</returns>
|
||||
/// <remarks>This method is only available for simple inputs.</remarks>
|
||||
[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)})");
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// <returns>The sampled value from the texture, in <c>TEXCOORDN</c> format.</returns>
|
||||
/// <remarks>This method is only available for complex inputs.</remarks>
|
||||
[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)})");
|
||||
}
|
||||
差分なしでファイル名を変更。
+2
-2
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A data loader for D2D1 pixel shaders dispatched via <see cref="ID2D1DrawInfo"/>.
|
||||
+2
-2
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A data loader for D2D1 pixel shaders dispatched via <see cref="ID2D1DrawInfo"/>.
|
||||
+3
-3
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A data loader for D2D1 pixel shaders dispatched via <see cref="ID2D1Effect"/>.
|
||||
+4
-4
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A bytecode loader for D2D1 shaders.
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.Exceptions;
|
||||
namespace ComputeSharp.D2D1.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// A custom <see cref="Exception"/> type that indicates when a shader compilation with the FXC compiler has failed.
|
||||
+2
-2
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A custom <see cref="MemoryManager{T}"/> that wraps a pinned memory buffer.
|
||||
+5
-5
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
unsafe partial class D2D1InteropServices
|
||||
@@ -44,7 +44,7 @@ unsafe partial class D2D1InteropServices
|
||||
<Effect>
|
||||
<!-- System Properties -->
|
||||
<Property name='DisplayName' type='string' value='{typeof(T).FullName}'/>
|
||||
<Property name='Author' type='string' value='ComputeSharp.D2D1Interop'/>
|
||||
<Property name='Author' type='string' value='ComputeSharp.D2D1'/>
|
||||
<Property name='Category' type='string' value='Stylize'/>
|
||||
<Property name='Description' type='string' value='A custom D2D1 effect using a pixel shader'/>
|
||||
<Inputs>
|
||||
+3
-3
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// Provides methods to extract reflection info on D2D1 shaders generated using this library.
|
||||
+3
-3
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// Provides methods to extract reflection info on D2D1 shaders generated using this library.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace ComputeSharp.D2D1Interop;
|
||||
namespace ComputeSharp.D2D1.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing reflection info for a given D2D1 shader.
|
||||
+1
-1
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
partial struct PixelShaderEffect
|
||||
+1
-1
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A simple <see cref="ID2D1EffectImpl"/> and <see cref="ID2D1DrawTransform"/> implementation for a given pixel shader.
|
||||
+2
-2
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A simple <see cref="ID2D1EffectImpl"/> and <see cref="ID2D1DrawTransform"/> implementation for a given pixel shader.
|
||||
+4
-4
@@ -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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
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)!;
|
||||
+4
-4
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that uses the FXC APIs to compile D2D1 pixel shaders.
|
||||
差分なしでファイル名を変更。
+1
-1
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
|
||||
using TerraFX.Interop.DirectX;
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
namespace ComputeSharp.D2D1Interop.__Internals;
|
||||
namespace ComputeSharp.D2D1.__Internals;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that uses the DXC APIs to compile compute shaders.
|
||||
@@ -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)
|
||||
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
+1
-1
@@ -6,7 +6,7 @@
|
||||
<SharedGUID>9da1da9f-f8b2-4b25-be80-c21f773029e3</SharedGUID>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>TerraFX.Interop.Windows.D2D1Interop</Import_RootNamespace>
|
||||
<Import_RootNamespace>TerraFX.Interop.Windows.D2D1</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)..\TerraFX.Interop.Windows\DirectX\um\d3d11shader\D3D.cs" Link="DirectX\um\d3d11shader\D3D.cs" />
|
||||
+1
-1
@@ -8,6 +8,6 @@
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
|
||||
<PropertyGroup />
|
||||
<Import Project="TerraFX.Interop.Windows.D2D1Interop.projitems" Label="Shared" />
|
||||
<Import Project="TerraFX.Interop.Windows.D2D1.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
|
||||
</Project>
|
||||
+1
-1
@@ -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
|
||||
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
|
変更前 幅: | 高さ: | サイズ: 1.7 MiB 変更後 幅: | 高さ: | サイズ: 1.7 MiB |
差分なしでファイル名を変更。
|
変更前 幅: | 高さ: | サイズ: 2.0 MiB 変更後 幅: | 高さ: | サイズ: 2.0 MiB |
差分なしでファイル名を変更。
|
変更前 幅: | 高さ: | サイズ: 24 KiB 変更後 幅: | 高さ: | サイズ: 24 KiB |
+2
-2
@@ -21,8 +21,8 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.Core\ComputeSharp.Core.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.D2D1Interop\ComputeSharp.D2D1Interop.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.D2D1Interop.SourceGenerators\ComputeSharp.D2D1Interop.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.D2D1.SourceGenerators\ComputeSharp.D2D1.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
+8
-8
@@ -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;
|
||||
|
||||
104ファイル中100ファイルを読み込みました。 変更されたファイルが多すぎるため、それ以降のファイルは表示していません。
さらに表示
新しいイシューから参照
ユーザーをブロックする