Add more HLSL intrinsics
このコミットが含まれているのは:
1 親
a4582ee37a
コミット
f1d88decdb
3ファイル変更
+887
-1
検索条件に一致するファイルはありません
@@ -1,4 +1,5 @@
|
||||
using ComputeSharp.Exceptions;
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
using ComputeSharp.Exceptions;
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -7,6 +8,13 @@ namespace ComputeSharp;
|
||||
/// </summary>
|
||||
public static partial class Hlsl
|
||||
{
|
||||
/// <summary>
|
||||
/// Submits an error message to the information queue and terminates the current draw or dispatch call being executed.
|
||||
/// </summary>
|
||||
/// <remarks>This operation does nothing on rasterizers that do not support it.</remarks>
|
||||
[HlslIntrinsicName("abort")]
|
||||
public static void Abort() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abort)}()");
|
||||
|
||||
/// <summary>
|
||||
/// Blocks execution of all threads in a group until all memory accesses have been completed.
|
||||
/// </summary>
|
||||
@@ -316,4 +324,24 @@ public static partial class Hlsl
|
||||
/// <param name="original">The original value.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static void InterlockedXor(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
||||
|
||||
/// <summary>
|
||||
/// Returns a lighting coefficient vector.
|
||||
/// </summary>
|
||||
/// <param name="nDotL">The dot product of the normalized surface normal and the light vector.</param>
|
||||
/// <param name="nDotH">The dot product of the half-angle vector and the surface normal.</param>
|
||||
/// <param name="m">A specular exponent.</param>
|
||||
/// <returns>The lighting coefficient vector.</returns>
|
||||
/// <remarks>
|
||||
/// This function returns a lighting coefficient vector (ambient, diffuse, specular, 1) where:
|
||||
/// <list type="bullet">
|
||||
/// <item>Ambient: <c>1</c>.</item>
|
||||
/// <item>Diffuse: <c>n * l < 0 ? 0 : n * l</c>.</item>
|
||||
/// <item>Specular: <c>n * l < 0 || n * h < 0 ? 0 : (n * h) ^ m</c>.</item>
|
||||
/// </list>
|
||||
/// Where the vector <c>n</c> is the normal vector, <c>l</c> is the direction to light and <c>h</c> is the half vector.
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[HlslIntrinsicName("lit")]
|
||||
public static float Lit(float nDotL, float nDotH, float m) => default;
|
||||
}
|
||||
@@ -4492,6 +4492,510 @@ partial class Hlsl
|
||||
[HlslIntrinsicName("cross")]
|
||||
public static Float3 Cross(Float3 x, Float3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static float DerivativeOfDx(float x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float2 DerivativeOfDx(Float2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float3 DerivativeOfDx(Float3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float4 DerivativeOfDx(Float4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float1x1 DerivativeOfDx(Float1x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float1x2 DerivativeOfDx(Float1x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float1x3 DerivativeOfDx(Float1x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float1x4 DerivativeOfDx(Float1x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float2x1 DerivativeOfDx(Float2x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float2x2 DerivativeOfDx(Float2x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float2x3 DerivativeOfDx(Float2x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float2x4 DerivativeOfDx(Float2x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float3x1 DerivativeOfDx(Float3x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float3x2 DerivativeOfDx(Float3x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float3x3 DerivativeOfDx(Float3x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float3x4 DerivativeOfDx(Float3x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float4x1 DerivativeOfDx(Float4x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float4x2 DerivativeOfDx(Float4x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float4x3 DerivativeOfDx(Float4x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx")]
|
||||
public static Float4x4 DerivativeOfDx(Float4x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_coarse")]
|
||||
public static float DerivativeOfDxLowPrecision(float x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_coarse")]
|
||||
public static Float2 DerivativeOfDxLowPrecision(Float2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_coarse")]
|
||||
public static Float3 DerivativeOfDxLowPrecision(Float3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_coarse")]
|
||||
public static Float4 DerivativeOfDxLowPrecision(Float4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_fine")]
|
||||
public static float DerivativeOfDxHighPrecision(float x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_fine")]
|
||||
public static Float2 DerivativeOfDxHighPrecision(Float2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_fine")]
|
||||
public static Float3 DerivativeOfDxHighPrecision(Float3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space x-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddx_fine")]
|
||||
public static Float4 DerivativeOfDxHighPrecision(Float4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static float DerivativeOfDy(float x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float2 DerivativeOfDy(Float2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float3 DerivativeOfDy(Float3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float4 DerivativeOfDy(Float4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float1x1 DerivativeOfDy(Float1x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float1x2 DerivativeOfDy(Float1x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float1x3 DerivativeOfDy(Float1x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float1x4 DerivativeOfDy(Float1x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float2x1 DerivativeOfDy(Float2x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float2x2 DerivativeOfDy(Float2x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float2x3 DerivativeOfDy(Float2x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float2x4 DerivativeOfDy(Float2x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float3x1 DerivativeOfDy(Float3x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float3x2 DerivativeOfDy(Float3x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float3x3 DerivativeOfDy(Float3x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float3x4 DerivativeOfDy(Float3x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float4x1 DerivativeOfDy(Float4x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float4x2 DerivativeOfDy(Float4x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float4x3 DerivativeOfDy(Float4x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy")]
|
||||
public static Float4x4 DerivativeOfDy(Float4x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_coarse")]
|
||||
public static float DerivativeOfDyLowPrecision(float x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_coarse")]
|
||||
public static Float2 DerivativeOfDyLowPrecision(Float2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_coarse")]
|
||||
public static Float3 DerivativeOfDyLowPrecision(Float3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a low precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The low precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_coarse")]
|
||||
public static Float4 DerivativeOfDyLowPrecision(Float4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_fine")]
|
||||
public static float DerivativeOfDyHighPrecision(float x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_fine")]
|
||||
public static Float2 DerivativeOfDyHighPrecision(Float2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_fine")]
|
||||
public static Float3 DerivativeOfDyHighPrecision(Float3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Computes a high precision partial derivative with respect to the screen-space y-coordinate.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The high precision partial derivative with respect to the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("ddy_fine")]
|
||||
public static Float4 DerivativeOfDyHighPrecision(Float4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Converts the specified value from radians to degrees.
|
||||
/// </summary>
|
||||
@@ -6282,6 +6786,186 @@ partial class Hlsl
|
||||
[HlslIntrinsicName("frexp")]
|
||||
public static Float4x4 Frexp(Float4x4 x, out Float4x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float4x4)}, {typeof(Float4x4)})");
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static float Fwidth(float x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float2 Fwidth(Float2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float3 Fwidth(Float3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float4 Fwidth(Float4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float1x1 Fwidth(Float1x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float1x2 Fwidth(Float1x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float1x3 Fwidth(Float1x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float1x4 Fwidth(Float1x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float2x1 Fwidth(Float2x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float2x2 Fwidth(Float2x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float2x3 Fwidth(Float2x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float2x4 Fwidth(Float2x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float3x1 Fwidth(Float3x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float3x2 Fwidth(Float3x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float3x3 Fwidth(Float3x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float3x4 Fwidth(Float3x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float4x1 Fwidth(Float4x1 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float4x2 Fwidth(Float4x2 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float4x3 Fwidth(Float4x3 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the absolute value of the partial derivatives of the specified value.
|
||||
/// </summary>
|
||||
/// <param name="x">The specified value.</param>
|
||||
/// <returns>The absolute value of the partial derivatives of the input parameter.</returns>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[HlslIntrinsicName("fwidth")]
|
||||
public static Float4x4 Fwidth(Float4x4 x) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the specified floating-point value is finite.
|
||||
/// </summary>
|
||||
|
||||
@@ -739,6 +739,146 @@ var Intrinsics = new[]
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "DerivativeOfDx",
|
||||
HlslName = "ddx",
|
||||
Summary = "Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The specified value." }
|
||||
},
|
||||
Returns = "The partial derivative with respect to the input parameter.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "float", Params = new[] { "float" } },
|
||||
new { Return = "Float2", Params = new[] { "Float2" } },
|
||||
new { Return = "Float3", Params = new[] { "Float3" } },
|
||||
new { Return = "Float4", Params = new[] { "Float4" } },
|
||||
new { Return = "Float1x1", Params = new[] { "Float1x1" } },
|
||||
new { Return = "Float1x2", Params = new[] { "Float1x2" } },
|
||||
new { Return = "Float1x3", Params = new[] { "Float1x3" } },
|
||||
new { Return = "Float1x4", Params = new[] { "Float1x4" } },
|
||||
new { Return = "Float2x1", Params = new[] { "Float2x1" } },
|
||||
new { Return = "Float2x2", Params = new[] { "Float2x2" } },
|
||||
new { Return = "Float2x3", Params = new[] { "Float2x3" } },
|
||||
new { Return = "Float2x4", Params = new[] { "Float2x4" } },
|
||||
new { Return = "Float3x1", Params = new[] { "Float3x1" } },
|
||||
new { Return = "Float3x2", Params = new[] { "Float3x2" } },
|
||||
new { Return = "Float3x3", Params = new[] { "Float3x3" } },
|
||||
new { Return = "Float3x4", Params = new[] { "Float3x4" } },
|
||||
new { Return = "Float4x1", Params = new[] { "Float4x1" } },
|
||||
new { Return = "Float4x2", Params = new[] { "Float4x2" } },
|
||||
new { Return = "Float4x3", Params = new[] { "Float4x3" } },
|
||||
new { Return = "Float4x4", Params = new[] { "Float4x4" } }
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "DerivativeOfDxLowPrecision",
|
||||
HlslName = "ddx_coarse",
|
||||
Summary = "Computes a low precision partial derivative with respect to the screen-space x-coordinate.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The specified value." }
|
||||
},
|
||||
Returns = "The low precision partial derivative with respect to the input parameter.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "float", Params = new[] { "float" } },
|
||||
new { Return = "Float2", Params = new[] { "Float2" } },
|
||||
new { Return = "Float3", Params = new[] { "Float3" } },
|
||||
new { Return = "Float4", Params = new[] { "Float4" } }
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "DerivativeOfDxHighPrecision",
|
||||
HlslName = "ddx_fine",
|
||||
Summary = "Computes a high precision partial derivative with respect to the screen-space x-coordinate.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The specified value." }
|
||||
},
|
||||
Returns = "The high precision partial derivative with respect to the input parameter.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "float", Params = new[] { "float" } },
|
||||
new { Return = "Float2", Params = new[] { "Float2" } },
|
||||
new { Return = "Float3", Params = new[] { "Float3" } },
|
||||
new { Return = "Float4", Params = new[] { "Float4" } }
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "DerivativeOfDy",
|
||||
HlslName = "ddy",
|
||||
Summary = "Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The specified value." }
|
||||
},
|
||||
Returns = "The partial derivative with respect to the input parameter.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "float", Params = new[] { "float" } },
|
||||
new { Return = "Float2", Params = new[] { "Float2" } },
|
||||
new { Return = "Float3", Params = new[] { "Float3" } },
|
||||
new { Return = "Float4", Params = new[] { "Float4" } },
|
||||
new { Return = "Float1x1", Params = new[] { "Float1x1" } },
|
||||
new { Return = "Float1x2", Params = new[] { "Float1x2" } },
|
||||
new { Return = "Float1x3", Params = new[] { "Float1x3" } },
|
||||
new { Return = "Float1x4", Params = new[] { "Float1x4" } },
|
||||
new { Return = "Float2x1", Params = new[] { "Float2x1" } },
|
||||
new { Return = "Float2x2", Params = new[] { "Float2x2" } },
|
||||
new { Return = "Float2x3", Params = new[] { "Float2x3" } },
|
||||
new { Return = "Float2x4", Params = new[] { "Float2x4" } },
|
||||
new { Return = "Float3x1", Params = new[] { "Float3x1" } },
|
||||
new { Return = "Float3x2", Params = new[] { "Float3x2" } },
|
||||
new { Return = "Float3x3", Params = new[] { "Float3x3" } },
|
||||
new { Return = "Float3x4", Params = new[] { "Float3x4" } },
|
||||
new { Return = "Float4x1", Params = new[] { "Float4x1" } },
|
||||
new { Return = "Float4x2", Params = new[] { "Float4x2" } },
|
||||
new { Return = "Float4x3", Params = new[] { "Float4x3" } },
|
||||
new { Return = "Float4x4", Params = new[] { "Float4x4" } }
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "DerivativeOfDyLowPrecision",
|
||||
HlslName = "ddy_coarse",
|
||||
Summary = "Computes a low precision partial derivative with respect to the screen-space y-coordinate.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The specified value." }
|
||||
},
|
||||
Returns = "The low precision partial derivative with respect to the input parameter.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "float", Params = new[] { "float" } },
|
||||
new { Return = "Float2", Params = new[] { "Float2" } },
|
||||
new { Return = "Float3", Params = new[] { "Float3" } },
|
||||
new { Return = "Float4", Params = new[] { "Float4" } }
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "DerivativeOfDyHighPrecision",
|
||||
HlslName = "ddy_fine",
|
||||
Summary = "Computes a high precision partial derivative with respect to the screen-space y-coordinate.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The specified value." }
|
||||
},
|
||||
Returns = "The high precision partial derivative with respect to the input parameter.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "float", Params = new[] { "float" } },
|
||||
new { Return = "Float2", Params = new[] { "Float2" } },
|
||||
new { Return = "Float3", Params = new[] { "Float3" } },
|
||||
new { Return = "Float4", Params = new[] { "Float4" } }
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "Degrees",
|
||||
HlslName = "degrees",
|
||||
@@ -1116,6 +1256,40 @@ var Intrinsics = new[]
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "Fwidth",
|
||||
HlslName = "fwidth",
|
||||
Summary = "Returns the absolute value of the partial derivatives of the specified value.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The specified value." }
|
||||
},
|
||||
Returns = "The absolute value of the partial derivatives of the input parameter.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "float", Params = new[] { "float" } },
|
||||
new { Return = "Float2", Params = new[] { "Float2" } },
|
||||
new { Return = "Float3", Params = new[] { "Float3" } },
|
||||
new { Return = "Float4", Params = new[] { "Float4" } },
|
||||
new { Return = "Float1x1", Params = new[] { "Float1x1" } },
|
||||
new { Return = "Float1x2", Params = new[] { "Float1x2" } },
|
||||
new { Return = "Float1x3", Params = new[] { "Float1x3" } },
|
||||
new { Return = "Float1x4", Params = new[] { "Float1x4" } },
|
||||
new { Return = "Float2x1", Params = new[] { "Float2x1" } },
|
||||
new { Return = "Float2x2", Params = new[] { "Float2x2" } },
|
||||
new { Return = "Float2x3", Params = new[] { "Float2x3" } },
|
||||
new { Return = "Float2x4", Params = new[] { "Float2x4" } },
|
||||
new { Return = "Float3x1", Params = new[] { "Float3x1" } },
|
||||
new { Return = "Float3x2", Params = new[] { "Float3x2" } },
|
||||
new { Return = "Float3x3", Params = new[] { "Float3x3" } },
|
||||
new { Return = "Float3x4", Params = new[] { "Float3x4" } },
|
||||
new { Return = "Float4x1", Params = new[] { "Float4x1" } },
|
||||
new { Return = "Float4x2", Params = new[] { "Float4x2" } },
|
||||
new { Return = "Float4x3", Params = new[] { "Float4x3" } },
|
||||
new { Return = "Float4x4", Params = new[] { "Float4x4" } }
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "IsFinite",
|
||||
HlslName = "isfinite",
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする