ファイル
ComputeSharp/src/ComputeSharp.Core/Attributes/ShaderMethodAttribute.cs
T

16 行
653 B
C#

using System;
namespace ComputeSharp
{
/// <summary>
/// An attribute that indicates that a method will be indirectly used in a compute shader.
/// This method is necessary for methods that are captured and used within a given shader
/// through a <see cref="Delegate"/> field (of some custom type). In order to be processed
/// correctly, wrapped methods need to have this attribute manually applied to them.
/// Methods also need to be static, though this can only be tested at runtime.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public sealed class ShaderMethodAttribute : Attribute
{
}
}