Added missing Cross intrinsic
このコミットが含まれているのは:
1 親
7def0e6280
コミット
e5361d8f54
2ファイル変更
+27
検索条件に一致するファイルはありません
@@ -4303,6 +4303,16 @@ namespace ComputeSharp
|
||||
[HlslIntrinsicName("countbits")]
|
||||
public static UInt4 CountBits(UInt4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(CountBits)}({typeof(UInt4)})");
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cross product of two floating-point, 3D vectors.
|
||||
/// </summary>
|
||||
/// <param name="x">The first floating-point, 3D vector.</param>
|
||||
/// <param name="y">The second floating-point, 3D vector.</param>
|
||||
/// <returns>The number of bits.</returns>
|
||||
[Pure]
|
||||
[HlslIntrinsicName("cross")]
|
||||
public static Float3 Cross(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cross)}({typeof(Float3)}, {typeof(Float3)})");
|
||||
|
||||
/// <summary>
|
||||
/// Converts the specified value from radians to degrees.
|
||||
/// </summary>
|
||||
|
||||
@@ -719,6 +719,23 @@ var Intrinsics = new[]
|
||||
IsPure = true
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "Cross",
|
||||
HlslName = "cross",
|
||||
Summary = "Returns the cross product of two floating-point, 3D vectors.",
|
||||
Parameters = new[]
|
||||
{
|
||||
new { IsOut = false, Name = "x", Info = "The first floating-point, 3D vector." },
|
||||
new { IsOut = false, Name = "y", Info = "The second floating-point, 3D vector." }
|
||||
},
|
||||
Returns = "The number of bits.",
|
||||
Overloads = new[]
|
||||
{
|
||||
new { Return = "Float3", Params = new[] { "Float3", "Float3" } }
|
||||
},
|
||||
IsPure = true
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "Degrees",
|
||||
HlslName = "degrees",
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする