Merge pull request #218 from Sergio0694/feature/d2d1-interop

Add support for D2D1 pixel shaders
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2022-04-24 22:33:27 +02:00
コミット ebf906c062
317ファイル変更
+14569 -2302

検索条件に一致するファイルはありません

+77 -102
ファイルの表示
@@ -2,6 +2,10 @@ name: .NET
on: [push, pull_request]
env:
EXCLUDE_RUN_ID_FROM_PACKAGE: false
EXCLUDE_SUFFIX_FROM_VERSION: false
jobs:
# Build the whole ComputeSharp solution, in Debug
@@ -44,8 +48,49 @@ jobs:
run: msbuild -t:restore,build /p:Configuration=Release /p:Platform=x64
shell: cmd
# Run all the unit tests referencing the ComputeSharp project directly
run-tests:
# Build the .msbuildproj projects and the UWP/WinUI projects to generate all the NuGet packages.
# This workflow also uploads the resulting packages as artifacts.
build-packages:
runs-on: windows-2022
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build ComputeSharp.Core package
run: dotnet build src\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj -c Release
shell: cmd
- name: Build ComputeSharp package
run: dotnet build src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj -c Release
shell: cmd
- name: Build ComputeSharp.Dynamic package
run: dotnet build src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj -c Release
shell: cmd
- name: Build ComputeSharp.D2D1 package
run: dotnet build src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj -c Release
shell: cmd
- name: Build ComputeSharp.Uwp package
run: msbuild src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj -t:restore,build,pack /p:Configuration=Release
shell: cmd
- name: Restore ComputeSharp.WinUI project
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /p:Configuration=Release
shell: cmd
- name: Build ComputeSharp.WinUI package
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:pack /p:Configuration=Release
shell: cmd # Packing needs to be done separately and with no previous build target for it to work correctly
- name: Upload package artifacts
uses: actions/upload-artifact@v2
with:
name: nuget_preview
path: artifacts\*.nupkg
if-no-files-found: error
# Run all the DX12 unit tests referencing the ComputeSharp project directly
run-dx12-tests:
if: success()
needs: [build-solution-debug, build-solution-release]
runs-on: windows-2022
@@ -91,10 +136,26 @@ jobs:
run: dotnet test tests\ComputeSharp.Tests.SourceGenerators\ComputeSharp.Tests.SourceGenerators.csproj -v n -l "console;verbosity=detailed"
shell: cmd
# Run all the local samples to ensure they build and run with no errors
run-samples:
# Run all the D2D1 unit tests (referencing ComputeSharp.D2D1)
run-d2d1-tests:
if: success()
needs: [run-tests]
needs: [build-solution-debug, build-solution-release]
runs-on: windows-2022
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- 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
run-dx12-samples:
if: success()
needs: [build-solution-debug, build-solution-release]
runs-on: windows-2022
steps:
- name: Git checkout
@@ -156,42 +217,12 @@ jobs:
run: dotnet build samples\ComputeSharp.SwapChain\ComputeSharp.SwapChain.csproj -c Release
shell: cmd
# Buils the .msbuildproj project to generate the NuGet package.
# This workflow also uploads the resulting package as an artifact.
build-package:
# 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
# a test to ensure the NuGet packages work in a consuming project.
verify-packages:
if: success()
needs: [build-solution-debug, build-solution-release]
runs-on: windows-2022
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build ComputeSharp package
run: dotnet build src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj -c Release /p:ContinuousIntegrationBuild=True
shell: cmd
- name: Upload ComputeSharp package artifact
uses: actions/upload-artifact@v2
with:
name: ComputeSharp.nupkg
path: src\ComputeSharp.Package\bin\Release\*.nupkg
- name: Build ComputeSharp.Dynamic package
run: dotnet build src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj -c Release /p:ContinuousIntegrationBuild=True
shell: cmd
- name: Upload ComputeSharp.Dynamic package artifact
uses: actions/upload-artifact@v2
with:
name: ComputeSharp.Dynamic.nupkg
path: src\ComputeSharp.Dynamic.Package\bin\Release\*.nupkg
# Download the NuGet package generated in the previous job and use it
# to build and run the sample project referencing it. This is used as
# a test to ensure the NuGet package works in a consuming project.
verify-package:
if: success()
needs: [build-package]
needs: [build-packages]
runs-on: windows-2022
steps:
- name: Git checkout
@@ -201,18 +232,13 @@ jobs:
with:
dotnet-version: 6.0.x
- name: Create local NuGet feed
run: mkdir src\ComputeSharp.Package\bin\Release
run: mkdir artifacts
shell: cmd
- name: Download ComputeSharp package artifact
- name: Download package artifacts
uses: actions/download-artifact@v2
with:
name: ComputeSharp.nupkg
path: src\ComputeSharp.Package\bin\Release\ComputeSharp.nupkg
- name: Download ComputeSharp.Dynamic package artifact
uses: actions/download-artifact@v2
with:
name: ComputeSharp.Dynamic.nupkg
path: src\ComputeSharp.Dynamic.Package\bin\Release\ComputeSharp.Dynamic.nupkg
name: nuget_preview
path: artifacts
- name: Build ComputeSharp.Sample.NuGet (.NET 6)
run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release -f net6.0
shell: cmd
@@ -237,7 +263,7 @@ jobs:
# regardless of whether the app is shipping with R2R, self-contained, etc.
verify-package-native-libs:
if: success()
needs: [verify-package]
needs: [build-packages]
runs-on: windows-2022
steps:
- name: Git checkout
@@ -248,55 +274,4 @@ jobs:
dotnet-version: 6.0.x
- name: Run ComputeSharp.Tests.NativeLibrariesResolver
run: dotnet test tests\ComputeSharp.Tests.NativeLibrariesResolver\ComputeSharp.Tests.NativeLibrariesResolver.csproj -v n -l "console;verbosity=detailed"
shell: cmd
# Build the WinUI project again to generate a NuGet package from it.
# This workflow also uploads the resulting package as an artifact.
build-package-winui:
if: success()
needs: [verify-package]
runs-on: windows-2022
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /p:Configuration=Release /p:ContinuousIntegrationBuild=True
shell: cmd
- name: Build
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:pack /p:Configuration=Release /p:ContinuousIntegrationBuild=True
shell: cmd # Packing needs to be done separately and with no previous build target for it to work correctly
- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: ComputeSharp.WinUI.nupkg
path: src\ComputeSharp.WinUI\bin\Release\*.nupkg
# Build the UWP project again to generate a NuGet package from it.
# This workflow also uploads the resulting package as an artifact, like the WinUI one.
build-package-uwp:
if: success()
needs: [verify-package]
runs-on: windows-2022
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: msbuild src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj -t:restore,build,pack /p:Configuration=Release /p:ContinuousIntegrationBuild=True
shell: cmd
- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: ComputeSharp.Uwp.nupkg
path: src\ComputeSharp.Uwp\bin\Release\*.nupkg
shell: cmd
+4
ファイルの表示
@@ -27,6 +27,10 @@ bld/
[Oo]bj/
[Ll]og/
# Include the bundled libraries
!**/Libraries/x64/
!**/Libraries/arm64/
# Debug view types
!**/Resources/Debug
+106 -1
ファイルの表示
@@ -30,9 +30,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.SourceGenerato
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.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.Package\icon.png = src\ComputeSharp.Package\icon.png
src\ComputeSharp.Core.Package\icon.png = src\ComputeSharp.Core.Package\icon.png
src\ComputeSharp.Core.Package\icon_highres.png = src\ComputeSharp.Core.Package\icon_highres.png
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Sample", "samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj", "{7048DEEA-0A6F-46A0-B951-B682A8F1CB75}"
@@ -75,6 +78,26 @@ 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.D2D1", "src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj", "{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}"
EndProject
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.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
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.Core.NetStandard", "src\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.shproj", "{3ACACF03-6B20-40BA-B8EC-11AC1624D2C9}"
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.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.D2D1.Tests", "tests\ComputeSharp.D2D1.Tests\ComputeSharp.D2D1.Tests.csproj", "{209C95A3-FA53-431B-B688-3299CA6C29D2}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{0071701e-b9c5-4098-be5f-ef556c4553c6}*SharedItemsImports = 5
@@ -82,18 +105,36 @@ 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.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.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
samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{751bb05b-563d-4b3a-94c6-15e2d79d35ea}*SharedItemsImports = 13
src\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems*{764bc0f5-0c5e-49ad-abaa-e3874c0f3286}*SharedItemsImports = 5
src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{76c66257-fdaa-47ab-85e7-ef757eab10c0}*SharedItemsImports = 5
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.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.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.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
src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5
src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5
src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5
src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5
src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5
src\ComputeSharp.UI\ComputeSharp.UI.projitems*{fa18ba9f-76bf-4de0-8d24-02fc7657e6cb}*SharedItemsImports = 5
@@ -337,6 +378,66 @@ Global
{76C66257-FDAA-47AB-85E7-EF757EAB10C0}.Release|ARM64.Build.0 = Release|ARM64
{76C66257-FDAA-47AB-85E7-EF757EAB10C0}.Release|x64.ActiveCfg = Release|x64
{76C66257-FDAA-47AB-85E7-EF757EAB10C0}.Release|x64.Build.0 = Release|x64
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Debug|ARM64.Build.0 = Debug|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Debug|x64.ActiveCfg = Debug|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Debug|x64.Build.0 = Debug|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Release|Any CPU.Build.0 = Release|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Release|ARM64.ActiveCfg = Release|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Release|ARM64.Build.0 = Release|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Release|x64.ActiveCfg = Release|Any CPU
{4D7D9BA8-A821-4B1C-9EE2-CBCF5849906E}.Release|x64.Build.0 = Release|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Debug|Any CPU.Build.0 = Debug|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Debug|ARM64.Build.0 = Debug|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Debug|x64.ActiveCfg = Debug|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Debug|x64.Build.0 = Debug|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Release|Any CPU.ActiveCfg = Release|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Release|Any CPU.Build.0 = Release|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Release|ARM64.ActiveCfg = Release|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Release|ARM64.Build.0 = Release|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Release|x64.ActiveCfg = Release|Any CPU
{764BC0F5-0C5E-49AD-ABAA-E3874C0F3286}.Release|x64.Build.0 = Release|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Debug|ARM64.Build.0 = Debug|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Debug|x64.ActiveCfg = Debug|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Debug|x64.Build.0 = Debug|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Release|Any CPU.Build.0 = Release|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Release|ARM64.ActiveCfg = Release|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Release|ARM64.Build.0 = Release|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Release|x64.ActiveCfg = Release|Any CPU
{BFB003D1-788B-48DE-8065-39479C162CB0}.Release|x64.Build.0 = Release|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Debug|ARM64.Build.0 = Debug|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Debug|x64.ActiveCfg = Debug|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Debug|x64.Build.0 = Debug|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Release|Any CPU.Build.0 = Release|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Release|ARM64.ActiveCfg = Release|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Release|ARM64.Build.0 = Release|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Release|x64.ActiveCfg = Release|Any CPU
{E44053BD-A761-47FB-AA78-087A599672EA}.Release|x64.Build.0 = Release|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Debug|ARM64.Build.0 = Debug|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Debug|x64.ActiveCfg = Debug|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Debug|x64.Build.0 = Debug|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Release|Any CPU.Build.0 = Release|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Release|ARM64.ActiveCfg = Release|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Release|ARM64.Build.0 = Release|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Release|x64.ActiveCfg = Release|Any CPU
{209C95A3-FA53-431B-B688-3299CA6C29D2}.Release|x64.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -361,6 +462,10 @@ Global
{751BB05B-563D-4B3A-94C6-15E2D79D35EA} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1}
{4A8FCE22-851C-442A-8BC9-3EC3FD00B637} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7}
{158F984D-CD96-4062-BD02-2268946031A0} = {8DCE343F-BA78-4FE1-B562-B57C603A8BAA}
{9DA1DA9F-F8B2-4B25-BE80-C21F773029E3} = {8DCE343F-BA78-4FE1-B562-B57C603A8BAA}
{2608EB41-F98B-4BE5-9F4D-68FED6115088} = {8DCE343F-BA78-4FE1-B562-B57C603A8BAA}
{3ACACF03-6B20-40BA-B8EC-11AC1624D2C9} = {8DCE343F-BA78-4FE1-B562-B57C603A8BAA}
{209C95A3-FA53-431B-B688-3299CA6C29D2} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC}
+19 -2
ファイルの表示
@@ -7,9 +7,26 @@
<NoWarn>$(NoWarn);MSB3270</NoWarn>
</PropertyGroup>
<!-- Centralized location for all generated artifacts -->
<PropertyGroup>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<PackageVersion>2.0.0</PackageVersion>
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts/</PackageOutputPath>
</PropertyGroup>
<!--
The target version being built (this is referenced by all build steps).
This version will set the package version prefix and the assembly version.
As such, this needs to be changed before a new release as well.
-->
<PropertyGroup>
<ComputeSharpPackageVersion>2.0.0</ComputeSharpPackageVersion>
</PropertyGroup>
<PropertyGroup>
<AssemblyVersion>$(ComputeSharpPackageVersion).0</AssemblyVersion>
<VersionPrefix>$(ComputeSharpPackageVersion)</VersionPrefix>
<VersionSuffix Condition="'$(EXCLUDE_SUFFIX_FROM_VERSION)' != 'true'">alpha</VersionSuffix>
<VersionSuffix Condition="'$(GITHUB_EVENT_NAME)' == 'pull_request'">pr</VersionSuffix>
<ContinuousIntegrationBuild Condition="'$(GITHUB_RUN_ID)' != ''">true</ContinuousIntegrationBuild>
<RepositoryUrl>https://github.com/Sergio0694/ComputeSharp/</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
+32
ファイルの表示
@@ -0,0 +1,32 @@
<Project>
<!--
Directory.Build.targets is automatically picked up and imported by
Microsoft.Common.targets. This file needs to exist, even if empty so that
files in the parent directory tree, with the same name, are not imported
instead. The import fairly late and most other props/targets will have been
imported beforehand. We also don't need to add ourselves to
MSBuildAllProjects, as that is done by the file that imports us.
-->
<!--
Manually set the version if null. This is copied from Microsoft.NET.DefaultAssemblyInfo.targets and is needed
for cases where that target is not being automatically imported (which happens because MSBuild is used instead
of dotnet build for some cases, due to the solution having some UWP and WinUI 3 projects, and non SDK-style too).
The lines setting the prefix have been omitted, as that is already handled in the root .props file.
-->
<PropertyGroup Condition=" '$(Version)' == '' ">
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)</Version>
</PropertyGroup>
<!-- Settings that are only set for CI builds -->
<PropertyGroup Condition="'$(GITHUB_RUN_ID)' != ''">
<PackageVersion Condition="'$(EXCLUDE_RUN_ID_FROM_PACKAGE)' != 'true'">$(Version).$(GITHUB_RUN_ID)</PackageVersion>
</PropertyGroup>
<!-- Settings that are only set for non CI builds -->
<PropertyGroup Condition="'$(GITHUB_RUN_ID)' == ''">
<PackageVersion>$(Version)</PackageVersion>
</PropertyGroup>
</Project>
+37
ファイルの表示
@@ -33,6 +33,7 @@ The sample app is available in the Microsoft Store, showcasing several pixel sha
- [Inspecting shaders](#inspecting-shaders)
- [DirectX interop](#directx-interop)
- [Precompiled shaders](#precompiled-shaders)
- [D2D1 support](#d2d1-support)
- [Requirements](#requirements)
- [F# support](#f-support)
- [Sponsors](#sponsors)
@@ -46,6 +47,7 @@ The sample app is available in the Microsoft Store, showcasing several pixel sha
| **ComputeSharp.Dynamic** | An extension for **ComputeSharp**, enabling dynamic shader compilation at runtime and shader metaprogramming | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.Dynamic.svg)](https://www.nuget.org/packages/ComputeSharp.Dynamic/) |
| **ComputeSharp.Uwp** | A UWP library (targeting .NET Standard 2.0) with controls to render DX12 shaders powered by **ComputeSharp** | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.Uwp.svg)](https://www.nuget.org/packages/ComputeSharp.Uwp/) |
| **ComputeSharp.WinUI** | A WinUI 3 library (targeting .NET 6) with controls to render DX12 shaders powered by **ComputeSharp** | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.WinUI.svg)](https://www.nuget.org/packages/ComputeSharp.WinUI/) |
| **ComputeSharp.D2D1** | A library to write D2D1 pixel shaders entirely with C# code, and to easily register and create ID2D1Effect-s from them | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.D2D1.svg)](https://www.nuget.org/packages/ComputeSharp.D2D1/) |
# Installing from NuGet
@@ -378,6 +380,41 @@ public readonly partial struct MultiplyByTwo : IPixelShader<float4>
The values in the `[EmbeddedBytecode]` attribute map to the [`[numthreads]` HLSL attribute](https://docs.microsoft.com/windows/win32/direct3dhlsl/sm5-attributes-numthreads) for the shader entry point. Make sure to use the same values when dispatching the shader at runtime (either using the `GraphicsDevice.For` overload with explicit parameters for the tread numbers, or by relying on `GraphicsDevice.ForEach` to always use `(8, 8, 1)` for thread numbers, as it will be dispatching shaders on a 2D texture).
## D2D1 support
**ComputeSharp** also offers [D2D1 support](https://docs.microsoft.com/en-us/windows/win32/direct2d/d2d1-namespace), through the dedicated package. This shares the same base APIs (primitives, intrinsics, etc.) from **ComputeSharp.Core**, but then adds D2D1 specific support, instead of using DX12 like the main package. This means it offers the ability to implement D2D1 pixel shaders, and to then either load them manually, or to register a D2D1 effect using them, optionally with a custom draw transform as well.
For instance, here's a simple D2D1 pixel shader:
```csharp
[D2DInputCount(1)]
[D2DInputSimple(0)]
[D2DEmbeddedBytecode(D2D1ShaderProfile.PixelShader50)]
[AutoConstructor]
public partial struct DifferenceEffect : ID2D1PixelShader
{
public float amount;
/// <inheritdoc/>
public float4 Execute()
{
float4 color = D2D.GetInput(0);
float3 rgb = Hlsl.Saturate(this.amount - color.RGB);
return new(rgb, 1);
}
}
```
This can then be used directly to get the shader bytecode and the buffer, like so:
```csharp
ReadOnlyMemory<byte> bytecode = D2D1InteropServices.LoadShaderBytecode<DifferenceEffect>();
ReadOnlyMemory<byte> buffer = D2D1InteropServices.GetPixelShaderConstantBuffer(new DifferenceEffect(1));
```
There are also several other APIs to easily register a pixel shader effect from a shader written using **ComputeSharp.D2D1**, and to then create an `ID2D1Effect` instance from it (from the `D2D1PixelShaderEffect` type), as well as for reflecting into a shader and extract information about it, such as its HLSL source code (from the `D2D1ReflectionServices` type).
# Requirements
Building and running **ComputeSharp** from the .NET solution filter has the following prerequisites:
+3 -4
ファイルの表示
@@ -23,12 +23,11 @@
</ItemGroup>
<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\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
</Project>
+3 -4
ファイルの表示
@@ -15,12 +15,11 @@
</ItemGroup>
<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\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build"/>
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
</Project>
+3 -4
ファイルの表示
@@ -5,12 +5,11 @@
</PropertyGroup>
<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\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
</Project>
+3 -4
ファイルの表示
@@ -15,12 +15,11 @@
</ItemGroup>
<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\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\ComputeSharp.Sample.FSharp.Shaders\ComputeSharp.Sample.FSharp.Shaders.csproj" />
</ItemGroup>
+3 -2
ファイルの表示
@@ -7,8 +7,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ComputeSharp" Version="2.0.0" />
<PackageReference Include="ComputeSharp.Dynamic" Version="2.0.0" />
<PackageReference Include="ComputeSharp.Core" Version="$(PackageVersion)" />
<PackageReference Include="ComputeSharp" Version="$(PackageVersion)" />
<PackageReference Include="ComputeSharp.Dynamic" Version="$(PackageVersion)" />
</ItemGroup>
<Import Project="..\ComputeSharp.Sample.Shared\ComputeSharp.Sample.Shared.projitems" Label="Shared" />
+3 -2
ファイルの表示
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="ComputeSharp" value="..\..\src\ComputeSharp.Package\bin\Release" />
<add key="ComputeSharp-Dynamic" value="..\..\src\ComputeSharp.Dynamic.Package\bin\Release" />
<!-- This source is for the local NuGet packages, which are all generated in the centralized artifacts root folder -->
<add key="artifacts" value="..\..\artifacts" />
</packageSources>
</configuration>
+3 -4
ファイルの表示
@@ -7,12 +7,11 @@
</PropertyGroup>
<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\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
<Import Project="..\ComputeSharp.Sample.Shared\ComputeSharp.Sample.Shared.projitems" Label="Shared" />
+2
ファイルの表示
@@ -230,6 +230,8 @@
</PackageReference>
</ItemGroup>
<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\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj" />
+2 -4
ファイルの表示
@@ -40,11 +40,9 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
<Import Project="..\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems" Label="Shared" />
+3 -4
ファイルの表示
@@ -8,11 +8,10 @@
</PropertyGroup>
<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\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
<ItemGroup>
+18
ファイルの表示
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>3acacf03-6b20-40ba-b8ec-11ac1624d2c9</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>ComputeSharp.Core.NetStandard</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)System\InteropServices\MemoryMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime.CompilerServices\InterpolatedStringHandlerArgumentAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime.CompilerServices\InterpolatedStringHandlerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime.CompilerServices\RuntimeHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime.CompilerServices\SkipLocalsInitAttribute.cs" />
</ItemGroup>
</Project>
+13
ファイルの表示
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>3acacf03-6b20-40ba-b8ec-11ac1624d2c9</ProjectGuid>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<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.Core.NetStandard.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
</Project>
+36
ファイルの表示
@@ -0,0 +1,36 @@
using System;
using System.Runtime.CompilerServices;
namespace ComputeSharp.Core.NetStandard.System.Runtime.InteropServices;
/// <summary>
/// A polyfill type that mirrors some methods from <see cref="MemoryMarshal"/> on .NET 6.
/// </summary>
internal static class MemoryMarshal
{
/// <inheritdoc cref="global::System.Runtime.InteropServices.MemoryMarshal.GetReference{T}(Span{T})"/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static ref T GetReference<T>(Span<T> span)
{
return ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(span);
}
/// <inheritdoc cref="global::System.Runtime.InteropServices.MemoryMarshal.GetReference{T}(ReadOnlySpan{T})"/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static ref T GetReference<T>(ReadOnlySpan<T> span)
{
return ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(span);
}
/// <summary>
/// Creates a new <see cref="Span{T}"/> from a given reference.
/// </summary>
/// <typeparam name="T">The type of reference to wrap.</typeparam>
/// <param name="value">The target reference.</param>
/// <param name="length">The length of the <see cref="Span{T}"/> to create.</param>
/// <returns>A new <see cref="Span{T}"/> wrapping <paramref name="value"/>.</returns>
public static unsafe Span<T> CreateSpan<T>(ref T value, int length)
{
return new(Unsafe.AsPointer(ref value), length);
}
}
+18
ファイルの表示
@@ -0,0 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices;
/// <summary>
/// A polyfill type that mirrors some methods from <see cref="RuntimeHelpers"/> on .NET 5.
/// </summary>
internal static class RuntimeHelpers
{
/// <summary>
/// Allocates some memory tied to the lifetime of a specific type.
/// </summary>
/// <param name="type">The type to associate the memory to.</param>
/// <param name="size">The size in byte of the memory to allocate.</param>
/// <returns>A pointer to the allocated memory.</returns>
public static IntPtr AllocateTypeAssociatedMemory(Type type, int size) => Marshal.AllocHGlobal(size);
}
+22
ファイルの表示
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.Build.NoTargets/2.0.1" DefaultTargets="Pack">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<PackageId>ComputeSharp.Core</PackageId>
<Title>ComputeSharp.Core</Title>
<Description>A library containing basic primitives to support ComputeSharp (this package is not supposed to be referenced directly by developers)</Description>
</PropertyGroup>
<ItemGroup>
<Content Include="icon.png" PackFolder="\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ComputeSharp.Core\ComputeSharp.Core.csproj" />
<ProjectReference Include="..\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" PackFolder="analyzers\dotnet\cs" />
</ItemGroup>
</Project>
ファイルの表示
差分なしでファイル名を変更。

変更前

幅:  |  高さ:  |  サイズ: 1.5 KiB

変更後

幅:  |  高さ:  |  サイズ: 1.5 KiB

差分なしでファイル名を変更。

変更前

幅:  |  高さ:  |  サイズ: 22 KiB

変更後

幅:  |  高さ:  |  サイズ: 22 KiB

+9
ファイルの表示
@@ -0,0 +1,9 @@
; 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
--------|----------|----------|-------
+2
ファイルの表示
@@ -0,0 +1,2 @@
; Unshipped analyzer release
; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
@@ -1,14 +1,15 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using ComputeSharp.SourceGenerators.Extensions;
using ComputeSharp.SourceGenerators.Models;
using ComputeSharp.Core.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Models;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
namespace ComputeSharp.SourceGenerators;
namespace ComputeSharp.Core.SourceGenerators;
/// <summary>
/// A source generator creating constructors for types annotated with <see cref="AutoConstructorAttribute"/>.
@@ -82,7 +83,7 @@ public sealed partial class AutoConstructorGenerator : IIncrementalGenerator
// ...
// }
ConstructorDeclarationSyntax constructorDeclaration =
ConstructorDeclaration(hierarchyInfo.Names[0])
ConstructorDeclaration(hierarchyInfo.Hierarchy[0].QualifiedName)
.AddModifiers(Token(SyntaxKind.PublicKeyword))
.AddParameterListParameters(parameters.Select(field => Parameter(Identifier(field.Name)).WithType(IdentifierName(field.Type))).ToArray())
.AddBodyStatements(parameters.Select(field => ParseStatement($"this.{field.Name} = {field.Name};")).ToArray());
@@ -104,64 +105,7 @@ public sealed partial class AutoConstructorGenerator : IIncrementalGenerator
AttributeList(SingletonSeparatedList(Attribute(IdentifierName("global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage"))))
};
// Create the partial shader type declaration with the given method implementation.
// This code produces a struct declaration as follows:
//
// partial struct <SHADER_TYPE>
// {
// <METHOD>
// }
StructDeclarationSyntax structDeclarationSyntax =
StructDeclaration(hierarchyInfo.Names[0])
.AddModifiers(Token(SyntaxKind.PartialKeyword))
.AddMembers(constructorDeclaration.AddAttributeLists(attributes));
TypeDeclarationSyntax typeDeclarationSyntax = structDeclarationSyntax;
// Add all parent types in ascending order, if any
foreach (string parentType in hierarchyInfo.Names.AsSpan().Slice(1))
{
typeDeclarationSyntax =
ClassDeclaration(parentType)
.AddModifiers(Token(SyntaxKind.PartialKeyword))
.AddMembers(typeDeclarationSyntax);
}
if (hierarchyInfo.Namespace is "")
{
// If there is no namespace, attach the pragma directly to the declared type,
// and skip the namespace declaration. This will produce code as follows:
//
// #pragma warning disable
//
// <TYPE_HIERARCHY>
return
CompilationUnit().AddMembers(
typeDeclarationSyntax
.WithModifiers(TokenList(Token(
TriviaList(Trivia(PragmaWarningDirectiveTrivia(Token(SyntaxKind.DisableKeyword), true))),
SyntaxKind.PartialKeyword,
TriviaList()))))
.NormalizeWhitespace(eol: "\n");
}
// Create the compilation unit with disabled warnings, target namespace and generated type.
// This will produce code as follows:
//
// #pragma warning disable
//
// namespace <NAMESPACE>;
//
// <TYPE_HIERARCHY>
return
CompilationUnit().AddMembers(
FileScopedNamespaceDeclaration(IdentifierName(hierarchyInfo.Namespace))
.AddMembers(typeDeclarationSyntax)
.WithNamespaceKeyword(Token(TriviaList(
Trivia(PragmaWarningDirectiveTrivia(Token(SyntaxKind.DisableKeyword), true))),
SyntaxKind.NamespaceKeyword,
TriviaList())))
.NormalizeWhitespace(eol: "\n");
return hierarchyInfo.GetSyntax(constructorDeclaration.AddAttributeLists(attributes));
}
}
}
+83
ファイルの表示
@@ -0,0 +1,83 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackSymbols>false</PackSymbols>
<Description>ComputeSharp.Core.SourceGenerators</Description>
<NoWarn>$(NoWarn);CS1591;CS0649;CS1574</NoWarn>
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);SOURCE_GENERATOR</DefineConstants>
</PropertyGroup>
<!--The source generator cannot contain package references or project references, so instead we're just
manually linking the source files from ComputeSharp\Core in here. We only need them to extract metadata
and to match members based on full name, so the types being in the generator assembly are not an issue.-->
<ItemGroup>
<Compile Include="..\ComputeSharp.Core\Attributes\AutoConstructorAttribute.cs" Link="ComputeSharp.Core\Attributes\AutoConstructorAttribute.cs" />
<Compile Include="..\ComputeSharp.Core\Exceptions\InvalidExecutionContextException.cs" Link="ComputeSharp.Core\Exceptions\InvalidExecutionContextException.cs" />
<Compile Include="..\ComputeSharp.Core\Intrinsics\Attributes\HlslIntrinsicNameAttribute.cs" Link="ComputeSharp.Core\Intrinsics\Attributes\HlslIntrinsicNameAttribute.cs" />
<Compile Include="..\ComputeSharp.Core\Intrinsics\Hlsl.cs" Link="ComputeSharp.Core\Intrinsics\Hlsl.cs" />
<Compile Include="..\ComputeSharp.Core\Intrinsics\Hlsl.g.cs" Link="ComputeSharp.Core\Intrinsics\Hlsl.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\Bool.cs" Link="ComputeSharp.Core\Primitives\Bool\Bool.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\Bool2.cs" Link="ComputeSharp.Core\Primitives\Bool\Bool2.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\Bool3.cs" Link="ComputeSharp.Core\Primitives\Bool\Bool3.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\Bool4.cs" Link="ComputeSharp.Core\Primitives\Bool\Bool4.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\Bool2.g.cs" Link="ComputeSharp.Core\Primitives\Bool\Bool2.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\Bool3.g.cs" Link="ComputeSharp.Core\Primitives\Bool\Bool3.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\Bool4.g.cs" Link="ComputeSharp.Core\Primitives\Bool\Bool4.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Bool\BoolMxN.g.cs" Link="ComputeSharp.Core\Primitives\Bool\BoolMxN.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Double\Double2.cs" Link="ComputeSharp.Core\Primitives\Double\Double2.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Double\Double3.cs" Link="ComputeSharp.Core\Primitives\Double\Double3.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Double\Double4.cs" Link="ComputeSharp.Core\Primitives\Double\Double4.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Double\Double2.g.cs" Link="ComputeSharp.Core\Primitives\Double\Double2.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Double\Double3.g.cs" Link="ComputeSharp.Core\Primitives\Double\Double3.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Double\Double4.g.cs" Link="ComputeSharp.Core\Primitives\Double\Double4.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Double\DoubleMxN.g.cs" Link="ComputeSharp.Core\Primitives\Double\DoubleMxN.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Float\Float2.cs" Link="ComputeSharp.Core\Primitives\Float\Float2.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Float\Float3.cs" Link="ComputeSharp.Core\Primitives\Float\Float3.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Float\Float4.cs" Link="ComputeSharp.Core\Primitives\Float\Float4.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Float\Float2.g.cs" Link="ComputeSharp.Core\Primitives\Float\Float2.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Float\Float3.g.cs" Link="ComputeSharp.Core\Primitives\Float\Float3.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Float\Float4.g.cs" Link="ComputeSharp.Core\Primitives\Float\Float4.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Float\FloatMxN.g.cs" Link="ComputeSharp.Core\Primitives\Float\FloatMxN.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int2.cs" Link="ComputeSharp.Core\Primitives\Int\Int2.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int3.cs" Link="ComputeSharp.Core\Primitives\Int\Int3.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int4.cs" Link="ComputeSharp.Core\Primitives\Int\Int4.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int2.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int2.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int3.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int3.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int4.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int4.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" Link="ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt2.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt2.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt3.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt3.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt4.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt4.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt2.g.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt2.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt3.g.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt3.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt4.g.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt4.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UIntMxN.g.cs" Link="ComputeSharp.Core\Primitives\UInt\UIntMxN.g.cs" />
<Compile Include="..\ComputeSharp.Core\Primitives\MatrixIndex.cs" Link="ComputeSharp.Core\Primitives\MatrixIndex.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" PrivateAssets="all" Pack="false" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="AnalyzerReleases.Shipped.md" />
<AdditionalFiles Include="AnalyzerReleases.Unshipped.md" />
</ItemGroup>
<!-- Pregenerated file with global using directives -->
<ItemGroup>
<Compile Remove="EmbeddedResources\GlobalUsingDirectives.cs" />
<EmbeddedResource Include="EmbeddedResources\GlobalUsingDirectives.cs" />
</ItemGroup>
<!-- Shared project with common helpers -->
<Import Project="..\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems" Label="Shared" />
<!-- Shared project with .NET Standard 2.0 polyfills -->
<Import Project="..\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems" Label="Shared" />
</Project>
@@ -2,7 +2,7 @@
using System.Reflection;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.SourceGenerators;
namespace ComputeSharp.Core.SourceGenerators;
/// <summary>
/// A source generator to create global using directives for the HLSL primitive types.
@@ -15,7 +15,7 @@ public sealed class GlobalUsingDirectivesGenerator : IIncrementalGenerator
{
context.RegisterPostInitializationOutput(static context =>
{
const string filename = "ComputeSharp.SourceGenerators.EmbeddedResources.GlobalUsingDirectives.cs";
const string filename = "ComputeSharp.Core.SourceGenerators.EmbeddedResources.GlobalUsingDirectives.cs";
using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(filename);
using StreamReader reader = new(stream);
@@ -1,4 +1,4 @@
namespace ComputeSharp.SourceGenerators.Models;
namespace ComputeSharp.Core.SourceGenerators.Models;
/// <summary>
/// A model describing info on a constructor parameter.
@@ -0,0 +1,12 @@
using System.ComponentModel;
namespace System.Runtime.CompilerServices;
/// <summary>
/// Reserved to be used by the compiler for tracking metadata.
/// This class should not be used by developers in source code.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
internal static class IsExternalInit
{
}
差分なしでファイル名を変更。
+238
ファイルの表示
@@ -0,0 +1,238 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<OutputPath>bin\Release</OutputPath>
<DocumentationFile>ComputeSharp.Core.xml</DocumentationFile>
</PropertyGroup>
<!-- Enable trimming support on .NET 6 -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>
<!-- .NET Standard 2.0 polyfill packages -->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Memory" Version="4.5.4" />
</ItemGroup>
<!-- T4 template generation service -->
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<ItemGroup>
<Compile Update="Intrinsics\Hlsl.Void.g.cs">
<DependentUpon>Hlsl.Void.tt</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<Compile Update="Intrinsics\Hlsl.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Hlsl.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Bool\Bool2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Bool2.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Bool\Bool3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Bool3.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Bool\Bool4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Bool4.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Bool\BoolMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>BoolMxN.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Double\Double2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Double2.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Double\Double3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Double3.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Double\Double4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Double4.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Double\DoubleMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>DoubleMxN.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Float\Float2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Float2.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Float\Float3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Float3.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Float\Float4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Float4.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Float\FloatMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FloatMxN.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Int\Int2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Int2.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Int\Int3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Int3.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Int\Int4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Int4.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\Int\IntMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>IntMxN.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\UInt\UInt2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UInt2.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\UInt\UInt3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UInt3.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\UInt\UInt4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UInt4.tt</DependentUpon>
</Compile>
<Compile Update="Primitives\UInt\UIntMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UIntMxN.tt</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="Intrinsics\Hlsl.Void.tt">
<LastGenOutput>Hlsl.Void.g.cs</LastGenOutput>
<Generator>TextTemplatingFileGenerator</Generator>
</None>
<None Update="Intrinsics\Hlsl.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Hlsl.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Bool\Bool2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Bool2.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Bool\Bool3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Bool3.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Bool\Bool4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Bool4.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Bool\BoolMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>BoolMxN.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Double\Double2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Double2.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Double\Double3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Double3.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Double\Double4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Double4.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Double\DoubleMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>DoubleMxN.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Float\Float2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Float2.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Float\Float3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Float3.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Float\Float4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Float4.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Float\FloatMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>FloatMxN.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Int\Int2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Int2.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Int\Int3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Int3.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Int\Int4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Int4.g.cs</LastGenOutput>
</None>
<None Update="Primitives\Int\IntMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>IntMxN.g.cs</LastGenOutput>
</None>
<None Update="Primitives\UInt\UInt2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UInt2.g.cs</LastGenOutput>
</None>
<None Update="Primitives\UInt\UInt3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UInt3.g.cs</LastGenOutput>
</None>
<None Update="Primitives\UInt\UInt4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UInt4.g.cs</LastGenOutput>
</None>
<None Update="Primitives\UInt\UIntMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UIntMxN.g.cs</LastGenOutput>
</None>
</ItemGroup>
<!-- Shared project with .NET Standard 2.0 polyfills -->
<Import Condition="'$(TargetFramework)' == 'netstandard2.0'" Project="..\ComputeSharp.Core.NetStandard\ComputeSharp.Core.NetStandard.projitems" Label="Shared" />
<ItemGroup Label="Package">
<!-- Include the custom .targets file to check the source generator (.NET 6 is not needed as it guarantees Roslyn 4.x) -->
<None Include="ComputeSharp.Core.targets" PackagePath="buildTransitive\netstandard2.0" Pack="true" />
<None Include="ComputeSharp.Core.targets" PackagePath="build\netstandard2.0" Pack="true" />
</ItemGroup>
</Project>
+53
ファイルの表示
@@ -0,0 +1,53 @@
<Project>
<!-- Get the analyzer from the ComputeSharp.Core NuGet package -->
<Target Name="_ComputeSharpGatherAnalyzers">
<ItemGroup>
<_ComputeSharpAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'ComputeSharp.Core'" />
</ItemGroup>
</Target>
<!-- Remove the analyzer if using Roslyn 3.x (incremental generators require Roslyn 4.x) -->
<Target Name="_ComputeSharpRemoveAnalyzersForRoslyn3"
Condition="'$(CSharpCoreTargetsPath)' != ''"
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
DependsOnTargets="_ComputeSharpGatherAnalyzers">
<!-- Use the CSharpCoreTargetsPath property to find the version of the compiler we are using. This is the same mechanism
MSBuild uses to find the compiler. We could check the assembly version for any compiler assembly (since they all have
the same version) but Microsoft.Build.Tasks.CodeAnalysis.dll is where MSBuild loads the compiler tasks from so if
someone is getting creative with msbuild tasks/targets this is the "most correct" assembly to check. -->
<GetAssemblyIdentity AssemblyFiles="$([System.IO.Path]::Combine(`$([System.IO.Path]::GetDirectoryName($(CSharpCoreTargetsPath)))`,`Microsoft.Build.Tasks.CodeAnalysis.dll`))">
<Output TaskParameter="Assemblies" ItemName="CurrentCompilerAssemblyIdentity"/>
</GetAssemblyIdentity>
<PropertyGroup>
<!-- Transform the resulting item from GetAssemblyIdentity into a property representing its assembly version -->
<CurrentCompilerVersion>@(CurrentCompilerAssemblyIdentity->'%(Version)')</CurrentCompilerVersion>
<!-- The CurrentCompilerVersionIsNotNewEnough property can now be defined based on the Roslyn assembly version -->
<CurrentCompilerVersionIsNotNewEnough Condition="$([MSBuild]::VersionLessThan($(CurrentCompilerVersion), 4.0))">true</CurrentCompilerVersionIsNotNewEnough>
</PropertyGroup>
<!-- If the Roslyn version is < 4.0, disable the source generators -->
<ItemGroup Condition ="'$(CurrentCompilerVersionIsNotNewEnough)' == 'true'">
<Analyzer Remove="@(_ComputeSharpAnalyzer)"/>
</ItemGroup>
<!-- There is no need to emit a warning here, as this package is always a transitive dependency from ComputeSharp, which does emit the warning -->
</Target>
<!-- Remove the analyzer if Roslyn is missing -->
<Target Name="_ComputeSharpRemoveAnalyzersForRosynNotFound"
Condition="'$(CSharpCoreTargetsPath)' == ''"
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
DependsOnTargets="_ComputeSharpGatherAnalyzers">
<!-- If no Roslyn assembly could be found, just remove the analyzer without emitting a warning -->
<ItemGroup>
<Analyzer Remove="@(_ComputeSharpAnalyzer)"/>
</ItemGroup>
</Target>
</Project>
差分なしでファイル名を変更。
+308
ファイルの表示
@@ -0,0 +1,308 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
partial class Hlsl
{
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(float)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float2)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float3)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float4)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float1x1)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float1x2)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float1x3)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float1x4)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float2x1)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float2x2)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float2x3)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float2x4)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float3x1)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float3x2)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float3x3)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float3x4)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float4x1)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float4x2)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float4x3)})");
/// <summary>
/// Discards the current pixel if the specified value is less than zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <remarks>
/// <para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
/// <para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
/// <code>
/// Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
/// </code>
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("clip")]
public static void Clip(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clip)}({typeof(Float4x4)})");
}
+71
ファイルの表示
@@ -0,0 +1,71 @@
<#@include file="Hlsl.Void.ttinclude" #>
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
partial class Hlsl
{
<#
PushIndent(" ");
bool isFirst = true;
foreach (var intrinsic in Intrinsics)
{
foreach (var overload in intrinsic.Overloads)
{
if (isFirst) isFirst = false;
else WriteLine("");
WriteLine("/// <summary>");
WriteLine($"/// {intrinsic.Summary}");
WriteLine("/// </summary>");
foreach (var param in intrinsic.Parameters)
{
WriteLine($"/// <param name=\"{param.Name}\">{param.Info}</param>");
}
if (intrinsic.Remarks.Length > 0)
{
var lines = intrinsic.Remarks.Replace("\r", "").Split('\n');
WriteLine("/// <remarks>");
foreach (var line in lines)
{
string trimmedLine = line.Trim();
if (trimmedLine.Length > 0)
{
WriteLine($"/// {trimmedLine}");
}
}
WriteLine("/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>");
WriteLine("/// </remarks>");
}
else
{
WriteLine("/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>");
}
WriteLine($"[HlslIntrinsicName(\"{intrinsic.HlslName}\")]");
Write($"public static void {intrinsic.Name}(");
Write(string.Join(", ", intrinsic.Parameters.Zip(overload, (a, b) => $"{(a.IsOut ? "out " : "")}{b} {a.Name}")));
Write(")");
Write(" => throw new InvalidExecutionContextException(");
var parameters = string.Join(", ", overload.Select(t => $"{{typeof({t})}}"));
WriteLine($"$\"{{typeof(Hlsl)}}.{{nameof({intrinsic.Name})}}({parameters})\");");
}
}
PopIndent();
#>
}
+51
ファイルの表示
@@ -0,0 +1,51 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Text.RegularExpressions" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".g.cs"#>
<#
var Intrinsics = new[]
{
new
{
Name = "Clip",
HlslName = "clip",
Summary = "Discards the current pixel if the specified value is less than zero.",
Remarks = @"
<para>Use the clip HLSL intrinsic function to simulate clipping planes if each component of the x parameter represents the distance from a plane.</para>
<para>Also, use the clip function to test for alpha behavior, as shown in the following example:</para>
<code>
Hlsl.Clip(color.A &lt; 0.1f ? -1 : 1);
</code>",
Parameters = new[]
{
new { IsOut = false, IsRef = false, Name = "x", Info = "The specified value." }
},
Overloads = new[]
{
new[] { "float" },
new[] { "Float2" },
new[] { "Float3" },
new[] { "Float4" },
new[] { "Float1x1" },
new[] { "Float1x2" },
new[] { "Float1x3" },
new[] { "Float1x4" },
new[] { "Float2x1" },
new[] { "Float2x2" },
new[] { "Float2x3" },
new[] { "Float2x4" },
new[] { "Float3x1" },
new[] { "Float3x2" },
new[] { "Float3x3" },
new[] { "Float3x4" },
new[] { "Float4x1" },
new[] { "Float4x2" },
new[] { "Float4x3" },
new[] { "Float4x4" }
}
}
};
#>
+29 -1
ファイルの表示
@@ -1,4 +1,5 @@
using ComputeSharp.Exceptions;
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
namespace ComputeSharp;
@@ -7,6 +8,13 @@ namespace ComputeSharp;
/// </summary>
public static partial class Hlsl
{
/// <summary>
/// Submits an error message to the information queue and terminates the current draw or dispatch call being executed.
/// </summary>
/// <remarks>This operation does nothing on rasterizers that do not support it.</remarks>
[HlslIntrinsicName("abort")]
public static void Abort() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abort)}()");
/// <summary>
/// Blocks execution of all threads in a group until all memory accesses have been completed.
/// </summary>
@@ -316,4 +324,24 @@ public static partial class Hlsl
/// <param name="original">The original value.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static void InterlockedXor(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
/// <summary>
/// Returns a lighting coefficient vector.
/// </summary>
/// <param name="nDotL">The dot product of the normalized surface normal and the light vector.</param>
/// <param name="nDotH">The dot product of the half-angle vector and the surface normal.</param>
/// <param name="m">A specular exponent.</param>
/// <returns>The lighting coefficient vector.</returns>
/// <remarks>
/// This function returns a lighting coefficient vector (ambient, diffuse, specular, 1) where:
/// <list type="bullet">
/// <item>Ambient: <c>1</c>.</item>
/// <item>Diffuse: <c>n * l &lt; 0 ? 0 : n * l</c>.</item>
/// <item>Specular: <c>n * l &lt; 0 || n * h &lt; 0 ? 0 : (n * h) ^ m</c>.</item>
/// </list>
/// Where the vector <c>n</c> is the normal vector, <c>l</c> is the direction to light and <c>h</c> is the half vector.
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
/// </remarks>
[HlslIntrinsicName("lit")]
public static float Lit(float nDotL, float nDotH, float m) => default;
}
+705 -21
ファイルの表示
@@ -4,7 +4,7 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
public static partial class Hlsl
partial class Hlsl
{
/// <summary>
/// Returns the absolute value of the specified value.
@@ -4492,6 +4492,510 @@ public static partial class Hlsl
[HlslIntrinsicName("cross")]
public static Float3 Cross(Float3 x, Float3 y) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static float DerivativeOfDx(float x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float2 DerivativeOfDx(Float2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float3 DerivativeOfDx(Float3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float4 DerivativeOfDx(Float4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float1x1 DerivativeOfDx(Float1x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float1x2 DerivativeOfDx(Float1x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float1x3 DerivativeOfDx(Float1x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float1x4 DerivativeOfDx(Float1x4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float2x1 DerivativeOfDx(Float2x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float2x2 DerivativeOfDx(Float2x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float2x3 DerivativeOfDx(Float2x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float2x4 DerivativeOfDx(Float2x4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float3x1 DerivativeOfDx(Float3x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float3x2 DerivativeOfDx(Float3x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float3x3 DerivativeOfDx(Float3x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float3x4 DerivativeOfDx(Float3x4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float4x1 DerivativeOfDx(Float4x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float4x2 DerivativeOfDx(Float4x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float4x3 DerivativeOfDx(Float4x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx")]
public static Float4x4 DerivativeOfDx(Float4x4 x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_coarse")]
public static float DerivativeOfDxLowPrecision(float x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_coarse")]
public static Float2 DerivativeOfDxLowPrecision(Float2 x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_coarse")]
public static Float3 DerivativeOfDxLowPrecision(Float3 x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_coarse")]
public static Float4 DerivativeOfDxLowPrecision(Float4 x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_fine")]
public static float DerivativeOfDxHighPrecision(float x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_fine")]
public static Float2 DerivativeOfDxHighPrecision(Float2 x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_fine")]
public static Float3 DerivativeOfDxHighPrecision(Float3 x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddx_fine")]
public static Float4 DerivativeOfDxHighPrecision(Float4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static float DerivativeOfDy(float x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float2 DerivativeOfDy(Float2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float3 DerivativeOfDy(Float3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float4 DerivativeOfDy(Float4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float1x1 DerivativeOfDy(Float1x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float1x2 DerivativeOfDy(Float1x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float1x3 DerivativeOfDy(Float1x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float1x4 DerivativeOfDy(Float1x4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float2x1 DerivativeOfDy(Float2x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float2x2 DerivativeOfDy(Float2x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float2x3 DerivativeOfDy(Float2x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float2x4 DerivativeOfDy(Float2x4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float3x1 DerivativeOfDy(Float3x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float3x2 DerivativeOfDy(Float3x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float3x3 DerivativeOfDy(Float3x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float3x4 DerivativeOfDy(Float3x4 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float4x1 DerivativeOfDy(Float4x1 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float4x2 DerivativeOfDy(Float4x2 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float4x3 DerivativeOfDy(Float4x3 x) => default;
/// <summary>
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy")]
public static Float4x4 DerivativeOfDy(Float4x4 x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_coarse")]
public static float DerivativeOfDyLowPrecision(float x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_coarse")]
public static Float2 DerivativeOfDyLowPrecision(Float2 x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_coarse")]
public static Float3 DerivativeOfDyLowPrecision(Float3 x) => default;
/// <summary>
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_coarse")]
public static Float4 DerivativeOfDyLowPrecision(Float4 x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_fine")]
public static float DerivativeOfDyHighPrecision(float x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_fine")]
public static Float2 DerivativeOfDyHighPrecision(Float2 x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_fine")]
public static Float3 DerivativeOfDyHighPrecision(Float3 x) => default;
/// <summary>
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("ddy_fine")]
public static Float4 DerivativeOfDyHighPrecision(Float4 x) => default;
/// <summary>
/// Converts the specified value from radians to degrees.
/// </summary>
@@ -5491,7 +5995,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static double FusedMultiplyAccumulate(double a, double b, double c) => default;
public static double FusedMultiplyAdd(double a, double b, double c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5502,7 +6006,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double2 FusedMultiplyAccumulate(Double2 a, Double2 b, Double2 c) => default;
public static Double2 FusedMultiplyAdd(Double2 a, Double2 b, Double2 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5513,7 +6017,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double3 FusedMultiplyAccumulate(Double3 a, Double3 b, Double3 c) => default;
public static Double3 FusedMultiplyAdd(Double3 a, Double3 b, Double3 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5524,7 +6028,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double4 FusedMultiplyAccumulate(Double4 a, Double4 b, Double4 c) => default;
public static Double4 FusedMultiplyAdd(Double4 a, Double4 b, Double4 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5535,7 +6039,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double1x1 FusedMultiplyAccumulate(Double1x1 a, Double1x1 b, Double1x1 c) => default;
public static Double1x1 FusedMultiplyAdd(Double1x1 a, Double1x1 b, Double1x1 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5546,7 +6050,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double1x2 FusedMultiplyAccumulate(Double1x2 a, Double1x2 b, Double1x2 c) => default;
public static Double1x2 FusedMultiplyAdd(Double1x2 a, Double1x2 b, Double1x2 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5557,7 +6061,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double1x3 FusedMultiplyAccumulate(Double1x3 a, Double1x3 b, Double1x3 c) => default;
public static Double1x3 FusedMultiplyAdd(Double1x3 a, Double1x3 b, Double1x3 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5568,7 +6072,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double1x4 FusedMultiplyAccumulate(Double1x4 a, Double1x4 b, Double1x4 c) => default;
public static Double1x4 FusedMultiplyAdd(Double1x4 a, Double1x4 b, Double1x4 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5579,7 +6083,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double2x1 FusedMultiplyAccumulate(Double2x1 a, Double2x1 b, Double2x1 c) => default;
public static Double2x1 FusedMultiplyAdd(Double2x1 a, Double2x1 b, Double2x1 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5590,7 +6094,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double2x2 FusedMultiplyAccumulate(Double2x2 a, Double2x2 b, Double2x2 c) => default;
public static Double2x2 FusedMultiplyAdd(Double2x2 a, Double2x2 b, Double2x2 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5601,7 +6105,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double2x3 FusedMultiplyAccumulate(Double2x3 a, Double2x3 b, Double2x3 c) => default;
public static Double2x3 FusedMultiplyAdd(Double2x3 a, Double2x3 b, Double2x3 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5612,7 +6116,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double2x4 FusedMultiplyAccumulate(Double2x4 a, Double2x4 b, Double2x4 c) => default;
public static Double2x4 FusedMultiplyAdd(Double2x4 a, Double2x4 b, Double2x4 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5623,7 +6127,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double3x1 FusedMultiplyAccumulate(Double3x1 a, Double3x1 b, Double3x1 c) => default;
public static Double3x1 FusedMultiplyAdd(Double3x1 a, Double3x1 b, Double3x1 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5634,7 +6138,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double3x2 FusedMultiplyAccumulate(Double3x2 a, Double3x2 b, Double3x2 c) => default;
public static Double3x2 FusedMultiplyAdd(Double3x2 a, Double3x2 b, Double3x2 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5645,7 +6149,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double3x3 FusedMultiplyAccumulate(Double3x3 a, Double3x3 b, Double3x3 c) => default;
public static Double3x3 FusedMultiplyAdd(Double3x3 a, Double3x3 b, Double3x3 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5656,7 +6160,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double3x4 FusedMultiplyAccumulate(Double3x4 a, Double3x4 b, Double3x4 c) => default;
public static Double3x4 FusedMultiplyAdd(Double3x4 a, Double3x4 b, Double3x4 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5667,7 +6171,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double4x1 FusedMultiplyAccumulate(Double4x1 a, Double4x1 b, Double4x1 c) => default;
public static Double4x1 FusedMultiplyAdd(Double4x1 a, Double4x1 b, Double4x1 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5678,7 +6182,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double4x2 FusedMultiplyAccumulate(Double4x2 a, Double4x2 b, Double4x2 c) => default;
public static Double4x2 FusedMultiplyAdd(Double4x2 a, Double4x2 b, Double4x2 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5689,7 +6193,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double4x3 FusedMultiplyAccumulate(Double4x3 a, Double4x3 b, Double4x3 c) => default;
public static Double4x3 FusedMultiplyAdd(Double4x3 a, Double4x3 b, Double4x3 c) => default;
/// <summary>
/// Returns the double-precision fused multiply-addition of a * b + c.
@@ -5700,7 +6204,7 @@ public static partial class Hlsl
/// <returns>The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fma")]
public static Double4x4 FusedMultiplyAccumulate(Double4x4 a, Double4x4 b, Double4x4 c) => default;
public static Double4x4 FusedMultiplyAdd(Double4x4 a, Double4x4 b, Double4x4 c) => default;
/// <summary>
/// Returns the floating-point remainder of x / y.
@@ -6282,6 +6786,186 @@ public static partial class Hlsl
[HlslIntrinsicName("frexp")]
public static Float4x4 Frexp(Float4x4 x, out Float4x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float4x4)}, {typeof(Float4x4)})");
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static float Fwidth(float x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float2 Fwidth(Float2 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float3 Fwidth(Float3 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float4 Fwidth(Float4 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float1x1 Fwidth(Float1x1 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float1x2 Fwidth(Float1x2 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float1x3 Fwidth(Float1x3 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float1x4 Fwidth(Float1x4 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float2x1 Fwidth(Float2x1 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float2x2 Fwidth(Float2x2 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float2x3 Fwidth(Float2x3 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float2x4 Fwidth(Float2x4 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float3x1 Fwidth(Float3x1 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float3x2 Fwidth(Float3x2 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float3x3 Fwidth(Float3x3 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float3x4 Fwidth(Float3x4 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float4x1 Fwidth(Float4x1 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float4x2 Fwidth(Float4x2 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float4x3 Fwidth(Float4x3 x) => default;
/// <summary>
/// Returns the absolute value of the partial derivatives of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[HlslIntrinsicName("fwidth")]
public static Float4x4 Fwidth(Float4x4 x) => default;
/// <summary>
/// Determines if the specified floating-point value is finite.
/// </summary>
+1 -1
ファイルの表示
@@ -5,7 +5,7 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
public static partial class Hlsl
partial class Hlsl
{
<#
PushIndent(" ");
@@ -739,6 +739,146 @@ var Intrinsics = new[]
}
},
new
{
Name = "DerivativeOfDx",
HlslName = "ddx",
Summary = "Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The partial derivative with respect to the input parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4" } }
}
},
new
{
Name = "DerivativeOfDxLowPrecision",
HlslName = "ddx_coarse",
Summary = "Computes a low precision partial derivative with respect to the screen-space x-coordinate.",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The low precision partial derivative with respect to the input parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } }
}
},
new
{
Name = "DerivativeOfDxHighPrecision",
HlslName = "ddx_fine",
Summary = "Computes a high precision partial derivative with respect to the screen-space x-coordinate.",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The high precision partial derivative with respect to the input parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } }
}
},
new
{
Name = "DerivativeOfDy",
HlslName = "ddy",
Summary = "Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The partial derivative with respect to the input parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4" } }
}
},
new
{
Name = "DerivativeOfDyLowPrecision",
HlslName = "ddy_coarse",
Summary = "Computes a low precision partial derivative with respect to the screen-space y-coordinate.",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The low precision partial derivative with respect to the input parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } }
}
},
new
{
Name = "DerivativeOfDyHighPrecision",
HlslName = "ddy_fine",
Summary = "Computes a high precision partial derivative with respect to the screen-space y-coordinate.",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The high precision partial derivative with respect to the input parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } }
}
},
new
{
Name = "Degrees",
HlslName = "degrees",
@@ -977,7 +1117,7 @@ var Intrinsics = new[]
},
new
{
Name = "FusedMultiplyAccumulate",
Name = "FusedMultiplyAdd",
HlslName = "fma",
Summary = "Returns the double-precision fused multiply-addition of a * b + c.",
Parameters = new[]
@@ -1116,6 +1256,40 @@ var Intrinsics = new[]
}
},
new
{
Name = "Fwidth",
HlslName = "fwidth",
Summary = "Returns the absolute value of the partial derivatives of the specified value.",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The absolute value of the partial derivatives of the input parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4" } }
}
},
new
{
Name = "IsFinite",
HlslName = "isfinite",
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
namespace ComputeSharp;
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
namespace ComputeSharp;
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
namespace ComputeSharp;
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
namespace ComputeSharp;
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -13,8 +13,8 @@ void GenerateAllMatrixProperties(string typeName, int elementSize)
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
namespace ComputeSharp;
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -3,8 +3,8 @@ using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
#endif
#nullable enable
317ファイル中100ファイルを読み込みました。 変更されたファイルが多すぎるため、それ以降のファイルは表示していません。 さらに表示