diff --git a/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs b/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs
index 75687207..6b3106e7 100644
--- a/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs
+++ b/src/ComputeSharp.Shaders/Intrinsics/Hlsl.cs
@@ -49,6 +49,30 @@ namespace ComputeSharp
[Pure]
public static float Abs(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}(float)");
+ ///
+ /// Returns the absolute value of the specified value
+ ///
+ /// The specified value
+ /// The absolute value of the parameter
+ [Pure]
+ public static Float2 Abs(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Float2)})");
+
+ ///
+ /// Returns the absolute value of the specified value
+ ///
+ /// The specified value
+ /// The absolute value of the parameter
+ [Pure]
+ public static Float3 Abs(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Float3)})");
+
+ ///
+ /// Returns the absolute value of the specified value
+ ///
+ /// The specified value
+ /// The absolute value of the parameter
+ [Pure]
+ public static Float4 Abs(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Float4)})");
+
///
/// Returns the absolute value of the specified value
///
@@ -81,6 +105,30 @@ namespace ComputeSharp
[Pure]
public static float Acos(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}(float)");
+ ///
+ /// Returns the arccosine of the specified value
+ ///
+ /// The specified value, where each component should be within the range [-1 to 1]
+ /// The arccosine of the parameter
+ [Pure]
+ public static Float2 Acos(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}({nameof(Float2)})");
+
+ ///
+ /// Returns the arccosine of the specified value
+ ///
+ /// The specified value, where each component should be within the range [-1 to 1]
+ /// The arccosine of the parameter
+ [Pure]
+ public static Float3 Acos(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}({nameof(Float3)})");
+
+ ///
+ /// Returns the arccosine of the specified value
+ ///
+ /// The specified value, where each component should be within the range [-1 to 1]
+ /// The arccosine of the parameter
+ [Pure]
+ public static Float3 Acos(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}({nameof(Float4)})");
+
///
/// Returns the arccosine of the specified value
///
@@ -129,6 +177,30 @@ namespace ComputeSharp
[Pure]
public static bool All(in Int4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Int4)})");
+ ///
+ /// Determines if all components of the specified value are non-zero
+ ///
+ /// The specified value
+ /// if all components of the parameter are non-zero; otherwise,
+ [Pure]
+ public static bool All(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Float2)})");
+
+ ///
+ /// Determines if all components of the specified value are non-zero
+ ///
+ /// The specified value
+ /// if all components of the parameter are non-zero; otherwise,
+ [Pure]
+ public static bool All(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Float3)})");
+
+ ///
+ /// Determines if all components of the specified value are non-zero
+ ///
+ /// The specified value
+ /// if all components of the parameter are non-zero; otherwise,
+ [Pure]
+ public static bool All(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Float4)})");
+
///
/// Determines if all components of the specified value are non-zero
///
@@ -177,6 +249,30 @@ namespace ComputeSharp
[Pure]
public static bool Any(in Int4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Int4)})");
+ ///
+ /// Determines if any components of the specified value are non-zero
+ ///
+ /// The specified value
+ /// if any components of the parameter are non-zero; otherwise,
+ [Pure]
+ public static bool Any(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Float2)})");
+
+ ///
+ /// Determines if any components of the specified value are non-zero
+ ///
+ /// The specified value
+ /// if any components of the parameter are non-zero; otherwise,
+ [Pure]
+ public static bool Any(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Float3)})");
+
+ ///
+ /// Determines if any components of the specified value are non-zero
+ ///
+ /// The specified value
+ /// if any components of the parameter are non-zero; otherwise,
+ [Pure]
+ public static bool Any(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Float4)})");
+
///
/// Determines if any components of the specified value are non-zero
///
@@ -209,6 +305,30 @@ namespace ComputeSharp
[Pure]
public static float Asin(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}(float)");
+ ///
+ /// Returns the arcsine of the specified value
+ ///
+ /// The specified value, where each component should be within the range [-1 to 1]
+ /// The arcsine of the parameter
+ [Pure]
+ public static Float2 Asin(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}({nameof(Float2)})");
+
+ ///
+ /// Returns the arcsine of the specified value
+ ///
+ /// The specified value, where each component should be within the range [-1 to 1]
+ /// The arcsine of the parameter
+ [Pure]
+ public static Float3 Asin(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}({nameof(Float3)})");
+
+ ///
+ /// Returns the arcsine of the specified value
+ ///
+ /// The specified value, where each component should be within the range [-1 to 1]
+ /// The arcsine of the parameter
+ [Pure]
+ public static Float3 Asin(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}({nameof(Float4)})");
+
///
/// Returns the arcsine of the specified value
///
@@ -241,6 +361,30 @@ namespace ComputeSharp
[Pure]
public static float Atan(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}(float)");
+ ///
+ /// Returns the arctangent of the specified value
+ ///
+ /// The specified value
+ /// The arctangent of the parameter
+ [Pure]
+ public static Float2 Atan(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}({nameof(Float2)})");
+
+ ///
+ /// Returns the arctangent of the specified value
+ ///
+ /// The specified value
+ /// The arctangent of the parameter
+ [Pure]
+ public static Float3 Atan(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}({nameof(Float3)})");
+
+ ///
+ /// Returns the arctangent of the specified value
+ ///
+ /// The specified value
+ /// The arctangent of the parameter
+ [Pure]
+ public static Float3 Atan(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}({nameof(Float4)})");
+
///
/// Returns the arctangent of the specified value
///
@@ -274,6 +418,33 @@ namespace ComputeSharp
[Pure]
public static float Atan2(in float y, in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}(float,float)");
+ ///
+ /// Returns the arctangent of two values (,)
+ ///
+ /// The value
+ /// The value
+ /// The arctangent of (,)
+ [Pure]
+ public static Float2 Atan2(in Float2 y, in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns the arctangent of two values (,)
+ ///
+ /// The value
+ /// The value
+ /// The arctangent of (,)
+ [Pure]
+ public static Float3 Atan2(in Float3 y, in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns the arctangent of two values (,)
+ ///
+ /// The value
+ /// The value
+ /// The arctangent of (,)
+ [Pure]
+ public static Float3 Atan2(in Float4 y, in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns the arctangent of two values (,)
///
@@ -309,6 +480,30 @@ namespace ComputeSharp
[Pure]
public static float Ceil(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}(float)");
+ ///
+ /// Returns the smallest integer value that is greater than or equal to the specified value
+ ///
+ /// The specified value
+ /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter
+ [Pure]
+ public static Float2 Ceil(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}({nameof(Float2)})");
+
+ ///
+ /// Returns the smallest integer value that is greater than or equal to the specified value
+ ///
+ /// The specified value
+ /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter
+ [Pure]
+ public static Float3 Ceil(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}({nameof(Float3)})");
+
+ ///
+ /// Returns the smallest integer value that is greater than or equal to the specified value
+ ///
+ /// The specified value
+ /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter
+ [Pure]
+ public static Float3 Ceil(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}({nameof(Float4)})");
+
///
/// Returns the smallest integer value that is greater than or equal to the specified value
///
@@ -388,6 +583,39 @@ namespace ComputeSharp
[Pure]
public static float Clamp(in float x, in float min, in float max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}(float,float,float)");
+ ///
+ /// Clamps the specified value to the specified minimum and maximum range
+ ///
+ /// A value to clamp
+ /// The specified minimum range
+ /// The specified maximum range
+ /// The clamped value for the x parameter
+ /// For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined
+ [Pure]
+ public static Float2 Clamp(in Float2 x, in Float2 min, in Float2 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Clamps the specified value to the specified minimum and maximum range
+ ///
+ /// A value to clamp
+ /// The specified minimum range
+ /// The specified maximum range
+ /// The clamped value for the x parameter
+ /// For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined
+ [Pure]
+ public static Float3 Clamp(in Float3 x, in Float3 min, in Float3 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Clamps the specified value to the specified minimum and maximum range
+ ///
+ /// A value to clamp
+ /// The specified minimum range
+ /// The specified maximum range
+ /// The clamped value for the x parameter
+ /// For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined
+ [Pure]
+ public static Float4 Clamp(in Float4 x, in Float4 min, in Float4 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})");
+
///
/// Clamps the specified value to the specified minimum and maximum range
///
@@ -429,6 +657,30 @@ namespace ComputeSharp
[Pure]
public static float Cos(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}(float)");
+ ///
+ /// Returns the cosine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The cosine of the parameter
+ [Pure]
+ public static Float2 Cos(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}({nameof(Float2)})");
+
+ ///
+ /// Returns the cosine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The cosine of the parameter
+ [Pure]
+ public static Float3 Cos(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}({nameof(Float3)})");
+
+ ///
+ /// Returns the cosine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The cosine of the parameter
+ [Pure]
+ public static Float3 Cos(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}({nameof(Float4)})");
+
///
/// Returns the cosine of the specified value
///
@@ -461,6 +713,30 @@ namespace ComputeSharp
[Pure]
public static float Cosh(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}(float)");
+ ///
+ /// Returns the hyperbolic cosine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic cosine of the parameter
+ [Pure]
+ public static Float2 Cosh(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}({nameof(Float2)})");
+
+ ///
+ /// Returns the hyperbolic cosine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic cosine of the parameter
+ [Pure]
+ public static Float3 Cosh(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}({nameof(Float3)})");
+
+ ///
+ /// Returns the hyperbolic cosine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic cosine of the parameter
+ [Pure]
+ public static Float3 Cosh(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}({nameof(Float4)})");
+
///
/// Returns the hyperbolic cosine of the specified value
///
@@ -493,6 +769,15 @@ namespace ComputeSharp
[Pure]
public static uint CountBits(in uint x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(CountBits)}({nameof(Vector4)})");
+ ///
+ /// Returns the cross product of two values
+ ///
+ /// The first vector
+ /// The second vector
+ /// The cross product of the parameter and the parameter
+ [Pure]
+ public static Float3 Cross(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cross)}({nameof(Float3)})");
+
///
/// Returns the cross product of two values
///
@@ -510,6 +795,30 @@ namespace ComputeSharp
[Pure]
public static float Degrees(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}(float)");
+ ///
+ /// Converts the specified value from radians to degrees
+ ///
+ /// The specified value
+ /// The result of converting the parameter from radians to degrees
+ [Pure]
+ public static Float2 Degrees(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}({nameof(Float2)})");
+
+ ///
+ /// Converts the specified value from radians to degrees
+ ///
+ /// The specified value
+ /// The result of converting the parameter from radians to degrees
+ [Pure]
+ public static Float3 Degrees(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}({nameof(Float3)})");
+
+ ///
+ /// Converts the specified value from radians to degrees
+ ///
+ /// The specified value
+ /// The result of converting the parameter from radians to degrees
+ [Pure]
+ public static Float3 Degrees(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}({nameof(Float4)})");
+
///
/// Converts the specified value from radians to degrees
///
@@ -534,6 +843,33 @@ namespace ComputeSharp
[Pure]
public static Vector3 Degrees(in Vector4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}({nameof(Vector4)})");
+ ///
+ /// Returns a distance scalar between two values
+ ///
+ /// The first value to compare
+ /// The second value to compare
+ /// A scalar value that represents the distance between the parameter and the parameter
+ [Pure]
+ public static float Distance(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Distance)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns a distance scalar between two values
+ ///
+ /// The first value to compare
+ /// The second value to compare
+ /// A scalar value that represents the distance between the parameter and the parameter
+ [Pure]
+ public static float Distance(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Distance)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns a distance scalar between two values
+ ///
+ /// The first value to compare
+ /// The second value to compare
+ /// A scalar value that represents the distance between the parameter and the parameter
+ [Pure]
+ public static float Distance(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Distance)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns a distance scalar between two values
///
@@ -561,6 +897,33 @@ namespace ComputeSharp
[Pure]
public static float Distance(in Vector4 x, in Vector4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Distance)}({nameof(Vector4)},{nameof(Vector4)})");
+ ///
+ /// Returns the dot product of two values
+ ///
+ /// The first vector
+ /// The second vector
+ /// The dot product of the parameter and the parameter
+ [Pure]
+ public static float Dot(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Dot)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns the dot product of two values
+ ///
+ /// The first vector
+ /// The second vector
+ /// The dot product of the parameter and the parameter
+ [Pure]
+ public static float Dot(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Dot)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns the dot product of two values
+ ///
+ /// The first vector
+ /// The second vector
+ /// The dot product of the parameter and the parameter
+ [Pure]
+ public static float Dot(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Dot)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns the dot product of two values
///
@@ -596,6 +959,30 @@ namespace ComputeSharp
[Pure]
public static float Exp(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}(float)");
+ ///
+ /// Returns the base-e exponential of the specified value
+ ///
+ /// The specified value
+ /// The base-e exponential of the parameter
+ [Pure]
+ public static Float2 Exp(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}({nameof(Float2)})");
+
+ ///
+ /// Returns the base-e exponential of the specified value
+ ///
+ /// The specified value
+ /// The base-e exponential of the parameter
+ [Pure]
+ public static Float3 Exp(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}({nameof(Float3)})");
+
+ ///
+ /// Returns the base-e exponential of the specified value
+ ///
+ /// The specified value
+ /// The base-e exponential of the parameter
+ [Pure]
+ public static Float4 Exp(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}({nameof(Float4)})");
+
///
/// Returns the base-e exponential of the specified value
///
@@ -628,6 +1015,30 @@ namespace ComputeSharp
[Pure]
public static float Exp2(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}(float)");
+ ///
+ /// Returns the base-2 exponential of the specified value
+ ///
+ /// The specified value
+ /// The base-2 exponential of the parameter
+ [Pure]
+ public static Float2 Exp2(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}({nameof(Float2)})");
+
+ ///
+ /// Returns the base-2 exponential of the specified value
+ ///
+ /// The specified value
+ /// The base-2 exponential of the parameter
+ [Pure]
+ public static Float3 Exp2(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}({nameof(Float3)})");
+
+ ///
+ /// Returns the base-2 exponential of the specified value
+ ///
+ /// The specified value
+ /// The base-2 exponential of the parameter
+ [Pure]
+ public static Float4 Exp2(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}({nameof(Float4)})");
+
///
/// Returns the base-2 exponential of the specified value
///
@@ -660,6 +1071,30 @@ namespace ComputeSharp
[Pure]
public static float Floor(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}(float)");
+ ///
+ /// Returns the largest integer that is less than or equal to the specified value
+ ///
+ /// The specified value
+ /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter
+ [Pure]
+ public static Float2 Floor(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}({nameof(Float2)})");
+
+ ///
+ /// Returns the largest integer that is less than or equal to the specified value
+ ///
+ /// The specified value
+ /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter
+ [Pure]
+ public static Float3 Floor(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}({nameof(Float3)})");
+
+ ///
+ /// Returns the largest integer that is less than or equal to the specified value
+ ///
+ /// The specified value
+ /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter
+ [Pure]
+ public static Float4 Floor(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}({nameof(Float4)})");
+
///
/// Returns the largest integer that is less than or equal to the specified value
///
@@ -693,6 +1128,33 @@ namespace ComputeSharp
[Pure]
public static float Fmod(in float x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}(float)");
+ ///
+ /// Returns the floating-point remainder of /
+ ///
+ /// The divident
+ /// The divisor
+ /// The floating-point remainder of the parameter divided by the parameter
+ [Pure]
+ public static Float2 Fmod(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns the floating-point remainder of /
+ ///
+ /// The divident
+ /// The divisor
+ /// The floating-point remainder of the parameter divided by the parameter
+ [Pure]
+ public static Float3 Fmod(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns the floating-point remainder of /
+ ///
+ /// The divident
+ /// The divisor
+ /// The floating-point remainder of the parameter divided by the parameter
+ [Pure]
+ public static Float4 Fmod(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns the floating-point remainder of /
///
@@ -728,6 +1190,30 @@ namespace ComputeSharp
[Pure]
public static float Frac(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}(float)");
+ ///
+ /// Returns the fractional (or decimal) part of , which is greater than or equal to 0 and less than 1
+ ///
+ /// The specified value
+ /// The fractional part of the parameter
+ [Pure]
+ public static Float2 Frac(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float2)})");
+
+ ///
+ /// Returns the fractional (or decimal) part of , which is greater than or equal to 0 and less than 1
+ ///
+ /// The specified value
+ /// The fractional part of the parameter
+ [Pure]
+ public static Float3 Frac(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float3)})");
+
+ ///
+ /// Returns the fractional (or decimal) part of , which is greater than or equal to 0 and less than 1
+ ///
+ /// The specified value
+ /// The fractional part of the parameter
+ [Pure]
+ public static Float4 Frac(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float4)})");
+
///
/// Returns the fractional (or decimal) part of , which is greater than or equal to 0 and less than 1
///
@@ -761,6 +1247,33 @@ namespace ComputeSharp
[Pure]
public static float Frexp(in float x, out float exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frexp)}(float,float)");
+ ///
+ /// Returns the mantissa and exponent of the specified floating-point value
+ ///
+ /// The specified floating-point value (if the x parameter is 0, this function returns 0 for both the mantissa and the exponent)
+ /// The returned exponent of the parameter
+ /// The fractional part of the parameter
+ [Pure]
+ public static Float2 Frexp(in Float2 x, out Float2 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frexp)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns the mantissa and exponent of the specified floating-point value
+ ///
+ /// The specified floating-point value (if the x parameter is 0, this function returns 0 for both the mantissa and the exponent)
+ /// The returned exponent of the parameter
+ /// The fractional part of the parameter
+ [Pure]
+ public static Float3 Frexp(in Float3 x, out Float3 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns the mantissa and exponent of the specified floating-point value
+ ///
+ /// The specified floating-point value (if the x parameter is 0, this function returns 0 for both the mantissa and the exponent)
+ /// The returned exponent of the parameter
+ /// The fractional part of the parameter
+ [Pure]
+ public static Float4 Frexp(in Float4 x, out Float4 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frexp)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns the mantissa and exponent of the specified floating-point value
///
@@ -777,7 +1290,7 @@ namespace ComputeSharp
/// The returned exponent of the parameter
/// The fractional part of the parameter
[Pure]
- public static Vector3 Frexp(in Vector3 x, out Vector3 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Vector3)},{nameof(Vector3)})");
+ public static Vector3 Frexp(in Vector3 x, out Vector3 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frexp)}({nameof(Vector3)},{nameof(Vector3)})");
///
/// Returns the mantissa and exponent of the specified floating-point value
@@ -821,6 +1334,33 @@ namespace ComputeSharp
[Pure]
public static float Ldexp(in float x, in float exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}(float)");
+ ///
+ /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent
+ ///
+ /// The specified value
+ /// The specified exponent
+ /// The result of multiplying the parameter by two, raised to the power of the parameter
+ [Pure]
+ public static Float2 Ldexp(in Float2 x, in Float2 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent
+ ///
+ /// The specified value
+ /// The specified exponent
+ /// The result of multiplying the parameter by two, raised to the power of the parameter
+ [Pure]
+ public static Float3 Ldexp(in Float3 x, in Float3 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent
+ ///
+ /// The specified value
+ /// The specified exponent
+ /// The result of multiplying the parameter by two, raised to the power of the parameter
+ [Pure]
+ public static Float4 Ldexp(in Float4 x, in Float4 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent
///
@@ -858,6 +1398,36 @@ namespace ComputeSharp
[Pure]
public static float Lerp(in float x, in float y, in float s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}(float,float,float)");
+ ///
+ /// Performs a linear interpolation
+ ///
+ /// The first value
+ /// The second value
+ /// 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)})");
+
+ ///
+ /// Performs a linear interpolation
+ ///
+ /// The first value
+ /// The second value
+ /// 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)})");
+
+ ///
+ /// Performs a linear interpolation
+ ///
+ /// The first value
+ /// The second value
+ /// 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)})");
+
///
/// Performs a linear interpolation
///
@@ -896,6 +1466,30 @@ namespace ComputeSharp
[Pure]
public static float Log(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}(float)");
+ ///
+ /// Returns the base-e logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-e logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float2 Log(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}({nameof(Float2)})");
+
+ ///
+ /// Returns the base-e logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-e logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float3 Log(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}({nameof(Float3)})");
+
+ ///
+ /// Returns the base-e logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-e logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float4 Log(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}({nameof(Float4)})");
+
///
/// Returns the base-e logarithm of the specified value
///
@@ -928,6 +1522,30 @@ namespace ComputeSharp
[Pure]
public static float Log10(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}(float)");
+ ///
+ /// Returns the base-10 logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-10 logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float2 Log10(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}({nameof(Float2)})");
+
+ ///
+ /// Returns the base-10 logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-10 logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float3 Log10(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}({nameof(Float3)})");
+
+ ///
+ /// Returns the base-10 logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-10 logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float4 Log10(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}({nameof(Float4)})");
+
///
/// Returns the base-10 logarithm of the specified value
///
@@ -960,6 +1578,30 @@ namespace ComputeSharp
[Pure]
public static float Log2(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}(float)");
+ ///
+ /// Returns the base-2 logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-2 logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float2 Log2(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}({nameof(Float2)})");
+
+ ///
+ /// Returns the base-2 logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-2 logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float3 Log2(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}({nameof(Float3)})");
+
+ ///
+ /// Returns the base-2 logarithm of the specified value
+ ///
+ /// The specified value
+ /// The base-2 logarithm of the parameter (if parameter is negative this function returns indefinite, and if is 0, this function returns -INF)
+ [Pure]
+ public static Float4 Log2(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}({nameof(Float4)})");
+
///
/// Returns the base-2 logarithm of the specified value
///
@@ -1004,6 +1646,36 @@ namespace ComputeSharp
[Pure]
public static float Max(in float x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}(float,float)");
+ ///
+ /// Selects the greater of and
+ ///
+ /// The first specified value
+ /// The second specified exponent
+ /// The or parameter, whichever is the largest value
+ /// For values of -INF or INF, will behave as expected, but for for values of , the results are undefined
+ [Pure]
+ public static Float2 Max(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Selects the greater of and
+ ///
+ /// The first specified value
+ /// The second specified exponent
+ /// The or parameter, whichever is the largest value
+ /// For values of -INF or INF, will behave as expected, but for for values of , the results are undefined
+ [Pure]
+ public static Float3 Max(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Selects the greater of and
+ ///
+ /// The first specified value
+ /// The second specified exponent
+ /// The or parameter, whichever is the largest value
+ /// For values of -INF or INF, will behave as expected, but for for values of , the results are undefined
+ [Pure]
+ public static Float4 Max(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Selects the greater of and
///
@@ -1054,6 +1726,36 @@ namespace ComputeSharp
[Pure]
public static float Min(in float x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}(float,float)");
+ ///
+ /// Selects the lesser of and
+ ///
+ /// The first specified value
+ /// The second specified exponent
+ /// The or parameter, whichever is the smallest value
+ /// For values of -INF or INF, will behave as expected, but for for values of , the results are undefined
+ [Pure]
+ public static Float2 Min(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Selects the lesser of and
+ ///
+ /// The first specified value
+ /// The second specified exponent
+ /// The or parameter, whichever is the smallest value
+ /// For values of -INF or INF, will behave as expected, but for for values of , the results are undefined
+ [Pure]
+ public static Float3 Min(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Selects the lesser of and
+ ///
+ /// The first specified value
+ /// The second specified exponent
+ /// The or parameter, whichever is the smallest value
+ /// For values of -INF or INF, will behave as expected, but for for values of , the results are undefined
+ [Pure]
+ public static Float4 Min(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Selects the lesser of and
///
@@ -1093,6 +1795,33 @@ namespace ComputeSharp
[Pure]
public static int Modf(in int x, out int ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}(int,int)");
+ ///
+ /// Splits the value into fractional and integer parts, each of which has the same sign as
+ ///
+ /// The input value
+ /// The integer portion of
+ /// The signed-fractional portion of
+ [Pure]
+ public static Int2 Modf(in Int2 x, out Int2 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Int2)},{nameof(Int2)})");
+
+ ///
+ /// Splits the value into fractional and integer parts, each of which has the same sign as
+ ///
+ /// The input value
+ /// The integer portion of
+ /// The signed-fractional portion of
+ [Pure]
+ public static Int3 Modf(in Int3 x, out Int3 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Int3)},{nameof(Int3)})");
+
+ ///
+ /// Splits the value into fractional and integer parts, each of which has the same sign as
+ ///
+ /// The input value
+ /// The integer portion of
+ /// The signed-fractional portion of
+ [Pure]
+ public static Int4 Modf(in Int4 x, out Int4 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Int4)},{nameof(Int4)})");
+
///
/// Splits the value into fractional and integer parts, each of which has the same sign as
///
@@ -1102,6 +1831,33 @@ namespace ComputeSharp
[Pure]
public static float Modf(in float x, out float ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}(float,float)");
+ ///
+ /// Splits the value into fractional and integer parts, each of which has the same sign as
+ ///
+ /// The input value
+ /// The integer portion of
+ /// The signed-fractional portion of
+ [Pure]
+ public static Float2 Modf(in Float2 x, out Float2 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Splits the value into fractional and integer parts, each of which has the same sign as
+ ///
+ /// The input value
+ /// The integer portion of
+ /// The signed-fractional portion of
+ [Pure]
+ public static Float3 Modf(in Float3 x, out Float3 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Splits the value into fractional and integer parts, each of which has the same sign as
+ ///
+ /// The input value
+ /// The integer portion of
+ /// The signed-fractional portion of
+ [Pure]
+ public static Float4 Modf(in Float4 x, out Float4 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Splits the value into fractional and integer parts, each of which has the same sign as
///
@@ -1129,6 +1885,33 @@ namespace ComputeSharp
[Pure]
public static Vector4 Modf(in Vector4 x, out Vector4 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Vector4)},{nameof(Vector4)})");
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static Float2 Mul(in float x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}(float,{nameof(Float2)})");
+
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static Float3 Mul(in float x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}(float,{nameof(Float3)})");
+
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static Float3 Mul(in float x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}(float,{nameof(Float4)})");
+
///
/// Multiplies and using matrix math
///
@@ -1156,6 +1939,33 @@ namespace ComputeSharp
[Pure]
public static Vector3 Mul(in float x, in Vector4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}(float,{nameof(Vector4)})");
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static Float2 Mul(in Float2 x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float2)},float)");
+
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static Float3 Mul(in Float3 x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float3)},float)");
+
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static Float4 Mul(in Float4 x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float4)},float)");
+
///
/// Multiplies and using matrix math
///
@@ -1183,6 +1993,33 @@ namespace ComputeSharp
[Pure]
public static Vector4 Mul(in Vector4 x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Vector4)},float)");
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static float Mul(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static float Mul(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Multiplies and using matrix math
+ ///
+ /// The first input value (if is a vector, it treated as a row vector)
+ /// The second input value (if is a vector, it treated as a column vector)
+ /// The result of times
+ [Pure]
+ public static float Mul(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Multiplies and using matrix math
///
@@ -1210,6 +2047,30 @@ namespace ComputeSharp
[Pure]
public static float Mul(in Vector4 x, in Vector4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Vector4)},{nameof(Vector4)})");
+ ///
+ /// Normalizes the specified floating-point vector according to / length()
+ ///
+ /// The specified value
+ /// The normalized parameter
+ [Pure]
+ public static Float2 Normalize(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Normalize)}({nameof(Float2)})");
+
+ ///
+ /// Normalizes the specified floating-point vector according to / length()
+ ///
+ /// The specified value
+ /// The normalized parameter
+ [Pure]
+ public static Float3 Normalize(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Normalize)}({nameof(Float3)})");
+
+ ///
+ /// Normalizes the specified floating-point vector according to / length()
+ ///
+ /// The specified value
+ /// The normalized parameter
+ [Pure]
+ public static Float4 Normalize(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Normalize)}({nameof(Float4)})");
+
///
/// Normalizes the specified floating-point vector according to / length()
///
@@ -1244,6 +2105,36 @@ namespace ComputeSharp
[Pure]
public static float Pow(in float x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}(float,float)");
+ ///
+ /// Returns the specified value raised to the specified power
+ ///
+ /// The specified value
+ /// The specified power
+ /// The parameter raised to the power of the parameter
+ /// See for details on special cases
+ [Pure]
+ public static Float2 Pow(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns the specified value raised to the specified power
+ ///
+ /// The specified value
+ /// The specified power
+ /// The parameter raised to the power of the parameter
+ /// See for details on special cases
+ [Pure]
+ public static Float3 Pow(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns the specified value raised to the specified power
+ ///
+ /// The specified value
+ /// The specified power
+ /// The parameter raised to the power of the parameter
+ /// See for details on special cases
+ [Pure]
+ public static Float4 Pow(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns the specified value raised to the specified power
///
@@ -1282,6 +2173,30 @@ namespace ComputeSharp
[Pure]
public static float Radians(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}(float)");
+ ///
+ /// Converts the specified value from degrees to radians
+ ///
+ /// The specified value
+ /// The parameter converted from degrees to radians
+ [Pure]
+ public static Float2 Radians(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}({nameof(Float2)})");
+
+ ///
+ /// Converts the specified value from degrees to radians
+ ///
+ /// The specified value
+ /// The parameter converted from degrees to radians
+ [Pure]
+ public static Float3 Radians(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}({nameof(Float3)})");
+
+ ///
+ /// Converts the specified value from degrees to radians
+ ///
+ /// The specified value
+ /// The parameter converted from degrees to radians
+ [Pure]
+ public static Float4 Radians(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}({nameof(Float4)})");
+
///
/// Converts the specified value from degrees to radians
///
@@ -1314,6 +2229,30 @@ namespace ComputeSharp
[Pure]
public static float Rcp(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}(float)");
+ ///
+ /// Calculates a fast, approximate, per-component reciprocal
+ ///
+ /// The specified value
+ /// The reciprocal of the parameter
+ [Pure]
+ public static Float2 Rcp(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}({nameof(Float2)})");
+
+ ///
+ /// Calculates a fast, approximate, per-component reciprocal
+ ///
+ /// The specified value
+ /// The reciprocal of the parameter
+ [Pure]
+ public static Float3 Rcp(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}({nameof(Float3)})");
+
+ ///
+ /// Calculates a fast, approximate, per-component reciprocal
+ ///
+ /// The specified value
+ /// The reciprocal of the parameter
+ [Pure]
+ public static Float4 Rcp(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}({nameof(Float4)})");
+
///
/// Calculates a fast, approximate, per-component reciprocal
///
@@ -1346,6 +2285,30 @@ namespace ComputeSharp
[Pure]
public static float Round(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}(float)");
+ ///
+ /// Rounds the specified value to the nearest integer
+ ///
+ /// The specified value
+ /// The parameter, rounded to the nearest integer within a floating-point type
+ [Pure]
+ public static Float2 Round(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}({nameof(Float2)})");
+
+ ///
+ /// Rounds the specified value to the nearest integer
+ ///
+ /// The specified value
+ /// The parameter, rounded to the nearest integer within a floating-point type
+ [Pure]
+ public static Float3 Round(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}({nameof(Float3)})");
+
+ ///
+ /// Rounds the specified value to the nearest integer
+ ///
+ /// The specified value
+ /// The parameter, rounded to the nearest integer within a floating-point type
+ [Pure]
+ public static Float4 Round(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}({nameof(Float4)})");
+
///
/// Rounds the specified value to the nearest integer
///
@@ -1379,6 +2342,33 @@ namespace ComputeSharp
[Pure]
public static float Rsqrt(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}(float)");
+ ///
+ /// Returns the reciprocal of the square root of the specified value
+ ///
+ /// The specified value
+ /// The reciprocal of the square root of the parameter
+ /// This function uses the following formula: 1 / sqrt()
+ [Pure]
+ public static Float2 Rsqrt(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}({nameof(Float2)})");
+
+ ///
+ /// Returns the reciprocal of the square root of the specified value
+ ///
+ /// The specified value
+ /// The reciprocal of the square root of the parameter
+ /// This function uses the following formula: 1 / sqrt()
+ [Pure]
+ public static Float3 Rsqrt(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}({nameof(Float3)})");
+
+ ///
+ /// Returns the reciprocal of the square root of the specified value
+ ///
+ /// The specified value
+ /// The reciprocal of the square root of the parameter
+ /// This function uses the following formula: 1 / sqrt()
+ [Pure]
+ public static Float4 Rsqrt(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}({nameof(Float4)})");
+
///
/// Returns the reciprocal of the square root of the specified value
///
@@ -1414,6 +2404,30 @@ namespace ComputeSharp
[Pure]
public static float Saturate(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}(float)");
+ ///
+ /// Clamps the specified value within the range [0,1]
+ ///
+ /// The specified value
+ /// The parameter, clamped within the range [0,1]
+ [Pure]
+ public static Float2 Saturate(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}({nameof(Float2)})");
+
+ ///
+ /// Clamps the specified value within the range [0,1]
+ ///
+ /// The specified value
+ /// The parameter, clamped within the range [0,1]
+ [Pure]
+ public static Float3 Saturate(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}({nameof(Float3)})");
+
+ ///
+ /// Clamps the specified value within the range [0,1]
+ ///
+ /// The specified value
+ /// The parameter, clamped within the range [0,1]
+ [Pure]
+ public static Float4 Saturate(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}({nameof(Float4)})");
+
///
/// Clamps the specified value within the range [0,1]
///
@@ -1446,6 +2460,30 @@ namespace ComputeSharp
[Pure]
public static float Sign(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}(float)");
+ ///
+ /// Returns the sign of
+ ///
+ /// The input value
+ /// Returns -1 if is less than zero, 0 if equals zero and 1 if is greater than zero
+ [Pure]
+ public static Float2 Sign(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}({nameof(Float2)})");
+
+ ///
+ /// Returns the sign of
+ ///
+ /// The input value
+ /// Returns -1 if is less than zero, 0 if equals zero and 1 if is greater than zero
+ [Pure]
+ public static Float3 Sign(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}({nameof(Float3)})");
+
+ ///
+ /// Returns the sign of
+ ///
+ /// The input value
+ /// Returns -1 if is less than zero, 0 if equals zero and 1 if is greater than zero
+ [Pure]
+ public static Float4 Sign(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}({nameof(Float4)})");
+
///
/// Returns the sign of
///
@@ -1478,6 +2516,30 @@ namespace ComputeSharp
[Pure]
public static float Sin(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}(float)");
+ ///
+ /// Returns the sine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The sine of the parameter
+ [Pure]
+ public static Float2 Sin(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}({nameof(Float2)})");
+
+ ///
+ /// Returns the sine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The sine of the parameter
+ [Pure]
+ public static Float3 Sin(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}({nameof(Float3)})");
+
+ ///
+ /// Returns the sine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The sine of the parameter
+ [Pure]
+ public static Float4 Sin(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}({nameof(Float4)})");
+
///
/// Returns the sine of the specified value
///
@@ -1510,6 +2572,30 @@ namespace ComputeSharp
/// Returns the cosine of
public static void SinCos(in float x, out float s, out float c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}(float,float,float)");
+ ///
+ /// Returns the sine and cosine of
+ ///
+ /// The specified value, in radians
+ /// Returns the sine of
+ /// Returns the cosine of
+ public static void SinCos(in Float2 x, out Float2 s, out Float2 c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns the sine and cosine of
+ ///
+ /// The specified value, in radians
+ /// Returns the sine of
+ /// Returns the cosine of
+ public static void SinCos(in Float3 x, out Float3 s, out Float3 c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns the sine and cosine of
+ ///
+ /// The specified value, in radians
+ /// Returns the sine of
+ /// Returns the cosine of
+ public static void SinCos(in Float4 x, out Float4 s, out Float4 c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns the sine and cosine of
///
@@ -1542,6 +2628,30 @@ namespace ComputeSharp
[Pure]
public static float Sinh(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}(float)");
+ ///
+ /// Returns the hyperbolic sine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic sine of the parameter
+ [Pure]
+ public static Float2 Sinh(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}({nameof(Float2)})");
+
+ ///
+ /// Returns the hyperbolic sine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic sine of the parameter
+ [Pure]
+ public static Float3 Sinh(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}({nameof(Float3)})");
+
+ ///
+ /// Returns the hyperbolic sine of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic sine of the parameter
+ [Pure]
+ public static Float4 Sinh(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}({nameof(Float4)})");
+
///
/// Returns the hyperbolic sine of the specified value
///
@@ -1576,6 +2686,36 @@ namespace ComputeSharp
[Pure]
public static float SmoothStep(in float min, in float max, in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}(float,float,float)");
+ ///
+ /// Returns a smooth Hermite interpolation between 0 and 1, if is in the range [, ]
+ ///
+ /// The minimum range of the parameter
+ /// The maximum range of the parameter
+ /// The specified value to be interpolated
+ /// 0 if is less than , 1 if is greater than , otherwise a value between 0 and 1 if is in the range [, ]
+ [Pure]
+ public static Float2 SmoothStep(in Float2 min, in Float2 max, in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Returns a smooth Hermite interpolation between 0 and 1, if is in the range [, ]
+ ///
+ /// The minimum range of the parameter
+ /// The maximum range of the parameter
+ /// The specified value to be interpolated
+ /// 0 if is less than , 1 if is greater than , otherwise a value between 0 and 1 if is in the range [, ]
+ [Pure]
+ public static Float3 SmoothStep(in Float3 min, in Float3 max, in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Returns a smooth Hermite interpolation between 0 and 1, if is in the range [, ]
+ ///
+ /// The minimum range of the parameter
+ /// The maximum range of the parameter
+ /// The specified value to be interpolated
+ /// 0 if is less than , 1 if is greater than , otherwise a value between 0 and 1 if is in the range [, ]
+ [Pure]
+ public static Float4 SmoothStep(in Float4 min, in Float4 max, in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})");
+
///
/// Returns a smooth Hermite interpolation between 0 and 1, if is in the range [, ]
///
@@ -1614,6 +2754,30 @@ namespace ComputeSharp
[Pure]
public static float Sqrt(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}(float)");
+ ///
+ /// Returns the square root of the specified floating-point value, per component
+ ///
+ /// The specified value
+ /// The square root of the parameter, per component
+ [Pure]
+ public static Float2 Sqrt(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}({nameof(Float2)})");
+
+ ///
+ /// Returns the square root of the specified floating-point value, per component
+ ///
+ /// The specified value
+ /// The square root of the parameter, per component
+ [Pure]
+ public static Float3 Sqrt(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}({nameof(Float3)})");
+
+ ///
+ /// Returns the square root of the specified floating-point value, per component
+ ///
+ /// The specified value
+ /// The square root of the parameter, per component
+ [Pure]
+ public static Float4 Sqrt(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}({nameof(Float4)})");
+
///
/// Returns the square root of the specified floating-point value, per component
///
@@ -1648,6 +2812,36 @@ namespace ComputeSharp
[Pure]
public static float Step(in float x, in float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}(float,float)");
+ ///
+ /// Compares two values, returning 0 or 1 based on which value is greater
+ ///
+ /// The first specified value to compare
+ /// The second specified value to compare
+ /// 1 if the parameter is greater than or equal to the parameter, otherwise, 0
+ /// This function uses the following formula: (x >= y) ? 1 : 0
+ [Pure]
+ public static Float2 Step(in Float2 x, in Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}({nameof(Float2)},{nameof(Float2)})");
+
+ ///
+ /// Compares two values, returning 0 or 1 based on which value is greater
+ ///
+ /// The first specified value to compare
+ /// The second specified value to compare
+ /// 1 if the parameter is greater than or equal to the parameter, otherwise, 0
+ /// This function uses the following formula: (x >= y) ? 1 : 0
+ [Pure]
+ public static Float3 Step(in Float3 x, in Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}({nameof(Float3)},{nameof(Float3)})");
+
+ ///
+ /// Compares two values, returning 0 or 1 based on which value is greater
+ ///
+ /// The first specified value to compare
+ /// The second specified value to compare
+ /// 1 if the parameter is greater than or equal to the parameter, otherwise, 0
+ /// This function uses the following formula: (x >= y) ? 1 : 0
+ [Pure]
+ public static Float4 Step(in Float4 x, in Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}({nameof(Float4)},{nameof(Float4)})");
+
///
/// Compares two values, returning 0 or 1 based on which value is greater
///
@@ -1686,6 +2880,30 @@ namespace ComputeSharp
[Pure]
public static float Tan(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}(float)");
+ ///
+ /// Returns the tangent of the specified value
+ ///
+ /// The specified value, in radians
+ /// The tangent of the parameter
+ [Pure]
+ public static Float2 Tan(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}({nameof(Float2)})");
+
+ ///
+ /// Returns the tangent of the specified value
+ ///
+ /// The specified value, in radians
+ /// The tangent of the parameter
+ [Pure]
+ public static Float3 Tan(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}({nameof(Float3)})");
+
+ ///
+ /// Returns the tangent of the specified value
+ ///
+ /// The specified value, in radians
+ /// The tangent of the parameter
+ [Pure]
+ public static Float4 Tan(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}({nameof(Float4)})");
+
///
/// Returns the tangent of the specified value
///
@@ -1718,6 +2936,30 @@ namespace ComputeSharp
[Pure]
public static float Tanh(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}(float)");
+ ///
+ /// Returns the hyperbolic tangent of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic tangent of the parameter
+ [Pure]
+ public static Float2 Tanh(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}({nameof(Float2)})");
+
+ ///
+ /// Returns the hyperbolic tangent of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic tangent of the parameter
+ [Pure]
+ public static Float3 Tanh(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}({nameof(Float3)})");
+
+ ///
+ /// Returns the hyperbolic tangent of the specified value
+ ///
+ /// The specified value, in radians
+ /// The hyperbolic tangent of the parameter
+ [Pure]
+ public static Float4 Tanh(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}({nameof(Float4)})");
+
///
/// Returns the hyperbolic tangent of the specified value
///
@@ -1750,6 +2992,30 @@ namespace ComputeSharp
[Pure]
public static float Trunc(in float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}(float)");
+ ///
+ /// Truncates a floating-point value to the integer component
+ ///
+ /// The specified value, in radians
+ /// The parameter truncated to an integer component
+ [Pure]
+ public static Float2 Trunc(in Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}({nameof(Float2)})");
+
+ ///
+ /// Truncates a floating-point value to the integer component
+ ///
+ /// The specified value, in radians
+ /// The parameter truncated to an integer component
+ [Pure]
+ public static Float3 Trunc(in Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}({nameof(Float3)})");
+
+ ///
+ /// Truncates a floating-point value to the integer component
+ ///
+ /// The specified value, in radians
+ /// The parameter truncated to an integer component
+ [Pure]
+ public static Float4 Trunc(in Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}({nameof(Float4)})");
+
///
/// Truncates a floating-point value to the integer component
///