Added missing mappable methods to HlslKnownMethods

このコミットが含まれているのは:
Adam Dernis authored and Sergio Pedri committed 2021-10-22 12:30:53 +02:00
1 親 f7e3eb703e
コミット accb41ab9e
1ファイル変更
+22
+22
ファイルの表示
@@ -46,6 +46,8 @@ namespace ComputeSharp.SourceGenerators.Mappings
[$"{typeof(Math).FullName}.{nameof(Math.Exp)}"] = "exp",
[$"{typeof(Math).FullName}.{nameof(Math.Log)}"] = "log",
[$"{typeof(Math).FullName}.{nameof(Math.Log10)}"] = "log10",
[$"{typeof(Math).FullName}.{nameof(Math.Max)}"] = "max",
[$"{typeof(Math).FullName}.{nameof(Math.Min)}"] = "min",
[$"{typeof(Math).FullName}.{nameof(Math.Round)}"] = "round",
[$"{typeof(Math).FullName}.{nameof(Math.Sqrt)}"] = "sqrt",
[$"{typeof(Math).FullName}.{nameof(Math.Sign)}"] = "sign",
@@ -71,6 +73,8 @@ namespace ComputeSharp.SourceGenerators.Mappings
["System.MathF.Exp"] = "exp",
["System.MathF.Log"] = "log",
["System.MathF.Log10"] = "log10",
["System.MathF.Max"] = "max",
["System.MathF.Min"] = "min",
["System.MathF.Round"] = "round",
["System.MathF.Sqrt"] = "sqrt",
["System.MathF.Sign"] = "sign",
@@ -84,20 +88,38 @@ namespace ComputeSharp.SourceGenerators.Mappings
[$"{typeof(double).FullName}.{nameof(double.IsInfinity)}"] = "isinf",
[$"{typeof(double).FullName}.{nameof(double.IsNaN)}"] = "isnan",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Abs)}"] = "abs",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Clamp)}"] = "clamp",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Distance)}"] = "distance",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Dot)}"] = "dot",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Lerp)}"] = "lerp",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Max)}"] = "max",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Min)}"] = "min",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Reflect)}"] = "reflect",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Transform)}"] = "mul",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.TransformNormal)}"] = "mul",
[$"{typeof(Vector2).FullName}.{nameof(Vector2.Normalize)}"] = "normalize",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Abs)}"] = "abs",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Clamp)}"] = "clamp",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Cross)}"] = "cross",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Distance)}"] = "distance",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Dot)}"] = "dot",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Lerp)}"] = "lerp",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Max)}"] = "max",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Min)}"] = "min",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Reflect)}"] = "reflect",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Transform)}"] = "mul",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.TransformNormal)}"] = "mul",
[$"{typeof(Vector3).FullName}.{nameof(Vector3.Normalize)}"] = "normalize",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Abs)}"] = "abs",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Clamp)}"] = "clamp",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Distance)}"] = "distance",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Dot)}"] = "dot",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Lerp)}"] = "lerp",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Max)}"] = "max",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Min)}"] = "min",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Transform)}"] = "mul",
[$"{typeof(Vector4).FullName}.{nameof(Vector4.Normalize)}"] = "normalize"
};