Removed unnecessaary source generator
このコミットが含まれているのは:
1 親
18351d157e
コミット
18e1c2c5e0
5ファイル変更
-321
検索条件に一致するファイルはありません
@@ -1,39 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// An attribute that indicates a field to declare in a custom struct type to use in a shader.
|
||||
/// This is necessary to be used instead of manually declare fields, so that the fields can be
|
||||
/// declared with the right offset into the type data, as HLSL requires precise alignment for values.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = true)]
|
||||
public sealed class FieldAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="FieldAttribute"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the field to declare.</param>
|
||||
/// <param name="type">The type of field to declare.</param>
|
||||
public FieldAttribute(string name, Type type)
|
||||
{
|
||||
Name = name;
|
||||
Type = type;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the field to declare.
|
||||
/// </summary>
|
||||
public string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the field to declare.
|
||||
/// </summary>
|
||||
public Type Type { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional summary for the field to declare.
|
||||
/// </summary>
|
||||
public string? Summary { get; init; }
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
||||
#if !NET5_0
|
||||
|
||||
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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
新しいイシューから参照
ユーザーをブロックする