ファイル
ComputeSharp/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude
T
2023-12-28 02:23:44 +01:00

3236 行
194 KiB
Plaintext

<#@include file="Hlsl.MulOverloads.ttinclude" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Text.RegularExpressions" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".g.cs"#>
<#
var Intrinsics = new[]
{
new
{
Name = "Abs",
HlslName = "abs",
Summary = "Returns the absolute value of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-abs",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The absolute value of the {param=x} parameter.",
Overloads = new[]
{
new { Return = "int", Params = new[] { "int" } },
new { Return = "Int2", Params = new[] { "Int2" } },
new { Return = "Int3", Params = new[] { "Int3" } },
new { Return = "Int4", Params = new[] { "Int4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4" } },
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 { Return = "double", Params = new[] { "double" } },
new { Return = "Double2", Params = new[] { "Double2" } },
new { Return = "Double3", Params = new[] { "Double3" } },
new { Return = "Double4", Params = new[] { "Double4" } },
new { Return = "Double1x1", Params = new[] { "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Double4x4" } }
}
},
new
{
Name = "Acos",
HlslName = "acos",
Summary = "Returns the arccosine of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-acos",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value. Each component should be a floating-point within the range [-1, 1]." }
},
Returns = "The arccosine of the {param=x} 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 = "All",
HlslName = "all",
Summary = "Determines if all components of the specified value are non-zero.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-all",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "Whether or not all components of the {param=x} parameter are non-zero.",
Overloads = new[]
{
new { Return = "bool", Params = new[] { "int" } },
new { Return = "bool", Params = new[] { "Int2" } },
new { Return = "bool", Params = new[] { "Int3" } },
new { Return = "bool", Params = new[] { "Int4" } },
new { Return = "bool", Params = new[] { "Int1x1" } },
new { Return = "bool", Params = new[] { "Int1x2" } },
new { Return = "bool", Params = new[] { "Int1x3" } },
new { Return = "bool", Params = new[] { "Int1x4" } },
new { Return = "bool", Params = new[] { "Int2x1" } },
new { Return = "bool", Params = new[] { "Int2x2" } },
new { Return = "bool", Params = new[] { "Int2x3" } },
new { Return = "bool", Params = new[] { "Int2x4" } },
new { Return = "bool", Params = new[] { "Int3x1" } },
new { Return = "bool", Params = new[] { "Int3x2" } },
new { Return = "bool", Params = new[] { "Int3x3" } },
new { Return = "bool", Params = new[] { "Int3x4" } },
new { Return = "bool", Params = new[] { "Int4x1" } },
new { Return = "bool", Params = new[] { "Int4x2" } },
new { Return = "bool", Params = new[] { "Int4x3" } },
new { Return = "bool", Params = new[] { "Int4x4" } },
new { Return = "bool", Params = new[] { "float" } },
new { Return = "bool", Params = new[] { "Float2" } },
new { Return = "bool", Params = new[] { "Float3" } },
new { Return = "bool", Params = new[] { "Float4" } },
new { Return = "bool", Params = new[] { "Float1x1" } },
new { Return = "bool", Params = new[] { "Float1x2" } },
new { Return = "bool", Params = new[] { "Float1x3" } },
new { Return = "bool", Params = new[] { "Float1x4" } },
new { Return = "bool", Params = new[] { "Float2x1" } },
new { Return = "bool", Params = new[] { "Float2x2" } },
new { Return = "bool", Params = new[] { "Float2x3" } },
new { Return = "bool", Params = new[] { "Float2x4" } },
new { Return = "bool", Params = new[] { "Float3x1" } },
new { Return = "bool", Params = new[] { "Float3x2" } },
new { Return = "bool", Params = new[] { "Float3x3" } },
new { Return = "bool", Params = new[] { "Float3x4" } },
new { Return = "bool", Params = new[] { "Float4x1" } },
new { Return = "bool", Params = new[] { "Float4x2" } },
new { Return = "bool", Params = new[] { "Float4x3" } },
new { Return = "bool", Params = new[] { "Float4x4" } },
new { Return = "bool", Params = new[] { "bool" } },
new { Return = "bool", Params = new[] { "Bool2" } },
new { Return = "bool", Params = new[] { "Bool3" } },
new { Return = "bool", Params = new[] { "Bool4" } },
new { Return = "bool", Params = new[] { "Bool1x1" } },
new { Return = "bool", Params = new[] { "Bool1x2" } },
new { Return = "bool", Params = new[] { "Bool1x3" } },
new { Return = "bool", Params = new[] { "Bool1x4" } },
new { Return = "bool", Params = new[] { "Bool2x1" } },
new { Return = "bool", Params = new[] { "Bool2x2" } },
new { Return = "bool", Params = new[] { "Bool2x3" } },
new { Return = "bool", Params = new[] { "Bool2x4" } },
new { Return = "bool", Params = new[] { "Bool3x1" } },
new { Return = "bool", Params = new[] { "Bool3x2" } },
new { Return = "bool", Params = new[] { "Bool3x3" } },
new { Return = "bool", Params = new[] { "Bool3x4" } },
new { Return = "bool", Params = new[] { "Bool4x1" } },
new { Return = "bool", Params = new[] { "Bool4x2" } },
new { Return = "bool", Params = new[] { "Bool4x3" } },
new { Return = "bool", Params = new[] { "Bool4x4" } }
}
},
new
{
Name = "And",
HlslName = "__And",
Summary = "Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.",
Url = "https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-operators#boolean-math-operators",
Parameters = new[]
{
new { IsOut = false, Name = "left", Info = "The first input vector or matrix value." },
new { IsOut = false, Name = "right", Info = "The second input vector or matrix value." }
},
Returns = "The new vector or matrix value with elements resulting from the boolean operation.",
Overloads = new[]
{
new { Return = "Bool2", Params = new[] { "Bool2", "Bool2" } },
new { Return = "Bool3", Params = new[] { "Bool3", "Bool3" } },
new { Return = "Bool4", Params = new[] { "Bool4", "Bool4" } },
new { Return = "Bool1x1", Params = new[] { "Bool1x1", "Bool1x1" } },
new { Return = "Bool1x2", Params = new[] { "Bool1x2", "Bool1x2" } },
new { Return = "Bool1x3", Params = new[] { "Bool1x3", "Bool1x3" } },
new { Return = "Bool1x4", Params = new[] { "Bool1x4", "Bool1x4" } },
new { Return = "Bool2x1", Params = new[] { "Bool2x1", "Bool2x1" } },
new { Return = "Bool2x2", Params = new[] { "Bool2x2", "Bool2x2" } },
new { Return = "Bool2x3", Params = new[] { "Bool2x3", "Bool2x3" } },
new { Return = "Bool2x4", Params = new[] { "Bool2x4", "Bool2x4" } },
new { Return = "Bool3x1", Params = new[] { "Bool3x1", "Bool3x1" } },
new { Return = "Bool3x2", Params = new[] { "Bool3x2", "Bool3x2" } },
new { Return = "Bool3x3", Params = new[] { "Bool3x3", "Bool3x3" } },
new { Return = "Bool3x4", Params = new[] { "Bool3x4", "Bool3x4" } },
new { Return = "Bool4x1", Params = new[] { "Bool4x1", "Bool4x1" } },
new { Return = "Bool4x2", Params = new[] { "Bool4x2", "Bool4x2" } },
new { Return = "Bool4x3", Params = new[] { "Bool4x3", "Bool4x3" } },
new { Return = "Bool4x4", Params = new[] { "Bool4x4", "Bool4x4" } }
}
},
new
{
Name = "Any",
HlslName = "any",
Summary = "Determines if any components of the specified value are non-zero.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-any",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "Whether or not any components of the {param=x} parameter are non-zero.",
Overloads = new[]
{
new { Return = "bool", Params = new[] { "int" } },
new { Return = "bool", Params = new[] { "Int2" } },
new { Return = "bool", Params = new[] { "Int3" } },
new { Return = "bool", Params = new[] { "Int4" } },
new { Return = "bool", Params = new[] { "Int1x1" } },
new { Return = "bool", Params = new[] { "Int1x2" } },
new { Return = "bool", Params = new[] { "Int1x3" } },
new { Return = "bool", Params = new[] { "Int1x4" } },
new { Return = "bool", Params = new[] { "Int2x1" } },
new { Return = "bool", Params = new[] { "Int2x2" } },
new { Return = "bool", Params = new[] { "Int2x3" } },
new { Return = "bool", Params = new[] { "Int2x4" } },
new { Return = "bool", Params = new[] { "Int3x1" } },
new { Return = "bool", Params = new[] { "Int3x2" } },
new { Return = "bool", Params = new[] { "Int3x3" } },
new { Return = "bool", Params = new[] { "Int3x4" } },
new { Return = "bool", Params = new[] { "Int4x1" } },
new { Return = "bool", Params = new[] { "Int4x2" } },
new { Return = "bool", Params = new[] { "Int4x3" } },
new { Return = "bool", Params = new[] { "Int4x4" } },
new { Return = "bool", Params = new[] { "float" } },
new { Return = "bool", Params = new[] { "Float2" } },
new { Return = "bool", Params = new[] { "Float3" } },
new { Return = "bool", Params = new[] { "Float4" } },
new { Return = "bool", Params = new[] { "Float1x1" } },
new { Return = "bool", Params = new[] { "Float1x2" } },
new { Return = "bool", Params = new[] { "Float1x3" } },
new { Return = "bool", Params = new[] { "Float1x4" } },
new { Return = "bool", Params = new[] { "Float2x1" } },
new { Return = "bool", Params = new[] { "Float2x2" } },
new { Return = "bool", Params = new[] { "Float2x3" } },
new { Return = "bool", Params = new[] { "Float2x4" } },
new { Return = "bool", Params = new[] { "Float3x1" } },
new { Return = "bool", Params = new[] { "Float3x2" } },
new { Return = "bool", Params = new[] { "Float3x3" } },
new { Return = "bool", Params = new[] { "Float3x4" } },
new { Return = "bool", Params = new[] { "Float4x1" } },
new { Return = "bool", Params = new[] { "Float4x2" } },
new { Return = "bool", Params = new[] { "Float4x3" } },
new { Return = "bool", Params = new[] { "Float4x4" } },
new { Return = "bool", Params = new[] { "bool" } },
new { Return = "bool", Params = new[] { "Bool2" } },
new { Return = "bool", Params = new[] { "Bool3" } },
new { Return = "bool", Params = new[] { "Bool4" } },
new { Return = "bool", Params = new[] { "Bool1x1" } },
new { Return = "bool", Params = new[] { "Bool1x2" } },
new { Return = "bool", Params = new[] { "Bool1x3" } },
new { Return = "bool", Params = new[] { "Bool1x4" } },
new { Return = "bool", Params = new[] { "Bool2x1" } },
new { Return = "bool", Params = new[] { "Bool2x2" } },
new { Return = "bool", Params = new[] { "Bool2x3" } },
new { Return = "bool", Params = new[] { "Bool2x4" } },
new { Return = "bool", Params = new[] { "Bool3x1" } },
new { Return = "bool", Params = new[] { "Bool3x2" } },
new { Return = "bool", Params = new[] { "Bool3x3" } },
new { Return = "bool", Params = new[] { "Bool3x4" } },
new { Return = "bool", Params = new[] { "Bool4x1" } },
new { Return = "bool", Params = new[] { "Bool4x2" } },
new { Return = "bool", Params = new[] { "Bool4x3" } },
new { Return = "bool", Params = new[] { "Bool4x4" } }
}
},
new
{
Name = "AsDouble",
HlslName = "asdouble",
Summary = "Reinterprets a cast value (two 32-bit values) into a double precision floating-point value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/asdouble",
Parameters = new[]
{
new { IsOut = false, Name = "lowbits", Info = "The low 32-bit pattern of the input value." },
new { IsOut = false, Name = "highbits", Info = "The high 32-bit pattern of the input value." }
},
Returns = "The input (two 32-bit values) recast as a double precision floating-point number.",
Overloads = new[]
{
new { Return = "double", Params = new[] { "uint", "uint" } },
new { Return = "Double2", Params = new[] { "UInt2", "UInt2" } }
}
},
new
{
Name = "AsFloat",
HlslName = "asfloat",
Summary = "Interprets the bit pattern of an input value as a floating-point number.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-asfloat",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The input interpreted as a floating-point number.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "int" } },
new { Return = "Float2", Params = new[] { "Int2" } },
new { Return = "Float3", Params = new[] { "Int3" } },
new { Return = "Float4", Params = new[] { "Int4" } },
new { Return = "Float1x1", Params = new[] { "Int1x1" } },
new { Return = "Float1x2", Params = new[] { "Int1x2" } },
new { Return = "Float1x3", Params = new[] { "Int1x3" } },
new { Return = "Float1x4", Params = new[] { "Int1x4" } },
new { Return = "Float2x1", Params = new[] { "Int2x1" } },
new { Return = "Float2x2", Params = new[] { "Int2x2" } },
new { Return = "Float2x3", Params = new[] { "Int2x3" } },
new { Return = "Float2x4", Params = new[] { "Int2x4" } },
new { Return = "Float3x1", Params = new[] { "Int3x1" } },
new { Return = "Float3x2", Params = new[] { "Int3x2" } },
new { Return = "Float3x3", Params = new[] { "Int3x3" } },
new { Return = "Float3x4", Params = new[] { "Int3x4" } },
new { Return = "Float4x1", Params = new[] { "Int4x1" } },
new { Return = "Float4x2", Params = new[] { "Int4x2" } },
new { Return = "Float4x3", Params = new[] { "Int4x3" } },
new { Return = "Float4x4", Params = new[] { "Int4x4" } },
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 = "Float1x1", Params = new[] { "UInt1x1" } },
new { Return = "Float1x2", Params = new[] { "UInt1x2" } },
new { Return = "Float1x3", Params = new[] { "UInt1x3" } },
new { Return = "Float1x4", Params = new[] { "UInt1x4" } },
new { Return = "Float2x1", Params = new[] { "UInt2x1" } },
new { Return = "Float2x2", Params = new[] { "UInt2x2" } },
new { Return = "Float2x3", Params = new[] { "UInt2x3" } },
new { Return = "Float2x4", Params = new[] { "UInt2x4" } },
new { Return = "Float3x1", Params = new[] { "UInt3x1" } },
new { Return = "Float3x2", Params = new[] { "UInt3x2" } },
new { Return = "Float3x3", Params = new[] { "UInt3x3" } },
new { Return = "Float3x4", Params = new[] { "UInt3x4" } },
new { Return = "Float4x1", Params = new[] { "UInt4x1" } },
new { Return = "Float4x2", Params = new[] { "UInt4x2" } },
new { Return = "Float4x3", Params = new[] { "UInt4x3" } },
new { Return = "Float4x4", Params = new[] { "UInt4x4" } }
}
},
new
{
Name = "Asin",
HlslName = "asin",
Summary = "Returns the arcsine of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-asin",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The arcsine of the {param=x} 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 = "AsInt",
HlslName = "asint",
Summary = "Interprets the bit pattern of an input value as an integer number.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-asint",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The input interpreted as an integer number.",
Overloads = new[]
{
new { Return = "int", Params = new[] { "float" } },
new { Return = "Int2", Params = new[] { "Float2" } },
new { Return = "Int3", Params = new[] { "Float3" } },
new { Return = "Int4", Params = new[] { "Float4" } },
new { Return = "Int1x1", Params = new[] { "Float1x1" } },
new { Return = "Int1x2", Params = new[] { "Float1x2" } },
new { Return = "Int1x3", Params = new[] { "Float1x3" } },
new { Return = "Int1x4", Params = new[] { "Float1x4" } },
new { Return = "Int2x1", Params = new[] { "Float2x1" } },
new { Return = "Int2x2", Params = new[] { "Float2x2" } },
new { Return = "Int2x3", Params = new[] { "Float2x3" } },
new { Return = "Int2x4", Params = new[] { "Float2x4" } },
new { Return = "Int3x1", Params = new[] { "Float3x1" } },
new { Return = "Int3x2", Params = new[] { "Float3x2" } },
new { Return = "Int3x3", Params = new[] { "Float3x3" } },
new { Return = "Int3x4", Params = new[] { "Float3x4" } },
new { Return = "Int4x1", Params = new[] { "Float4x1" } },
new { Return = "Int4x2", Params = new[] { "Float4x2" } },
new { Return = "Int4x3", Params = new[] { "Float4x3" } },
new { Return = "Int4x4", Params = new[] { "Float4x4" } },
new { Return = "int", Params = new[] { "uint" } },
new { Return = "Int2", Params = new[] { "UInt2" } },
new { Return = "Int3", Params = new[] { "UInt3" } },
new { Return = "Int4", Params = new[] { "UInt4" } },
new { Return = "Int1x1", Params = new[] { "UInt1x1" } },
new { Return = "Int1x2", Params = new[] { "UInt1x2" } },
new { Return = "Int1x3", Params = new[] { "UInt1x3" } },
new { Return = "Int1x4", Params = new[] { "UInt1x4" } },
new { Return = "Int2x1", Params = new[] { "UInt2x1" } },
new { Return = "Int2x2", Params = new[] { "UInt2x2" } },
new { Return = "Int2x3", Params = new[] { "UInt2x3" } },
new { Return = "Int2x4", Params = new[] { "UInt2x4" } },
new { Return = "Int3x1", Params = new[] { "UInt3x1" } },
new { Return = "Int3x2", Params = new[] { "UInt3x2" } },
new { Return = "Int3x3", Params = new[] { "UInt3x3" } },
new { Return = "Int3x4", Params = new[] { "UInt3x4" } },
new { Return = "Int4x1", Params = new[] { "UInt4x1" } },
new { Return = "Int4x2", Params = new[] { "UInt4x2" } },
new { Return = "Int4x3", Params = new[] { "UInt4x3" } },
new { Return = "Int4x4", Params = new[] { "UInt4x4" } }
}
},
new
{
Name = "AsUInt",
HlslName = "asuint",
Summary = "Interprets the bit pattern of an input value as an unsigned integer number.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-asuint",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The input interpreted as an unsigned integer number.",
Overloads = new[]
{
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 { Return = "UInt1x1", Params = new[] { "Float1x1" } },
new { Return = "UInt1x2", Params = new[] { "Float1x2" } },
new { Return = "UInt1x3", Params = new[] { "Float1x3" } },
new { Return = "UInt1x4", Params = new[] { "Float1x4" } },
new { Return = "UInt2x1", Params = new[] { "Float2x1" } },
new { Return = "UInt2x2", Params = new[] { "Float2x2" } },
new { Return = "UInt2x3", Params = new[] { "Float2x3" } },
new { Return = "UInt2x4", Params = new[] { "Float2x4" } },
new { Return = "UInt3x1", Params = new[] { "Float3x1" } },
new { Return = "UInt3x2", Params = new[] { "Float3x2" } },
new { Return = "UInt3x3", Params = new[] { "Float3x3" } },
new { Return = "UInt3x4", Params = new[] { "Float3x4" } },
new { Return = "UInt4x1", Params = new[] { "Float4x1" } },
new { Return = "UInt4x2", Params = new[] { "Float4x2" } },
new { Return = "UInt4x3", Params = new[] { "Float4x3" } },
new { Return = "UInt4x4", Params = new[] { "Float4x4" } },
new { Return = "uint", Params = new[] { "int" } },
new { Return = "UInt2", Params = new[] { "Int2" } },
new { Return = "UInt3", Params = new[] { "Int3" } },
new { Return = "UInt4", Params = new[] { "Int4" } },
new { Return = "UInt1x1", Params = new[] { "Int1x1" } },
new { Return = "UInt1x2", Params = new[] { "Int1x2" } },
new { Return = "UInt1x3", Params = new[] { "Int1x3" } },
new { Return = "UInt1x4", Params = new[] { "Int1x4" } },
new { Return = "UInt2x1", Params = new[] { "Int2x1" } },
new { Return = "UInt2x2", Params = new[] { "Int2x2" } },
new { Return = "UInt2x3", Params = new[] { "Int2x3" } },
new { Return = "UInt2x4", Params = new[] { "Int2x4" } },
new { Return = "UInt3x1", Params = new[] { "Int3x1" } },
new { Return = "UInt3x2", Params = new[] { "Int3x2" } },
new { Return = "UInt3x3", Params = new[] { "Int3x3" } },
new { Return = "UInt3x4", Params = new[] { "Int3x4" } },
new { Return = "UInt4x1", Params = new[] { "Int4x1" } },
new { Return = "UInt4x2", Params = new[] { "Int4x2" } },
new { Return = "UInt4x3", Params = new[] { "Int4x3" } },
new { Return = "UInt4x4", Params = new[] { "Int4x4" } }
}
},
new
{
Name = "Atan",
HlslName = "atan",
Summary = "Returns the arctangent of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-atan",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The arctangent of the {param=x} parameter. This value is within the range [-π/2, π/2].",
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 = "Atan2",
HlslName = "atan2",
Summary = "Returns the arctangent of two values (y, x).",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-atan2",
Parameters = new[]
{
new { IsOut = false, Name = "y", Info = "The y value." },
new { IsOut = false, Name = "x", Info = "The x value." }
},
Returns = "The arctangent of ({param=y}, {param=x}).",
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" } }
}
},
new
{
Name = "Ceil",
HlslName = "ceil",
Summary = "Returns the smallest integer value that is greater than or equal to the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-ceil",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The smallest integer value (returned as a floating-point type) that is greater than or equal to the {param=x} 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 = "Clamp",
HlslName = "clamp",
Summary = "Clamps the specified value to the specified minimum and maximum range.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-clamp",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The value to clamp." },
new { IsOut = false, Name = "min", Info = "The specified minimum range." },
new { IsOut = false, Name = "max", Info = "The specified maximum range." }
},
Returns = "The clamped value for the {param=x} parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float", "float", "float" } },
new { Return = "Float2", Params = new[] { "Float2", "Float2", "Float2" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3", "Float3" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4", "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4", "Float4x4" } },
new { Return = "int", Params = new[] { "int", "int", "int" } },
new { Return = "Int2", Params = new[] { "Int2", "Int2", "Int2" } },
new { Return = "Int3", Params = new[] { "Int3", "Int3", "Int3" } },
new { Return = "Int4", Params = new[] { "Int4", "Int4", "Int4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1", "Int1x1", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2", "Int1x2", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3", "Int1x3", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4", "Int1x4", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1", "Int2x1", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2", "Int2x2", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3", "Int2x3", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4", "Int2x4", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1", "Int3x1", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2", "Int3x2", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3", "Int3x3", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4", "Int3x4", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1", "Int4x1", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2", "Int4x2", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3", "Int4x3", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4", "Int4x4", "Int4x4" } }
}
},
new
{
Name = "Cos",
HlslName = "cos",
Summary = "Returns the cosine of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-cos",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value, in radians." }
},
Returns = "The cosine of the {param=x} 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 = "Cosh",
HlslName = "cosh",
Summary = "Returns the hyperbolic cosine of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-cosh",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value, in radians." }
},
Returns = "The hyperbolic cosine of the {param=x} 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 = "CountBits",
HlslName = "countbits",
Summary = "Counts the number of bits (per component) in the input integer.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/countbits",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The number of bits.",
Overloads = new[]
{
new { Return = "uint", Params = new[] { "uint" } },
new { Return = "UInt2", Params = new[] { "UInt2" } },
new { Return = "UInt3", Params = new[] { "UInt3" } },
new { Return = "UInt4", Params = new[] { "UInt4" } }
}
},
new
{
Name = "Cross",
HlslName = "cross",
Summary = "Returns the cross product of two floating-point, 3D vectors.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-cross",
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" } }
}
},
new
{
Name = "DerivativeOfDx",
HlslName = "ddx",
Summary = "Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-ddx",
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.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-ddx",
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.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/ddx-fine",
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.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-ddy",
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.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/ddy-coarse",
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.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/ddy-fine",
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",
Summary = "Converts the specified value from radians to degrees.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-degrees",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The result of converting the {param=x} parameter from radians to degrees.",
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 = "Determinant",
HlslName = "determinant",
Summary = "Returns the determinant of the specified floating-point, square matrix.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-determinant",
Parameters = new[]
{
new { IsOut = false, Name = "m", Info = "The specified value." }
},
Returns = "The floating-point, scalar value that represents the determinant of the {param=m} parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "Float1x1" } },
new { Return = "float", Params = new[] { "Float2x2" } },
new { Return = "float", Params = new[] { "Float3x3" } },
new { Return = "float", Params = new[] { "Float4x4" } }
}
},
new
{
Name = "Distance",
HlslName = "distance",
Summary = "Returns a distance scalar between two vectors.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-distance",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The first floating-point vector to compare." },
new { IsOut = false, Name = "y", Info = "The second floating-point vector to compare." }
},
Returns = "A floating-point, scalar value that represents the distance between the {param=x} parameter and the {param=y} parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "Float2", "Float2" } },
new { Return = "float", Params = new[] { "Float3", "Float3" } },
new { Return = "float", Params = new[] { "Float4", "Float4" } }
}
},
new
{
Name = "Dot",
HlslName = "dot",
Summary = "Returns the dot product of two vectors.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-dot",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The first vector." },
new { IsOut = false, Name = "y", Info = "The second vector." }
},
Returns = "The dot product of the {param=x} parameter and the {param=y} parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "Float2", "Float2" } },
new { Return = "float", Params = new[] { "Float3", "Float3" } },
new { Return = "float", Params = new[] { "Float4", "Float4" } },
new { Return = "int", Params = new[] { "Int2", "Int2" } },
new { Return = "int", Params = new[] { "Int3", "Int3" } },
new { Return = "int", Params = new[] { "Int4", "Int4" } }
}
},
new
{
Name = "Exp",
HlslName = "exp",
Summary = "Returns the base-e exponential of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-exp",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The base-e exponential of the {param=x} 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 = "Exp2",
HlslName = "exp2",
Summary = "Returns the base-2 exponential of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-exp2",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The base-2 exponential of the {param=x} 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 = "FirstBitHigh",
HlslName = "firstbithigh",
Summary = "Gets the location of the first set bit starting from the highest order bit and working downward, per component.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/firstbithigh",
Parameters = new[]
{
new { IsOut = false, Name = "value", Info = "The input value." }
},
Returns = "The location of the first set bit.",
Overloads = new[]
{
new { Return = "int", Params = new[] { "int" } },
new { Return = "Int2", Params = new[] { "Int2" } },
new { Return = "Int3", Params = new[] { "Int3" } },
new { Return = "Int4", Params = new[] { "Int4" } },
new { Return = "uint", Params = new[] { "uint" } },
new { Return = "UInt2", Params = new[] { "UInt2" } },
new { Return = "UInt3", Params = new[] { "UInt3" } },
new { Return = "UInt4", Params = new[] { "UInt4" } }
}
},
new
{
Name = "FirstBitLow",
HlslName = "firstbitlow",
Summary = "Returns the location of the first set bit starting from the lowest order bit and working upward, per component.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/firstbitlow",
Parameters = new[]
{
new { IsOut = false, Name = "value", Info = "The input value." }
},
Returns = "The location of the first set bit.",
Overloads = new[]
{
new { Return = "int", Params = new[] { "int" } },
new { Return = "Int2", Params = new[] { "Int2" } },
new { Return = "Int3", Params = new[] { "Int3" } },
new { Return = "Int4", Params = new[] { "Int4" } },
new { Return = "uint", Params = new[] { "uint" } },
new { Return = "UInt2", Params = new[] { "UInt2" } },
new { Return = "UInt3", Params = new[] { "UInt3" } },
new { Return = "UInt4", Params = new[] { "UInt4" } }
}
},
new
{
Name = "Float32ToFloat16",
HlslName = "f32tof16",
Summary = "Converts the input float value into a 16-bit floating point value stored in the lower half of the returned {keyword=uint} value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/f32tof16",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The converted value, stored in the low-half of the uint.",
Overloads = new[]
{
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
{
Name = "Float16ToFloat32",
HlslName = "f16tof32",
Summary = "Converts the 16-bit floating point value stored in the lower half of the input {keyword=uint} value to a {keyword=float}.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/f16tof32",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The converted value.",
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
{
Name = "Floor",
HlslName = "floor",
Summary = "Returns the largest integer that is less than or equal to the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-floor",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The largest integer value (returned as a floating-point type) that is less than or equal to the {param=x} 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 = "FusedMultiplyAdd",
HlslName = "fma",
Summary = "Returns the double-precision fused multiply-addition of a * b + c.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-fma",
Parameters = new[]
{
new { IsOut = false, Name = "a", Info = "The first value in the fused multiply-addition." },
new { IsOut = false, Name = "b", Info = "The second value in the fused multiply-addition." },
new { IsOut = false, Name = "c", Info = "The third value in the fused multiply-addition." }
},
Returns = "The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP).",
Overloads = new[]
{
new { Return = "double", Params = new[] { "double", "double", "double" } },
new { Return = "Double2", Params = new[] { "Double2", "Double2", "Double2" } },
new { Return = "Double3", Params = new[] { "Double3", "Double3", "Double3" } },
new { Return = "Double4", Params = new[] { "Double4", "Double4", "Double4" } },
new { Return = "Double1x1", Params = new[] { "Double1x1", "Double1x1", "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Double1x2", "Double1x2", "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Double1x3", "Double1x3", "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Double1x4", "Double1x4", "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Double2x1", "Double2x1", "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Double2x2", "Double2x2", "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Double2x3", "Double2x3", "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Double2x4", "Double2x4", "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Double3x1", "Double3x1", "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Double3x2", "Double3x2", "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Double3x3", "Double3x3", "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Double3x4", "Double3x4", "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Double4x1", "Double4x1", "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Double4x2", "Double4x2", "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Double4x3", "Double4x3", "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Double4x4", "Double4x4", "Double4x4" } }
}
},
new
{
Name = "Fmod",
HlslName = "fmod",
Summary = "Returns the floating-point remainder of x / y.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-fmod",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The floating-point dividend." },
new { IsOut = false, Name = "y", Info = "The floating-point divisor." }
},
Returns = "The floating-point remainder of the x parameter divided by the y parameter.",
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" } }
}
},
new
{
Name = "Frac",
HlslName = "frac",
Summary = "Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-frac",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The fractional part of the {param=x} 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 = "Frexp",
HlslName = "frexp",
Summary = "Returns the mantissa and exponent of the specified floating-point value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-frexp",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified floating-point value." },
new { IsOut = true, Name = "exp", Info = "The returned exponent of the input parameter." }
},
Returns = "The mantissa of the {param=x} parameter.",
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" } }
}
},
new
{
Name = "Fwidth",
HlslName = "fwidth",
Summary = "Returns the absolute value of the partial derivatives of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-fwidth",
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",
Summary = "Determines if the specified floating-point value is finite.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-isfinite",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "Returns a value of the same size as {param=x}, indicaating whether each component is finite.",
Overloads = new[]
{
new { Return = "bool", Params = new[] { "float" } },
new { Return = "Bool2", Params = new[] { "Float2" } },
new { Return = "Bool3", Params = new[] { "Float3" } },
new { Return = "Bool4", Params = new[] { "Float4" } },
new { Return = "Bool1x1", Params = new[] { "Float1x1" } },
new { Return = "Bool1x2", Params = new[] { "Float1x2" } },
new { Return = "Bool1x3", Params = new[] { "Float1x3" } },
new { Return = "Bool1x4", Params = new[] { "Float1x4" } },
new { Return = "Bool2x1", Params = new[] { "Float2x1" } },
new { Return = "Bool2x2", Params = new[] { "Float2x2" } },
new { Return = "Bool2x3", Params = new[] { "Float2x3" } },
new { Return = "Bool2x4", Params = new[] { "Float2x4" } },
new { Return = "Bool3x1", Params = new[] { "Float3x1" } },
new { Return = "Bool3x2", Params = new[] { "Float3x2" } },
new { Return = "Bool3x3", Params = new[] { "Float3x3" } },
new { Return = "Bool3x4", Params = new[] { "Float3x4" } },
new { Return = "Bool4x1", Params = new[] { "Float4x1" } },
new { Return = "Bool4x2", Params = new[] { "Float4x2" } },
new { Return = "Bool4x3", Params = new[] { "Float4x3" } },
new { Return = "Bool4x4", Params = new[] { "Float4x4" } }
}
},
new
{
Name = "IsInfinite",
HlslName = "isinf",
Summary = "Determines if the specified value is infinite.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-isinf",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "Returns a value of the same size as {param=x}, indicaating whether each component is infinite.",
Overloads = new[]
{
new { Return = "bool", Params = new[] { "float" } },
new { Return = "Bool2", Params = new[] { "Float2" } },
new { Return = "Bool3", Params = new[] { "Float3" } },
new { Return = "Bool4", Params = new[] { "Float4" } },
new { Return = "Bool1x1", Params = new[] { "Float1x1" } },
new { Return = "Bool1x2", Params = new[] { "Float1x2" } },
new { Return = "Bool1x3", Params = new[] { "Float1x3" } },
new { Return = "Bool1x4", Params = new[] { "Float1x4" } },
new { Return = "Bool2x1", Params = new[] { "Float2x1" } },
new { Return = "Bool2x2", Params = new[] { "Float2x2" } },
new { Return = "Bool2x3", Params = new[] { "Float2x3" } },
new { Return = "Bool2x4", Params = new[] { "Float2x4" } },
new { Return = "Bool3x1", Params = new[] { "Float3x1" } },
new { Return = "Bool3x2", Params = new[] { "Float3x2" } },
new { Return = "Bool3x3", Params = new[] { "Float3x3" } },
new { Return = "Bool3x4", Params = new[] { "Float3x4" } },
new { Return = "Bool4x1", Params = new[] { "Float4x1" } },
new { Return = "Bool4x2", Params = new[] { "Float4x2" } },
new { Return = "Bool4x3", Params = new[] { "Float4x3" } },
new { Return = "Bool4x4", Params = new[] { "Float4x4" } }
}
},
new
{
Name = "IsNaN",
HlslName = "isnan",
Summary = "Determines if the specified value is NAN or QNAN.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-isnan",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "Returns a value of the same size as {param=x}, indicaating whether each component is NAN or QNAN.",
Overloads = new[]
{
new { Return = "bool", Params = new[] { "float" } },
new { Return = "Bool2", Params = new[] { "Float2" } },
new { Return = "Bool3", Params = new[] { "Float3" } },
new { Return = "Bool4", Params = new[] { "Float4" } },
new { Return = "Bool1x1", Params = new[] { "Float1x1" } },
new { Return = "Bool1x2", Params = new[] { "Float1x2" } },
new { Return = "Bool1x3", Params = new[] { "Float1x3" } },
new { Return = "Bool1x4", Params = new[] { "Float1x4" } },
new { Return = "Bool2x1", Params = new[] { "Float2x1" } },
new { Return = "Bool2x2", Params = new[] { "Float2x2" } },
new { Return = "Bool2x3", Params = new[] { "Float2x3" } },
new { Return = "Bool2x4", Params = new[] { "Float2x4" } },
new { Return = "Bool3x1", Params = new[] { "Float3x1" } },
new { Return = "Bool3x2", Params = new[] { "Float3x2" } },
new { Return = "Bool3x3", Params = new[] { "Float3x3" } },
new { Return = "Bool3x4", Params = new[] { "Float3x4" } },
new { Return = "Bool4x1", Params = new[] { "Float4x1" } },
new { Return = "Bool4x2", Params = new[] { "Float4x2" } },
new { Return = "Bool4x3", Params = new[] { "Float4x3" } },
new { Return = "Bool4x4", Params = new[] { "Float4x4" } }
}
},
new
{
Name = "Ldexp",
HlslName = "ldexp",
Summary = "Returns the result of multiplying the specified value by two, raised to the power of the specified exponent.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-ldexp",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." },
new { IsOut = false, Name = "exp", Info = "The specified exponent." }
},
Returns = "The result of multiplying the {param=x} parameter by two, raised to the power of the {param=exp} parameter.",
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" } }
}
},
new
{
Name = "Length",
HlslName = "length",
Summary = "Returns the length of the specified floating-point vector.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-length",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified floating-point vector." }
},
Returns = "A floating-point scalar that represents the length of the {param=x} parameter.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "Float2" } },
new { Return = "float", Params = new[] { "Float3" } },
new { Return = "float", Params = new[] { "Float4" } }
}
},
new
{
Name = "Lerp",
HlslName = "lerp",
Summary = "Performs a linear interpolation.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-lerp",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The first-floating point value." },
new { IsOut = false, Name = "y", Info = "The second-floating point value." },
new { IsOut = false, Name = "s", Info = "A value that linearly interpolates between the two inputs." }
},
Returns = "The result of the linear interpolation.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float", "float", "float" } },
new { Return = "Float2", Params = new[] { "Float2", "Float2", "Float2" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3", "Float3" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4", "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4", "Float4x4" } }
}
},
new
{
Name = "Log",
HlslName = "log",
Summary = "Returns the base-e logarithm of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-log",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The base-e logarithm of the {param=x} parameter. If the {param=x} parameter is negative, this function returns indefinite. If the {param=x} parameter is 0, this function returns negative infinity.",
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 = "Log10",
HlslName = "log10",
Summary = "Returns the base-10 logarithm of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-log10",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The base-10 logarithm of the {param=x} parameter. If the {param=x} parameter is negative, this function returns indefinite. If the {param=x} parameter is 0, this function returns negative infinity.",
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 = "Log2",
HlslName = "log2",
Summary = "Returns the base-2 logarithm of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-log2",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The base-2 logarithm of the {param=x} parameter. If the {param=x} parameter is negative, this function returns indefinite. If the {param=x} parameter is 0, this function returns negative infinity.",
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 = "Mad",
HlslName = "mad",
Summary = "Performs an arithmetic multiply/add operation on three values.",
Url = "https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/mad",
Parameters = new[]
{
new { IsOut = false, Name = "m", Info = "The multiplication value." },
new { IsOut = false, Name = "a", Info = "The first addition value." },
new { IsOut = false, Name = "b", Info = "The second addition value." }
},
Returns = "The result of {param=m} * {param=a} + {param=b}.",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float", "float", "float" } },
new { Return = "Float2", Params = new[] { "Float2", "Float2", "Float2" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3", "Float3" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4", "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4", "Float4x4" } },
new { Return = "double", Params = new[] { "double", "double", "double" } },
new { Return = "Double2", Params = new[] { "Double2", "Double2", "Double2" } },
new { Return = "Double3", Params = new[] { "Double3", "Double3", "Double3" } },
new { Return = "Double4", Params = new[] { "Double4", "Double4", "Double4" } },
new { Return = "Double1x1", Params = new[] { "Double1x1", "Double1x1", "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Double1x2", "Double1x2", "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Double1x3", "Double1x3", "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Double1x4", "Double1x4", "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Double2x1", "Double2x1", "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Double2x2", "Double2x2", "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Double2x3", "Double2x3", "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Double2x4", "Double2x4", "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Double3x1", "Double3x1", "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Double3x2", "Double3x2", "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Double3x3", "Double3x3", "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Double3x4", "Double3x4", "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Double4x1", "Double4x1", "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Double4x2", "Double4x2", "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Double4x3", "Double4x3", "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Double4x4", "Double4x4", "Double4x4" } },
new { Return = "int", Params = new[] { "int", "int", "int" } },
new { Return = "Int2", Params = new[] { "Int2", "Int2", "Int2" } },
new { Return = "Int3", Params = new[] { "Int3", "Int3", "Int3" } },
new { Return = "Int4", Params = new[] { "Int4", "Int4", "Int4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1", "Int1x1", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2", "Int1x2", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3", "Int1x3", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4", "Int1x4", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1", "Int2x1", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2", "Int2x2", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3", "Int2x3", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4", "Int2x4", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1", "Int3x1", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2", "Int3x2", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3", "Int3x3", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4", "Int3x4", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1", "Int4x1", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2", "Int4x2", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3", "Int4x3", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4", "Int4x4", "Int4x4" } },
new { Return = "uint", Params = new[] { "uint", "uint", "uint" } },
new { Return = "UInt2", Params = new[] { "UInt2", "UInt2", "UInt2" } },
new { Return = "UInt3", Params = new[] { "UInt3", "UInt3", "UInt3" } },
new { Return = "UInt4", Params = new[] { "UInt4", "UInt4", "UInt4" } },
new { Return = "UInt1x1", Params = new[] { "UInt1x1", "UInt1x1", "UInt1x1" } },
new { Return = "UInt1x2", Params = new[] { "UInt1x2", "UInt1x2", "UInt1x2" } },
new { Return = "UInt1x3", Params = new[] { "UInt1x3", "UInt1x3", "UInt1x3" } },
new { Return = "UInt1x4", Params = new[] { "UInt1x4", "UInt1x4", "UInt1x4" } },
new { Return = "UInt2x1", Params = new[] { "UInt2x1", "UInt2x1", "UInt2x1" } },
new { Return = "UInt2x2", Params = new[] { "UInt2x2", "UInt2x2", "UInt2x2" } },
new { Return = "UInt2x3", Params = new[] { "UInt2x3", "UInt2x3", "UInt2x3" } },
new { Return = "UInt2x4", Params = new[] { "UInt2x4", "UInt2x4", "UInt2x4" } },
new { Return = "UInt3x1", Params = new[] { "UInt3x1", "UInt3x1", "UInt3x1" } },
new { Return = "UInt3x2", Params = new[] { "UInt3x2", "UInt3x2", "UInt3x2" } },
new { Return = "UInt3x3", Params = new[] { "UInt3x3", "UInt3x3", "UInt3x3" } },
new { Return = "UInt3x4", Params = new[] { "UInt3x4", "UInt3x4", "UInt3x4" } },
new { Return = "UInt4x1", Params = new[] { "UInt4x1", "UInt4x1", "UInt4x1" } },
new { Return = "UInt4x2", Params = new[] { "UInt4x2", "UInt4x2", "UInt4x2" } },
new { Return = "UInt4x3", Params = new[] { "UInt4x3", "UInt4x3", "UInt4x3" } },
new { Return = "UInt4x4", Params = new[] { "UInt4x4", "UInt4x4", "UInt4x4" } }
}
},
new
{
Name = "Max",
HlslName = "max",
Summary = "Selects the greater between two inputs.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-max",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The first input value." },
new { IsOut = false, Name = "y", Info = "The second input value." }
},
Returns = "The {param=x} or {param=y} parameter, whichever is the largest value.",
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" } },
new { Return = "double", Params = new[] { "double", "double" } },
new { Return = "Double2", Params = new[] { "Double2", "Double2" } },
new { Return = "Double3", Params = new[] { "Double3", "Double3" } },
new { Return = "Double4", Params = new[] { "Double4", "Double4" } },
new { Return = "Double1x1", Params = new[] { "Double1x1", "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Double1x2", "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Double1x3", "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Double1x4", "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Double2x1", "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Double2x2", "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Double2x3", "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Double2x4", "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Double3x1", "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Double3x2", "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Double3x3", "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Double3x4", "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Double4x1", "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Double4x2", "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Double4x3", "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Double4x4", "Double4x4" } },
new { Return = "int", Params = new[] { "int", "int" } },
new { Return = "Int2", Params = new[] { "Int2", "Int2" } },
new { Return = "Int3", Params = new[] { "Int3", "Int3" } },
new { Return = "Int4", Params = new[] { "Int4", "Int4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4", "Int4x4" } }
}
},
new
{
Name = "Min",
HlslName = "min",
Summary = "Selects the lesser between two inputs.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-min",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The first input value." },
new { IsOut = false, Name = "y", Info = "The second input value." }
},
Returns = "The {param=x} or {param=y} parameter, whichever is the smallest value.",
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" } },
new { Return = "double", Params = new[] { "double", "double" } },
new { Return = "Double2", Params = new[] { "Double2", "Double2" } },
new { Return = "Double3", Params = new[] { "Double3", "Double3" } },
new { Return = "Double4", Params = new[] { "Double4", "Double4" } },
new { Return = "Double1x1", Params = new[] { "Double1x1", "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Double1x2", "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Double1x3", "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Double1x4", "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Double2x1", "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Double2x2", "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Double2x3", "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Double2x4", "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Double3x1", "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Double3x2", "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Double3x3", "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Double3x4", "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Double4x1", "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Double4x2", "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Double4x3", "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Double4x4", "Double4x4" } },
new { Return = "int", Params = new[] { "int", "int" } },
new { Return = "Int2", Params = new[] { "Int2", "Int2" } },
new { Return = "Int3", Params = new[] { "Int3", "Int3" } },
new { Return = "Int4", Params = new[] { "Int4", "Int4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4", "Int4x4" } }
}
},
new
{
Name = "Modf",
HlslName = "modf",
Summary = "Splits a value into fractional and integer parts, each with the same sign as the input value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-modf",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." },
new { IsOut = true, Name = "y", Info = "The resulting integer portion." }
},
Returns = "The signed-fractional portion of {param=x}.",
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" } },
new { Return = "int", Params = new[] { "int", "int" } },
new { Return = "Int2", Params = new[] { "Int2", "Int2" } },
new { Return = "Int3", Params = new[] { "Int3", "Int3" } },
new { Return = "Int4", Params = new[] { "Int4", "Int4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4", "Int4x4" } }
}
},
new
{
Name = "Mul",
HlslName = "mul",
Summary = "Multiplies two values using matrix math.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The first input value." },
new { IsOut = false, Name = "y", Info = "The second input value." }
},
Returns = "The result of {param=x} times {param=y}. The result has the dimension {param=x}-rows by {param=y}-columns.",
Overloads = new[]
{
// 1 (scalars)
new { Return = "float", Params = new[] { "float", "float" } },
new { Return = "int", Params = new[] { "int", "int" } },
// 2 (scalar by vector)
new { Return = "Float2", Params = new[] { "float", "Float2" } },
new { Return = "Float3", Params = new[] { "float", "Float3" } },
new { Return = "Float4", Params = new[] { "float", "Float4" } },
new { Return = "Int2", Params = new[] { "int", "Int2" } },
new { Return = "Int3", Params = new[] { "int", "Int3" } },
new { Return = "Int4", Params = new[] { "int", "Int4" } },
// 3 (scalar by matrix)
new { Return = "Float1x1", Params = new[] { "float", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "float", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "float", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "float", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "float", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "float", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "float", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "float", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "float", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "float", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "float", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "float", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "float", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "float", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "float", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "float", "Float4x4" } },
new { Return = "Int1x1", Params = new[] { "int", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "int", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "int", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "int", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "int", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "int", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "int", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "int", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "int", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "int", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "int", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "int", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "int", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "int", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "int", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "int", "Int4x4" } },
// 4 (vector by scalar)
new { Return = "Float2", Params = new[] { "Float2", "float" } },
new { Return = "Float3", Params = new[] { "Float3", "float" } },
new { Return = "Float4", Params = new[] { "Float4", "float" } },
new { Return = "Int2", Params = new[] { "Int2", "int" } },
new { Return = "Int3", Params = new[] { "Int3", "int" } },
new { Return = "Int4", Params = new[] { "Int4", "int" } },
// 5 (vector by vector)
new { Return = "float", Params = new[] { "Float2", "Float2" } },
new { Return = "float", Params = new[] { "Float3", "Float3" } },
new { Return = "float", Params = new[] { "Float4", "Float4" } },
new { Return = "int", Params = new[] { "Int2", "Int2" } },
new { Return = "int", Params = new[] { "Int3", "Int3" } },
new { Return = "int", Params = new[] { "Int4", "Int4" } },
// 6 (vector by matrix)
new { Return = "float", Params = new[] { "Float2", "Float2x1" } },
new { Return = "Float2", Params = new[] { "Float2", "Float2x2" } },
new { Return = "Float3", Params = new[] { "Float2", "Float2x3" } },
new { Return = "Float4", Params = new[] { "Float2", "Float2x4" } },
new { Return = "float", Params = new[] { "Float3", "Float3x1" } },
new { Return = "Float2", Params = new[] { "Float3", "Float3x2" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3x3" } },
new { Return = "Float4", Params = new[] { "Float3", "Float3x4" } },
new { Return = "float", Params = new[] { "Float4", "Float4x1" } },
new { Return = "Float2", Params = new[] { "Float4", "Float4x2" } },
new { Return = "Float3", Params = new[] { "Float4", "Float4x3" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4x4" } },
new { Return = "int", Params = new[] { "Int2", "Int2x1" } },
new { Return = "Int2", Params = new[] { "Int2", "Int2x2" } },
new { Return = "Int3", Params = new[] { "Int2", "Int2x3" } },
new { Return = "Int4", Params = new[] { "Int2", "Int2x4" } },
new { Return = "int", Params = new[] { "Int3", "Int3x1" } },
new { Return = "Int2", Params = new[] { "Int3", "Int3x2" } },
new { Return = "Int3", Params = new[] { "Int3", "Int3x3" } },
new { Return = "Int4", Params = new[] { "Int3", "Int3x4" } },
new { Return = "int", Params = new[] { "Int4", "Int4x1" } },
new { Return = "Int2", Params = new[] { "Int4", "Int4x2" } },
new { Return = "Int3", Params = new[] { "Int4", "Int4x3" } },
new { Return = "Int4", Params = new[] { "Int4", "Int4x4" } },
// 7 (matrix by scalar)
new { Return = "Float1x1", Params = new[] { "Float1x1", "float" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "float" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "float" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "float" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "float" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "float" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "float" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "float" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "float" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "float" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "float" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "float" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "float" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "float" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "float" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "float" } },
new { Return = "Int1x1", Params = new[] { "Int1x1", "int" } },
new { Return = "Int1x2", Params = new[] { "Int1x2", "int" } },
new { Return = "Int1x3", Params = new[] { "Int1x3", "int" } },
new { Return = "Int1x4", Params = new[] { "Int1x4", "int" } },
new { Return = "Int2x1", Params = new[] { "Int2x1", "int" } },
new { Return = "Int2x2", Params = new[] { "Int2x2", "int" } },
new { Return = "Int2x3", Params = new[] { "Int2x3", "int" } },
new { Return = "Int2x4", Params = new[] { "Int2x4", "int" } },
new { Return = "Int3x1", Params = new[] { "Int3x1", "int" } },
new { Return = "Int3x2", Params = new[] { "Int3x2", "int" } },
new { Return = "Int3x3", Params = new[] { "Int3x3", "int" } },
new { Return = "Int3x4", Params = new[] { "Int3x4", "int" } },
new { Return = "Int4x1", Params = new[] { "Int4x1", "int" } },
new { Return = "Int4x2", Params = new[] { "Int4x2", "int" } },
new { Return = "Int4x3", Params = new[] { "Int4x3", "int" } },
new { Return = "Int4x4", Params = new[] { "Int4x4", "int" } },
// 8 (matrix by vector)
new { Return = "float", Params = new[] { "Float1x2", "Float2" } },
new { Return = "float", Params = new[] { "Float1x3", "Float3" } },
new { Return = "float", Params = new[] { "Float1x4", "Float4" } },
new { Return = "Float2", Params = new[] { "Float2x2", "Float2" } },
new { Return = "Float2", Params = new[] { "Float2x3", "Float3" } },
new { Return = "Float2", Params = new[] { "Float2x4", "Float4" } },
new { Return = "Float3", Params = new[] { "Float3x2", "Float2" } },
new { Return = "Float3", Params = new[] { "Float3x3", "Float3" } },
new { Return = "Float3", Params = new[] { "Float3x4", "Float4" } },
new { Return = "Float4", Params = new[] { "Float4x2", "Float2" } },
new { Return = "Float4", Params = new[] { "Float4x3", "Float3" } },
new { Return = "Float4", Params = new[] { "Float4x4", "Float4" } },
new { Return = "int", Params = new[] { "Int1x2", "Int2" } },
new { Return = "int", Params = new[] { "Int1x3", "Int3" } },
new { Return = "int", Params = new[] { "Int1x4", "Int4" } },
new { Return = "Int2", Params = new[] { "Int2x2", "Int2" } },
new { Return = "Int2", Params = new[] { "Int2x3", "Int3" } },
new { Return = "Int2", Params = new[] { "Int2x4", "Int4" } },
new { Return = "Int3", Params = new[] { "Int3x2", "Int2" } },
new { Return = "Int3", Params = new[] { "Int3x3", "Int3" } },
new { Return = "Int3", Params = new[] { "Int3x4", "Int4" } },
new { Return = "Int4", Params = new[] { "Int4x2", "Int2" } },
new { Return = "Int4", Params = new[] { "Int4x3", "Int3" } },
new { Return = "Int4", Params = new[] { "Int4x4", "Int4" } },
// 9 (matrix by matrix)
new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x1", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x1", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x1", "Float1x4" } },
new { Return = "Float1x1", Params = new[] { "Float1x2", "Float2x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "Float2x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x2", "Float2x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x2", "Float2x4" } },
new { Return = "Float1x1", Params = new[] { "Float1x3", "Float3x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x3", "Float3x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "Float3x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x3", "Float3x4" } },
new { Return = "Float1x1", Params = new[] { "Float1x4", "Float4x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x4", "Float4x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x4", "Float4x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "Float4x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "Float1x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x1", "Float1x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x1", "Float1x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x1", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x2", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x2", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x2", "Float2x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x3", "Float3x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x3", "Float3x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "Float3x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x3", "Float3x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x4", "Float4x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x4", "Float4x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x4", "Float4x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "Float4x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "Float1x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x1", "Float1x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x1", "Float1x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x1", "Float1x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x2", "Float2x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "Float2x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x2", "Float2x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x2", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x3", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x3", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x3", "Float3x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x4", "Float4x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x4", "Float4x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x4", "Float4x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "Float4x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "Float1x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x1", "Float1x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x1", "Float1x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x1", "Float1x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x2", "Float2x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "Float2x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x2", "Float2x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x2", "Float2x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x3", "Float3x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x3", "Float3x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "Float3x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x3", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x4", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x4", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x4", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x1", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x1", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x1", "Int1x4" } },
new { Return = "Int1x1", Params = new[] { "Int1x2", "Int2x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2", "Int2x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x2", "Int2x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x2", "Int2x4" } },
new { Return = "Int1x1", Params = new[] { "Int1x3", "Int3x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x3", "Int3x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3", "Int3x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x3", "Int3x4" } },
new { Return = "Int1x1", Params = new[] { "Int1x4", "Int4x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x4", "Int4x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x4", "Int4x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4", "Int4x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1", "Int1x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x1", "Int1x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x1", "Int1x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x1", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x2", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x2", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x2", "Int2x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x3", "Int3x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x3", "Int3x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3", "Int3x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x3", "Int3x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x4", "Int4x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x4", "Int4x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x4", "Int4x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4", "Int4x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1", "Int1x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x1", "Int1x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x1", "Int1x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x1", "Int1x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x2", "Int2x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2", "Int2x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x2", "Int2x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x2", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x3", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x3", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x3", "Int3x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x4", "Int4x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x4", "Int4x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x4", "Int4x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4", "Int4x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1", "Int1x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x1", "Int1x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x1", "Int1x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x1", "Int1x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x2", "Int2x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2", "Int2x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x2", "Int2x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x2", "Int2x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x3", "Int3x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x3", "Int3x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3", "Int3x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x3", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x4", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x4", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x4", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4", "Int4x4" } },
}
},
new
{
Name = "Normalize",
HlslName = "normalize",
Summary = "Normalizes the specified floating-point vector according to x / length(x).",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-normalize",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified floating-point vector." }
},
Returns = "The normalized {param=x} parameter. If the length of the {param=x} parameter is 0, the result is indefinite.",
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 = "Or",
HlslName = "__Or",
Summary = "Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.",
Url = "https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-operators#boolean-math-operators",
Parameters = new[]
{
new { IsOut = false, Name = "left", Info = "The first input vector or matrix value." },
new { IsOut = false, Name = "right", Info = "The second input vector or matrix value." }
},
Returns = "The new vector or matrix value with elements resulting from the boolean operation.",
Overloads = new[]
{
new { Return = "Bool2", Params = new[] { "Bool2", "Bool2" } },
new { Return = "Bool3", Params = new[] { "Bool3", "Bool3" } },
new { Return = "Bool4", Params = new[] { "Bool4", "Bool4" } },
new { Return = "Bool1x1", Params = new[] { "Bool1x1", "Bool1x1" } },
new { Return = "Bool1x2", Params = new[] { "Bool1x2", "Bool1x2" } },
new { Return = "Bool1x3", Params = new[] { "Bool1x3", "Bool1x3" } },
new { Return = "Bool1x4", Params = new[] { "Bool1x4", "Bool1x4" } },
new { Return = "Bool2x1", Params = new[] { "Bool2x1", "Bool2x1" } },
new { Return = "Bool2x2", Params = new[] { "Bool2x2", "Bool2x2" } },
new { Return = "Bool2x3", Params = new[] { "Bool2x3", "Bool2x3" } },
new { Return = "Bool2x4", Params = new[] { "Bool2x4", "Bool2x4" } },
new { Return = "Bool3x1", Params = new[] { "Bool3x1", "Bool3x1" } },
new { Return = "Bool3x2", Params = new[] { "Bool3x2", "Bool3x2" } },
new { Return = "Bool3x3", Params = new[] { "Bool3x3", "Bool3x3" } },
new { Return = "Bool3x4", Params = new[] { "Bool3x4", "Bool3x4" } },
new { Return = "Bool4x1", Params = new[] { "Bool4x1", "Bool4x1" } },
new { Return = "Bool4x2", Params = new[] { "Bool4x2", "Bool4x2" } },
new { Return = "Bool4x3", Params = new[] { "Bool4x3", "Bool4x3" } },
new { Return = "Bool4x4", Params = new[] { "Bool4x4", "Bool4x4" } }
}
},
new
{
Name = "Pow",
HlslName = "pow",
Summary = "Returns the specified value raised to the specified power.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-pow",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." },
new { IsOut = false, Name = "y", Info = "The specified power." }
},
Returns = "The {param=x} parameter raised to the power of the {param=y} parameter.",
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" } }
}
},
new
{
Name = "Radians",
HlslName = "radians",
Summary = "Converts the specified value from degrees to radians.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-radians",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The {param=x} parameter converted from degrees to radians.",
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 = "Rcp",
HlslName = "rcp",
Summary = "Calculates a fast, approximate, per-component reciprocal.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/rcp",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The reciprocal of the {param=x} 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 { Return = "double", Params = new[] { "double" } },
new { Return = "Double2", Params = new[] { "Double2" } },
new { Return = "Double3", Params = new[] { "Double3" } },
new { Return = "Double4", Params = new[] { "Double4" } },
new { Return = "Double1x1", Params = new[] { "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Double4x4" } }
}
},
new
{
Name = "Reflect",
HlslName = "reflect",
Summary = "Returns a reflection vector using an incident ray and a surface normal.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-reflect",
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" } }
}
},
new
{
Name = "Refract",
HlslName = "refract",
Summary = "Returns a refraction vector using an entering ray, a surface normal, and a refraction index.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-refract",
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 {param=i} and the surface normal {param=n} is too great for a given refraction index {param=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" } }
}
},
new
{
Name = "ReverseBits",
HlslName = "reversebits",
Summary = "Reverses the order of the bits, per component.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/reversebits",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The input value." }
},
Returns = "The input value, with the bit order reversed.",
Overloads = new[]
{
new { Return = "uint", Params = new[] { "uint" } },
new { Return = "UInt2", Params = new[] { "UInt2" } },
new { Return = "UInt3", Params = new[] { "UInt3" } },
new { Return = "UInt4", Params = new[] { "UInt4" } }
}
},
new
{
Name = "Round",
HlslName = "round",
Summary = "Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-round",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The {param=x} parameter, rounded to the nearest integer within a floating-point type.",
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 = "Rsqrt",
HlslName = "rsqrt",
Summary = "Returns the reciprocal of the square root of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-rsqrt",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The reciprocal of the square root of the {param=x} 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 = "Saturate",
HlslName = "saturate",
Summary = "Clamps the specified value within the range of 0 to 1.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-saturate",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "The {param=x} parameter, clamped within the range of 0 to 1.",
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 { Return = "double", Params = new[] { "double" } },
new { Return = "Double2", Params = new[] { "Double2" } },
new { Return = "Double3", Params = new[] { "Double3" } },
new { Return = "Double4", Params = new[] { "Double4" } },
new { Return = "Double1x1", Params = new[] { "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Double4x4" } }
}
},
new
{
Name = "Select",
HlslName = "__Select",
Summary = "Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.",
Url = "https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-operators#boolean-math-operators",
Parameters = new[]
{
new { IsOut = false, Name = "mask", Info = "The boolean mask used to drive selection." },
new { IsOut = false, Name = "left", Info = "The first input vector or matrix value." },
new { IsOut = false, Name = "right", Info = "The second input vector or matrix value." }
},
Returns = "The new vector or matrix value with elements selected based on the input mask.",
Overloads = new[]
{
new { Return = "Bool2", Params = new[] { "Bool2", "Bool2", "Bool2" } },
new { Return = "Bool3", Params = new[] { "Bool3", "Bool3", "Bool3" } },
new { Return = "Bool4", Params = new[] { "Bool4", "Bool4", "Bool4" } },
new { Return = "Bool1x1", Params = new[] { "Bool1x1", "Bool1x1", "Bool1x1" } },
new { Return = "Bool1x2", Params = new[] { "Bool1x2", "Bool1x2", "Bool1x2" } },
new { Return = "Bool1x3", Params = new[] { "Bool1x3", "Bool1x3", "Bool1x3" } },
new { Return = "Bool1x4", Params = new[] { "Bool1x4", "Bool1x4", "Bool1x4" } },
new { Return = "Bool2x1", Params = new[] { "Bool2x1", "Bool2x1", "Bool2x1" } },
new { Return = "Bool2x2", Params = new[] { "Bool2x2", "Bool2x2", "Bool2x2" } },
new { Return = "Bool2x3", Params = new[] { "Bool2x3", "Bool2x3", "Bool2x3" } },
new { Return = "Bool2x4", Params = new[] { "Bool2x4", "Bool2x4", "Bool2x4" } },
new { Return = "Bool3x1", Params = new[] { "Bool3x1", "Bool3x1", "Bool3x1" } },
new { Return = "Bool3x2", Params = new[] { "Bool3x2", "Bool3x2", "Bool3x2" } },
new { Return = "Bool3x3", Params = new[] { "Bool3x3", "Bool3x3", "Bool3x3" } },
new { Return = "Bool3x4", Params = new[] { "Bool3x4", "Bool3x4", "Bool3x4" } },
new { Return = "Bool4x1", Params = new[] { "Bool4x1", "Bool4x1", "Bool4x1" } },
new { Return = "Bool4x2", Params = new[] { "Bool4x2", "Bool4x2", "Bool4x2" } },
new { Return = "Bool4x3", Params = new[] { "Bool4x3", "Bool4x3", "Bool4x3" } },
new { Return = "Bool4x4", Params = new[] { "Bool4x4", "Bool4x4", "Bool4x4" } },
new { Return = "Float2", Params = new[] { "Bool2", "Float2", "Float2" } },
new { Return = "Float3", Params = new[] { "Bool3", "Float3", "Float3" } },
new { Return = "Float4", Params = new[] { "Bool4", "Float4", "Float4" } },
new { Return = "Float1x1", Params = new[] { "Bool1x1", "Float1x1", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Bool1x2", "Float1x2", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Bool1x3", "Float1x3", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Bool1x4", "Float1x4", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Bool2x1", "Float2x1", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Bool2x2", "Float2x2", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Bool2x3", "Float2x3", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Bool2x4", "Float2x4", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Bool3x1", "Float3x1", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Bool3x2", "Float3x2", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Bool3x3", "Float3x3", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Bool3x4", "Float3x4", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Bool4x1", "Float4x1", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Bool4x2", "Float4x2", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Bool4x3", "Float4x3", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Bool4x4", "Float4x4", "Float4x4" } },
new { Return = "Double2", Params = new[] { "Bool2", "Double2", "Double2" } },
new { Return = "Double3", Params = new[] { "Bool3", "Double3", "Double3" } },
new { Return = "Double4", Params = new[] { "Bool4", "Double4", "Double4" } },
new { Return = "Double1x1", Params = new[] { "Bool1x1", "Double1x1", "Double1x1" } },
new { Return = "Double1x2", Params = new[] { "Bool1x2", "Double1x2", "Double1x2" } },
new { Return = "Double1x3", Params = new[] { "Bool1x3", "Double1x3", "Double1x3" } },
new { Return = "Double1x4", Params = new[] { "Bool1x4", "Double1x4", "Double1x4" } },
new { Return = "Double2x1", Params = new[] { "Bool2x1", "Double2x1", "Double2x1" } },
new { Return = "Double2x2", Params = new[] { "Bool2x2", "Double2x2", "Double2x2" } },
new { Return = "Double2x3", Params = new[] { "Bool2x3", "Double2x3", "Double2x3" } },
new { Return = "Double2x4", Params = new[] { "Bool2x4", "Double2x4", "Double2x4" } },
new { Return = "Double3x1", Params = new[] { "Bool3x1", "Double3x1", "Double3x1" } },
new { Return = "Double3x2", Params = new[] { "Bool3x2", "Double3x2", "Double3x2" } },
new { Return = "Double3x3", Params = new[] { "Bool3x3", "Double3x3", "Double3x3" } },
new { Return = "Double3x4", Params = new[] { "Bool3x4", "Double3x4", "Double3x4" } },
new { Return = "Double4x1", Params = new[] { "Bool4x1", "Double4x1", "Double4x1" } },
new { Return = "Double4x2", Params = new[] { "Bool4x2", "Double4x2", "Double4x2" } },
new { Return = "Double4x3", Params = new[] { "Bool4x3", "Double4x3", "Double4x3" } },
new { Return = "Double4x4", Params = new[] { "Bool4x4", "Double4x4", "Double4x4" } },
new { Return = "Int2", Params = new[] { "Bool2", "Int2", "Int2" } },
new { Return = "Int3", Params = new[] { "Bool3", "Int3", "Int3" } },
new { Return = "Int4", Params = new[] { "Bool4", "Int4", "Int4" } },
new { Return = "Int1x1", Params = new[] { "Bool1x1", "Int1x1", "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Bool1x2", "Int1x2", "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Bool1x3", "Int1x3", "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Bool1x4", "Int1x4", "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Bool2x1", "Int2x1", "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Bool2x2", "Int2x2", "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Bool2x3", "Int2x3", "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Bool2x4", "Int2x4", "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Bool3x1", "Int3x1", "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Bool3x2", "Int3x2", "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Bool3x3", "Int3x3", "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Bool3x4", "Int3x4", "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Bool4x1", "Int4x1", "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Bool4x2", "Int4x2", "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Bool4x3", "Int4x3", "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Bool4x4", "Int4x4", "Int4x4" } },
new { Return = "UInt2", Params = new[] { "Bool2", "UInt2", "UInt2" } },
new { Return = "UInt3", Params = new[] { "Bool3", "UInt3", "UInt3" } },
new { Return = "UInt4", Params = new[] { "Bool4", "UInt4", "UInt4" } },
new { Return = "UInt1x1", Params = new[] { "Bool1x1", "UInt1x1", "UInt1x1" } },
new { Return = "UInt1x2", Params = new[] { "Bool1x2", "UInt1x2", "UInt1x2" } },
new { Return = "UInt1x3", Params = new[] { "Bool1x3", "UInt1x3", "UInt1x3" } },
new { Return = "UInt1x4", Params = new[] { "Bool1x4", "UInt1x4", "UInt1x4" } },
new { Return = "UInt2x1", Params = new[] { "Bool2x1", "UInt2x1", "UInt2x1" } },
new { Return = "UInt2x2", Params = new[] { "Bool2x2", "UInt2x2", "UInt2x2" } },
new { Return = "UInt2x3", Params = new[] { "Bool2x3", "UInt2x3", "UInt2x3" } },
new { Return = "UInt2x4", Params = new[] { "Bool2x4", "UInt2x4", "UInt2x4" } },
new { Return = "UInt3x1", Params = new[] { "Bool3x1", "UInt3x1", "UInt3x1" } },
new { Return = "UInt3x2", Params = new[] { "Bool3x2", "UInt3x2", "UInt3x2" } },
new { Return = "UInt3x3", Params = new[] { "Bool3x3", "UInt3x3", "UInt3x3" } },
new { Return = "UInt3x4", Params = new[] { "Bool3x4", "UInt3x4", "UInt3x4" } },
new { Return = "UInt4x1", Params = new[] { "Bool4x1", "UInt4x1", "UInt4x1" } },
new { Return = "UInt4x2", Params = new[] { "Bool4x2", "UInt4x2", "UInt4x2" } },
new { Return = "UInt4x3", Params = new[] { "Bool4x3", "UInt4x3", "UInt4x3" } },
new { Return = "UInt4x4", Params = new[] { "Bool4x4", "UInt4x4", "UInt4x4" } }
}
},
new
{
Name = "Sign",
HlslName = "sign",
Summary = "Returns the sign of the input value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-sign",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value." }
},
Returns = "Returns -1 if {param=x} is less than zero; 0 if {param=x} equals zero; and 1 if {param=x} is greater than zero.",
Overloads = new[]
{
new { Return = "int", Params = new[] { "float" } },
new { Return = "Int2", Params = new[] { "Float2" } },
new { Return = "Int3", Params = new[] { "Float3" } },
new { Return = "Int4", Params = new[] { "Float4" } },
new { Return = "Int1x1", Params = new[] { "Float1x1" } },
new { Return = "Int1x2", Params = new[] { "Float1x2" } },
new { Return = "Int1x3", Params = new[] { "Float1x3" } },
new { Return = "Int1x4", Params = new[] { "Float1x4" } },
new { Return = "Int2x1", Params = new[] { "Float2x1" } },
new { Return = "Int2x2", Params = new[] { "Float2x2" } },
new { Return = "Int2x3", Params = new[] { "Float2x3" } },
new { Return = "Int2x4", Params = new[] { "Float2x4" } },
new { Return = "Int3x1", Params = new[] { "Float3x1" } },
new { Return = "Int3x2", Params = new[] { "Float3x2" } },
new { Return = "Int3x3", Params = new[] { "Float3x3" } },
new { Return = "Int3x4", Params = new[] { "Float3x4" } },
new { Return = "Int4x1", Params = new[] { "Float4x1" } },
new { Return = "Int4x2", Params = new[] { "Float4x2" } },
new { Return = "Int4x3", Params = new[] { "Float4x3" } },
new { Return = "Int4x4", Params = new[] { "Float4x4" } },
new { Return = "int", Params = new[] { "int" } },
new { Return = "Int2", Params = new[] { "Int2" } },
new { Return = "Int3", Params = new[] { "Int3" } },
new { Return = "Int4", Params = new[] { "Int4" } },
new { Return = "Int1x1", Params = new[] { "Int1x1" } },
new { Return = "Int1x2", Params = new[] { "Int1x2" } },
new { Return = "Int1x3", Params = new[] { "Int1x3" } },
new { Return = "Int1x4", Params = new[] { "Int1x4" } },
new { Return = "Int2x1", Params = new[] { "Int2x1" } },
new { Return = "Int2x2", Params = new[] { "Int2x2" } },
new { Return = "Int2x3", Params = new[] { "Int2x3" } },
new { Return = "Int2x4", Params = new[] { "Int2x4" } },
new { Return = "Int3x1", Params = new[] { "Int3x1" } },
new { Return = "Int3x2", Params = new[] { "Int3x2" } },
new { Return = "Int3x3", Params = new[] { "Int3x3" } },
new { Return = "Int3x4", Params = new[] { "Int3x4" } },
new { Return = "Int4x1", Params = new[] { "Int4x1" } },
new { Return = "Int4x2", Params = new[] { "Int4x2" } },
new { Return = "Int4x3", Params = new[] { "Int4x3" } },
new { Return = "Int4x4", Params = new[] { "Int4x4" } }
}
},
new
{
Name = "Sin",
HlslName = "sin",
Summary = "Returns the sine of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-sin",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value, in radians." }
},
Returns = "The sine of the {param=x} 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 = "SinCos",
HlslName = "sincos",
Summary = "Returns the sine and cosine of a specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-sincos",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value, in radians." },
new { IsOut = true, Name = "sin", Info = "The resulting sine." },
new { IsOut = true, Name = "cos", Info = "The resulting cosine." }
},
Returns = string.Empty,
Overloads = new[]
{
new { Return = "void", Params = new[] { "float", "float", "float" } },
new { Return = "void", Params = new[] { "Float2", "Float2", "Float2" } },
new { Return = "void", Params = new[] { "Float3", "Float3", "Float3" } },
new { Return = "void", Params = new[] { "Float4", "Float4", "Float4" } },
new { Return = "void", Params = new[] { "Float1x1", "Float1x1", "Float1x1" } },
new { Return = "void", Params = new[] { "Float1x2", "Float1x2", "Float1x2" } },
new { Return = "void", Params = new[] { "Float1x3", "Float1x3", "Float1x3" } },
new { Return = "void", Params = new[] { "Float1x4", "Float1x4", "Float1x4" } },
new { Return = "void", Params = new[] { "Float2x1", "Float2x1", "Float2x1" } },
new { Return = "void", Params = new[] { "Float2x2", "Float2x2", "Float2x2" } },
new { Return = "void", Params = new[] { "Float2x3", "Float2x3", "Float2x3" } },
new { Return = "void", Params = new[] { "Float2x4", "Float2x4", "Float2x4" } },
new { Return = "void", Params = new[] { "Float3x1", "Float3x1", "Float3x1" } },
new { Return = "void", Params = new[] { "Float3x2", "Float3x2", "Float3x2" } },
new { Return = "void", Params = new[] { "Float3x3", "Float3x3", "Float3x3" } },
new { Return = "void", Params = new[] { "Float3x4", "Float3x4", "Float3x4" } },
new { Return = "void", Params = new[] { "Float4x1", "Float4x1", "Float4x1" } },
new { Return = "void", Params = new[] { "Float4x2", "Float4x2", "Float4x2" } },
new { Return = "void", Params = new[] { "Float4x3", "Float4x3", "Float4x3" } },
new { Return = "void", Params = new[] { "Float4x4", "Float4x4", "Float4x4" } }
}
},
new
{
Name = "Sinh",
HlslName = "sinh",
Summary = "Returns the hyperbolic sine of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-sinh",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value, in radians." }
},
Returns = "The hyperbolic sine of the {param=x} 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 = "SmoothStep",
HlslName = "smoothstep",
Summary = "Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-smoothstep",
Parameters = new[]
{
new { IsOut = false, Name = "min", Info = "The specified minimum range." },
new { IsOut = false, Name = "max", Info = "The specified maximum range." },
new { IsOut = false, Name = "x", Info = "The specified value to be interpolated." }
},
Returns = "Returns 0 if {param=x} is less than {param=min}; 1 if {param=x} is greater than {param=max}; otherwise, a value between 0 and 1 if {param=x} is in the range [{param=min}, {param=max}].",
Overloads = new[]
{
new { Return = "float", Params = new[] { "float", "float", "float" } },
new { Return = "Float2", Params = new[] { "Float2", "Float2", "Float2" } },
new { Return = "Float3", Params = new[] { "Float3", "Float3", "Float3" } },
new { Return = "Float4", Params = new[] { "Float4", "Float4", "Float4" } },
new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1", "Float1x1" } },
new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2", "Float1x2" } },
new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3", "Float1x3" } },
new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4", "Float1x4" } },
new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1", "Float2x1" } },
new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2", "Float2x2" } },
new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3", "Float2x3" } },
new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4", "Float2x4" } },
new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1", "Float3x1" } },
new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2", "Float3x2" } },
new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3", "Float3x3" } },
new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4", "Float3x4" } },
new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1", "Float4x1" } },
new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2", "Float4x2" } },
new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3", "Float4x3" } },
new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4", "Float4x4" } }
}
},
new
{
Name = "Sqrt",
HlslName = "sqrt",
Summary = "Returns the square root of the specified floating-point value, per component.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-sqrt",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified floating-point value." }
},
Returns = "The square root of the {param=x} parameter, per component.",
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 = "Step",
HlslName = "step",
Summary = "Compares two values, returning 0 or 1 based on which value is greater.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-step",
Parameters = new[]
{
new { IsOut = false, Name = "y", Info = "The first specified floating-point value." },
new { IsOut = false, Name = "x", Info = "The second specified floating-point value." }
},
Returns = "1 if the {param=x} parameter is greater than or equal to the {param=y} parameter; otherwise, 0.",
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" } }
}
},
new
{
Name = "Tan",
HlslName = "tan",
Summary = "Returns the tangent of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-tan",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value, in radians." }
},
Returns = "The tangent of the {param=x} 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 = "Tanh",
HlslName = "tanh",
Summary = "Returns the hyperbolic tangent of the specified value.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-tanh",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified value, in radians." }
},
Returns = "The hyperbolic tangent of the {param=x} 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 = "Transpose",
HlslName = "transpose",
Summary = "Transposes the specified input matrix.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-transpose",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified matrix." }
},
Returns = "The transposed value of the {param=x} parameter.",
Overloads = new[]
{
new { Return = "Float2x1", Params = new[] { "Float1x2" } },
new { Return = "Float3x1", Params = new[] { "Float1x3" } },
new { Return = "Float4x1", Params = new[] { "Float1x4" } },
new { Return = "Float1x2", Params = new[] { "Float2x1" } },
new { Return = "Float3x2", Params = new[] { "Float2x3" } },
new { Return = "Float4x2", Params = new[] { "Float2x4" } },
new { Return = "Float1x3", Params = new[] { "Float3x1" } },
new { Return = "Float2x3", Params = new[] { "Float3x2" } },
new { Return = "Float4x3", Params = new[] { "Float3x4" } },
new { Return = "Float1x4", Params = new[] { "Float4x1" } },
new { Return = "Float2x4", Params = new[] { "Float4x2" } },
new { Return = "Float3x4", Params = new[] { "Float4x3" } },
new { Return = "Int2x1", Params = new[] { "Int1x2" } },
new { Return = "Int3x1", Params = new[] { "Int1x3" } },
new { Return = "Int4x1", Params = new[] { "Int1x4" } },
new { Return = "Int1x2", Params = new[] { "Int2x1" } },
new { Return = "Int3x2", Params = new[] { "Int2x3" } },
new { Return = "Int4x2", Params = new[] { "Int2x4" } },
new { Return = "Int1x3", Params = new[] { "Int3x1" } },
new { Return = "Int2x3", Params = new[] { "Int3x2" } },
new { Return = "Int4x3", Params = new[] { "Int3x4" } },
new { Return = "Int1x4", Params = new[] { "Int4x1" } },
new { Return = "Int2x4", Params = new[] { "Int4x2" } },
new { Return = "Int3x4", Params = new[] { "Int4x3" } },
new { Return = "Bool2x1", Params = new[] { "Bool1x2" } },
new { Return = "Bool3x1", Params = new[] { "Bool1x3" } },
new { Return = "Bool4x1", Params = new[] { "Bool1x4" } },
new { Return = "Bool1x2", Params = new[] { "Bool2x1" } },
new { Return = "Bool3x2", Params = new[] { "Bool2x3" } },
new { Return = "Bool4x2", Params = new[] { "Bool2x4" } },
new { Return = "Bool1x3", Params = new[] { "Bool3x1" } },
new { Return = "Bool2x3", Params = new[] { "Bool3x2" } },
new { Return = "Bool4x3", Params = new[] { "Bool3x4" } },
new { Return = "Bool1x4", Params = new[] { "Bool4x1" } },
new { Return = "Bool2x4", Params = new[] { "Bool4x2" } },
new { Return = "Bool3x4", Params = new[] { "Bool4x3" } },
}
},
new
{
Name = "Trunc",
HlslName = "trunc",
Summary = "Truncates a floating-point value to the integer component.",
Url = "https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-trunc",
Parameters = new[]
{
new { IsOut = false, Name = "x", Info = "The specified input." }
},
Returns = "The input value truncated to an integer component.",
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" } }
}
}
};
#>