Added initial attributes to track methods

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-01 01:08:17 +01:00
1 親 b6b80141c2
コミット 3a7e7559c3
5ファイル変更
+91 -3

検索条件に一致するファイルはありません

+16
ファイルの表示
@@ -0,0 +1,16 @@
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
{
}
}