Move primitives to ComputeSharp.Core

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:03:14 +02:00
1 親 cc298770ca
コミット e48949cd48
78ファイル変更
+369 -245

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

+17
ファイルの表示
@@ -0,0 +1,17 @@
<?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" />
</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);
}
差分なしでファイル名を変更。
+222
ファイルの表示
@@ -0,0 +1,222 @@
<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.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.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" />
</Project>
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -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
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -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;
差分なしでファイル名を変更。
@@ -61,8 +61,8 @@ void GenerateVectorProperties(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
#nullable enable
-2
ファイルの表示
@@ -18,8 +18,6 @@
<Compile Include="$(MSBuildThisFileDirectory)System\FormatExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StreamExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Path.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InterpolatedStringHandlerArgumentAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InterpolatedStringHandlerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SkipLocalsInitAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\MemoryMarshal.cs" />
-199
ファイルの表示
@@ -44,203 +44,4 @@
<None Include="ComputeSharp.targets" PackagePath="buildTransitive\netstandard2.0" Pack="true" />
<None Include="ComputeSharp.targets" PackagePath="build\netstandard2.0" Pack="true" />
</ItemGroup>
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<ItemGroup>
<Compile Update="Core\Intrinsics\Hlsl.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Hlsl.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Bool\Bool2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Bool2.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Bool\Bool3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Bool3.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Bool\Bool4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Bool4.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Bool\BoolMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>BoolMxN.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Double\Double2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Double2.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Double\Double3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Double3.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Double\Double4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Double4.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Double\DoubleMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>DoubleMxN.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Float\Float2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Float2.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Float\Float3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Float3.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Float\Float4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Float4.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Float\FloatMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FloatMxN.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Int\Int2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Int2.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Int\Int3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Int3.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Int\Int4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Int4.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Int\IntMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>IntMxN.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\UInt\UInt2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UInt2.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\UInt\UInt3.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UInt3.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\UInt\UInt4.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UInt4.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\UInt\UIntMxN.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>UIntMxN.tt</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="Core\Intrinsics\Hlsl.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Hlsl.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Bool\Bool2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Bool2.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Bool\Bool3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Bool3.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Bool\Bool4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Bool4.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Bool\BoolMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>BoolMxN.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Double\Double2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Double2.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Double\Double3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Double3.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Double\Double4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Double4.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Double\DoubleMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>DoubleMxN.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Float\Float2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Float2.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Float\Float3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Float3.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Float\Float4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Float4.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Float\FloatMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>FloatMxN.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Int\Int2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Int2.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Int\Int3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Int3.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Int\Int4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Int4.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Int\IntMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>IntMxN.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\UInt\UInt2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UInt2.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\UInt\UInt3.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UInt3.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\UInt\UInt4.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UInt4.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\UInt\UIntMxN.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>UIntMxN.g.cs</LastGenOutput>
</None>
</ItemGroup>
</Project>