Rename ConditionalSelect intrinsic to Select
このコミットが含まれているのは:
1 親
521c8168d0
コミット
622f2cf88a
5ファイル変更
+1450
-1451
検索条件に一致するファイルはありません
+1330
-1330
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -649,118 +649,6 @@ var Intrinsics = new[]
|
||||
}
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "ConditionalSelect",
|
||||
HlslName = "__ConditionalSelect",
|
||||
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 = "Cos",
|
||||
HlslName = "cos",
|
||||
@@ -2736,6 +2624,117 @@ var Intrinsics = new[]
|
||||
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",
|
||||
|
||||
@@ -465,12 +465,12 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter
|
||||
// This path should only ever be reached for valid ones.
|
||||
switch (method)
|
||||
{
|
||||
// Conditional select invocations are rewritten as follows:
|
||||
// Select invocations are rewritten as follows:
|
||||
//
|
||||
// C#: Hlsl.ConditionalSelect(mask, left, right)
|
||||
// C#: Hlsl.Select(mask, left, right)
|
||||
// HLSL (DX12): select(mask, left, right)
|
||||
// HLSL (D2D1): (mask ? left : right)
|
||||
case "ConditionalSelect":
|
||||
case "Select":
|
||||
#if D3D12_SOURCE_GENERATOR
|
||||
return updatedNode.WithExpression(IdentifierName("select"));
|
||||
#else
|
||||
|
||||
@@ -110,19 +110,19 @@ public partial class ShaderRewriterTests
|
||||
float4 float4_1 = new(1, 2, 3.14f, 4);
|
||||
float4 float4_2 = new(5, 6, 7, 8);
|
||||
|
||||
float4 float4_r = Hlsl.ConditionalSelect(mask4, float4_1, float4_2);
|
||||
float4 float4_r = Hlsl.Select(mask4, float4_1, float4_2);
|
||||
|
||||
bool1x3 mask1x3 = new(true, true, false);
|
||||
int1x3 int1x3_1 = new(1, 2, 3);
|
||||
int1x3 int1x3_2 = new(4, 5, 6);
|
||||
|
||||
int1x3 int1x3_r = Hlsl.ConditionalSelect(mask1x3, int1x3_1, int1x3_2);
|
||||
int1x3 int1x3_r = Hlsl.Select(mask1x3, int1x3_1, int1x3_2);
|
||||
|
||||
bool2x4 mask2x4 = new(true, true, false, true, false, false, false, true);
|
||||
uint2x4 uint2x4_1 = new(1, 2, 3, 4, 5, 6, 7, 8);
|
||||
uint2x4 uint2x4_2 = new(111, 222, 333, 444, 555, 666, 777, 888);
|
||||
|
||||
uint2x4 uint2x4_r = Hlsl.ConditionalSelect(mask2x4, uint2x4_1, uint2x4_2);
|
||||
uint2x4 uint2x4_r = Hlsl.Select(mask2x4, uint2x4_1, uint2x4_2);
|
||||
|
||||
float2x2 f2x2_r = (float2x4)uint2x4_r * new float4x2(float4_r.XY, float4_r.ZW, new float2(int1x3_r.M11, int1x3_r.M12), new float2(int1x3_r.M13, 1.0f));
|
||||
|
||||
|
||||
@@ -1159,7 +1159,7 @@ public partial class ShaderRewriterTests
|
||||
float4 float4_1 = new(1, 2, 3.14f, 4);
|
||||
float4 float4_2 = new(5, 6, 7, 8);
|
||||
|
||||
float4 float4_r = Hlsl.ConditionalSelect(mask4, float4_1, float4_2);
|
||||
float4 float4_r = Hlsl.Select(mask4, float4_1, float4_2);
|
||||
|
||||
buffer1[0] = float4_r.X;
|
||||
buffer1[1] = float4_r.Y;
|
||||
@@ -1170,7 +1170,7 @@ public partial class ShaderRewriterTests
|
||||
int1x3 int1x3_1 = new(1, 2, 3);
|
||||
int1x3 int1x3_2 = new(4, 5, 6);
|
||||
|
||||
int1x3 int1x3_r = Hlsl.ConditionalSelect(mask1x3, int1x3_1, int1x3_2);
|
||||
int1x3 int1x3_r = Hlsl.Select(mask1x3, int1x3_1, int1x3_2);
|
||||
|
||||
buffer2[0] = int1x3_r.M11;
|
||||
buffer2[1] = int1x3_r.M12;
|
||||
@@ -1180,7 +1180,7 @@ public partial class ShaderRewriterTests
|
||||
uint2x4 uint2x4_1 = new(1, 2, 3, 4, 5, 6, 7, 8);
|
||||
uint2x4 uint2x4_2 = new(111, 222, 333, 444, 555, 666, 777, 888);
|
||||
|
||||
uint2x4 uint2x4_r = Hlsl.ConditionalSelect(mask2x4, uint2x4_1, uint2x4_2);
|
||||
uint2x4 uint2x4_r = Hlsl.Select(mask2x4, uint2x4_1, uint2x4_2);
|
||||
|
||||
buffer3[0] = uint2x4_r.M11;
|
||||
buffer3[1] = uint2x4_r.M12;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする