Merge pull request #346 from Sergio0694/dev/fix-float32to16-intrinsic

Fix Float32ToFloat16 intrinsic signatures
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2022-08-13 23:40:09 +02:00
コミット c37efc1573
2ファイル変更
+8 -8

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

+4 -4
ファイルの表示
@@ -7712,7 +7712,7 @@ partial class Hlsl
/// <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("f32tof16")]
public static float Float32ToFloat16(uint x) => default;
public static uint Float32ToFloat16(float x) => default;
/// <summary>
/// Converts the input float value into a 16-bit floating point value stored in the lower half of the returned <see langword="uint"/> value.
@@ -7724,7 +7724,7 @@ partial class Hlsl
/// <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("f32tof16")]
public static Float2 Float32ToFloat16(UInt2 x) => default;
public static UInt2 Float32ToFloat16(Float2 x) => default;
/// <summary>
/// Converts the input float value into a 16-bit floating point value stored in the lower half of the returned <see langword="uint"/> value.
@@ -7736,7 +7736,7 @@ partial class Hlsl
/// <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("f32tof16")]
public static Float3 Float32ToFloat16(UInt3 x) => default;
public static UInt3 Float32ToFloat16(Float3 x) => default;
/// <summary>
/// Converts the input float value into a 16-bit floating point value stored in the lower half of the returned <see langword="uint"/> value.
@@ -7748,7 +7748,7 @@ partial class Hlsl
/// <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("f32tof16")]
public static Float4 Float32ToFloat16(UInt4 x) => default;
public static UInt4 Float32ToFloat16(Float4 x) => default;
/// <summary>
/// Converts the 16-bit floating point value stored in the lower half of the input <see langword="uint"/> value to a <see langword="float"/>.
+4 -4
ファイルの表示
@@ -1125,10 +1125,10 @@ var Intrinsics = new[]
Returns = "The converted value, stored in the low-half of the uint.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "uint" } },
new { Return = "Float2", Params = new[] { "UInt2" } },
new { Return = "Float3", Params = new[] { "UInt3" } },
new { Return = "Float4", Params = new[] { "UInt4" } }
new { Return = "uint", Params = new[] { "float" } },
new { Return = "UInt2", Params = new[] { "Float2" } },
new { Return = "UInt3", Params = new[] { "Float3" } },
new { Return = "UInt4", Params = new[] { "Float4" } }
}
},
new