Added ComputeSharp.Core reference to SG
このコミットが含まれているのは:
1 親
3f5460e0ca
コミット
a88dddd1ab
4ファイル変更
+31
-25
検索条件に一致するファイルはありません
@@ -1,8 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
|
||||
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace ComputeSharp
|
||||
private Bool(bool value) => Value = value;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool Equals(object obj) => obj is Bool x && Value == x.Value;
|
||||
public override bool Equals(object? obj) => obj is Bool x && Value == x.Value;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Value.GetHashCode();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
@@ -11,4 +11,8 @@
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.1" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ComputeSharp.Core\ComputeSharp.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -13,31 +13,31 @@ namespace ComputeSharp.SourceGenerators.Mappings
|
||||
/// </summary>
|
||||
private static readonly IReadOnlyDictionary<string, string> KnownTypes = new Dictionary<string, string>
|
||||
{
|
||||
[typeof(bool).FullName!] = "bool",
|
||||
["ComputeSharp.Bool"] = "bool",
|
||||
["ComputeSharp.Bool2"] = "bool2",
|
||||
["ComputeSharp.Bool3"] = "bool3",
|
||||
["ComputeSharp.Bool4"] = "bool4",
|
||||
[typeof(int).FullName!] = "int",
|
||||
["ComputeSharp.Int2"] = "int2",
|
||||
["ComputeSharp.Int3"] = "int3",
|
||||
["ComputeSharp.Int4"] = "int4",
|
||||
[typeof(uint).FullName!] = "uint",
|
||||
["ComputeSharp.UInt2"] = "uint2",
|
||||
["ComputeSharp.UInt3"] = "uint3",
|
||||
["ComputeSharp.UInt4"] = "uint4",
|
||||
[typeof(float).FullName!] = "float",
|
||||
["ComputeSharp.Float2"] = "float2",
|
||||
["ComputeSharp.Float3"] = "float3",
|
||||
["ComputeSharp.Float4"] = "float4",
|
||||
[typeof(bool).FullName] = "bool",
|
||||
[typeof(Bool).FullName] = "bool",
|
||||
[typeof(Bool2).FullName] = "bool2",
|
||||
[typeof(Bool3).FullName] = "bool3",
|
||||
[typeof(Bool4).FullName] = "bool4",
|
||||
[typeof(int).FullName] = "int",
|
||||
[typeof(Int2).FullName] = "int2",
|
||||
[typeof(Int3).FullName] = "int3",
|
||||
[typeof(Int4).FullName] = "int4",
|
||||
[typeof(uint).FullName] = "uint",
|
||||
[typeof(UInt2).FullName] = "uint2",
|
||||
[typeof(UInt3).FullName] = "uint3",
|
||||
[typeof(UInt4).FullName] = "uint4",
|
||||
[typeof(float).FullName] = "float",
|
||||
[typeof(Float2).FullName] = "float2",
|
||||
[typeof(Float3).FullName] = "float3",
|
||||
[typeof(Float4).FullName] = "float4",
|
||||
[typeof(Vector2).FullName] = "float2",
|
||||
[typeof(Vector3).FullName] = "float3",
|
||||
[typeof(Vector4).FullName] = "float4",
|
||||
[typeof(double).FullName!] = "double",
|
||||
["ComputeSharp.Double2"] = "double2",
|
||||
["ComputeSharp.Double3"] = "double3",
|
||||
["ComputeSharp.Double4"] = "double4",
|
||||
["ComputeSharp.ThreadIds"] = "uint3",
|
||||
[typeof(double).FullName] = "double",
|
||||
[typeof(Double2).FullName] = "double2",
|
||||
[typeof(Double3).FullName] = "double3",
|
||||
[typeof(Double4).FullName] = "double4",
|
||||
[typeof(ThreadIds).FullName] = "uint3",
|
||||
["ComputeSharp.ReadOnlyBuffer<T>"] = "StructuredBuffer",
|
||||
["ComputeSharp.ReadWriteBuffer<T>"] = "RWStructuredBuffer"
|
||||
};
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする