Merge pull request #148 from Patan77/main

Hlsl.Distance output to scalar float
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2021-11-07 16:44:55 +01:00
コミット 413a92bbd4
2ファイル変更
+6 -6

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

+3 -3
ファイルの表示
@@ -5229,7 +5229,7 @@ public static partial class Hlsl
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[Pure]
[HlslIntrinsicName("distance")]
public static Float2 Distance(Float2 x, Float2 y) => default;
public static float Distance(Float2 x, Float2 y) => default;
/// <summary>
/// Returns a distance scalar between two vectors.
@@ -5240,7 +5240,7 @@ public static partial class Hlsl
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[Pure]
[HlslIntrinsicName("distance")]
public static Float3 Distance(Float3 x, Float3 y) => default;
public static float Distance(Float3 x, Float3 y) => default;
/// <summary>
/// Returns a distance scalar between two vectors.
@@ -5251,7 +5251,7 @@ public static partial class Hlsl
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
[Pure]
[HlslIntrinsicName("distance")]
public static Float4 Distance(Float4 x, Float4 y) => default;
public static float Distance(Float4 x, Float4 y) => default;
/// <summary>
/// Returns the dot product of two vectors.
+3 -3
ファイルの表示
@@ -822,9 +822,9 @@ var Intrinsics = new[]
Returns = "A floating-point, scalar value that represents the distance between the {x} parameter and the {y} parameter.",
Overloads = new[]
{
new { Return = "Float2", Params = new[] { "Float2", "Float2" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4" } }
new { Return = "float", Params = new[] { "Float2", "Float2" } },
new { Return = "float", Params = new[] { "Float3", "Float3" } },
new { Return = "float", Params = new[] { "Float4", "Float4" } }
},
IsPure = true
},