Remove ThreadGroupSizeAttribute from generator
このコミットが含まれているのは:
1 親
be0f0cf593
コミット
2d1e7f9565
3ファイル変更
+1
-4
検索条件に一致するファイルはありません
@@ -33,7 +33,7 @@ partial class ComputeShaderDescriptorGenerator
|
||||
out bool isCompilationEnabled)
|
||||
{
|
||||
// Try to get the attribute that controls shader precompilation (this is always required)
|
||||
if (!structDeclarationSymbol.TryGetAttributeWithFullyQualifiedMetadataName(typeof(ThreadGroupSizeAttribute).FullName, out AttributeData? attribute))
|
||||
if (!structDeclarationSymbol.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.ThreadGroupSizeAttribute", out AttributeData? attribute))
|
||||
{
|
||||
diagnostics.Add(MissingThreadGroupSizeAttribute, structDeclarationSymbol, structDeclarationSymbol);
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
<Compile Include="..\ComputeSharp\Core\Attributes\Enums\CompileOptions.cs" Link="ComputeSharp\Core\Attributes\Enums\CompileOptions.cs" />
|
||||
<Compile Include="..\ComputeSharp\Core\Attributes\Enums\DefaultThreadGroupSizes.cs" Link="ComputeSharp\Core\Attributes\Enums\DefaultThreadGroupSizes.cs" />
|
||||
<Compile Include="..\ComputeSharp\Core\Attributes\GroupSharedAttribute.cs" Link="ComputeSharp\Core\Attributes\GroupSharedAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp\Core\Attributes\ThreadGroupSizeAttribute.cs" Link="ComputeSharp\Core\Attributes\ThreadGroupSizeAttribute.cs" />
|
||||
<Compile Include="..\ComputeSharp\Core\Dispatch\DispatchSize.cs" Link="ComputeSharp\Core\Dispatch\DispatchSize.cs" />
|
||||
<Compile Include="..\ComputeSharp\Core\Dispatch\GridIds.cs" Link="ComputeSharp\Core\Dispatch\GridIds.cs" />
|
||||
<Compile Include="..\ComputeSharp\Core\Dispatch\GroupIds.cs" Link="ComputeSharp\Core\Dispatch\GroupIds.cs" />
|
||||
|
||||
@@ -36,7 +36,6 @@ public sealed class ThreadGroupSizeAttribute : Attribute
|
||||
/// <param name="size">The default thread group size to use.</param>
|
||||
public ThreadGroupSizeAttribute(DefaultThreadGroupSizes size)
|
||||
{
|
||||
#if !SOURCE_GENERATOR
|
||||
(ThreadsX, ThreadsY, ThreadsZ) = size switch
|
||||
{
|
||||
DefaultThreadGroupSizes.X => (64, 1, 1),
|
||||
@@ -48,7 +47,6 @@ public sealed class ThreadGroupSizeAttribute : Attribute
|
||||
DefaultThreadGroupSizes.XYZ => (4, 4, 4),
|
||||
_ => default(ArgumentException).Throw<(int, int, int)>(nameof(size))
|
||||
};
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする