using System.Collections.Generic; using System.Reflection; using ComputeSharp.Core.Intrinsics.Attributes; using ComputeSharp.D2D1Interop; namespace ComputeSharp.SourceGeneration.Mappings; /// partial class HlslKnownKeywords { /// static partial void AddKnownKeyword(ICollection knownKeywords) { // D2D1 intrinsics method names foreach (var method in typeof(D2D1).GetMethods(BindingFlags.Public | BindingFlags.Static)) { string name = method.GetCustomAttribute()?.Name ?? method.Name; knownKeywords.Add(name); } } }