ファイル
ComputeSharp/src/ComputeSharp.Core/Intrinsics/Hlsl.cs
T

2221 行
133 KiB
C#

using System.Diagnostics.Contracts;
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="class"/> that maps the supported HLSL intrinsic functions that can be used in compute shaders.
/// </summary>
public static class Hlsl
{
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static int Abs(int x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}(int)");
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Int2 Abs(Int2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Int2)})");
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Int3 Abs(Int3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Int3)})");
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Int4 Abs(Int4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Int4)})");
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Abs(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}(float)");
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Abs(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Float2)})");
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Abs(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Float3)})");
/// <summary>
/// Returns the absolute value of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The absolute value of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Abs(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Abs)}({nameof(Float4)})");
/// <summary>
/// Returns the arccosine of the specified value.
/// </summary>
/// <param name="x">The specified value, which should be within the range [-1 to 1]</param>
/// <returns>The arccosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Acos(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}(float)");
/// <summary>
/// Returns the arccosine of the specified value.
/// </summary>
/// <param name="x">The specified value, where each component should be within the range [-1 to 1]</param>
/// <returns>The arccosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Acos(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}({nameof(Float2)})");
/// <summary>
/// Returns the arccosine of the specified value.
/// </summary>
/// <param name="x">The specified value, where each component should be within the range [-1 to 1]</param>
/// <returns>The arccosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Acos(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}({nameof(Float3)})");
/// <summary>
/// Returns the arccosine of the specified value.
/// </summary>
/// <param name="x">The specified value, where each component should be within the range [-1 to 1]</param>
/// <returns>The arccosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Acos(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Acos)}({nameof(Float4)})");
/// <summary>
/// Determines if all components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if all components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool All(Int2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Int2)})");
/// <summary>
/// Determines if all components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if all components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool All(Int3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Int3)})");
/// <summary>
/// Determines if all components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if all components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool All(Int4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Int4)})");
/// <summary>
/// Determines if all components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if all components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool All(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Float2)})");
/// <summary>
/// Determines if all components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if all components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool All(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Float3)})");
/// <summary>
/// Determines if all components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if all components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool All(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(All)}({nameof(Float4)})");
/// <summary>
/// Blocks execution of all threads in a group until all memory accesses have been completed.
/// </summary>
/// <remarks>
/// A memory barrier guarantees that outstanding memory operations have completed.
/// Threads are synchronized at GroupSync barriers.
/// This may stall a thread or threads if memory operations are in progress.
/// </remarks>
[PreserveMemberName]
public static void AllMemoryBarrier() => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AllMemoryBarrier)}()");
/// <summary>
/// Blocks execution of all threads in a group until all memory accesses have been completed and all threads in the group have reached this call.
/// </summary>
/// <remarks>
/// A memory barrier guarantees that outstanding memory operations have completed.
/// Threads are synchronized at GroupSync barriers.
/// This may stall a thread or threads if memory operations are in progress.
/// </remarks>
[PreserveMemberName]
public static void AllMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AllMemoryBarrierWithGroupSync)}()");
/// <summary>
/// Determines if any components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if any components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool Any(Int2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Int2)})");
/// <summary>
/// Determines if any components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if any components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool Any(Int3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Int3)})");
/// <summary>
/// Determines if any components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if any components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool Any(Int4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Int4)})");
/// <summary>
/// Determines if any components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if any components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool Any(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Float2)})");
/// <summary>
/// Determines if any components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if any components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool Any(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Float3)})");
/// <summary>
/// Determines if any components of the specified value are non-zero.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns><see langword="true"/> if any components of the <paramref name="x"/> parameter are non-zero; otherwise, <see langword="false"/>.</returns>
[Pure]
public static bool Any(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Any)}({nameof(Float4)})");
/// <summary>
/// Reinterprets a cast value (two 32-bit <see langword="uint"/> values) into a <see langword="double"/>.
/// </summary>
/// <param name="lowBits">The low 32-bit pattern of the input value.</param>
/// <param name="highBits">The high 32-bit pattern of the input value.</param>
/// <returns>The input (two 32-bit values) recast as a <see langword="double"/>.</returns>
[Pure]
public static double AsDouble(uint lowBits, uint highBits) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsDouble)}(uint,uint)");
/// <summary>
/// Reinterprets a cast value (two 32-bit <see langword="uint"/> values) into a <see langword="double"/>.
/// </summary>
/// <param name="lowBits">The low 32-bit pattern of the input value.</param>
/// <param name="highBits">The high 32-bit pattern of the input value.</param>
/// <returns>The input (two 32-bit values) recast as a <see langword="double"/>.</returns>
[Pure]
public static Double2 AsDouble(UInt2 lowBits, UInt2 highBits) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsDouble)}({nameof(UInt2)},{nameof(UInt2)})");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static float AsFloat(int x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}(int)");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static Float2 AsFloat(Int2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}({nameof(Int2)})");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static Float3 AsFloat(Int3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}({nameof(Int3)})");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static Float4 AsFloat(Int4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}({nameof(Int4)})");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static float AsFloat(uint x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}(uint)");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static Float2 AsFloat(UInt2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}({nameof(UInt2)})");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static Float3 AsFloat(UInt3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}({nameof(UInt3)})");
/// <summary>
/// Interprets the bit pattern of <paramref name="x"/> as a floating-point number.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The input interpreted as a floating-point number.</returns>
[Pure]
public static Float4 AsFloat(UInt4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(AsFloat)}({nameof(UInt4)})");
/// <summary>
/// Returns the arcsine of the specified value.
/// </summary>
/// <param name="x">The specified value, which should be within the range [-1 to 1]</param>
/// <returns>The arcsine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Asin(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}(float)");
/// <summary>
/// Returns the arcsine of the specified value.
/// </summary>
/// <param name="x">The specified value, where each component should be within the range [-1 to 1]</param>
/// <returns>The arcsine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Asin(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}({nameof(Float2)})");
/// <summary>
/// Returns the arcsine of the specified value.
/// </summary>
/// <param name="x">The specified value, where each component should be within the range [-1 to 1]</param>
/// <returns>The arcsine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Asin(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}({nameof(Float3)})");
/// <summary>
/// Returns the arcsine of the specified value.
/// </summary>
/// <param name="x">The specified value, where each component should be within the range [-1 to 1]</param>
/// <returns>The arcsine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Asin(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Asin)}({nameof(Float4)})");
/// <summary>
/// Returns the arctangent of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The arctangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Atan(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}(float)");
/// <summary>
/// Returns the arctangent of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The arctangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Atan(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}({nameof(Float2)})");
/// <summary>
/// Returns the arctangent of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The arctangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Atan(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}({nameof(Float3)})");
/// <summary>
/// Returns the arctangent of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The arctangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Atan(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan)}({nameof(Float4)})");
/// <summary>
/// Returns the arctangent of two values (<paramref name="y"/>,<paramref name="x"/>)
/// </summary>
/// <param name="y">The <paramref name="y"/> value.</param>
/// <param name="x">The <paramref name="x"/> value.</param>
/// <returns>The arctangent of (<paramref name="y"/>,<paramref name="x"/>)</returns>
[Pure]
public static float Atan2(float y, float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}(float,float)");
/// <summary>
/// Returns the arctangent of two values (<paramref name="y"/>,<paramref name="x"/>)
/// </summary>
/// <param name="y">The <paramref name="y"/> value.</param>
/// <param name="x">The <paramref name="x"/> value.</param>
/// <returns>The arctangent of (<paramref name="y"/>,<paramref name="x"/>)</returns>
[Pure]
public static Float2 Atan2(Float2 y, Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns the arctangent of two values (<paramref name="y"/>,<paramref name="x"/>)
/// </summary>
/// <param name="y">The <paramref name="y"/> value.</param>
/// <param name="x">The <paramref name="x"/> value.</param>
/// <returns>The arctangent of (<paramref name="y"/>,<paramref name="x"/>)</returns>
[Pure]
public static Float3 Atan2(Float3 y, Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns the arctangent of two values (<paramref name="y"/>,<paramref name="x"/>)
/// </summary>
/// <param name="y">The <paramref name="y"/> value.</param>
/// <param name="x">The <paramref name="x"/> value.</param>
/// <returns>The arctangent of (<paramref name="y"/>,<paramref name="x"/>)</returns>
[Pure]
public static Float3 Atan2(Float4 y, Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Atan2)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the smallest integer value that is greater than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The smallest integer value (returned as a floating-point type) that is greater than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Ceil(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}(float)");
/// <summary>
/// Returns the smallest integer value that is greater than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The smallest integer value (returned as a floating-point type) that is greater than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Ceil(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}({nameof(Float2)})");
/// <summary>
/// Returns the smallest integer value that is greater than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The smallest integer value (returned as a floating-point type) that is greater than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Ceil(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}({nameof(Float3)})");
/// <summary>
/// Returns the smallest integer value that is greater than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The smallest integer value (returned as a floating-point type) that is greater than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Ceil(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ceil)}({nameof(Float4)})");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static int Clamp(int x, int min, int max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}(int,int,int)");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static Int2 Clamp(Int2 x, Int2 min, Int2 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Int2)},{nameof(Int2)},{nameof(Int2)})");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static Int3 Clamp(Int3 x, Int3 min, Int3 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Int3)},{nameof(Int3)},{nameof(Int3)})");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static Int4 Clamp(Int4 x, Int4 min, Int4 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Int4)},{nameof(Int4)},{nameof(Int4)})");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static float Clamp(float x, float min, float max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}(float,float,float)");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static Float2 Clamp(Float2 x, Float2 min, Float2 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static Float3 Clamp(Float3 x, Float3 min, Float3 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Clamps the specified value to the specified minimum and maximum range.
/// </summary>
/// <param name="x">A value to clamp.</param>
/// <param name="min">The specified minimum range.</param>
/// <param name="max">The specified maximum range.</param>
/// <returns>The clamped value for the x parameter.</returns>
/// <remarks>For values of -INF or INF, clamp will behave as expected. However for values of NaN, the results are undefined.</remarks>
[Pure]
public static Float4 Clamp(Float4 x, Float4 min, Float4 max) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Clamp)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Cos(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}(float)");
/// <summary>
/// Returns the cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Cos(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}({nameof(Float2)})");
/// <summary>
/// Returns the cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Cos(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}({nameof(Float3)})");
/// <summary>
/// Returns the cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Cos(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cos)}({nameof(Float4)})");
/// <summary>
/// Returns the hyperbolic cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Cosh(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}(float)");
/// <summary>
/// Returns the hyperbolic cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Cosh(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}({nameof(Float2)})");
/// <summary>
/// Returns the hyperbolic cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Cosh(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}({nameof(Float3)})");
/// <summary>
/// Returns the hyperbolic cosine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic cosine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Cosh(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cosh)}({nameof(Float4)})");
/// <summary>
/// Counts the number of bits in the input value.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>The number of bits.</returns>
[Pure]
public static uint CountBits(uint x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(CountBits)}(uint)");
/// <summary>
/// Returns the cross product of two <see cref="Float3"/> values.
/// </summary>
/// <param name="x">The first vector.</param>
/// <param name="y">The second vector.</param>
/// <returns>The cross product of the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</returns>
[Pure]
public static Float3 Cross(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Cross)}({nameof(Float3)})");
/// <summary>
/// Converts the specified value from radians to degrees.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The result of converting the <paramref name="x"/> parameter from radians to degrees.</returns>
[Pure]
public static float Degrees(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}(float)");
/// <summary>
/// Converts the specified value from radians to degrees.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The result of converting the <paramref name="x"/> parameter from radians to degrees.</returns>
[Pure]
public static Float2 Degrees(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}({nameof(Float2)})");
/// <summary>
/// Converts the specified value from radians to degrees.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The result of converting the <paramref name="x"/> parameter from radians to degrees.</returns>
[Pure]
public static Float3 Degrees(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}({nameof(Float3)})");
/// <summary>
/// Converts the specified value from radians to degrees.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The result of converting the <paramref name="x"/> parameter from radians to degrees.</returns>
[Pure]
public static Float3 Degrees(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Degrees)}({nameof(Float4)})");
/// <summary>
/// Blocks execution of all threads in a group until all device memory accesses have been completed.
/// </summary>
[PreserveMemberName]
public static void DeviceMemoryBarrier() => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(DeviceMemoryBarrier)}()");
/// <summary>
/// Blocks execution of all threads in a group until all device memory accesses have been completed and all threads in the group have reached this call.
/// </summary>
[PreserveMemberName]
public static void DeviceMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(DeviceMemoryBarrierWithGroupSync)}()");
/// <summary>
/// Returns a distance scalar between two <see cref="Float2"/> values.
/// </summary>
/// <param name="x">The first <see cref="Float2"/> value to compare.</param>
/// <param name="y">The second <see cref="Float2"/> value to compare.</param>
/// <returns>A scalar value that represents the distance between the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</returns>
[Pure]
public static float Distance(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Distance)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns a distance scalar between two <see cref="Float3"/> values.
/// </summary>
/// <param name="x">The first <see cref="Float3"/> value to compare.</param>
/// <param name="y">The second <see cref="Float3"/> value to compare.</param>
/// <returns>A scalar value that represents the distance between the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</returns>
[Pure]
public static float Distance(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Distance)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns a distance scalar between two <see cref="Float4"/> values.
/// </summary>
/// <param name="x">The first <see cref="Float4"/> value to compare.</param>
/// <param name="y">The second <see cref="Float4"/> value to compare.</param>
/// <returns>A scalar value that represents the distance between the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</returns>
[Pure]
public static float Distance(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Distance)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the dot product of two <see cref="Float2"/> values.
/// </summary>
/// <param name="x">The first <see cref="Float2"/> vector.</param>
/// <param name="y">The second <see cref="Float2"/> vector.</param>
/// <returns>The dot product of the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</returns>
[Pure]
public static float Dot(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Dot)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns the dot product of two <see cref="Float3"/> values.
/// </summary>
/// <param name="x">The first <see cref="Float3"/> vector.</param>
/// <param name="y">The second <see cref="Float3"/> vector.</param>
/// <returns>The dot product of the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</returns>
[Pure]
public static float Dot(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Dot)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns the dot product of two <see cref="Float4"/> values.
/// </summary>
/// <param name="x">The first <see cref="Float4"/> vector.</param>
/// <param name="y">The second <see cref="Float4"/> vector.</param>
/// <returns>The dot product of the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</returns>
[Pure]
public static float Dot(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Dot)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the base-e exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Exp(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}(float)");
/// <summary>
/// Returns the base-e exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Exp(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}({nameof(Float2)})");
/// <summary>
/// Returns the base-e exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Exp(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}({nameof(Float3)})");
/// <summary>
/// Returns the base-e exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Exp(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp)}({nameof(Float4)})");
/// <summary>
/// Returns the base-2 exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Exp2(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}(float)");
/// <summary>
/// Returns the base-2 exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Exp2(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}({nameof(Float2)})");
/// <summary>
/// Returns the base-2 exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Exp2(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}({nameof(Float3)})");
/// <summary>
/// Returns the base-2 exponential of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 exponential of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Exp2(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Exp2)}({nameof(Float4)})");
/// <summary>
/// Returns the largest integer that is less than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The largest integer value (returned as a floating-point type) that is less than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Floor(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}(float)");
/// <summary>
/// Returns the largest integer that is less than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The largest integer value (returned as a floating-point type) that is less than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Floor(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}({nameof(Float2)})");
/// <summary>
/// Returns the largest integer that is less than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The largest integer value (returned as a floating-point type) that is less than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Floor(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}({nameof(Float3)})");
/// <summary>
/// Returns the largest integer that is less than or equal to the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The largest integer value (returned as a floating-point type) that is less than or equal to the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Floor(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Floor)}({nameof(Float4)})");
/// <summary>
/// Returns the floating-point remainder of <paramref name="x"/>/<paramref name="y"/>.
/// </summary>
/// <param name="x">The divident.</param>
/// <param name="y">The divisor.</param>
/// <returns>The floating-point remainder of the <paramref name="x"/> parameter divided by the <paramref name="y"/> parameter.</returns>
[Pure]
public static float Fmod(float x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}(float)");
/// <summary>
/// Returns the floating-point remainder of <paramref name="x"/>/<paramref name="y"/>.
/// </summary>
/// <param name="x">The divident.</param>
/// <param name="y">The divisor.</param>
/// <returns>The floating-point remainder of the <paramref name="x"/> parameter divided by the <paramref name="y"/> parameter.</returns>
[Pure]
public static Float2 Fmod(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns the floating-point remainder of <paramref name="x"/>/<paramref name="y"/>.
/// </summary>
/// <param name="x">The divident.</param>
/// <param name="y">The divisor.</param>
/// <returns>The floating-point remainder of the <paramref name="x"/> parameter divided by the <paramref name="y"/> parameter.</returns>
[Pure]
public static Float3 Fmod(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns the floating-point remainder of <paramref name="x"/>/<paramref name="y"/>.
/// </summary>
/// <param name="x">The divident.</param>
/// <param name="y">The divisor.</param>
/// <returns>The floating-point remainder of the <paramref name="x"/> parameter divided by the <paramref name="y"/> parameter.</returns>
[Pure]
public static Float4 Fmod(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Fmod)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the fractional (or decimal) part of <paramref name="x"/>, which is greater than or equal to 0 and less than 1.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Frac(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}(float)");
/// <summary>
/// Returns the fractional (or decimal) part of <paramref name="x"/>, which is greater than or equal to 0 and less than 1.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Frac(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float2)})");
/// <summary>
/// Returns the fractional (or decimal) part of <paramref name="x"/>, which is greater than or equal to 0 and less than 1.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Frac(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float3)})");
/// <summary>
/// Returns the fractional (or decimal) part of <paramref name="x"/>, which is greater than or equal to 0 and less than 1.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Frac(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float4)})");
/// <summary>
/// Returns the mantissa and exponent of the specified floating-point value.
/// </summary>
/// <param name="x">The specified floating-point value (if the x parameter is 0, this function returns 0 for both the mantissa and the exponent)</param>
/// <param name="exp">The returned exponent of the <paramref name="x"/> parameter.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Frexp(float x, out float exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frexp)}(float,float)");
/// <summary>
/// Returns the mantissa and exponent of the specified floating-point value.
/// </summary>
/// <param name="x">The specified floating-point value (if the x parameter is 0, this function returns 0 for both the mantissa and the exponent)</param>
/// <param name="exp">The returned exponent of the <paramref name="x"/> parameter.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Frexp(Float2 x, out Float2 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frexp)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns the mantissa and exponent of the specified floating-point value.
/// </summary>
/// <param name="x">The specified floating-point value (if the x parameter is 0, this function returns 0 for both the mantissa and the exponent)</param>
/// <param name="exp">The returned exponent of the <paramref name="x"/> parameter.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Frexp(Float3 x, out Float3 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frac)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns the mantissa and exponent of the specified floating-point value.
/// </summary>
/// <param name="x">The specified floating-point value (if the x parameter is 0, this function returns 0 for both the mantissa and the exponent)</param>
/// <param name="exp">The returned exponent of the <paramref name="x"/> parameter.</param>
/// <returns>The fractional part of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Frexp(Float4 x, out Float4 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Frexp)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Blocks execution of all threads in a group until all group shared accesses have been completed.
/// </summary>
[PreserveMemberName]
public static void GroupMemoryBarrier() => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(GroupMemoryBarrier)}()");
/// <summary>
/// Blocks execution of all threads in a group until all group shared accesses have been completed and all threads in the group have reached this call.
/// </summary>
[PreserveMemberName]
public static void GroupMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(GroupMemoryBarrierWithGroupSync)}()");
/// <summary>
/// Performs a guaranteed atomic add of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedAdd(int destination, int value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAdd)}(int,int)");
/// <summary>
/// Performs a guaranteed atomic add of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedAdd(uint destination, uint value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAdd)}(uint,uint)");
/// <summary>
/// Performs a guaranteed atomic add of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original input value.</param>
[PreserveMemberName]
public static void InterlockedAdd(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAdd)}(int,int,int)");
/// <summary>
/// Performs a guaranteed atomic add of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original input value.</param>
[PreserveMemberName]
public static void InterlockedAdd(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAdd)}(uint,uint,uint)");
/// <summary>
/// Performs a guaranteed atomic and of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedAnd(int destination, int value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAnd)}(int,int)");
/// <summary>
/// Performs a guaranteed atomic and of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedAnd(uint destination, uint value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAnd)}(uint,uint)");
/// <summary>
/// Performs a guaranteed atomic and of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original input value.</param>
[PreserveMemberName]
public static void InterlockedAnd(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAnd)}(int,int,int)");
/// <summary>
/// Performs a guaranteed atomic and of a value to a destination.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original input value.</param>
[PreserveMemberName]
public static void InterlockedAnd(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedAnd)}(uint,uint,uint)");
/// <summary>
/// Atomically compares the destination with the comparison value. If they are identical, the destination
/// is overwritten with the input value. The original value is set to the destination's original value.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="comparison">The comparison value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedCompareExchange(int destination, int comparison, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedCompareExchange)}(int,int,int,int)");
/// <summary>
/// Atomically compares the destination with the comparison value. If they are identical, the destination
/// is overwritten with the input value. The original value is set to the destination's original value.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="comparison">The comparison value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedCompareExchange(uint destination, uint comparison, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedCompareExchange)}(uint,uint,uint,uint)");
/// <summary>
/// Atomically compares the destination to the comparison value. If they
/// are identical, the destination is overwritten with the input value.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="comparison">The comparison value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedCompareStore(int destination, int comparison, int value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedCompareStore)}(int,int,int)");
/// <summary>
/// Atomically compares the destination to the comparison value. If they
/// are identical, the destination is overwritten with the input value.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="comparison">The comparison value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedCompareStore(uint destination, uint comparison, uint value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedCompareStore)}(uint,uint,uint)");
/// <summary>
/// Assigns value to dest and returns the original value.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedExchange(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedExchange)}(int,int,int)");
/// <summary>
/// Assigns value to dest and returns the original value.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedExchange(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedExchange)}(uint,uint,uint)");
/// <summary>
/// Performs a guaranteed atomic max.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedMax(int destination, int value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMax)}(int,int)");
/// <summary>
/// Performs a guaranteed atomic max.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedMax(uint destination, uint value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMax)}(uint,uint)");
/// <summary>
/// Performs a guaranteed atomic max.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedMax(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMax)}(int,int,int)");
/// <summary>
/// Performs a guaranteed atomic max.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedMax(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMax)}(uint,uint,uint)");
/// <summary>
/// Performs a guaranteed atomic min.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedMin(int destination, int value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMin)}(int,int)");
/// <summary>
/// Performs a guaranteed atomic min.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedMin(uint destination, uint value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMin)}(uint,uint)");
/// <summary>
/// Performs a guaranteed atomic min.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedMin(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMin)}(int,int,int)");
/// <summary>
/// Performs a guaranteed atomic min.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedMin(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedMin)}(uint,uint,uint)");
/// <summary>
/// Performs a guaranteed atomic or.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedOr(int destination, int value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedOr)}(int,int)");
/// <summary>
/// Performs a guaranteed atomic or.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedOr(uint destination, uint value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedOr)}(uint,uint)");
/// <summary>
/// Performs a guaranteed atomic or.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedOr(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedOr)}(int,int,int)");
/// <summary>
/// Performs a guaranteed atomic or.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedOr(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedOr)}(uint,uint,uint)");
/// <summary>
/// Performs a guaranteed atomic xor.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedXor(int destination, int value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedXor)}(int,int)");
/// <summary>
/// Performs a guaranteed atomic xor.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
[PreserveMemberName]
public static void InterlockedXor(uint destination, uint value) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedXor)}(uint,uint)");
/// <summary>
/// Performs a guaranteed atomic xor.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedXor(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedXor)}(int,int,int)");
/// <summary>
/// Performs a guaranteed atomic xor.
/// </summary>
/// <param name="destination">The destination value.</param>
/// <param name="value">The input value.</param>
/// <param name="original">The original value.</param>
[PreserveMemberName]
public static void InterlockedXor(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(InterlockedXor)}(uint,uint,uint)");
/// <summary>
/// Determines if the specified floating-point value is finite.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>Returns <see langword="true"/> if the <paramref name="x"/> parameter is finite, otherwise <see langword="false"/>.</returns>
[Pure]
public static bool IsFinite(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(IsFinite)}(float)");
/// <summary>
/// Determines if the specified floating-point value is infinite.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>Returns <see langword="true"/> if the <paramref name="x"/> parameter is infinite, otherwise <see langword="false"/>.</returns>
[Pure]
public static bool IsInfinite(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(IsInfinite)}(float)");
/// <summary>
/// Determines if the specified floating-point value is <see cref="float.NaN"/>.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>Returns <see langword="true"/> if the <paramref name="x"/> parameter is <see cref="float.NaN"/>, otherwise <see langword="false"/>.</returns>
[Pure]
public static bool IsNaN(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(IsNaN)}(float)");
/// <summary>
/// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="exp">The specified exponent.</param>
/// <returns>The result of multiplying the <paramref name="x"/> parameter by two, raised to the power of the <paramref name="exp"/> parameter.</returns>
[Pure]
public static float Ldexp(float x, float exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}(float)");
/// <summary>
/// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="exp">The specified exponent.</param>
/// <returns>The result of multiplying the <paramref name="x"/> parameter by two, raised to the power of the <paramref name="exp"/> parameter.</returns>
[Pure]
public static Float2 Ldexp(Float2 x, Float2 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="exp">The specified exponent.</param>
/// <returns>The result of multiplying the <paramref name="x"/> parameter by two, raised to the power of the <paramref name="exp"/> parameter.</returns>
[Pure]
public static Float3 Ldexp(Float3 x, Float3 exp) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Ldexp)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="exp">The specified exponent.</param>
/// <returns>The result of multiplying the <paramref name="x"/> parameter by two, raised to the power of the <paramref name="exp"/> parameter.</returns>
[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>
/// <param name="x">The first value.</param>
/// <param name="y">The second value.</param>
/// <param name="s">A value that linearly interpolates between the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</param>
/// <returns>The result of the linear interpolation.</returns>
[Pure]
public static float Lerp(float x, float y, float s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}(float,float,float)");
/// <summary>
/// Performs a linear interpolation.
/// </summary>
/// <param name="x">The first value.</param>
/// <param name="y">The second value.</param>
/// <param name="s">A value that linearly interpolates between the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</param>
/// <returns>The result of the linear interpolation.</returns>
[Pure]
public static Float2 Lerp(Float2 x, Float2 y, Float2 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Performs a linear interpolation.
/// </summary>
/// <param name="x">The first value.</param>
/// <param name="y">The second value.</param>
/// <param name="s">A value that linearly interpolates between the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</param>
/// <returns>The result of the linear interpolation.</returns>
[Pure]
public static Float3 Lerp(Float3 x, Float3 y, Float3 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Performs a linear interpolation.
/// </summary>
/// <param name="x">The first value.</param>
/// <param name="y">The second value.</param>
/// <param name="s">A value that linearly interpolates between the <paramref name="x"/> parameter and the <paramref name="y"/> parameter.</param>
/// <returns>The result of the linear interpolation.</returns>
[Pure]
public static Float2 Lerp(Float4 x, Float4 y, Float4 s) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Lerp)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the base-e logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static float Log(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}(float)");
/// <summary>
/// Returns the base-e logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float2 Log(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}({nameof(Float2)})");
/// <summary>
/// Returns the base-e logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float3 Log(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}({nameof(Float3)})");
/// <summary>
/// Returns the base-e logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-e logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float4 Log(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log)}({nameof(Float4)})");
/// <summary>
/// Returns the base-10 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-10 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static float Log10(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}(float)");
/// <summary>
/// Returns the base-10 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-10 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float2 Log10(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}({nameof(Float2)})");
/// <summary>
/// Returns the base-10 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-10 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float3 Log10(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}({nameof(Float3)})");
/// <summary>
/// Returns the base-10 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-10 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float4 Log10(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log10)}({nameof(Float4)})");
/// <summary>
/// Returns the base-2 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static float Log2(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}(float)");
/// <summary>
/// Returns the base-2 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float2 Log2(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}({nameof(Float2)})");
/// <summary>
/// Returns the base-2 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float3 Log2(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}({nameof(Float3)})");
/// <summary>
/// Returns the base-2 logarithm of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The base-2 logarithm of the <paramref name="x"/> parameter (if <paramref name="x"/> parameter is negative this function returns indefinite, and if <paramref name="x"/> is 0, this function returns -INF)</returns>
[Pure]
public static Float4 Log2(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Log2)}({nameof(Float4)})");
/// <summary>
/// Selects the greater of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the largest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Max(int, int)"/> will behave as expected.</remarks>
[Pure]
public static int Max(int x, int y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}(int,int)");
/// <summary>
/// Selects the greater of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the largest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Max(float, float)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static float Max(float x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}(float,float)");
/// <summary>
/// Selects the greater of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the largest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Max(Float2, Float2)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static Float2 Max(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Selects the greater of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the largest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Max(Float3, Float3)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static Float3 Max(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Selects the greater of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the largest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Max(Float4, Float4)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static Float4 Max(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Max)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Selects the lesser of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the smallest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Min(int, int)"/> will behave as expected.</remarks>
[Pure]
public static int Min(int x, int y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}(int,int)");
/// <summary>
/// Selects the lesser of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the smallest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Min(float, float)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static float Min(float x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}(float,float)");
/// <summary>
/// Selects the lesser of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the smallest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Min(Float2, Float2)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static Float2 Min(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Selects the lesser of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the smallest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Min(Float3, Float3)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static Float3 Min(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Selects the lesser of <paramref name="x"/> and <paramref name="y"/>.
/// </summary>
/// <param name="x">The first specified value.</param>
/// <param name="y">The second specified exponent.</param>
/// <returns>The <paramref name="x"/> or <paramref name="y"/> parameter, whichever is the smallest value.</returns>
/// <remarks>For values of -INF or INF, <see cref="Min(Float4, Float4)"/> will behave as expected, but for for values of <see cref="float.NaN"/>, the results are undefined.</remarks>
[Pure]
public static Float4 Min(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Min)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static int Modf(int x, out int ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}(int,int)");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static Int2 Modf(Int2 x, out Int2 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Int2)},{nameof(Int2)})");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static Int3 Modf(Int3 x, out Int3 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Int3)},{nameof(Int3)})");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static Int4 Modf(Int4 x, out Int4 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Int4)},{nameof(Int4)})");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static float Modf(float x, out float ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}(float,float)");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static Float2 Modf(Float2 x, out Float2 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static Float3 Modf(Float3 x, out Float3 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Splits the value <paramref name="x"/> into fractional and integer parts, each of which has the same sign as <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <param name="ip">The integer portion of <paramref name="x"/>.</param>
/// <returns>The signed-fractional portion of <paramref name="x"/>.</returns>
[Pure]
public static Float4 Modf(Float4 x, out Float4 ip) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Modf)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static Float2 Mul(float x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}(float,{nameof(Float2)})");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static Float3 Mul(float x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}(float,{nameof(Float3)})");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static Float3 Mul(float x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}(float,{nameof(Float4)})");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static Float2 Mul(Float2 x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float2)},float)");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static Float3 Mul(Float3 x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float3)},float)");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static Float4 Mul(Float4 x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float4)},float)");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static float Mul(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static float Mul(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Multiplies <paramref name="x"/> and <paramref name="y"/> using matrix math.
/// </summary>
/// <param name="x">The first input value (if <paramref name="x"/> is a vector, it treated as a row vector)</param>
/// <param name="y">The second input value (if <paramref name="y"/> is a vector, it treated as a column vector)</param>
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>.</returns>
[Pure]
public static float Mul(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Mul)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Normalizes the specified floating-point vector according to <paramref name="x"/> / length(<paramref name="x"/>)
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The normalized <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Normalize(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Normalize)}({nameof(Float2)})");
/// <summary>
/// Normalizes the specified floating-point vector according to <paramref name="x"/> / length(<paramref name="x"/>)
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The normalized <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Normalize(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Normalize)}({nameof(Float3)})");
/// <summary>
/// Normalizes the specified floating-point vector according to <paramref name="x"/> / length(<paramref name="x"/>)
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The normalized <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Normalize(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Normalize)}({nameof(Float4)})");
/// <summary>
/// Returns the specified value raised to the specified power.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="y">The specified power.</param>
/// <returns>The <paramref name="x"/> parameter raised to the power of the <paramref name="y"/> parameter.</returns>
/// <remarks>See <a href="https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-pow"/> for details on special cases.</remarks>
[Pure]
public static float Pow(float x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}(float,float)");
/// <summary>
/// Returns the specified value raised to the specified power.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="y">The specified power.</param>
/// <returns>The <paramref name="x"/> parameter raised to the power of the <paramref name="y"/> parameter.</returns>
/// <remarks>See <a href="https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-pow"/> for details on special cases.</remarks>
[Pure]
public static Float2 Pow(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns the specified value raised to the specified power.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="y">The specified power.</param>
/// <returns>The <paramref name="x"/> parameter raised to the power of the <paramref name="y"/> parameter.</returns>
/// <remarks>See <a href="https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-pow"/> for details on special cases.</remarks>
[Pure]
public static Float3 Pow(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns the specified value raised to the specified power.
/// </summary>
/// <param name="x">The specified value.</param>
/// <param name="y">The specified power.</param>
/// <returns>The <paramref name="x"/> parameter raised to the power of the <paramref name="y"/> parameter.</returns>
/// <remarks>See <a href="https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-pow"/> for details on special cases.</remarks>
[Pure]
public static Float4 Pow(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Pow)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Converts the specified value from degrees to radians.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter converted from degrees to radians.</returns>
[Pure]
public static float Radians(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}(float)");
/// <summary>
/// Converts the specified value from degrees to radians.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter converted from degrees to radians.</returns>
[Pure]
public static Float2 Radians(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}({nameof(Float2)})");
/// <summary>
/// Converts the specified value from degrees to radians.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter converted from degrees to radians.</returns>
[Pure]
public static Float3 Radians(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}({nameof(Float3)})");
/// <summary>
/// Converts the specified value from degrees to radians.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter converted from degrees to radians.</returns>
[Pure]
public static Float4 Radians(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Radians)}({nameof(Float4)})");
/// <summary>
/// Calculates a fast, approximate reciprocal of a given value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Rcp(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}(float)");
/// <summary>
/// Calculates a fast, approximate, per-component reciprocal.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Rcp(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}({nameof(Float2)})");
/// <summary>
/// Calculates a fast, approximate, per-component reciprocal.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Rcp(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}({nameof(Float3)})");
/// <summary>
/// Calculates a fast, approximate, per-component reciprocal.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Rcp(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rcp)}({nameof(Float4)})");
/// <summary>
/// Rounds the specified value to the nearest integer.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, rounded to the nearest integer within a floating-point type.</returns>
[Pure]
public static float Round(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}(float)");
/// <summary>
/// Rounds the specified value to the nearest integer.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, rounded to the nearest integer within a floating-point type.</returns>
[Pure]
public static Float2 Round(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}({nameof(Float2)})");
/// <summary>
/// Rounds the specified value to the nearest integer.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, rounded to the nearest integer within a floating-point type.</returns>
[Pure]
public static Float3 Round(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}({nameof(Float3)})");
/// <summary>
/// Rounds the specified value to the nearest integer.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, rounded to the nearest integer within a floating-point type.</returns>
[Pure]
public static Float4 Round(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Round)}({nameof(Float4)})");
/// <summary>
/// Returns the reciprocal of the square root of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the square root of the <paramref name="x"/> parameter.</returns>
/// <remarks>This function uses the following formula: 1 / sqrt(<paramref name="x"/>)</remarks>
[Pure]
public static float Rsqrt(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}(float)");
/// <summary>
/// Returns the reciprocal of the square root of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the square root of the <paramref name="x"/> parameter.</returns>
/// <remarks>This function uses the following formula: 1 / sqrt(<paramref name="x"/>)</remarks>
[Pure]
public static Float2 Rsqrt(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}({nameof(Float2)})");
/// <summary>
/// Returns the reciprocal of the square root of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the square root of the <paramref name="x"/> parameter.</returns>
/// <remarks>This function uses the following formula: 1 / sqrt(<paramref name="x"/>)</remarks>
[Pure]
public static Float3 Rsqrt(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}({nameof(Float3)})");
/// <summary>
/// Returns the reciprocal of the square root of the specified value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The reciprocal of the square root of the <paramref name="x"/> parameter.</returns>
/// <remarks>This function uses the following formula: 1 / sqrt(<paramref name="x"/>)</remarks>
[Pure]
public static Float4 Rsqrt(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Rsqrt)}({nameof(Float4)})");
/// <summary>
/// Clamps the specified value within the range [0,1]
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, clamped within the range [0,1]</returns>
[Pure]
public static float Saturate(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}(float)");
/// <summary>
/// Clamps the specified value within the range [0,1]
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, clamped within the range [0,1]</returns>
[Pure]
public static Float2 Saturate(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}({nameof(Float2)})");
/// <summary>
/// Clamps the specified value within the range [0,1]
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, clamped within the range [0,1]</returns>
[Pure]
public static Float3 Saturate(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}({nameof(Float3)})");
/// <summary>
/// Clamps the specified value within the range [0,1]
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The <paramref name="x"/> parameter, clamped within the range [0,1]</returns>
[Pure]
public static Float4 Saturate(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Saturate)}({nameof(Float4)})");
/// <summary>
/// Returns the sign of <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>Returns -1 if <paramref name="x"/> is less than zero, 0 if <paramref name="x"/> equals zero and 1 if <paramref name="x"/> is greater than zero.</returns>
[Pure]
public static float Sign(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}(float)");
/// <summary>
/// Returns the sign of <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>Returns -1 if <paramref name="x"/> is less than zero, 0 if <paramref name="x"/> equals zero and 1 if <paramref name="x"/> is greater than zero.</returns>
[Pure]
public static Float2 Sign(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}({nameof(Float2)})");
/// <summary>
/// Returns the sign of <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>Returns -1 if <paramref name="x"/> is less than zero, 0 if <paramref name="x"/> equals zero and 1 if <paramref name="x"/> is greater than zero.</returns>
[Pure]
public static Float3 Sign(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}({nameof(Float3)})");
/// <summary>
/// Returns the sign of <paramref name="x"/>.
/// </summary>
/// <param name="x">The input value.</param>
/// <returns>Returns -1 if <paramref name="x"/> is less than zero, 0 if <paramref name="x"/> equals zero and 1 if <paramref name="x"/> is greater than zero.</returns>
[Pure]
public static Float4 Sign(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sign)}({nameof(Float4)})");
/// <summary>
/// Returns the sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Sin(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}(float)");
/// <summary>
/// Returns the sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Sin(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}({nameof(Float2)})");
/// <summary>
/// Returns the sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Sin(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}({nameof(Float3)})");
/// <summary>
/// Returns the sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Sin(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sin)}({nameof(Float4)})");
/// <summary>
/// Returns the sine and cosine of <paramref name="x"/>.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <param name="s">Returns the sine of <paramref name="x"/>.</param>
/// <param name="c">Returns the cosine of <paramref name="x"/>.</param>
public static void SinCos(float x, out float s, out float c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}(float,float,float)");
/// <summary>
/// Returns the sine and cosine of <paramref name="x"/>.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <param name="s">Returns the sine of <paramref name="x"/>.</param>
/// <param name="c">Returns the cosine of <paramref name="x"/>.</param>
public static void SinCos(Float2 x, out Float2 s, out Float2 c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns the sine and cosine of <paramref name="x"/>.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <param name="s">Returns the sine of <paramref name="x"/>.</param>
/// <param name="c">Returns the cosine of <paramref name="x"/>.</param>
public static void SinCos(Float3 x, out Float3 s, out Float3 c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns the sine and cosine of <paramref name="x"/>.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <param name="s">Returns the sine of <paramref name="x"/>.</param>
/// <param name="c">Returns the cosine of <paramref name="x"/>.</param>
public static void SinCos(Float4 x, out Float4 s, out Float4 c) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SinCos)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the hyperbolic sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Sinh(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}(float)");
/// <summary>
/// Returns the hyperbolic sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Sinh(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}({nameof(Float2)})");
/// <summary>
/// Returns the hyperbolic sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Sinh(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}({nameof(Float3)})");
/// <summary>
/// Returns the hyperbolic sine of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic sine of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Sinh(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sinh)}({nameof(Float4)})");
/// <summary>
/// Returns a smooth Hermite interpolation between 0 and 1, if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]
/// </summary>
/// <param name="min">The minimum range of the <paramref name="x"/> parameter.</param>
/// <param name="max">The maximum range of the <paramref name="x"/> parameter.</param>
/// <param name="x">The specified value to be interpolated.</param>
/// <returns>0 if <paramref name="x"/> is less than <paramref name="min"/>, 1 if <paramref name="x"/> is greater than <paramref name="max"/>, otherwise a value between 0 and 1 if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]</returns>
[Pure]
public static float SmoothStep(float min, float max, float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}(float,float,float)");
/// <summary>
/// Returns a smooth Hermite interpolation between 0 and 1, if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]
/// </summary>
/// <param name="min">The minimum range of the <paramref name="x"/> parameter.</param>
/// <param name="max">The maximum range of the <paramref name="x"/> parameter.</param>
/// <param name="x">The specified value to be interpolated.</param>
/// <returns>0 if <paramref name="x"/> is less than <paramref name="min"/>, 1 if <paramref name="x"/> is greater than <paramref name="max"/>, otherwise a value between 0 and 1 if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]</returns>
[Pure]
public static Float2 SmoothStep(Float2 min, Float2 max, Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}({nameof(Float2)},{nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Returns a smooth Hermite interpolation between 0 and 1, if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]
/// </summary>
/// <param name="min">The minimum range of the <paramref name="x"/> parameter.</param>
/// <param name="max">The maximum range of the <paramref name="x"/> parameter.</param>
/// <param name="x">The specified value to be interpolated.</param>
/// <returns>0 if <paramref name="x"/> is less than <paramref name="min"/>, 1 if <paramref name="x"/> is greater than <paramref name="max"/>, otherwise a value between 0 and 1 if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]</returns>
[Pure]
public static Float3 SmoothStep(Float3 min, Float3 max, Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}({nameof(Float3)},{nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Returns a smooth Hermite interpolation between 0 and 1, if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]
/// </summary>
/// <param name="min">The minimum range of the <paramref name="x"/> parameter.</param>
/// <param name="max">The maximum range of the <paramref name="x"/> parameter.</param>
/// <param name="x">The specified value to be interpolated.</param>
/// <returns>0 if <paramref name="x"/> is less than <paramref name="min"/>, 1 if <paramref name="x"/> is greater than <paramref name="max"/>, otherwise a value between 0 and 1 if <paramref name="x"/> is in the range [<paramref name="min"/>, <paramref name="max"/>]</returns>
[Pure]
public static Float4 SmoothStep(Float4 min, Float4 max, Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(SmoothStep)}({nameof(Float4)},{nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the square root of the specified floating-point value.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The square root of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Sqrt(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}(float)");
/// <summary>
/// Returns the square root of the specified floating-point value, per component.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The square root of the <paramref name="x"/> parameter, per component.</returns>
[Pure]
public static Float2 Sqrt(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}({nameof(Float2)})");
/// <summary>
/// Returns the square root of the specified floating-point value, per component.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The square root of the <paramref name="x"/> parameter, per component.</returns>
[Pure]
public static Float3 Sqrt(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}({nameof(Float3)})");
/// <summary>
/// Returns the square root of the specified floating-point value, per component.
/// </summary>
/// <param name="x">The specified value.</param>
/// <returns>The square root of the <paramref name="x"/> parameter, per component.</returns>
[Pure]
public static Float4 Sqrt(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Sqrt)}({nameof(Float4)})");
/// <summary>
/// Compares two values, returning 0 or 1 based on which value is greater.
/// </summary>
/// <param name="x">The first specified value to compare.</param>
/// <param name="y">The second specified value to compare.</param>
/// <returns>1 if the <paramref name="x"/> parameter is greater than or equal to the <paramref name="y"/> parameter, otherwise, 0.</returns>
/// <remarks>This function uses the following formula: (x >= y) ? 1 : 0.</remarks>
[Pure]
public static float Step(float x, float y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}(float,float)");
/// <summary>
/// Compares two values, returning 0 or 1 based on which value is greater.
/// </summary>
/// <param name="x">The first specified value to compare.</param>
/// <param name="y">The second specified value to compare.</param>
/// <returns>1 if the <paramref name="x"/> parameter is greater than or equal to the <paramref name="y"/> parameter, otherwise, 0.</returns>
/// <remarks>This function uses the following formula: (x >= y) ? 1 : 0.</remarks>
[Pure]
public static Float2 Step(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}({nameof(Float2)},{nameof(Float2)})");
/// <summary>
/// Compares two values, returning 0 or 1 based on which value is greater.
/// </summary>
/// <param name="x">The first specified value to compare.</param>
/// <param name="y">The second specified value to compare.</param>
/// <returns>1 if the <paramref name="x"/> parameter is greater than or equal to the <paramref name="y"/> parameter, otherwise, 0.</returns>
/// <remarks>This function uses the following formula: (x >= y) ? 1 : 0.</remarks>
[Pure]
public static Float3 Step(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}({nameof(Float3)},{nameof(Float3)})");
/// <summary>
/// Compares two values, returning 0 or 1 based on which value is greater.
/// </summary>
/// <param name="x">The first specified value to compare.</param>
/// <param name="y">The second specified value to compare.</param>
/// <returns>1 if the <paramref name="x"/> parameter is greater than or equal to the <paramref name="y"/> parameter, otherwise, 0.</returns>
/// <remarks>This function uses the following formula: (x >= y) ? 1 : 0.</remarks>
[Pure]
public static Float4 Step(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Step)}({nameof(Float4)},{nameof(Float4)})");
/// <summary>
/// Returns the tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Tan(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}(float)");
/// <summary>
/// Returns the tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Tan(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}({nameof(Float2)})");
/// <summary>
/// Returns the tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Tan(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}({nameof(Float3)})");
/// <summary>
/// Returns the tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Tan(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tan)}({nameof(Float4)})");
/// <summary>
/// Returns the hyperbolic tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static float Tanh(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}(float)");
/// <summary>
/// Returns the hyperbolic tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float2 Tanh(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}({nameof(Float2)})");
/// <summary>
/// Returns the hyperbolic tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float3 Tanh(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}({nameof(Float3)})");
/// <summary>
/// Returns the hyperbolic tangent of the specified value.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The hyperbolic tangent of the <paramref name="x"/> parameter.</returns>
[Pure]
public static Float4 Tanh(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Tanh)}({nameof(Float4)})");
/// <summary>
/// Truncates a floating-point value to the integer component.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The <paramref name="x"/> parameter truncated to an integer component.</returns>
[Pure]
public static float Trunc(float x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}(float)");
/// <summary>
/// Truncates a floating-point value to the integer component.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The <paramref name="x"/> parameter truncated to an integer component.</returns>
[Pure]
public static Float2 Trunc(Float2 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}({nameof(Float2)})");
/// <summary>
/// Truncates a floating-point value to the integer component.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The <paramref name="x"/> parameter truncated to an integer component.</returns>
[Pure]
public static Float3 Trunc(Float3 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}({nameof(Float3)})");
/// <summary>
/// Truncates a floating-point value to the integer component.
/// </summary>
/// <param name="x">The specified value, radians.</param>
/// <returns>The <paramref name="x"/> parameter truncated to an integer component.</returns>
[Pure]
public static Float4 Trunc(Float4 x) => throw new InvalidExecutionContextException($"{nameof(Hlsl)}.{nameof(Trunc)}({nameof(Float4)})");
}
}