using System; namespace ComputeSharp { /// /// 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 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. /// [AttributeUsage(AttributeTargets.Method)] public sealed class ShaderMethodAttribute : Attribute { } }