Fix Hlsl.Normalize intrinsic overloads

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-15 17:24:10 +01:00
1 親 647a3b1463
コミット 9437fd971c
2ファイル変更
+16 -6

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

+12 -3
ファイルの表示
@@ -12016,7 +12016,7 @@ public static partial class Hlsl
/// <returns>The normalized <paramref name="x"/> parameter. If the length of the <paramref name="x"/> parameter is 0, the result is indefinite.</returns>
/// <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>
[HlslIntrinsicName("normalize")]
public static float Normalize(Float2 x) => default;
public static float Normalize(float x) => default;
/// <summary>
/// Normalizes the specified floating-point vector according to x / length(x).
@@ -12025,7 +12025,7 @@ public static partial class Hlsl
/// <returns>The normalized <paramref name="x"/> parameter. If the length of the <paramref name="x"/> parameter is 0, the result is indefinite.</returns>
/// <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>
[HlslIntrinsicName("normalize")]
public static float Normalize(Float3 x) => default;
public static Float2 Normalize(Float2 x) => default;
/// <summary>
/// Normalizes the specified floating-point vector according to x / length(x).
@@ -12034,7 +12034,16 @@ public static partial class Hlsl
/// <returns>The normalized <paramref name="x"/> parameter. If the length of the <paramref name="x"/> parameter is 0, the result is indefinite.</returns>
/// <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>
[HlslIntrinsicName("normalize")]
public static float Normalize(Float4 x) => default;
public static Float3 Normalize(Float3 x) => default;
/// <summary>
/// Normalizes the specified floating-point vector according to x / length(x).
/// </summary>
/// <param name="x">The specified floating-point vector.</param>
/// <returns>The normalized <paramref name="x"/> parameter. If the length of the <paramref name="x"/> parameter is 0, the result is indefinite.</returns>
/// <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>
[HlslIntrinsicName("normalize")]
public static Float4 Normalize(Float4 x) => default;
/// <summary>
/// Returns the specified value raised to the specified power.
+4 -3
ファイルの表示
@@ -1916,9 +1916,10 @@ var Intrinsics = new[]
Returns = "The normalized {x} parameter. If the length of the {x} parameter is 0, the result is indefinite.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "Float2" } },
new { Return = "float", Params = new[] { "Float3" } },
new { Return = "float", Params = new[] { "Float4" } }
new { Return = "float", Params = new[] { "float" } },
new { Return = "Float2", Params = new[] { "Float2" } },
new { Return = "Float3", Params = new[] { "Float3" } },
new { Return = "Float4", Params = new[] { "Float4" } }
}
},
new