Added missing Reflection and Refract HLSL intrinsics

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-16 15:24:30 +01:00
1 親 ffce2ef2e4
コミット 94e7809c25
2ファイル変更
+533

検索条件に一致するファイルはありません

+460
ファイルの表示
@@ -14099,6 +14099,466 @@ namespace ComputeSharp
[HlslIntrinsicName("rcp")]
public static Double4x4 Rcp(Double4x4 x) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static float Reflect(float i, float n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float2 Reflect(Float2 i, Float2 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float3 Reflect(Float3 i, Float3 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float4 Reflect(Float4 i, Float4 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float1x1 Reflect(Float1x1 i, Float1x1 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float1x2 Reflect(Float1x2 i, Float1x2 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float1x3 Reflect(Float1x3 i, Float1x3 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float1x4 Reflect(Float1x4 i, Float1x4 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float2x1 Reflect(Float2x1 i, Float2x1 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float2x2 Reflect(Float2x2 i, Float2x2 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float2x3 Reflect(Float2x3 i, Float2x3 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float2x4 Reflect(Float2x4 i, Float2x4 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float3x1 Reflect(Float3x1 i, Float3x1 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float3x2 Reflect(Float3x2 i, Float3x2 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float3x3 Reflect(Float3x3 i, Float3x3 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float3x4 Reflect(Float3x4 i, Float3x4 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float4x1 Reflect(Float4x1 i, Float4x1 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float4x2 Reflect(Float4x2 i, Float4x2 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float4x3 Reflect(Float4x3 i, Float4x3 n) => default;
/// <summary>
/// Returns a reflection vector using an incident ray and a surface normal.
/// </summary>
/// <param name="i">A floating-point, incident vector.</param>
/// <param name="n">A floating-point, normal vector.</param>
/// <returns>A floating-point, reflection vector.</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>
[Pure]
[HlslIntrinsicName("reflect")]
public static Float4x4 Reflect(Float4x4 i, Float4x4 n) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static float Refract(float i, float n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float2 Refract(Float2 i, Float2 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float3 Refract(Float3 i, Float3 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float4 Refract(Float4 i, Float4 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float1x1 Refract(Float1x1 i, Float1x1 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float1x2 Refract(Float1x2 i, Float1x2 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float1x3 Refract(Float1x3 i, Float1x3 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float1x4 Refract(Float1x4 i, Float1x4 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float2x1 Refract(Float2x1 i, Float2x1 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float2x2 Refract(Float2x2 i, Float2x2 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float2x3 Refract(Float2x3 i, Float2x3 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float2x4 Refract(Float2x4 i, Float2x4 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float3x1 Refract(Float3x1 i, Float3x1 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float3x2 Refract(Float3x2 i, Float3x2 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float3x3 Refract(Float3x3 i, Float3x3 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float3x4 Refract(Float3x4 i, Float3x4 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float4x1 Refract(Float4x1 i, Float4x1 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float4x2 Refract(Float4x2 i, Float4x2 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float4x3 Refract(Float4x3 i, Float4x3 n, float f) => default;
/// <summary>
/// Returns a refraction vector using an entering ray, a surface normal, and a refraction index.
/// </summary>
/// <param name="i">A floating-point, ray direction vector.</param>
/// <param name="n">A floating-point, surface normal vector.</param>
/// <param name="f">A floating-point, refraction index scalar.</param>
/// <returns>A floating-point, refraction vector. If the angle between the entering ray <paramref name="i"/> and the surface normal <paramref name="n"/> is too great for a given refraction index <paramref name="f"/>, the return value is 0.</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>
[Pure]
[HlslIntrinsicName("refract")]
public static Float4x4 Refract(Float4x4 i, Float4x4 n, float f) => default;
/// <summary>
/// Reverses the order of the bits, per component.
/// </summary>
+73
ファイルの表示
@@ -2092,6 +2092,79 @@ var Intrinsics = new[]
IsPure = true
},
new
{
Name = "Reflect",
HlslName = "reflect",
Summary = "Returns a reflection vector using an incident ray and a surface normal.",
Parameters = new[]
{
new { IsOut = false, Name = "i", Info = "A floating-point, incident vector." },
new { IsOut = false, Name = "n", Info = "A floating-point, normal vector." }
},
Returns = "A floating-point, reflection vector.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float", "float" } },
new { Return = "Float2", Params = new[] { "Float2", "Float2" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4" } }
},
IsPure = true
},
new
{
Name = "Refract",
HlslName = "refract",
Summary = "Returns a refraction vector using an entering ray, a surface normal, and a refraction index.",
Parameters = new[]
{
new { IsOut = false, Name = "i", Info = "A floating-point, ray direction vector." },
new { IsOut = false, Name = "n", Info = "A floating-point, surface normal vector." },
new { IsOut = false, Name = "f", Info = "A floating-point, refraction index scalar." }
},
Returns = "A floating-point, refraction vector. If the angle between the entering ray {i} and the surface normal {n} is too great for a given refraction index {f}, the return value is 0.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float", "float", "float" } },
new { Return = "Float2", Params = new[] { "Float2", "Float2", "float" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3", "float" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4", "float" } },
new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1", "float" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2", "float" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3", "float" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4", "float" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1", "float" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2", "float" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3", "float" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4", "float" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1", "float" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2", "float" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3", "float" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4", "float" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1", "float" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2", "float" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3", "float" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4", "float" } }
},
IsPure = true
},
new
{
Name = "ReverseBits",
HlslName = "reversebits",