Add more HLSL intrinsics

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:04:33 +02:00
1 親 a4582ee37a
コミット f1d88decdb
3ファイル変更
+887 -1

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

+174
ファイルの表示
@@ -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",