Added WarpIds type
このコミットが含まれているのは:
1 親
437d4a0688
コミット
073cfa64ab
5ファイル変更
+211
-3
検索条件に一致するファイルはありません
@@ -20,6 +20,7 @@
|
||||
<Compile Include="..\ComputeSharp.Core\Attributes\__Internals\ShaderMethodSourceAttribute.cs" Link="Core\Attributes\__Internals\ShaderMethodSourceAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Dispatch\ThreadIds.cs" Link="Core\Dispatch\ThreadIds.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Dispatch\GroupIds.cs" Link="Core\Dispatch\GroupIds.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Dispatch\WarpIds.cs" Link="Core\Dispatch\WarpIds.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Exceptions\InvalidExecutionContextException.cs" Link="Core\Exceptions\InvalidExecutionContextException.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Exceptions\MissingMethodSourceException.cs" Link="Core\Exceptions\MissingMethodSourceException.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Extensions\MethodInfoExtensions.cs" Link="Core\Extensions\MethodInfoExtensions.cs" />
|
||||
|
||||
@@ -61,7 +61,9 @@ namespace ComputeSharp.SourceGenerators.Mappings
|
||||
/// </summary>
|
||||
public static IReadOnlyCollection<Type> HlslDispatchTypes { get; } = new[]
|
||||
{
|
||||
typeof(ThreadIds), typeof(GroupIds)
|
||||
typeof(ThreadIds),
|
||||
typeof(GroupIds),
|
||||
typeof(WarpIds)
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -25,7 +25,8 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters
|
||||
return updatedNode.AddParameters(
|
||||
Parameter(Identifier($"uint3 {nameof(ThreadIds)} : SV_DispatchThreadID")),
|
||||
Parameter(Identifier($"uint3 {nameof(GroupIds)} : SV_GroupThreadID")),
|
||||
Parameter(Identifier($"uint __{nameof(GroupIds)}__get_Index : SV_GroupIndex")));
|
||||
Parameter(Identifier($"uint __{nameof(GroupIds)}__get_Index : SV_GroupIndex")),
|
||||
Parameter(Identifier($"uint3 {nameof(WarpIds)} : SV_GroupID")));
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using ComputeSharp.SourceGenerators.Extensions;
|
||||
using ComputeSharp.SourceGenerators.Mappings;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする