From 64e64d8fb3c024db3fb5bc70dc1ebfdd1ef0dabc Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 26 Aug 2019 13:49:08 +0200 Subject: [PATCH] Fixed some incorrect error messages --- src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs b/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs index 6b3106e7..6e6dcd3d 100644 --- a/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs +++ b/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs @@ -1396,7 +1396,7 @@ namespace ComputeSharp /// A value that linearly interpolates between the parameter and the parameter /// The result of the linear interpolation [Pure] - public static float Lerp(in float x, in float y, in float s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}(float,float,float)"); + public static float Lerp(in float x, in float y, in float s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}(float,float,float)"); /// /// Performs a linear interpolation @@ -1406,7 +1406,7 @@ namespace ComputeSharp /// A value that linearly interpolates between the parameter and the parameter /// The result of the linear interpolation [Pure] - public static Float2 Lerp(in Float2 x, in Float2 y, in Float2 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})"); + public static Float2 Lerp(in Float2 x, in Float2 y, in Float2 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})"); /// /// Performs a linear interpolation @@ -1416,7 +1416,7 @@ namespace ComputeSharp /// A value that linearly interpolates between the parameter and the parameter /// The result of the linear interpolation [Pure] - public static Float3 Lerp(in Float3 x, in Float3 y, in Float3 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})"); + public static Float3 Lerp(in Float3 x, in Float3 y, in Float3 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})"); /// /// Performs a linear interpolation @@ -1426,7 +1426,7 @@ namespace ComputeSharp /// A value that linearly interpolates between the parameter and the parameter /// The result of the linear interpolation [Pure] - public static Float2 Lerp(in Float4 x, in Float4 y, in Float4 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})"); + public static Float2 Lerp(in Float4 x, in Float4 y, in Float4 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})"); /// /// Performs a linear interpolation @@ -1436,7 +1436,7 @@ namespace ComputeSharp /// A value that linearly interpolates between the parameter and the parameter /// The result of the linear interpolation [Pure] - public static Vector2 Lerp(in Vector2 x, in Vector2 y, in Vector2 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Vector2)},{nameof(Vector2)},{nameof(Vector2)})"); + public static Vector2 Lerp(in Vector2 x, in Vector2 y, in Vector2 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Vector2)},{nameof(Vector2)},{nameof(Vector2)})"); /// /// Performs a linear interpolation @@ -1446,7 +1446,7 @@ namespace ComputeSharp /// A value that linearly interpolates between the parameter and the parameter /// The result of the linear interpolation [Pure] - public static Vector3 Lerp(in Vector3 x, in Vector3 y, in Vector3 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Vector3)},{nameof(Vector3)},{nameof(Vector3)})"); + public static Vector3 Lerp(in Vector3 x, in Vector3 y, in Vector3 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Vector3)},{nameof(Vector3)},{nameof(Vector3)})"); /// /// Performs a linear interpolation @@ -1456,7 +1456,7 @@ namespace ComputeSharp /// A value that linearly interpolates between the parameter and the parameter /// The result of the linear interpolation [Pure] - public static Vector2 Lerp(in Vector4 x, in Vector4 y, in Vector4 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Vector4)},{nameof(Vector4)},{nameof(Vector4)})"); + public static Vector2 Lerp(in Vector4 x, in Vector4 y, in Vector4 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Vector4)},{nameof(Vector4)},{nameof(Vector4)})"); /// /// Returns the base-e logarithm of the specified value