Added missing length HLSL intrinsic methods

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-23 02:04:28 +01:00
1 親 11fa1ef8a6
コミット 97d023387d
1ファイル変更
+24
+24
ファイルの表示
@@ -1240,6 +1240,30 @@ namespace ComputeSharp
[Pure]
public static Float4 Ldexp(Float4 x, Float4 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the length of the specified floating-point vector.
/// </summary>
/// <param name="x">The specified floating-point vector.</param>
/// <returns>A floating-point scalar that represents the length of the x parameter.</returns>
[Pure]
public static float Length(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Length)}({nameof(Float2)})");
/// <summary>
/// Returns the length of the specified floating-point vector.
/// </summary>
/// <param name="x">The specified floating-point vector.</param>
/// <returns>A floating-point scalar that represents the length of the x parameter.</returns>
[Pure]
public static float Length(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Length)}({nameof(Float3)})");
/// <summary>
/// Returns the length of the specified floating-point vector.
/// </summary>
/// <param name="x">The specified floating-point vector.</param>
/// <returns>A floating-point scalar that represents the length of the x parameter.</returns>
[Pure]
public static float Length(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Length)}({nameof(Float4)})");
/// <summary>
/// Performs a linear interpolation.
/// </summary>