From f0ee13e243a8cbbc2a6f8516ef2034e6e7e26e11 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 14:40:49 +0200 Subject: [PATCH 01/12] Move mul() overload info to separate .ttinclude file --- .../Intrinsics/Hlsl.MulOverloads.ttinclude | 284 ++++++++++++++++++ .../Intrinsics/Hlsl.ttinclude | 3 +- .../Primitives/VectorType.ttinclude | 3 +- 3 files changed, 286 insertions(+), 4 deletions(-) create mode 100644 src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude b/src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude new file mode 100644 index 00000000..ab6c8918 --- /dev/null +++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude @@ -0,0 +1,284 @@ +<#@ template debug="false" hostspecific="false" language="C#" #> +<#@ assembly name="System.Core" #> +<# +var MulOverloads = 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" } }, +}; +#> \ No newline at end of file diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude b/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude index 10f4e195..ba21edee 100644 --- a/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude +++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude @@ -1,5 +1,4 @@ -<#@ template debug="false" hostspecific="false" language="C#" #> -<#@ assembly name="System.Core" #> +<#@include file="Hlsl.MulOverloads.ttinclude" #> <#@ import namespace="System.Linq" #> <#@ import namespace="System.Text" #> <#@ import namespace="System.Text.RegularExpressions" #> diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index e97ca1ec..22a5c954 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -1,5 +1,4 @@ -<#@ template debug="false" hostspecific="false" language="C#" #> -<#@ assembly name="System.Core" #> +<#@include file="..\Intrinsics\Hlsl.MulOverloads.ttinclude" #> <#@ import namespace="System.Linq" #> <#@ import namespace="System.Text" #> <#@ import namespace="System.Text.RegularExpressions" #> From 9e16f9a7e2a6ce04771f0777137d309bfc81cf4e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 15:18:20 +0200 Subject: [PATCH 02/12] Add mul() operators to Float/Int intrinsic types --- .../Primitives/Float/Float2.g.cs | 91 +++++++++++++++++++ .../Primitives/Float/Float3.g.cs | 91 +++++++++++++++++++ .../Primitives/Float/Float4.g.cs | 91 +++++++++++++++++++ .../Primitives/Int/Int2.g.cs | 91 +++++++++++++++++++ .../Primitives/Int/Int3.g.cs | 91 +++++++++++++++++++ .../Primitives/Int/Int4.g.cs | 91 +++++++++++++++++++ .../Primitives/VectorType.ttinclude | 25 +++++ 7 files changed, 571 insertions(+) diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index b6d8ddde..ee9a79e7 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -498,6 +498,97 @@ public unsafe partial struct Float2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator *(Float2 left, Float2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(float x, Float2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(Float2 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2 input value. + /// The second Float2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static float operator *(Float2 x, Float2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2 input value. + /// The second Float2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(Float2 x, Float2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2 input value. + /// The second Float2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(Float2 x, Float2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2 input value. + /// The second Float2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(Float2 x, Float2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x2 input value. + /// The second Float2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(Float2x2 x, Float2 y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 2ae26205..1935969c 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1584,6 +1584,97 @@ public unsafe partial struct Float3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator *(Float3 left, Float3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(float x, Float3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(Float3 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3 input value. + /// The second Float3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static float operator *(Float3 x, Float3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3 input value. + /// The second Float3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(Float3 x, Float3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3 input value. + /// The second Float3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(Float3 x, Float3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3 input value. + /// The second Float3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(Float3 x, Float3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x3 input value. + /// The second Float3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(Float3x3 x, Float3 y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index 4f079788..e25e45d6 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -4230,6 +4230,97 @@ public unsafe partial struct Float4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator *(Float4 left, Float4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(float x, Float4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(Float4 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4 input value. + /// The second Float4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static float operator *(Float4 x, Float4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4 input value. + /// The second Float4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(Float4 x, Float4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4 input value. + /// The second Float4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(Float4 x, Float4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4 input value. + /// The second Float4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(Float4 x, Float4x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x4 input value. + /// The second Float4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(Float4x4 x, Float4 y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index 0fb6dc1b..a0447fd4 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -498,6 +498,97 @@ public unsafe partial struct Int2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator *(Int2 left, Int2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(int x, Int2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(Int2 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2 input value. + /// The second Int2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static int operator *(Int2 x, Int2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2 input value. + /// The second Int2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(Int2 x, Int2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2 input value. + /// The second Int2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(Int2 x, Int2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2 input value. + /// The second Int2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(Int2 x, Int2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x2 input value. + /// The second Int2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(Int2x2 x, Int2 y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index 086c6910..eacdeb6f 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1584,6 +1584,97 @@ public unsafe partial struct Int3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator *(Int3 left, Int3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(int x, Int3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(Int3 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3 input value. + /// The second Int3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static int operator *(Int3 x, Int3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3 input value. + /// The second Int3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(Int3 x, Int3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3 input value. + /// The second Int3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(Int3 x, Int3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3 input value. + /// The second Int3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(Int3 x, Int3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x3 input value. + /// The second Int3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(Int3x3 x, Int3 y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index fbcf0214..488b05c6 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -4230,6 +4230,97 @@ public unsafe partial struct Int4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator *(Int4 left, Int4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(int x, Int4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(Int4 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4 input value. + /// The second Int4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static int operator *(Int4 x, Int4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4 input value. + /// The second Int4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(Int4 x, Int4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4 input value. + /// The second Int4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(Int4 x, Int4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4 input value. + /// The second Int4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(Int4 x, Int4x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x4 input value. + /// The second Int4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(Int4x4 x, Int4 y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 22a5c954..15eb8ba4 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -354,7 +354,32 @@ public unsafe partial struct <#=typeName#> /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default; +<# + // Process all operators for the mul() intrinsic + foreach (var mulOverload in MulOverloads.Where(overload => + !(overload.Params[0] == typeName && overload.Params[1] == typeName) && + (overload.Return == typeName && overload.Params.Contains(typeName) || + !overload.Params.Contains(overload.Return) && overload.Params[0] == typeName))) + { + WriteLine(""); +#> + /// + /// Multiplies two values using matrix math. + /// + /// The first <#=mulOverload.Params[0]#> input value. + /// The second <#=mulOverload.Params[1]#> input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; +<# + } + WriteLine(""); +#> /// /// Subtracts two values. /// From 5b00df867ba3ca3f1be3be5db62e527e3f5d6cae Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 15:22:04 +0200 Subject: [PATCH 03/12] Add mul() operators to Float/Int intrinsic matrix types --- .../Primitives/Float/FloatMxN.g.cs | 1313 +++++++++++++++++ .../Primitives/Int/IntMxN.g.cs | 1313 +++++++++++++++++ .../Primitives/MatrixType.ttinclude | 28 +- 3 files changed, 2652 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index aa40978f..43cc83dd 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -125,6 +125,32 @@ public unsafe partial struct Float1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator *(Float1x1 left, Float1x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x1 operator *(float x, Float1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x1 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x1 operator *(Float1x1 x, float y) => default; + /// /// Subtracts two values. /// @@ -316,6 +342,110 @@ public unsafe partial struct Float1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator *(Float1x2 left, Float1x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x2 operator *(float x, Float1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x2 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x2 operator *(Float1x2 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x2 input value. + /// The second Float2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static float operator *(Float1x2 x, Float2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x1 input value. + /// The second Float1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x2 operator *(Float1x1 x, Float1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x2 input value. + /// The second Float2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x1 operator *(Float1x2 x, Float2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x2 input value. + /// The second Float2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x2 operator *(Float1x2 x, Float2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x2 input value. + /// The second Float2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x3 operator *(Float1x2 x, Float2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x2 input value. + /// The second Float2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x4 operator *(Float1x2 x, Float2x4 y) => default; + /// /// Subtracts two values. /// @@ -524,6 +654,110 @@ public unsafe partial struct Float1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator *(Float1x3 left, Float1x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x3 operator *(float x, Float1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x3 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x3 operator *(Float1x3 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x3 input value. + /// The second Float3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static float operator *(Float1x3 x, Float3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x1 input value. + /// The second Float1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x3 operator *(Float1x1 x, Float1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x3 input value. + /// The second Float3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x1 operator *(Float1x3 x, Float3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x3 input value. + /// The second Float3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x2 operator *(Float1x3 x, Float3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x3 input value. + /// The second Float3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x3 operator *(Float1x3 x, Float3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x3 input value. + /// The second Float3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x4 operator *(Float1x3 x, Float3x4 y) => default; + /// /// Subtracts two values. /// @@ -743,6 +977,110 @@ public unsafe partial struct Float1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator *(Float1x4 left, Float1x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x4 operator *(float x, Float1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x4 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x4 operator *(Float1x4 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x4 input value. + /// The second Float4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static float operator *(Float1x4 x, Float4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x1 input value. + /// The second Float1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x4 operator *(Float1x1 x, Float1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x4 input value. + /// The second Float4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x1 operator *(Float1x4 x, Float4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x4 input value. + /// The second Float4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x2 operator *(Float1x4 x, Float4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x4 input value. + /// The second Float4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x3 operator *(Float1x4 x, Float4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float1x4 input value. + /// The second Float4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float1x4 operator *(Float1x4 x, Float4x4 y) => default; + /// /// Subtracts two values. /// @@ -940,6 +1278,97 @@ public unsafe partial struct Float2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator *(Float2x1 left, Float2x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x1 operator *(float x, Float2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x1 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x1 operator *(Float2x1 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x1 input value. + /// The second Float1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x1 operator *(Float2x1 x, Float1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x1 input value. + /// The second Float1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x2 operator *(Float2x1 x, Float1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x1 input value. + /// The second Float1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x3 operator *(Float2x1 x, Float1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x1 input value. + /// The second Float1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x4 operator *(Float2x1 x, Float1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x2 input value. + /// The second Float2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x1 operator *(Float2x2 x, Float2x1 y) => default; + /// /// Subtracts two values. /// @@ -1172,6 +1601,32 @@ public unsafe partial struct Float2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator *(Float2x2 left, Float2x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x2 operator *(float x, Float2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x2 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x2 operator *(Float2x2 x, float y) => default; + /// /// Subtracts two values. /// @@ -1422,6 +1877,110 @@ public unsafe partial struct Float2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator *(Float2x3 left, Float2x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x3 operator *(float x, Float2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x3 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x3 operator *(Float2x3 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x3 input value. + /// The second Float3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(Float2x3 x, Float3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x2 input value. + /// The second Float2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x3 operator *(Float2x2 x, Float2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x3 input value. + /// The second Float3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x1 operator *(Float2x3 x, Float3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x3 input value. + /// The second Float3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x2 operator *(Float2x3 x, Float3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x3 input value. + /// The second Float3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x3 operator *(Float2x3 x, Float3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x3 input value. + /// The second Float3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x4 operator *(Float2x3 x, Float3x4 y) => default; + /// /// Subtracts two values. /// @@ -1696,6 +2255,110 @@ public unsafe partial struct Float2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator *(Float2x4 left, Float2x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x4 operator *(float x, Float2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x4 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x4 operator *(Float2x4 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x4 input value. + /// The second Float4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2 operator *(Float2x4 x, Float4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x2 input value. + /// The second Float2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x4 operator *(Float2x2 x, Float2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x4 input value. + /// The second Float4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x1 operator *(Float2x4 x, Float4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x4 input value. + /// The second Float4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x2 operator *(Float2x4 x, Float4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x4 input value. + /// The second Float4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x3 operator *(Float2x4 x, Float4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float2x4 input value. + /// The second Float4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float2x4 operator *(Float2x4 x, Float4x4 y) => default; + /// /// Subtracts two values. /// @@ -1898,6 +2561,97 @@ public unsafe partial struct Float3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator *(Float3x1 left, Float3x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x1 operator *(float x, Float3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x1 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x1 operator *(Float3x1 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x1 input value. + /// The second Float1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x1 operator *(Float3x1 x, Float1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x1 input value. + /// The second Float1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x2 operator *(Float3x1 x, Float1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x1 input value. + /// The second Float1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x3 operator *(Float3x1 x, Float1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x1 input value. + /// The second Float1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x4 operator *(Float3x1 x, Float1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x3 input value. + /// The second Float3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x1 operator *(Float3x3 x, Float3x1 y) => default; + /// /// Subtracts two values. /// @@ -2155,6 +2909,110 @@ public unsafe partial struct Float3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator *(Float3x2 left, Float3x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x2 operator *(float x, Float3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x2 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x2 operator *(Float3x2 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x2 input value. + /// The second Float2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(Float3x2 x, Float2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x2 input value. + /// The second Float2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x1 operator *(Float3x2 x, Float2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x2 input value. + /// The second Float2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x2 operator *(Float3x2 x, Float2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x2 input value. + /// The second Float2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x3 operator *(Float3x2 x, Float2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x2 input value. + /// The second Float2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x4 operator *(Float3x2 x, Float2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x3 input value. + /// The second Float3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x2 operator *(Float3x3 x, Float3x2 y) => default; + /// /// Subtracts two values. /// @@ -2442,6 +3300,32 @@ public unsafe partial struct Float3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator *(Float3x3 left, Float3x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x3 operator *(float x, Float3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x3 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x3 operator *(Float3x3 x, float y) => default; + /// /// Subtracts two values. /// @@ -2765,6 +3649,110 @@ public unsafe partial struct Float3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator *(Float3x4 left, Float3x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x4 operator *(float x, Float3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x4 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x4 operator *(Float3x4 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x4 input value. + /// The second Float4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3 operator *(Float3x4 x, Float4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x3 input value. + /// The second Float3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x4 operator *(Float3x3 x, Float3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x4 input value. + /// The second Float4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x1 operator *(Float3x4 x, Float4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x4 input value. + /// The second Float4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x2 operator *(Float3x4 x, Float4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x4 input value. + /// The second Float4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x3 operator *(Float3x4 x, Float4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float3x4 input value. + /// The second Float4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float3x4 operator *(Float3x4 x, Float4x4 y) => default; + /// /// Subtracts two values. /// @@ -2978,6 +3966,97 @@ public unsafe partial struct Float4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator *(Float4x1 left, Float4x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x1 operator *(float x, Float4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x1 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x1 operator *(Float4x1 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x1 input value. + /// The second Float1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x1 operator *(Float4x1 x, Float1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x1 input value. + /// The second Float1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x2 operator *(Float4x1 x, Float1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x1 input value. + /// The second Float1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x3 operator *(Float4x1 x, Float1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x1 input value. + /// The second Float1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x4 operator *(Float4x1 x, Float1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x4 input value. + /// The second Float4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x1 operator *(Float4x4 x, Float4x1 y) => default; + /// /// Subtracts two values. /// @@ -3260,6 +4339,110 @@ public unsafe partial struct Float4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator *(Float4x2 left, Float4x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x2 operator *(float x, Float4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x2 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x2 operator *(Float4x2 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x2 input value. + /// The second Float2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(Float4x2 x, Float2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x2 input value. + /// The second Float2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x1 operator *(Float4x2 x, Float2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x2 input value. + /// The second Float2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x2 operator *(Float4x2 x, Float2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x2 input value. + /// The second Float2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x3 operator *(Float4x2 x, Float2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x2 input value. + /// The second Float2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x4 operator *(Float4x2 x, Float2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x4 input value. + /// The second Float4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x2 operator *(Float4x4 x, Float4x2 y) => default; + /// /// Subtracts two values. /// @@ -3584,6 +4767,110 @@ public unsafe partial struct Float4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator *(Float4x3 left, Float4x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x3 operator *(float x, Float4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x3 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x3 operator *(Float4x3 x, float y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x3 input value. + /// The second Float3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4 operator *(Float4x3 x, Float3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x3 input value. + /// The second Float3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x1 operator *(Float4x3 x, Float3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x3 input value. + /// The second Float3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x2 operator *(Float4x3 x, Float3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x3 input value. + /// The second Float3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x3 operator *(Float4x3 x, Float3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x3 input value. + /// The second Float3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x4 operator *(Float4x3 x, Float3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x4 input value. + /// The second Float4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x3 operator *(Float4x4 x, Float4x3 y) => default; + /// /// Subtracts two values. /// @@ -3956,6 +5243,32 @@ public unsafe partial struct Float4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator *(Float4x4 left, Float4x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first float input value. + /// The second Float4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x4 operator *(float x, Float4x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Float4x4 input value. + /// The second float input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Float4x4 operator *(Float4x4 x, float y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index d6bde9d3..1fa028e2 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -125,6 +125,32 @@ public unsafe partial struct Int1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator *(Int1x1 left, Int1x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x1 operator *(int x, Int1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x1 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x1 operator *(Int1x1 x, int y) => default; + /// /// Subtracts two values. /// @@ -416,6 +442,110 @@ public unsafe partial struct Int1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator *(Int1x2 left, Int1x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x2 operator *(int x, Int1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x2 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x2 operator *(Int1x2 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x2 input value. + /// The second Int2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static int operator *(Int1x2 x, Int2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x1 input value. + /// The second Int1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x2 operator *(Int1x1 x, Int1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x2 input value. + /// The second Int2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x1 operator *(Int1x2 x, Int2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x2 input value. + /// The second Int2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x2 operator *(Int1x2 x, Int2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x2 input value. + /// The second Int2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x3 operator *(Int1x2 x, Int2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x2 input value. + /// The second Int2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x4 operator *(Int1x2 x, Int2x4 y) => default; + /// /// Subtracts two values. /// @@ -724,6 +854,110 @@ public unsafe partial struct Int1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator *(Int1x3 left, Int1x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x3 operator *(int x, Int1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x3 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x3 operator *(Int1x3 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x3 input value. + /// The second Int3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static int operator *(Int1x3 x, Int3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x1 input value. + /// The second Int1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x3 operator *(Int1x1 x, Int1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x3 input value. + /// The second Int3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x1 operator *(Int1x3 x, Int3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x3 input value. + /// The second Int3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x2 operator *(Int1x3 x, Int3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x3 input value. + /// The second Int3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x3 operator *(Int1x3 x, Int3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x3 input value. + /// The second Int3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x4 operator *(Int1x3 x, Int3x4 y) => default; + /// /// Subtracts two values. /// @@ -1043,6 +1277,110 @@ public unsafe partial struct Int1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator *(Int1x4 left, Int1x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x4 operator *(int x, Int1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x4 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x4 operator *(Int1x4 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x4 input value. + /// The second Int4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static int operator *(Int1x4 x, Int4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x1 input value. + /// The second Int1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x4 operator *(Int1x1 x, Int1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x4 input value. + /// The second Int4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x1 operator *(Int1x4 x, Int4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x4 input value. + /// The second Int4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x2 operator *(Int1x4 x, Int4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x4 input value. + /// The second Int4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x3 operator *(Int1x4 x, Int4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int1x4 input value. + /// The second Int4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int1x4 operator *(Int1x4 x, Int4x4 y) => default; + /// /// Subtracts two values. /// @@ -1340,6 +1678,97 @@ public unsafe partial struct Int2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator *(Int2x1 left, Int2x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x1 operator *(int x, Int2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x1 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x1 operator *(Int2x1 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x1 input value. + /// The second Int1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x1 operator *(Int2x1 x, Int1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x1 input value. + /// The second Int1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x2 operator *(Int2x1 x, Int1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x1 input value. + /// The second Int1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x3 operator *(Int2x1 x, Int1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x1 input value. + /// The second Int1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x4 operator *(Int2x1 x, Int1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x2 input value. + /// The second Int2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x1 operator *(Int2x2 x, Int2x1 y) => default; + /// /// Subtracts two values. /// @@ -1672,6 +2101,32 @@ public unsafe partial struct Int2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator *(Int2x2 left, Int2x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x2 operator *(int x, Int2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x2 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x2 operator *(Int2x2 x, int y) => default; + /// /// Subtracts two values. /// @@ -2022,6 +2477,110 @@ public unsafe partial struct Int2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator *(Int2x3 left, Int2x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x3 operator *(int x, Int2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x3 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x3 operator *(Int2x3 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x3 input value. + /// The second Int3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(Int2x3 x, Int3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x2 input value. + /// The second Int2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x3 operator *(Int2x2 x, Int2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x3 input value. + /// The second Int3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x1 operator *(Int2x3 x, Int3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x3 input value. + /// The second Int3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x2 operator *(Int2x3 x, Int3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x3 input value. + /// The second Int3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x3 operator *(Int2x3 x, Int3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x3 input value. + /// The second Int3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x4 operator *(Int2x3 x, Int3x4 y) => default; + /// /// Subtracts two values. /// @@ -2396,6 +2955,110 @@ public unsafe partial struct Int2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator *(Int2x4 left, Int2x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x4 operator *(int x, Int2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x4 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x4 operator *(Int2x4 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x4 input value. + /// The second Int4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2 operator *(Int2x4 x, Int4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x2 input value. + /// The second Int2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x4 operator *(Int2x2 x, Int2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x4 input value. + /// The second Int4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x1 operator *(Int2x4 x, Int4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x4 input value. + /// The second Int4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x2 operator *(Int2x4 x, Int4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x4 input value. + /// The second Int4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x3 operator *(Int2x4 x, Int4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int2x4 input value. + /// The second Int4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int2x4 operator *(Int2x4 x, Int4x4 y) => default; + /// /// Subtracts two values. /// @@ -2698,6 +3361,97 @@ public unsafe partial struct Int3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator *(Int3x1 left, Int3x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x1 operator *(int x, Int3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x1 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x1 operator *(Int3x1 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x1 input value. + /// The second Int1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x1 operator *(Int3x1 x, Int1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x1 input value. + /// The second Int1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x2 operator *(Int3x1 x, Int1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x1 input value. + /// The second Int1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x3 operator *(Int3x1 x, Int1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x1 input value. + /// The second Int1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x4 operator *(Int3x1 x, Int1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x3 input value. + /// The second Int3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x1 operator *(Int3x3 x, Int3x1 y) => default; + /// /// Subtracts two values. /// @@ -3055,6 +3809,110 @@ public unsafe partial struct Int3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator *(Int3x2 left, Int3x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x2 operator *(int x, Int3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x2 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x2 operator *(Int3x2 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x2 input value. + /// The second Int2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(Int3x2 x, Int2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x2 input value. + /// The second Int2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x1 operator *(Int3x2 x, Int2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x2 input value. + /// The second Int2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x2 operator *(Int3x2 x, Int2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x2 input value. + /// The second Int2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x3 operator *(Int3x2 x, Int2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x2 input value. + /// The second Int2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x4 operator *(Int3x2 x, Int2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x3 input value. + /// The second Int3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x2 operator *(Int3x3 x, Int3x2 y) => default; + /// /// Subtracts two values. /// @@ -3442,6 +4300,32 @@ public unsafe partial struct Int3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator *(Int3x3 left, Int3x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x3 operator *(int x, Int3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x3 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x3 operator *(Int3x3 x, int y) => default; + /// /// Subtracts two values. /// @@ -3865,6 +4749,110 @@ public unsafe partial struct Int3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator *(Int3x4 left, Int3x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x4 operator *(int x, Int3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x4 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x4 operator *(Int3x4 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x4 input value. + /// The second Int4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3 operator *(Int3x4 x, Int4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x3 input value. + /// The second Int3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x4 operator *(Int3x3 x, Int3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x4 input value. + /// The second Int4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x1 operator *(Int3x4 x, Int4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x4 input value. + /// The second Int4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x2 operator *(Int3x4 x, Int4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x4 input value. + /// The second Int4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x3 operator *(Int3x4 x, Int4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int3x4 input value. + /// The second Int4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int3x4 operator *(Int3x4 x, Int4x4 y) => default; + /// /// Subtracts two values. /// @@ -4178,6 +5166,97 @@ public unsafe partial struct Int4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator *(Int4x1 left, Int4x1 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x1 operator *(int x, Int4x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x1 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x1 operator *(Int4x1 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x1 input value. + /// The second Int1x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x1 operator *(Int4x1 x, Int1x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x1 input value. + /// The second Int1x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x2 operator *(Int4x1 x, Int1x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x1 input value. + /// The second Int1x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x3 operator *(Int4x1 x, Int1x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x1 input value. + /// The second Int1x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x4 operator *(Int4x1 x, Int1x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x4 input value. + /// The second Int4x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x1 operator *(Int4x4 x, Int4x1 y) => default; + /// /// Subtracts two values. /// @@ -4560,6 +5639,110 @@ public unsafe partial struct Int4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator *(Int4x2 left, Int4x2 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x2 operator *(int x, Int4x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x2 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x2 operator *(Int4x2 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x2 input value. + /// The second Int2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(Int4x2 x, Int2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x2 input value. + /// The second Int2x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x1 operator *(Int4x2 x, Int2x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x2 input value. + /// The second Int2x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x2 operator *(Int4x2 x, Int2x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x2 input value. + /// The second Int2x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x3 operator *(Int4x2 x, Int2x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x2 input value. + /// The second Int2x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x4 operator *(Int4x2 x, Int2x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x4 input value. + /// The second Int4x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x2 operator *(Int4x4 x, Int4x2 y) => default; + /// /// Subtracts two values. /// @@ -4984,6 +6167,110 @@ public unsafe partial struct Int4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator *(Int4x3 left, Int4x3 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x3 operator *(int x, Int4x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x3 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x3 operator *(Int4x3 x, int y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x3 input value. + /// The second Int3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4 operator *(Int4x3 x, Int3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x3 input value. + /// The second Int3x1 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x1 operator *(Int4x3 x, Int3x1 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x3 input value. + /// The second Int3x2 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x2 operator *(Int4x3 x, Int3x2 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x3 input value. + /// The second Int3x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x3 operator *(Int4x3 x, Int3x3 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x3 input value. + /// The second Int3x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x4 operator *(Int4x3 x, Int3x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x4 input value. + /// The second Int4x3 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x3 operator *(Int4x4 x, Int4x3 y) => default; + /// /// Subtracts two values. /// @@ -5456,6 +6743,32 @@ public unsafe partial struct Int4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator *(Int4x4 left, Int4x4 right) => default; + /// + /// Multiplies two values using matrix math. + /// + /// The first int input value. + /// The second Int4x4 input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x4 operator *(int x, Int4x4 y) => default; + + /// + /// Multiplies two values using matrix math. + /// + /// The first Int4x4 input value. + /// The second int input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static Int4x4 operator *(Int4x4 x, int y) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 981a7ba7..40b85cfe 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -1,5 +1,4 @@ -<#@ template debug="false" hostspecific="false" language="C#" #> -<#@ assembly name="System.Core" #> +<#@include file="..\Intrinsics\Hlsl.MulOverloads.ttinclude" #> <#@ import namespace="System.Linq" #> <#@ import namespace="System.Text" #> <#@ import namespace="System.Text.RegularExpressions" #> @@ -291,7 +290,32 @@ public unsafe partial struct <#=fullTypeName#> /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator *(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; +<# + // Process all operators for the mul() intrinsic + foreach (var mulOverload in MulOverloads.Where(overload => + !(overload.Params[0] == fullTypeName && overload.Params[1] == fullTypeName) && + (overload.Return == fullTypeName && overload.Params.Contains(fullTypeName) || + !overload.Params.Contains(overload.Return) && overload.Params[0] == fullTypeName))) + { + WriteLine(""); +#> + /// + /// Multiplies two values using matrix math. + /// + /// The first <#=mulOverload.Params[0]#> input value. + /// The second <#=mulOverload.Params[1]#> input value. + /// The result of times . The result has the dimension -rows by -columns. + /// + /// This operator is equivalent to using with the same input arguments. + /// For more info, see . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; +<# + } + WriteLine(""); +#> /// /// Subtracts two values. /// From e368d8b764aa1d0ab4fdb18e272b47b666677a69 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 15:23:42 +0200 Subject: [PATCH 04/12] Add [HlslIntrinsicName("mul")] to new intrinsic operators --- .../Primitives/Float/Float2.g.cs | 7 ++ .../Primitives/Float/Float3.g.cs | 7 ++ .../Primitives/Float/Float4.g.cs | 7 ++ .../Primitives/Float/FloatMxN.g.cs | 101 ++++++++++++++++++ .../Primitives/Int/Int2.g.cs | 7 ++ .../Primitives/Int/Int3.g.cs | 7 ++ .../Primitives/Int/Int4.g.cs | 7 ++ .../Primitives/Int/IntMxN.g.cs | 101 ++++++++++++++++++ .../Primitives/MatrixType.ttinclude | 1 + .../Primitives/VectorType.ttinclude | 1 + 10 files changed, 246 insertions(+) diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index ee9a79e7..4fd5df87 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -509,6 +509,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(float x, Float2 y) => default; /// @@ -522,6 +523,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(Float2 x, float y) => default; /// @@ -535,6 +537,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static float operator *(Float2 x, Float2x1 y) => default; /// @@ -548,6 +551,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(Float2 x, Float2x2 y) => default; /// @@ -561,6 +565,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(Float2 x, Float2x3 y) => default; /// @@ -574,6 +579,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(Float2 x, Float2x4 y) => default; /// @@ -587,6 +593,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(Float2x2 x, Float2 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 1935969c..f2e279d0 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1595,6 +1595,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(float x, Float3 y) => default; /// @@ -1608,6 +1609,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(Float3 x, float y) => default; /// @@ -1621,6 +1623,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static float operator *(Float3 x, Float3x1 y) => default; /// @@ -1634,6 +1637,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(Float3 x, Float3x2 y) => default; /// @@ -1647,6 +1651,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(Float3 x, Float3x3 y) => default; /// @@ -1660,6 +1665,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(Float3 x, Float3x4 y) => default; /// @@ -1673,6 +1679,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(Float3x3 x, Float3 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index e25e45d6..8736f761 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -4241,6 +4241,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(float x, Float4 y) => default; /// @@ -4254,6 +4255,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(Float4 x, float y) => default; /// @@ -4267,6 +4269,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static float operator *(Float4 x, Float4x1 y) => default; /// @@ -4280,6 +4283,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(Float4 x, Float4x2 y) => default; /// @@ -4293,6 +4297,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(Float4 x, Float4x3 y) => default; /// @@ -4306,6 +4311,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(Float4 x, Float4x4 y) => default; /// @@ -4319,6 +4325,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(Float4x4 x, Float4 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 43cc83dd..240425e1 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -136,6 +136,7 @@ public unsafe partial struct Float1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x1 operator *(float x, Float1x1 y) => default; /// @@ -149,6 +150,7 @@ public unsafe partial struct Float1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x1 operator *(Float1x1 x, float y) => default; /// @@ -353,6 +355,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x2 operator *(float x, Float1x2 y) => default; /// @@ -366,6 +369,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x2 operator *(Float1x2 x, float y) => default; /// @@ -379,6 +383,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static float operator *(Float1x2 x, Float2 y) => default; /// @@ -392,6 +397,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x2 operator *(Float1x1 x, Float1x2 y) => default; /// @@ -405,6 +411,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x1 operator *(Float1x2 x, Float2x1 y) => default; /// @@ -418,6 +425,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x2 operator *(Float1x2 x, Float2x2 y) => default; /// @@ -431,6 +439,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x3 operator *(Float1x2 x, Float2x3 y) => default; /// @@ -444,6 +453,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x4 operator *(Float1x2 x, Float2x4 y) => default; /// @@ -665,6 +675,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x3 operator *(float x, Float1x3 y) => default; /// @@ -678,6 +689,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x3 operator *(Float1x3 x, float y) => default; /// @@ -691,6 +703,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static float operator *(Float1x3 x, Float3 y) => default; /// @@ -704,6 +717,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x3 operator *(Float1x1 x, Float1x3 y) => default; /// @@ -717,6 +731,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x1 operator *(Float1x3 x, Float3x1 y) => default; /// @@ -730,6 +745,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x2 operator *(Float1x3 x, Float3x2 y) => default; /// @@ -743,6 +759,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x3 operator *(Float1x3 x, Float3x3 y) => default; /// @@ -756,6 +773,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x4 operator *(Float1x3 x, Float3x4 y) => default; /// @@ -988,6 +1006,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x4 operator *(float x, Float1x4 y) => default; /// @@ -1001,6 +1020,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x4 operator *(Float1x4 x, float y) => default; /// @@ -1014,6 +1034,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static float operator *(Float1x4 x, Float4 y) => default; /// @@ -1027,6 +1048,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x4 operator *(Float1x1 x, Float1x4 y) => default; /// @@ -1040,6 +1062,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x1 operator *(Float1x4 x, Float4x1 y) => default; /// @@ -1053,6 +1076,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x2 operator *(Float1x4 x, Float4x2 y) => default; /// @@ -1066,6 +1090,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x3 operator *(Float1x4 x, Float4x3 y) => default; /// @@ -1079,6 +1104,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float1x4 operator *(Float1x4 x, Float4x4 y) => default; /// @@ -1289,6 +1315,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x1 operator *(float x, Float2x1 y) => default; /// @@ -1302,6 +1329,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x1 operator *(Float2x1 x, float y) => default; /// @@ -1315,6 +1343,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x1 operator *(Float2x1 x, Float1x1 y) => default; /// @@ -1328,6 +1357,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x2 operator *(Float2x1 x, Float1x2 y) => default; /// @@ -1341,6 +1371,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x3 operator *(Float2x1 x, Float1x3 y) => default; /// @@ -1354,6 +1385,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x4 operator *(Float2x1 x, Float1x4 y) => default; /// @@ -1367,6 +1399,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x1 operator *(Float2x2 x, Float2x1 y) => default; /// @@ -1612,6 +1645,7 @@ public unsafe partial struct Float2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x2 operator *(float x, Float2x2 y) => default; /// @@ -1625,6 +1659,7 @@ public unsafe partial struct Float2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x2 operator *(Float2x2 x, float y) => default; /// @@ -1888,6 +1923,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x3 operator *(float x, Float2x3 y) => default; /// @@ -1901,6 +1937,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x3 operator *(Float2x3 x, float y) => default; /// @@ -1914,6 +1951,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(Float2x3 x, Float3 y) => default; /// @@ -1927,6 +1965,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x3 operator *(Float2x2 x, Float2x3 y) => default; /// @@ -1940,6 +1979,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x1 operator *(Float2x3 x, Float3x1 y) => default; /// @@ -1953,6 +1993,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x2 operator *(Float2x3 x, Float3x2 y) => default; /// @@ -1966,6 +2007,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x3 operator *(Float2x3 x, Float3x3 y) => default; /// @@ -1979,6 +2021,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x4 operator *(Float2x3 x, Float3x4 y) => default; /// @@ -2266,6 +2309,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x4 operator *(float x, Float2x4 y) => default; /// @@ -2279,6 +2323,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x4 operator *(Float2x4 x, float y) => default; /// @@ -2292,6 +2337,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2 operator *(Float2x4 x, Float4 y) => default; /// @@ -2305,6 +2351,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x4 operator *(Float2x2 x, Float2x4 y) => default; /// @@ -2318,6 +2365,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x1 operator *(Float2x4 x, Float4x1 y) => default; /// @@ -2331,6 +2379,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x2 operator *(Float2x4 x, Float4x2 y) => default; /// @@ -2344,6 +2393,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x3 operator *(Float2x4 x, Float4x3 y) => default; /// @@ -2357,6 +2407,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float2x4 operator *(Float2x4 x, Float4x4 y) => default; /// @@ -2572,6 +2623,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x1 operator *(float x, Float3x1 y) => default; /// @@ -2585,6 +2637,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x1 operator *(Float3x1 x, float y) => default; /// @@ -2598,6 +2651,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x1 operator *(Float3x1 x, Float1x1 y) => default; /// @@ -2611,6 +2665,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x2 operator *(Float3x1 x, Float1x2 y) => default; /// @@ -2624,6 +2679,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x3 operator *(Float3x1 x, Float1x3 y) => default; /// @@ -2637,6 +2693,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x4 operator *(Float3x1 x, Float1x4 y) => default; /// @@ -2650,6 +2707,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x1 operator *(Float3x3 x, Float3x1 y) => default; /// @@ -2920,6 +2978,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x2 operator *(float x, Float3x2 y) => default; /// @@ -2933,6 +2992,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x2 operator *(Float3x2 x, float y) => default; /// @@ -2946,6 +3006,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(Float3x2 x, Float2 y) => default; /// @@ -2959,6 +3020,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x1 operator *(Float3x2 x, Float2x1 y) => default; /// @@ -2972,6 +3034,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x2 operator *(Float3x2 x, Float2x2 y) => default; /// @@ -2985,6 +3048,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x3 operator *(Float3x2 x, Float2x3 y) => default; /// @@ -2998,6 +3062,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x4 operator *(Float3x2 x, Float2x4 y) => default; /// @@ -3011,6 +3076,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x2 operator *(Float3x3 x, Float3x2 y) => default; /// @@ -3311,6 +3377,7 @@ public unsafe partial struct Float3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x3 operator *(float x, Float3x3 y) => default; /// @@ -3324,6 +3391,7 @@ public unsafe partial struct Float3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x3 operator *(Float3x3 x, float y) => default; /// @@ -3660,6 +3728,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x4 operator *(float x, Float3x4 y) => default; /// @@ -3673,6 +3742,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x4 operator *(Float3x4 x, float y) => default; /// @@ -3686,6 +3756,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3 operator *(Float3x4 x, Float4 y) => default; /// @@ -3699,6 +3770,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x4 operator *(Float3x3 x, Float3x4 y) => default; /// @@ -3712,6 +3784,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x1 operator *(Float3x4 x, Float4x1 y) => default; /// @@ -3725,6 +3798,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x2 operator *(Float3x4 x, Float4x2 y) => default; /// @@ -3738,6 +3812,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x3 operator *(Float3x4 x, Float4x3 y) => default; /// @@ -3751,6 +3826,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float3x4 operator *(Float3x4 x, Float4x4 y) => default; /// @@ -3977,6 +4053,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x1 operator *(float x, Float4x1 y) => default; /// @@ -3990,6 +4067,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x1 operator *(Float4x1 x, float y) => default; /// @@ -4003,6 +4081,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x1 operator *(Float4x1 x, Float1x1 y) => default; /// @@ -4016,6 +4095,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x2 operator *(Float4x1 x, Float1x2 y) => default; /// @@ -4029,6 +4109,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x3 operator *(Float4x1 x, Float1x3 y) => default; /// @@ -4042,6 +4123,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x4 operator *(Float4x1 x, Float1x4 y) => default; /// @@ -4055,6 +4137,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x1 operator *(Float4x4 x, Float4x1 y) => default; /// @@ -4350,6 +4433,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x2 operator *(float x, Float4x2 y) => default; /// @@ -4363,6 +4447,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x2 operator *(Float4x2 x, float y) => default; /// @@ -4376,6 +4461,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(Float4x2 x, Float2 y) => default; /// @@ -4389,6 +4475,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x1 operator *(Float4x2 x, Float2x1 y) => default; /// @@ -4402,6 +4489,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x2 operator *(Float4x2 x, Float2x2 y) => default; /// @@ -4415,6 +4503,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x3 operator *(Float4x2 x, Float2x3 y) => default; /// @@ -4428,6 +4517,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x4 operator *(Float4x2 x, Float2x4 y) => default; /// @@ -4441,6 +4531,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x2 operator *(Float4x4 x, Float4x2 y) => default; /// @@ -4778,6 +4869,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x3 operator *(float x, Float4x3 y) => default; /// @@ -4791,6 +4883,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x3 operator *(Float4x3 x, float y) => default; /// @@ -4804,6 +4897,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4 operator *(Float4x3 x, Float3 y) => default; /// @@ -4817,6 +4911,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x1 operator *(Float4x3 x, Float3x1 y) => default; /// @@ -4830,6 +4925,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x2 operator *(Float4x3 x, Float3x2 y) => default; /// @@ -4843,6 +4939,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x3 operator *(Float4x3 x, Float3x3 y) => default; /// @@ -4856,6 +4953,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x4 operator *(Float4x3 x, Float3x4 y) => default; /// @@ -4869,6 +4967,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x3 operator *(Float4x4 x, Float4x3 y) => default; /// @@ -5254,6 +5353,7 @@ public unsafe partial struct Float4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x4 operator *(float x, Float4x4 y) => default; /// @@ -5267,6 +5367,7 @@ public unsafe partial struct Float4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Float4x4 operator *(Float4x4 x, float y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index a0447fd4..186cd0ab 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -509,6 +509,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(int x, Int2 y) => default; /// @@ -522,6 +523,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(Int2 x, int y) => default; /// @@ -535,6 +537,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static int operator *(Int2 x, Int2x1 y) => default; /// @@ -548,6 +551,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(Int2 x, Int2x2 y) => default; /// @@ -561,6 +565,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(Int2 x, Int2x3 y) => default; /// @@ -574,6 +579,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(Int2 x, Int2x4 y) => default; /// @@ -587,6 +593,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(Int2x2 x, Int2 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index eacdeb6f..c4e20fef 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1595,6 +1595,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(int x, Int3 y) => default; /// @@ -1608,6 +1609,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(Int3 x, int y) => default; /// @@ -1621,6 +1623,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static int operator *(Int3 x, Int3x1 y) => default; /// @@ -1634,6 +1637,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(Int3 x, Int3x2 y) => default; /// @@ -1647,6 +1651,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(Int3 x, Int3x3 y) => default; /// @@ -1660,6 +1665,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(Int3 x, Int3x4 y) => default; /// @@ -1673,6 +1679,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(Int3x3 x, Int3 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 488b05c6..3e712da8 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -4241,6 +4241,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(int x, Int4 y) => default; /// @@ -4254,6 +4255,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(Int4 x, int y) => default; /// @@ -4267,6 +4269,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static int operator *(Int4 x, Int4x1 y) => default; /// @@ -4280,6 +4283,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(Int4 x, Int4x2 y) => default; /// @@ -4293,6 +4297,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(Int4 x, Int4x3 y) => default; /// @@ -4306,6 +4311,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(Int4 x, Int4x4 y) => default; /// @@ -4319,6 +4325,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(Int4x4 x, Int4 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index 1fa028e2..8c975ad3 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -136,6 +136,7 @@ public unsafe partial struct Int1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x1 operator *(int x, Int1x1 y) => default; /// @@ -149,6 +150,7 @@ public unsafe partial struct Int1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x1 operator *(Int1x1 x, int y) => default; /// @@ -453,6 +455,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x2 operator *(int x, Int1x2 y) => default; /// @@ -466,6 +469,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x2 operator *(Int1x2 x, int y) => default; /// @@ -479,6 +483,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static int operator *(Int1x2 x, Int2 y) => default; /// @@ -492,6 +497,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x2 operator *(Int1x1 x, Int1x2 y) => default; /// @@ -505,6 +511,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x1 operator *(Int1x2 x, Int2x1 y) => default; /// @@ -518,6 +525,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x2 operator *(Int1x2 x, Int2x2 y) => default; /// @@ -531,6 +539,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x3 operator *(Int1x2 x, Int2x3 y) => default; /// @@ -544,6 +553,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x4 operator *(Int1x2 x, Int2x4 y) => default; /// @@ -865,6 +875,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x3 operator *(int x, Int1x3 y) => default; /// @@ -878,6 +889,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x3 operator *(Int1x3 x, int y) => default; /// @@ -891,6 +903,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static int operator *(Int1x3 x, Int3 y) => default; /// @@ -904,6 +917,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x3 operator *(Int1x1 x, Int1x3 y) => default; /// @@ -917,6 +931,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x1 operator *(Int1x3 x, Int3x1 y) => default; /// @@ -930,6 +945,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x2 operator *(Int1x3 x, Int3x2 y) => default; /// @@ -943,6 +959,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x3 operator *(Int1x3 x, Int3x3 y) => default; /// @@ -956,6 +973,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x4 operator *(Int1x3 x, Int3x4 y) => default; /// @@ -1288,6 +1306,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x4 operator *(int x, Int1x4 y) => default; /// @@ -1301,6 +1320,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x4 operator *(Int1x4 x, int y) => default; /// @@ -1314,6 +1334,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static int operator *(Int1x4 x, Int4 y) => default; /// @@ -1327,6 +1348,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x4 operator *(Int1x1 x, Int1x4 y) => default; /// @@ -1340,6 +1362,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x1 operator *(Int1x4 x, Int4x1 y) => default; /// @@ -1353,6 +1376,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x2 operator *(Int1x4 x, Int4x2 y) => default; /// @@ -1366,6 +1390,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x3 operator *(Int1x4 x, Int4x3 y) => default; /// @@ -1379,6 +1404,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int1x4 operator *(Int1x4 x, Int4x4 y) => default; /// @@ -1689,6 +1715,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x1 operator *(int x, Int2x1 y) => default; /// @@ -1702,6 +1729,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x1 operator *(Int2x1 x, int y) => default; /// @@ -1715,6 +1743,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x1 operator *(Int2x1 x, Int1x1 y) => default; /// @@ -1728,6 +1757,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x2 operator *(Int2x1 x, Int1x2 y) => default; /// @@ -1741,6 +1771,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x3 operator *(Int2x1 x, Int1x3 y) => default; /// @@ -1754,6 +1785,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x4 operator *(Int2x1 x, Int1x4 y) => default; /// @@ -1767,6 +1799,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x1 operator *(Int2x2 x, Int2x1 y) => default; /// @@ -2112,6 +2145,7 @@ public unsafe partial struct Int2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x2 operator *(int x, Int2x2 y) => default; /// @@ -2125,6 +2159,7 @@ public unsafe partial struct Int2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x2 operator *(Int2x2 x, int y) => default; /// @@ -2488,6 +2523,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x3 operator *(int x, Int2x3 y) => default; /// @@ -2501,6 +2537,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x3 operator *(Int2x3 x, int y) => default; /// @@ -2514,6 +2551,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(Int2x3 x, Int3 y) => default; /// @@ -2527,6 +2565,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x3 operator *(Int2x2 x, Int2x3 y) => default; /// @@ -2540,6 +2579,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x1 operator *(Int2x3 x, Int3x1 y) => default; /// @@ -2553,6 +2593,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x2 operator *(Int2x3 x, Int3x2 y) => default; /// @@ -2566,6 +2607,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x3 operator *(Int2x3 x, Int3x3 y) => default; /// @@ -2579,6 +2621,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x4 operator *(Int2x3 x, Int3x4 y) => default; /// @@ -2966,6 +3009,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x4 operator *(int x, Int2x4 y) => default; /// @@ -2979,6 +3023,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x4 operator *(Int2x4 x, int y) => default; /// @@ -2992,6 +3037,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2 operator *(Int2x4 x, Int4 y) => default; /// @@ -3005,6 +3051,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x4 operator *(Int2x2 x, Int2x4 y) => default; /// @@ -3018,6 +3065,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x1 operator *(Int2x4 x, Int4x1 y) => default; /// @@ -3031,6 +3079,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x2 operator *(Int2x4 x, Int4x2 y) => default; /// @@ -3044,6 +3093,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x3 operator *(Int2x4 x, Int4x3 y) => default; /// @@ -3057,6 +3107,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int2x4 operator *(Int2x4 x, Int4x4 y) => default; /// @@ -3372,6 +3423,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x1 operator *(int x, Int3x1 y) => default; /// @@ -3385,6 +3437,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x1 operator *(Int3x1 x, int y) => default; /// @@ -3398,6 +3451,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x1 operator *(Int3x1 x, Int1x1 y) => default; /// @@ -3411,6 +3465,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x2 operator *(Int3x1 x, Int1x2 y) => default; /// @@ -3424,6 +3479,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x3 operator *(Int3x1 x, Int1x3 y) => default; /// @@ -3437,6 +3493,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x4 operator *(Int3x1 x, Int1x4 y) => default; /// @@ -3450,6 +3507,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x1 operator *(Int3x3 x, Int3x1 y) => default; /// @@ -3820,6 +3878,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x2 operator *(int x, Int3x2 y) => default; /// @@ -3833,6 +3892,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x2 operator *(Int3x2 x, int y) => default; /// @@ -3846,6 +3906,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(Int3x2 x, Int2 y) => default; /// @@ -3859,6 +3920,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x1 operator *(Int3x2 x, Int2x1 y) => default; /// @@ -3872,6 +3934,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x2 operator *(Int3x2 x, Int2x2 y) => default; /// @@ -3885,6 +3948,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x3 operator *(Int3x2 x, Int2x3 y) => default; /// @@ -3898,6 +3962,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x4 operator *(Int3x2 x, Int2x4 y) => default; /// @@ -3911,6 +3976,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x2 operator *(Int3x3 x, Int3x2 y) => default; /// @@ -4311,6 +4377,7 @@ public unsafe partial struct Int3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x3 operator *(int x, Int3x3 y) => default; /// @@ -4324,6 +4391,7 @@ public unsafe partial struct Int3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x3 operator *(Int3x3 x, int y) => default; /// @@ -4760,6 +4828,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x4 operator *(int x, Int3x4 y) => default; /// @@ -4773,6 +4842,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x4 operator *(Int3x4 x, int y) => default; /// @@ -4786,6 +4856,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3 operator *(Int3x4 x, Int4 y) => default; /// @@ -4799,6 +4870,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x4 operator *(Int3x3 x, Int3x4 y) => default; /// @@ -4812,6 +4884,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x1 operator *(Int3x4 x, Int4x1 y) => default; /// @@ -4825,6 +4898,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x2 operator *(Int3x4 x, Int4x2 y) => default; /// @@ -4838,6 +4912,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x3 operator *(Int3x4 x, Int4x3 y) => default; /// @@ -4851,6 +4926,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int3x4 operator *(Int3x4 x, Int4x4 y) => default; /// @@ -5177,6 +5253,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x1 operator *(int x, Int4x1 y) => default; /// @@ -5190,6 +5267,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x1 operator *(Int4x1 x, int y) => default; /// @@ -5203,6 +5281,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x1 operator *(Int4x1 x, Int1x1 y) => default; /// @@ -5216,6 +5295,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x2 operator *(Int4x1 x, Int1x2 y) => default; /// @@ -5229,6 +5309,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x3 operator *(Int4x1 x, Int1x3 y) => default; /// @@ -5242,6 +5323,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x4 operator *(Int4x1 x, Int1x4 y) => default; /// @@ -5255,6 +5337,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x1 operator *(Int4x4 x, Int4x1 y) => default; /// @@ -5650,6 +5733,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x2 operator *(int x, Int4x2 y) => default; /// @@ -5663,6 +5747,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x2 operator *(Int4x2 x, int y) => default; /// @@ -5676,6 +5761,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(Int4x2 x, Int2 y) => default; /// @@ -5689,6 +5775,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x1 operator *(Int4x2 x, Int2x1 y) => default; /// @@ -5702,6 +5789,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x2 operator *(Int4x2 x, Int2x2 y) => default; /// @@ -5715,6 +5803,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x3 operator *(Int4x2 x, Int2x3 y) => default; /// @@ -5728,6 +5817,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x4 operator *(Int4x2 x, Int2x4 y) => default; /// @@ -5741,6 +5831,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x2 operator *(Int4x4 x, Int4x2 y) => default; /// @@ -6178,6 +6269,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x3 operator *(int x, Int4x3 y) => default; /// @@ -6191,6 +6283,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x3 operator *(Int4x3 x, int y) => default; /// @@ -6204,6 +6297,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4 operator *(Int4x3 x, Int3 y) => default; /// @@ -6217,6 +6311,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x1 operator *(Int4x3 x, Int3x1 y) => default; /// @@ -6230,6 +6325,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x2 operator *(Int4x3 x, Int3x2 y) => default; /// @@ -6243,6 +6339,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x3 operator *(Int4x3 x, Int3x3 y) => default; /// @@ -6256,6 +6353,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x4 operator *(Int4x3 x, Int3x4 y) => default; /// @@ -6269,6 +6367,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x3 operator *(Int4x4 x, Int4x3 y) => default; /// @@ -6754,6 +6853,7 @@ public unsafe partial struct Int4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x4 operator *(int x, Int4x4 y) => default; /// @@ -6767,6 +6867,7 @@ public unsafe partial struct Int4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static Int4x4 operator *(Int4x4 x, int y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 40b85cfe..8472bf6d 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -310,6 +310,7 @@ public unsafe partial struct <#=fullTypeName#> /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# } diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 15eb8ba4..d6d4e29e 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -374,6 +374,7 @@ public unsafe partial struct <#=typeName#> /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// + [HlslIntrinsicName("mul")] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# } From 0aae5f847b30448c1cb954a16cdc3c8291a38379 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 15:39:03 +0200 Subject: [PATCH 05/12] Add RequiresParametersMapping to mul() operators --- .../Primitives/Float/Float2.g.cs | 14 +- .../Primitives/Float/Float3.g.cs | 14 +- .../Primitives/Float/Float4.g.cs | 14 +- .../Primitives/Float/FloatMxN.g.cs | 202 +++++++++--------- .../Primitives/Int/Int2.g.cs | 14 +- .../Primitives/Int/Int3.g.cs | 14 +- .../Primitives/Int/Int4.g.cs | 14 +- .../Primitives/Int/IntMxN.g.cs | 202 +++++++++--------- .../Primitives/MatrixType.ttinclude | 2 +- .../Primitives/VectorType.ttinclude | 2 +- 10 files changed, 246 insertions(+), 246 deletions(-) diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index 4fd5df87..b65c4c7d 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -509,7 +509,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(float x, Float2 y) => default; /// @@ -523,7 +523,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(Float2 x, float y) => default; /// @@ -537,7 +537,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static float operator *(Float2 x, Float2x1 y) => default; /// @@ -551,7 +551,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(Float2 x, Float2x2 y) => default; /// @@ -565,7 +565,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(Float2 x, Float2x3 y) => default; /// @@ -579,7 +579,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(Float2 x, Float2x4 y) => default; /// @@ -593,7 +593,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(Float2x2 x, Float2 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index f2e279d0..3dc73a43 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1595,7 +1595,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(float x, Float3 y) => default; /// @@ -1609,7 +1609,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(Float3 x, float y) => default; /// @@ -1623,7 +1623,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static float operator *(Float3 x, Float3x1 y) => default; /// @@ -1637,7 +1637,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(Float3 x, Float3x2 y) => default; /// @@ -1651,7 +1651,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(Float3 x, Float3x3 y) => default; /// @@ -1665,7 +1665,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(Float3 x, Float3x4 y) => default; /// @@ -1679,7 +1679,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(Float3x3 x, Float3 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index 8736f761..80968d75 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -4241,7 +4241,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(float x, Float4 y) => default; /// @@ -4255,7 +4255,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(Float4 x, float y) => default; /// @@ -4269,7 +4269,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static float operator *(Float4 x, Float4x1 y) => default; /// @@ -4283,7 +4283,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(Float4 x, Float4x2 y) => default; /// @@ -4297,7 +4297,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(Float4 x, Float4x3 y) => default; /// @@ -4311,7 +4311,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(Float4 x, Float4x4 y) => default; /// @@ -4325,7 +4325,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(Float4x4 x, Float4 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 240425e1..5d707305 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -136,7 +136,7 @@ public unsafe partial struct Float1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x1 operator *(float x, Float1x1 y) => default; /// @@ -150,7 +150,7 @@ public unsafe partial struct Float1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x1 operator *(Float1x1 x, float y) => default; /// @@ -355,7 +355,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x2 operator *(float x, Float1x2 y) => default; /// @@ -369,7 +369,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x2 operator *(Float1x2 x, float y) => default; /// @@ -383,7 +383,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static float operator *(Float1x2 x, Float2 y) => default; /// @@ -397,7 +397,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x2 operator *(Float1x1 x, Float1x2 y) => default; /// @@ -411,7 +411,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x1 operator *(Float1x2 x, Float2x1 y) => default; /// @@ -425,7 +425,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x2 operator *(Float1x2 x, Float2x2 y) => default; /// @@ -439,7 +439,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x3 operator *(Float1x2 x, Float2x3 y) => default; /// @@ -453,7 +453,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x4 operator *(Float1x2 x, Float2x4 y) => default; /// @@ -675,7 +675,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x3 operator *(float x, Float1x3 y) => default; /// @@ -689,7 +689,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x3 operator *(Float1x3 x, float y) => default; /// @@ -703,7 +703,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static float operator *(Float1x3 x, Float3 y) => default; /// @@ -717,7 +717,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x3 operator *(Float1x1 x, Float1x3 y) => default; /// @@ -731,7 +731,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x1 operator *(Float1x3 x, Float3x1 y) => default; /// @@ -745,7 +745,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x2 operator *(Float1x3 x, Float3x2 y) => default; /// @@ -759,7 +759,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x3 operator *(Float1x3 x, Float3x3 y) => default; /// @@ -773,7 +773,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x4 operator *(Float1x3 x, Float3x4 y) => default; /// @@ -1006,7 +1006,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x4 operator *(float x, Float1x4 y) => default; /// @@ -1020,7 +1020,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x4 operator *(Float1x4 x, float y) => default; /// @@ -1034,7 +1034,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static float operator *(Float1x4 x, Float4 y) => default; /// @@ -1048,7 +1048,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x4 operator *(Float1x1 x, Float1x4 y) => default; /// @@ -1062,7 +1062,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x1 operator *(Float1x4 x, Float4x1 y) => default; /// @@ -1076,7 +1076,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x2 operator *(Float1x4 x, Float4x2 y) => default; /// @@ -1090,7 +1090,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x3 operator *(Float1x4 x, Float4x3 y) => default; /// @@ -1104,7 +1104,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float1x4 operator *(Float1x4 x, Float4x4 y) => default; /// @@ -1315,7 +1315,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x1 operator *(float x, Float2x1 y) => default; /// @@ -1329,7 +1329,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x1 operator *(Float2x1 x, float y) => default; /// @@ -1343,7 +1343,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x1 operator *(Float2x1 x, Float1x1 y) => default; /// @@ -1357,7 +1357,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x2 operator *(Float2x1 x, Float1x2 y) => default; /// @@ -1371,7 +1371,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x3 operator *(Float2x1 x, Float1x3 y) => default; /// @@ -1385,7 +1385,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x4 operator *(Float2x1 x, Float1x4 y) => default; /// @@ -1399,7 +1399,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x1 operator *(Float2x2 x, Float2x1 y) => default; /// @@ -1645,7 +1645,7 @@ public unsafe partial struct Float2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x2 operator *(float x, Float2x2 y) => default; /// @@ -1659,7 +1659,7 @@ public unsafe partial struct Float2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x2 operator *(Float2x2 x, float y) => default; /// @@ -1923,7 +1923,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x3 operator *(float x, Float2x3 y) => default; /// @@ -1937,7 +1937,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x3 operator *(Float2x3 x, float y) => default; /// @@ -1951,7 +1951,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(Float2x3 x, Float3 y) => default; /// @@ -1965,7 +1965,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x3 operator *(Float2x2 x, Float2x3 y) => default; /// @@ -1979,7 +1979,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x1 operator *(Float2x3 x, Float3x1 y) => default; /// @@ -1993,7 +1993,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x2 operator *(Float2x3 x, Float3x2 y) => default; /// @@ -2007,7 +2007,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x3 operator *(Float2x3 x, Float3x3 y) => default; /// @@ -2021,7 +2021,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x4 operator *(Float2x3 x, Float3x4 y) => default; /// @@ -2309,7 +2309,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x4 operator *(float x, Float2x4 y) => default; /// @@ -2323,7 +2323,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x4 operator *(Float2x4 x, float y) => default; /// @@ -2337,7 +2337,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2 operator *(Float2x4 x, Float4 y) => default; /// @@ -2351,7 +2351,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x4 operator *(Float2x2 x, Float2x4 y) => default; /// @@ -2365,7 +2365,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x1 operator *(Float2x4 x, Float4x1 y) => default; /// @@ -2379,7 +2379,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x2 operator *(Float2x4 x, Float4x2 y) => default; /// @@ -2393,7 +2393,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x3 operator *(Float2x4 x, Float4x3 y) => default; /// @@ -2407,7 +2407,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float2x4 operator *(Float2x4 x, Float4x4 y) => default; /// @@ -2623,7 +2623,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x1 operator *(float x, Float3x1 y) => default; /// @@ -2637,7 +2637,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x1 operator *(Float3x1 x, float y) => default; /// @@ -2651,7 +2651,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x1 operator *(Float3x1 x, Float1x1 y) => default; /// @@ -2665,7 +2665,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x2 operator *(Float3x1 x, Float1x2 y) => default; /// @@ -2679,7 +2679,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x3 operator *(Float3x1 x, Float1x3 y) => default; /// @@ -2693,7 +2693,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x4 operator *(Float3x1 x, Float1x4 y) => default; /// @@ -2707,7 +2707,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x1 operator *(Float3x3 x, Float3x1 y) => default; /// @@ -2978,7 +2978,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x2 operator *(float x, Float3x2 y) => default; /// @@ -2992,7 +2992,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x2 operator *(Float3x2 x, float y) => default; /// @@ -3006,7 +3006,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(Float3x2 x, Float2 y) => default; /// @@ -3020,7 +3020,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x1 operator *(Float3x2 x, Float2x1 y) => default; /// @@ -3034,7 +3034,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x2 operator *(Float3x2 x, Float2x2 y) => default; /// @@ -3048,7 +3048,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x3 operator *(Float3x2 x, Float2x3 y) => default; /// @@ -3062,7 +3062,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x4 operator *(Float3x2 x, Float2x4 y) => default; /// @@ -3076,7 +3076,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x2 operator *(Float3x3 x, Float3x2 y) => default; /// @@ -3377,7 +3377,7 @@ public unsafe partial struct Float3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x3 operator *(float x, Float3x3 y) => default; /// @@ -3391,7 +3391,7 @@ public unsafe partial struct Float3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x3 operator *(Float3x3 x, float y) => default; /// @@ -3728,7 +3728,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x4 operator *(float x, Float3x4 y) => default; /// @@ -3742,7 +3742,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x4 operator *(Float3x4 x, float y) => default; /// @@ -3756,7 +3756,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3 operator *(Float3x4 x, Float4 y) => default; /// @@ -3770,7 +3770,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x4 operator *(Float3x3 x, Float3x4 y) => default; /// @@ -3784,7 +3784,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x1 operator *(Float3x4 x, Float4x1 y) => default; /// @@ -3798,7 +3798,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x2 operator *(Float3x4 x, Float4x2 y) => default; /// @@ -3812,7 +3812,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x3 operator *(Float3x4 x, Float4x3 y) => default; /// @@ -3826,7 +3826,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float3x4 operator *(Float3x4 x, Float4x4 y) => default; /// @@ -4053,7 +4053,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x1 operator *(float x, Float4x1 y) => default; /// @@ -4067,7 +4067,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x1 operator *(Float4x1 x, float y) => default; /// @@ -4081,7 +4081,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x1 operator *(Float4x1 x, Float1x1 y) => default; /// @@ -4095,7 +4095,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x2 operator *(Float4x1 x, Float1x2 y) => default; /// @@ -4109,7 +4109,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x3 operator *(Float4x1 x, Float1x3 y) => default; /// @@ -4123,7 +4123,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x4 operator *(Float4x1 x, Float1x4 y) => default; /// @@ -4137,7 +4137,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x1 operator *(Float4x4 x, Float4x1 y) => default; /// @@ -4433,7 +4433,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x2 operator *(float x, Float4x2 y) => default; /// @@ -4447,7 +4447,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x2 operator *(Float4x2 x, float y) => default; /// @@ -4461,7 +4461,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(Float4x2 x, Float2 y) => default; /// @@ -4475,7 +4475,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x1 operator *(Float4x2 x, Float2x1 y) => default; /// @@ -4489,7 +4489,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x2 operator *(Float4x2 x, Float2x2 y) => default; /// @@ -4503,7 +4503,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x3 operator *(Float4x2 x, Float2x3 y) => default; /// @@ -4517,7 +4517,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x4 operator *(Float4x2 x, Float2x4 y) => default; /// @@ -4531,7 +4531,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x2 operator *(Float4x4 x, Float4x2 y) => default; /// @@ -4869,7 +4869,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x3 operator *(float x, Float4x3 y) => default; /// @@ -4883,7 +4883,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x3 operator *(Float4x3 x, float y) => default; /// @@ -4897,7 +4897,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4 operator *(Float4x3 x, Float3 y) => default; /// @@ -4911,7 +4911,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x1 operator *(Float4x3 x, Float3x1 y) => default; /// @@ -4925,7 +4925,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x2 operator *(Float4x3 x, Float3x2 y) => default; /// @@ -4939,7 +4939,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x3 operator *(Float4x3 x, Float3x3 y) => default; /// @@ -4953,7 +4953,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x4 operator *(Float4x3 x, Float3x4 y) => default; /// @@ -4967,7 +4967,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x3 operator *(Float4x4 x, Float4x3 y) => default; /// @@ -5353,7 +5353,7 @@ public unsafe partial struct Float4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x4 operator *(float x, Float4x4 y) => default; /// @@ -5367,7 +5367,7 @@ public unsafe partial struct Float4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Float4x4 operator *(Float4x4 x, float y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index 186cd0ab..d967fca2 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -509,7 +509,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(int x, Int2 y) => default; /// @@ -523,7 +523,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(Int2 x, int y) => default; /// @@ -537,7 +537,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static int operator *(Int2 x, Int2x1 y) => default; /// @@ -551,7 +551,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(Int2 x, Int2x2 y) => default; /// @@ -565,7 +565,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(Int2 x, Int2x3 y) => default; /// @@ -579,7 +579,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(Int2 x, Int2x4 y) => default; /// @@ -593,7 +593,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(Int2x2 x, Int2 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index c4e20fef..885b9d01 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1595,7 +1595,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(int x, Int3 y) => default; /// @@ -1609,7 +1609,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(Int3 x, int y) => default; /// @@ -1623,7 +1623,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static int operator *(Int3 x, Int3x1 y) => default; /// @@ -1637,7 +1637,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(Int3 x, Int3x2 y) => default; /// @@ -1651,7 +1651,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(Int3 x, Int3x3 y) => default; /// @@ -1665,7 +1665,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(Int3 x, Int3x4 y) => default; /// @@ -1679,7 +1679,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(Int3x3 x, Int3 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 3e712da8..9c79962b 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -4241,7 +4241,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(int x, Int4 y) => default; /// @@ -4255,7 +4255,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(Int4 x, int y) => default; /// @@ -4269,7 +4269,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static int operator *(Int4 x, Int4x1 y) => default; /// @@ -4283,7 +4283,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(Int4 x, Int4x2 y) => default; /// @@ -4297,7 +4297,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(Int4 x, Int4x3 y) => default; /// @@ -4311,7 +4311,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(Int4 x, Int4x4 y) => default; /// @@ -4325,7 +4325,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(Int4x4 x, Int4 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index 8c975ad3..ad984010 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -136,7 +136,7 @@ public unsafe partial struct Int1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x1 operator *(int x, Int1x1 y) => default; /// @@ -150,7 +150,7 @@ public unsafe partial struct Int1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x1 operator *(Int1x1 x, int y) => default; /// @@ -455,7 +455,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x2 operator *(int x, Int1x2 y) => default; /// @@ -469,7 +469,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x2 operator *(Int1x2 x, int y) => default; /// @@ -483,7 +483,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static int operator *(Int1x2 x, Int2 y) => default; /// @@ -497,7 +497,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x2 operator *(Int1x1 x, Int1x2 y) => default; /// @@ -511,7 +511,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x1 operator *(Int1x2 x, Int2x1 y) => default; /// @@ -525,7 +525,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x2 operator *(Int1x2 x, Int2x2 y) => default; /// @@ -539,7 +539,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x3 operator *(Int1x2 x, Int2x3 y) => default; /// @@ -553,7 +553,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x4 operator *(Int1x2 x, Int2x4 y) => default; /// @@ -875,7 +875,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x3 operator *(int x, Int1x3 y) => default; /// @@ -889,7 +889,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x3 operator *(Int1x3 x, int y) => default; /// @@ -903,7 +903,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static int operator *(Int1x3 x, Int3 y) => default; /// @@ -917,7 +917,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x3 operator *(Int1x1 x, Int1x3 y) => default; /// @@ -931,7 +931,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x1 operator *(Int1x3 x, Int3x1 y) => default; /// @@ -945,7 +945,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x2 operator *(Int1x3 x, Int3x2 y) => default; /// @@ -959,7 +959,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x3 operator *(Int1x3 x, Int3x3 y) => default; /// @@ -973,7 +973,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x4 operator *(Int1x3 x, Int3x4 y) => default; /// @@ -1306,7 +1306,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x4 operator *(int x, Int1x4 y) => default; /// @@ -1320,7 +1320,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x4 operator *(Int1x4 x, int y) => default; /// @@ -1334,7 +1334,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static int operator *(Int1x4 x, Int4 y) => default; /// @@ -1348,7 +1348,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x4 operator *(Int1x1 x, Int1x4 y) => default; /// @@ -1362,7 +1362,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x1 operator *(Int1x4 x, Int4x1 y) => default; /// @@ -1376,7 +1376,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x2 operator *(Int1x4 x, Int4x2 y) => default; /// @@ -1390,7 +1390,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x3 operator *(Int1x4 x, Int4x3 y) => default; /// @@ -1404,7 +1404,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int1x4 operator *(Int1x4 x, Int4x4 y) => default; /// @@ -1715,7 +1715,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x1 operator *(int x, Int2x1 y) => default; /// @@ -1729,7 +1729,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x1 operator *(Int2x1 x, int y) => default; /// @@ -1743,7 +1743,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x1 operator *(Int2x1 x, Int1x1 y) => default; /// @@ -1757,7 +1757,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x2 operator *(Int2x1 x, Int1x2 y) => default; /// @@ -1771,7 +1771,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x3 operator *(Int2x1 x, Int1x3 y) => default; /// @@ -1785,7 +1785,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x4 operator *(Int2x1 x, Int1x4 y) => default; /// @@ -1799,7 +1799,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x1 operator *(Int2x2 x, Int2x1 y) => default; /// @@ -2145,7 +2145,7 @@ public unsafe partial struct Int2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x2 operator *(int x, Int2x2 y) => default; /// @@ -2159,7 +2159,7 @@ public unsafe partial struct Int2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x2 operator *(Int2x2 x, int y) => default; /// @@ -2523,7 +2523,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x3 operator *(int x, Int2x3 y) => default; /// @@ -2537,7 +2537,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x3 operator *(Int2x3 x, int y) => default; /// @@ -2551,7 +2551,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(Int2x3 x, Int3 y) => default; /// @@ -2565,7 +2565,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x3 operator *(Int2x2 x, Int2x3 y) => default; /// @@ -2579,7 +2579,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x1 operator *(Int2x3 x, Int3x1 y) => default; /// @@ -2593,7 +2593,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x2 operator *(Int2x3 x, Int3x2 y) => default; /// @@ -2607,7 +2607,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x3 operator *(Int2x3 x, Int3x3 y) => default; /// @@ -2621,7 +2621,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x4 operator *(Int2x3 x, Int3x4 y) => default; /// @@ -3009,7 +3009,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x4 operator *(int x, Int2x4 y) => default; /// @@ -3023,7 +3023,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x4 operator *(Int2x4 x, int y) => default; /// @@ -3037,7 +3037,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2 operator *(Int2x4 x, Int4 y) => default; /// @@ -3051,7 +3051,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x4 operator *(Int2x2 x, Int2x4 y) => default; /// @@ -3065,7 +3065,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x1 operator *(Int2x4 x, Int4x1 y) => default; /// @@ -3079,7 +3079,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x2 operator *(Int2x4 x, Int4x2 y) => default; /// @@ -3093,7 +3093,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x3 operator *(Int2x4 x, Int4x3 y) => default; /// @@ -3107,7 +3107,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int2x4 operator *(Int2x4 x, Int4x4 y) => default; /// @@ -3423,7 +3423,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x1 operator *(int x, Int3x1 y) => default; /// @@ -3437,7 +3437,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x1 operator *(Int3x1 x, int y) => default; /// @@ -3451,7 +3451,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x1 operator *(Int3x1 x, Int1x1 y) => default; /// @@ -3465,7 +3465,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x2 operator *(Int3x1 x, Int1x2 y) => default; /// @@ -3479,7 +3479,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x3 operator *(Int3x1 x, Int1x3 y) => default; /// @@ -3493,7 +3493,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x4 operator *(Int3x1 x, Int1x4 y) => default; /// @@ -3507,7 +3507,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x1 operator *(Int3x3 x, Int3x1 y) => default; /// @@ -3878,7 +3878,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x2 operator *(int x, Int3x2 y) => default; /// @@ -3892,7 +3892,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x2 operator *(Int3x2 x, int y) => default; /// @@ -3906,7 +3906,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(Int3x2 x, Int2 y) => default; /// @@ -3920,7 +3920,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x1 operator *(Int3x2 x, Int2x1 y) => default; /// @@ -3934,7 +3934,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x2 operator *(Int3x2 x, Int2x2 y) => default; /// @@ -3948,7 +3948,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x3 operator *(Int3x2 x, Int2x3 y) => default; /// @@ -3962,7 +3962,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x4 operator *(Int3x2 x, Int2x4 y) => default; /// @@ -3976,7 +3976,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x2 operator *(Int3x3 x, Int3x2 y) => default; /// @@ -4377,7 +4377,7 @@ public unsafe partial struct Int3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x3 operator *(int x, Int3x3 y) => default; /// @@ -4391,7 +4391,7 @@ public unsafe partial struct Int3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x3 operator *(Int3x3 x, int y) => default; /// @@ -4828,7 +4828,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x4 operator *(int x, Int3x4 y) => default; /// @@ -4842,7 +4842,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x4 operator *(Int3x4 x, int y) => default; /// @@ -4856,7 +4856,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3 operator *(Int3x4 x, Int4 y) => default; /// @@ -4870,7 +4870,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x4 operator *(Int3x3 x, Int3x4 y) => default; /// @@ -4884,7 +4884,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x1 operator *(Int3x4 x, Int4x1 y) => default; /// @@ -4898,7 +4898,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x2 operator *(Int3x4 x, Int4x2 y) => default; /// @@ -4912,7 +4912,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x3 operator *(Int3x4 x, Int4x3 y) => default; /// @@ -4926,7 +4926,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int3x4 operator *(Int3x4 x, Int4x4 y) => default; /// @@ -5253,7 +5253,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x1 operator *(int x, Int4x1 y) => default; /// @@ -5267,7 +5267,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x1 operator *(Int4x1 x, int y) => default; /// @@ -5281,7 +5281,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x1 operator *(Int4x1 x, Int1x1 y) => default; /// @@ -5295,7 +5295,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x2 operator *(Int4x1 x, Int1x2 y) => default; /// @@ -5309,7 +5309,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x3 operator *(Int4x1 x, Int1x3 y) => default; /// @@ -5323,7 +5323,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x4 operator *(Int4x1 x, Int1x4 y) => default; /// @@ -5337,7 +5337,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x1 operator *(Int4x4 x, Int4x1 y) => default; /// @@ -5733,7 +5733,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x2 operator *(int x, Int4x2 y) => default; /// @@ -5747,7 +5747,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x2 operator *(Int4x2 x, int y) => default; /// @@ -5761,7 +5761,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(Int4x2 x, Int2 y) => default; /// @@ -5775,7 +5775,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x1 operator *(Int4x2 x, Int2x1 y) => default; /// @@ -5789,7 +5789,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x2 operator *(Int4x2 x, Int2x2 y) => default; /// @@ -5803,7 +5803,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x3 operator *(Int4x2 x, Int2x3 y) => default; /// @@ -5817,7 +5817,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x4 operator *(Int4x2 x, Int2x4 y) => default; /// @@ -5831,7 +5831,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x2 operator *(Int4x4 x, Int4x2 y) => default; /// @@ -6269,7 +6269,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x3 operator *(int x, Int4x3 y) => default; /// @@ -6283,7 +6283,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x3 operator *(Int4x3 x, int y) => default; /// @@ -6297,7 +6297,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4 operator *(Int4x3 x, Int3 y) => default; /// @@ -6311,7 +6311,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x1 operator *(Int4x3 x, Int3x1 y) => default; /// @@ -6325,7 +6325,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x2 operator *(Int4x3 x, Int3x2 y) => default; /// @@ -6339,7 +6339,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x3 operator *(Int4x3 x, Int3x3 y) => default; /// @@ -6353,7 +6353,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x4 operator *(Int4x3 x, Int3x4 y) => default; /// @@ -6367,7 +6367,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x3 operator *(Int4x4 x, Int4x3 y) => default; /// @@ -6853,7 +6853,7 @@ public unsafe partial struct Int4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x4 operator *(int x, Int4x4 y) => default; /// @@ -6867,7 +6867,7 @@ public unsafe partial struct Int4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static Int4x4 operator *(Int4x4 x, int y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 8472bf6d..3e62cbbc 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -310,7 +310,7 @@ public unsafe partial struct <#=fullTypeName#> /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# } diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index d6d4e29e..cf275deb 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -374,7 +374,7 @@ public unsafe partial struct <#=typeName#> /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul")] + [HlslIntrinsicName("mul", RequiresParametersMapping = true)] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# } From a3b86a8ef8227c7fd5984e2008fed1895c300879 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 15:48:08 +0200 Subject: [PATCH 06/12] Add HlslKnownOperators type --- ...mputeSharp.SourceGeneration.Hlsl.projitems | 1 + .../Mappings/HlslKnownOperators.cs | 60 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownOperators.cs diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/ComputeSharp.SourceGeneration.Hlsl.projitems b/src/ComputeSharp.SourceGeneration.Hlsl/ComputeSharp.SourceGeneration.Hlsl.projitems index 549065be..829cb1e5 100644 --- a/src/ComputeSharp.SourceGeneration.Hlsl/ComputeSharp.SourceGeneration.Hlsl.projitems +++ b/src/ComputeSharp.SourceGeneration.Hlsl/ComputeSharp.SourceGeneration.Hlsl.projitems @@ -15,6 +15,7 @@ + diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownOperators.cs b/src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownOperators.cs new file mode 100644 index 00000000..ee1bda0a --- /dev/null +++ b/src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownOperators.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using ComputeSharp.Core.Intrinsics.Attributes; + +namespace ComputeSharp.SourceGeneration.Mappings; + +/// +/// A that contains and maps known HLSL operators names to common .NET methods. +/// +internal static partial class HlslKnownOperators +{ + /// + /// The mapping of supported known operators to HLSL names. + /// + private static readonly IReadOnlyDictionary KnownOperators = BuildKnownOperatorsMap(); + + /// + /// Builds the mapping of supported known operators to HLSL names. + /// + private static IReadOnlyDictionary BuildKnownOperatorsMap() + { + Dictionary knownOperators = new(); + + // Programmatically load mappings for the intrinsic operators on each HLSL primitive type + foreach (var item in + from type in HlslKnownTypes.KnownVectorTypes.Concat(HlslKnownTypes.KnownMatrixTypes) + from method in type.GetMethods(BindingFlags.Static | BindingFlags.Public) + where method.IsSpecialName && method.Name.StartsWith("op_") + let attribute = method.GetCustomAttribute() + where attribute is not null + select (Type: type, Operator: method, IntrinsicName: attribute.Name, attribute.RequiresParametersMatching)) + { + if (!item.RequiresParametersMatching) + { + throw new NotSupportedException("All intrinsic operators must require parameter matching."); + } + + // The key is in the format ".()" + knownOperators.Add( + $"{item.Type.FullName}{Type.Delimiter}{item.Operator.Name}({string.Join(", ", item.Operator.GetParameters().Select(static p => p.ParameterType.Name))})", + item.IntrinsicName); + } + + return knownOperators; + } + + /// + /// Tries to get the mapped HLSL-compatible method name for the input operator name. + /// + /// The input fully qualified operator name. + /// The sequence of type names for the method. + /// The mapped name, if one is found. + /// The HLSL-compatible method name that can be used in an HLSL shader. + public static bool TryGetMappedName(string name, IEnumerable parameterTypeNames, out string? mapped) + { + return KnownOperators.TryGetValue($"{name}({string.Join(", ", parameterTypeNames)})", out mapped); + } +} From 25fb3a3318829078fe84a54a5d38d16861166106 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 15:55:14 +0200 Subject: [PATCH 07/12] Add missing using directive and fix property names --- .../Primitives/Float/Float2.g.cs | 15 +- .../Primitives/Float/Float3.g.cs | 15 +- .../Primitives/Float/Float4.g.cs | 15 +- .../Primitives/Float/FloatMxN.g.cs | 203 +++++++++--------- .../Primitives/Int/Int2.g.cs | 15 +- .../Primitives/Int/Int3.g.cs | 15 +- .../Primitives/Int/Int4.g.cs | 15 +- .../Primitives/Int/IntMxN.g.cs | 203 +++++++++--------- .../Primitives/MatrixType.ttinclude | 8 +- .../Primitives/VectorType.ttinclude | 7 +- 10 files changed, 265 insertions(+), 246 deletions(-) diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index b65c4c7d..bbc61802 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER @@ -509,7 +510,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(float x, Float2 y) => default; /// @@ -523,7 +524,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(Float2 x, float y) => default; /// @@ -537,7 +538,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static float operator *(Float2 x, Float2x1 y) => default; /// @@ -551,7 +552,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(Float2 x, Float2x2 y) => default; /// @@ -565,7 +566,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(Float2 x, Float2x3 y) => default; /// @@ -579,7 +580,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(Float2 x, Float2x4 y) => default; /// @@ -593,7 +594,7 @@ public unsafe partial struct Float2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(Float2x2 x, Float2 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 3dc73a43..5d655a73 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER @@ -1595,7 +1596,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(float x, Float3 y) => default; /// @@ -1609,7 +1610,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(Float3 x, float y) => default; /// @@ -1623,7 +1624,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static float operator *(Float3 x, Float3x1 y) => default; /// @@ -1637,7 +1638,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(Float3 x, Float3x2 y) => default; /// @@ -1651,7 +1652,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(Float3 x, Float3x3 y) => default; /// @@ -1665,7 +1666,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(Float3 x, Float3x4 y) => default; /// @@ -1679,7 +1680,7 @@ public unsafe partial struct Float3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(Float3x3 x, Float3 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index 80968d75..e954aa8f 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER @@ -4241,7 +4242,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(float x, Float4 y) => default; /// @@ -4255,7 +4256,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(Float4 x, float y) => default; /// @@ -4269,7 +4270,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static float operator *(Float4 x, Float4x1 y) => default; /// @@ -4283,7 +4284,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(Float4 x, Float4x2 y) => default; /// @@ -4297,7 +4298,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(Float4 x, Float4x3 y) => default; /// @@ -4311,7 +4312,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(Float4 x, Float4x4 y) => default; /// @@ -4325,7 +4326,7 @@ public unsafe partial struct Float4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(Float4x4 x, Float4 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 5d707305..54e0d5f6 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -1,5 +1,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; @@ -136,7 +137,7 @@ public unsafe partial struct Float1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x1 operator *(float x, Float1x1 y) => default; /// @@ -150,7 +151,7 @@ public unsafe partial struct Float1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x1 operator *(Float1x1 x, float y) => default; /// @@ -355,7 +356,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x2 operator *(float x, Float1x2 y) => default; /// @@ -369,7 +370,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x2 operator *(Float1x2 x, float y) => default; /// @@ -383,7 +384,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static float operator *(Float1x2 x, Float2 y) => default; /// @@ -397,7 +398,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x2 operator *(Float1x1 x, Float1x2 y) => default; /// @@ -411,7 +412,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x1 operator *(Float1x2 x, Float2x1 y) => default; /// @@ -425,7 +426,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x2 operator *(Float1x2 x, Float2x2 y) => default; /// @@ -439,7 +440,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x3 operator *(Float1x2 x, Float2x3 y) => default; /// @@ -453,7 +454,7 @@ public unsafe partial struct Float1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x4 operator *(Float1x2 x, Float2x4 y) => default; /// @@ -675,7 +676,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x3 operator *(float x, Float1x3 y) => default; /// @@ -689,7 +690,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x3 operator *(Float1x3 x, float y) => default; /// @@ -703,7 +704,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static float operator *(Float1x3 x, Float3 y) => default; /// @@ -717,7 +718,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x3 operator *(Float1x1 x, Float1x3 y) => default; /// @@ -731,7 +732,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x1 operator *(Float1x3 x, Float3x1 y) => default; /// @@ -745,7 +746,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x2 operator *(Float1x3 x, Float3x2 y) => default; /// @@ -759,7 +760,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x3 operator *(Float1x3 x, Float3x3 y) => default; /// @@ -773,7 +774,7 @@ public unsafe partial struct Float1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x4 operator *(Float1x3 x, Float3x4 y) => default; /// @@ -1006,7 +1007,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x4 operator *(float x, Float1x4 y) => default; /// @@ -1020,7 +1021,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x4 operator *(Float1x4 x, float y) => default; /// @@ -1034,7 +1035,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static float operator *(Float1x4 x, Float4 y) => default; /// @@ -1048,7 +1049,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x4 operator *(Float1x1 x, Float1x4 y) => default; /// @@ -1062,7 +1063,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x1 operator *(Float1x4 x, Float4x1 y) => default; /// @@ -1076,7 +1077,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x2 operator *(Float1x4 x, Float4x2 y) => default; /// @@ -1090,7 +1091,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x3 operator *(Float1x4 x, Float4x3 y) => default; /// @@ -1104,7 +1105,7 @@ public unsafe partial struct Float1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float1x4 operator *(Float1x4 x, Float4x4 y) => default; /// @@ -1315,7 +1316,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x1 operator *(float x, Float2x1 y) => default; /// @@ -1329,7 +1330,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x1 operator *(Float2x1 x, float y) => default; /// @@ -1343,7 +1344,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x1 operator *(Float2x1 x, Float1x1 y) => default; /// @@ -1357,7 +1358,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x2 operator *(Float2x1 x, Float1x2 y) => default; /// @@ -1371,7 +1372,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x3 operator *(Float2x1 x, Float1x3 y) => default; /// @@ -1385,7 +1386,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x4 operator *(Float2x1 x, Float1x4 y) => default; /// @@ -1399,7 +1400,7 @@ public unsafe partial struct Float2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x1 operator *(Float2x2 x, Float2x1 y) => default; /// @@ -1645,7 +1646,7 @@ public unsafe partial struct Float2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x2 operator *(float x, Float2x2 y) => default; /// @@ -1659,7 +1660,7 @@ public unsafe partial struct Float2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x2 operator *(Float2x2 x, float y) => default; /// @@ -1923,7 +1924,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x3 operator *(float x, Float2x3 y) => default; /// @@ -1937,7 +1938,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x3 operator *(Float2x3 x, float y) => default; /// @@ -1951,7 +1952,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(Float2x3 x, Float3 y) => default; /// @@ -1965,7 +1966,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x3 operator *(Float2x2 x, Float2x3 y) => default; /// @@ -1979,7 +1980,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x1 operator *(Float2x3 x, Float3x1 y) => default; /// @@ -1993,7 +1994,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x2 operator *(Float2x3 x, Float3x2 y) => default; /// @@ -2007,7 +2008,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x3 operator *(Float2x3 x, Float3x3 y) => default; /// @@ -2021,7 +2022,7 @@ public unsafe partial struct Float2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x4 operator *(Float2x3 x, Float3x4 y) => default; /// @@ -2309,7 +2310,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x4 operator *(float x, Float2x4 y) => default; /// @@ -2323,7 +2324,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x4 operator *(Float2x4 x, float y) => default; /// @@ -2337,7 +2338,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2 operator *(Float2x4 x, Float4 y) => default; /// @@ -2351,7 +2352,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x4 operator *(Float2x2 x, Float2x4 y) => default; /// @@ -2365,7 +2366,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x1 operator *(Float2x4 x, Float4x1 y) => default; /// @@ -2379,7 +2380,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x2 operator *(Float2x4 x, Float4x2 y) => default; /// @@ -2393,7 +2394,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x3 operator *(Float2x4 x, Float4x3 y) => default; /// @@ -2407,7 +2408,7 @@ public unsafe partial struct Float2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float2x4 operator *(Float2x4 x, Float4x4 y) => default; /// @@ -2623,7 +2624,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x1 operator *(float x, Float3x1 y) => default; /// @@ -2637,7 +2638,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x1 operator *(Float3x1 x, float y) => default; /// @@ -2651,7 +2652,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x1 operator *(Float3x1 x, Float1x1 y) => default; /// @@ -2665,7 +2666,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x2 operator *(Float3x1 x, Float1x2 y) => default; /// @@ -2679,7 +2680,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x3 operator *(Float3x1 x, Float1x3 y) => default; /// @@ -2693,7 +2694,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x4 operator *(Float3x1 x, Float1x4 y) => default; /// @@ -2707,7 +2708,7 @@ public unsafe partial struct Float3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x1 operator *(Float3x3 x, Float3x1 y) => default; /// @@ -2978,7 +2979,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x2 operator *(float x, Float3x2 y) => default; /// @@ -2992,7 +2993,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x2 operator *(Float3x2 x, float y) => default; /// @@ -3006,7 +3007,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(Float3x2 x, Float2 y) => default; /// @@ -3020,7 +3021,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x1 operator *(Float3x2 x, Float2x1 y) => default; /// @@ -3034,7 +3035,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x2 operator *(Float3x2 x, Float2x2 y) => default; /// @@ -3048,7 +3049,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x3 operator *(Float3x2 x, Float2x3 y) => default; /// @@ -3062,7 +3063,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x4 operator *(Float3x2 x, Float2x4 y) => default; /// @@ -3076,7 +3077,7 @@ public unsafe partial struct Float3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x2 operator *(Float3x3 x, Float3x2 y) => default; /// @@ -3377,7 +3378,7 @@ public unsafe partial struct Float3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x3 operator *(float x, Float3x3 y) => default; /// @@ -3391,7 +3392,7 @@ public unsafe partial struct Float3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x3 operator *(Float3x3 x, float y) => default; /// @@ -3728,7 +3729,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x4 operator *(float x, Float3x4 y) => default; /// @@ -3742,7 +3743,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x4 operator *(Float3x4 x, float y) => default; /// @@ -3756,7 +3757,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3 operator *(Float3x4 x, Float4 y) => default; /// @@ -3770,7 +3771,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x4 operator *(Float3x3 x, Float3x4 y) => default; /// @@ -3784,7 +3785,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x1 operator *(Float3x4 x, Float4x1 y) => default; /// @@ -3798,7 +3799,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x2 operator *(Float3x4 x, Float4x2 y) => default; /// @@ -3812,7 +3813,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x3 operator *(Float3x4 x, Float4x3 y) => default; /// @@ -3826,7 +3827,7 @@ public unsafe partial struct Float3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float3x4 operator *(Float3x4 x, Float4x4 y) => default; /// @@ -4053,7 +4054,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x1 operator *(float x, Float4x1 y) => default; /// @@ -4067,7 +4068,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x1 operator *(Float4x1 x, float y) => default; /// @@ -4081,7 +4082,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x1 operator *(Float4x1 x, Float1x1 y) => default; /// @@ -4095,7 +4096,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x2 operator *(Float4x1 x, Float1x2 y) => default; /// @@ -4109,7 +4110,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x3 operator *(Float4x1 x, Float1x3 y) => default; /// @@ -4123,7 +4124,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x4 operator *(Float4x1 x, Float1x4 y) => default; /// @@ -4137,7 +4138,7 @@ public unsafe partial struct Float4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x1 operator *(Float4x4 x, Float4x1 y) => default; /// @@ -4433,7 +4434,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x2 operator *(float x, Float4x2 y) => default; /// @@ -4447,7 +4448,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x2 operator *(Float4x2 x, float y) => default; /// @@ -4461,7 +4462,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(Float4x2 x, Float2 y) => default; /// @@ -4475,7 +4476,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x1 operator *(Float4x2 x, Float2x1 y) => default; /// @@ -4489,7 +4490,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x2 operator *(Float4x2 x, Float2x2 y) => default; /// @@ -4503,7 +4504,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x3 operator *(Float4x2 x, Float2x3 y) => default; /// @@ -4517,7 +4518,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x4 operator *(Float4x2 x, Float2x4 y) => default; /// @@ -4531,7 +4532,7 @@ public unsafe partial struct Float4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x2 operator *(Float4x4 x, Float4x2 y) => default; /// @@ -4869,7 +4870,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x3 operator *(float x, Float4x3 y) => default; /// @@ -4883,7 +4884,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x3 operator *(Float4x3 x, float y) => default; /// @@ -4897,7 +4898,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4 operator *(Float4x3 x, Float3 y) => default; /// @@ -4911,7 +4912,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x1 operator *(Float4x3 x, Float3x1 y) => default; /// @@ -4925,7 +4926,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x2 operator *(Float4x3 x, Float3x2 y) => default; /// @@ -4939,7 +4940,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x3 operator *(Float4x3 x, Float3x3 y) => default; /// @@ -4953,7 +4954,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x4 operator *(Float4x3 x, Float3x4 y) => default; /// @@ -4967,7 +4968,7 @@ public unsafe partial struct Float4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x3 operator *(Float4x4 x, Float4x3 y) => default; /// @@ -5353,7 +5354,7 @@ public unsafe partial struct Float4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x4 operator *(float x, Float4x4 y) => default; /// @@ -5367,7 +5368,7 @@ public unsafe partial struct Float4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Float4x4 operator *(Float4x4 x, float y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index d967fca2..ef3be113 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER @@ -509,7 +510,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(int x, Int2 y) => default; /// @@ -523,7 +524,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(Int2 x, int y) => default; /// @@ -537,7 +538,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static int operator *(Int2 x, Int2x1 y) => default; /// @@ -551,7 +552,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(Int2 x, Int2x2 y) => default; /// @@ -565,7 +566,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(Int2 x, Int2x3 y) => default; /// @@ -579,7 +580,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(Int2 x, Int2x4 y) => default; /// @@ -593,7 +594,7 @@ public unsafe partial struct Int2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(Int2x2 x, Int2 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index 885b9d01..fc61e841 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER @@ -1595,7 +1596,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(int x, Int3 y) => default; /// @@ -1609,7 +1610,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(Int3 x, int y) => default; /// @@ -1623,7 +1624,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static int operator *(Int3 x, Int3x1 y) => default; /// @@ -1637,7 +1638,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(Int3 x, Int3x2 y) => default; /// @@ -1651,7 +1652,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(Int3 x, Int3x3 y) => default; /// @@ -1665,7 +1666,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(Int3 x, Int3x4 y) => default; /// @@ -1679,7 +1680,7 @@ public unsafe partial struct Int3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(Int3x3 x, Int3 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 9c79962b..109b0908 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER @@ -4241,7 +4242,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(int x, Int4 y) => default; /// @@ -4255,7 +4256,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(Int4 x, int y) => default; /// @@ -4269,7 +4270,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static int operator *(Int4 x, Int4x1 y) => default; /// @@ -4283,7 +4284,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(Int4 x, Int4x2 y) => default; /// @@ -4297,7 +4298,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(Int4 x, Int4x3 y) => default; /// @@ -4311,7 +4312,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(Int4 x, Int4x4 y) => default; /// @@ -4325,7 +4326,7 @@ public unsafe partial struct Int4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(Int4x4 x, Int4 y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index ad984010..2a82aee7 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -1,5 +1,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; @@ -136,7 +137,7 @@ public unsafe partial struct Int1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x1 operator *(int x, Int1x1 y) => default; /// @@ -150,7 +151,7 @@ public unsafe partial struct Int1x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x1 operator *(Int1x1 x, int y) => default; /// @@ -455,7 +456,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x2 operator *(int x, Int1x2 y) => default; /// @@ -469,7 +470,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x2 operator *(Int1x2 x, int y) => default; /// @@ -483,7 +484,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static int operator *(Int1x2 x, Int2 y) => default; /// @@ -497,7 +498,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x2 operator *(Int1x1 x, Int1x2 y) => default; /// @@ -511,7 +512,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x1 operator *(Int1x2 x, Int2x1 y) => default; /// @@ -525,7 +526,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x2 operator *(Int1x2 x, Int2x2 y) => default; /// @@ -539,7 +540,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x3 operator *(Int1x2 x, Int2x3 y) => default; /// @@ -553,7 +554,7 @@ public unsafe partial struct Int1x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x4 operator *(Int1x2 x, Int2x4 y) => default; /// @@ -875,7 +876,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x3 operator *(int x, Int1x3 y) => default; /// @@ -889,7 +890,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x3 operator *(Int1x3 x, int y) => default; /// @@ -903,7 +904,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static int operator *(Int1x3 x, Int3 y) => default; /// @@ -917,7 +918,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x3 operator *(Int1x1 x, Int1x3 y) => default; /// @@ -931,7 +932,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x1 operator *(Int1x3 x, Int3x1 y) => default; /// @@ -945,7 +946,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x2 operator *(Int1x3 x, Int3x2 y) => default; /// @@ -959,7 +960,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x3 operator *(Int1x3 x, Int3x3 y) => default; /// @@ -973,7 +974,7 @@ public unsafe partial struct Int1x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x4 operator *(Int1x3 x, Int3x4 y) => default; /// @@ -1306,7 +1307,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x4 operator *(int x, Int1x4 y) => default; /// @@ -1320,7 +1321,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x4 operator *(Int1x4 x, int y) => default; /// @@ -1334,7 +1335,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static int operator *(Int1x4 x, Int4 y) => default; /// @@ -1348,7 +1349,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x4 operator *(Int1x1 x, Int1x4 y) => default; /// @@ -1362,7 +1363,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x1 operator *(Int1x4 x, Int4x1 y) => default; /// @@ -1376,7 +1377,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x2 operator *(Int1x4 x, Int4x2 y) => default; /// @@ -1390,7 +1391,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x3 operator *(Int1x4 x, Int4x3 y) => default; /// @@ -1404,7 +1405,7 @@ public unsafe partial struct Int1x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int1x4 operator *(Int1x4 x, Int4x4 y) => default; /// @@ -1715,7 +1716,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x1 operator *(int x, Int2x1 y) => default; /// @@ -1729,7 +1730,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x1 operator *(Int2x1 x, int y) => default; /// @@ -1743,7 +1744,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x1 operator *(Int2x1 x, Int1x1 y) => default; /// @@ -1757,7 +1758,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x2 operator *(Int2x1 x, Int1x2 y) => default; /// @@ -1771,7 +1772,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x3 operator *(Int2x1 x, Int1x3 y) => default; /// @@ -1785,7 +1786,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x4 operator *(Int2x1 x, Int1x4 y) => default; /// @@ -1799,7 +1800,7 @@ public unsafe partial struct Int2x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x1 operator *(Int2x2 x, Int2x1 y) => default; /// @@ -2145,7 +2146,7 @@ public unsafe partial struct Int2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x2 operator *(int x, Int2x2 y) => default; /// @@ -2159,7 +2160,7 @@ public unsafe partial struct Int2x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x2 operator *(Int2x2 x, int y) => default; /// @@ -2523,7 +2524,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x3 operator *(int x, Int2x3 y) => default; /// @@ -2537,7 +2538,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x3 operator *(Int2x3 x, int y) => default; /// @@ -2551,7 +2552,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(Int2x3 x, Int3 y) => default; /// @@ -2565,7 +2566,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x3 operator *(Int2x2 x, Int2x3 y) => default; /// @@ -2579,7 +2580,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x1 operator *(Int2x3 x, Int3x1 y) => default; /// @@ -2593,7 +2594,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x2 operator *(Int2x3 x, Int3x2 y) => default; /// @@ -2607,7 +2608,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x3 operator *(Int2x3 x, Int3x3 y) => default; /// @@ -2621,7 +2622,7 @@ public unsafe partial struct Int2x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x4 operator *(Int2x3 x, Int3x4 y) => default; /// @@ -3009,7 +3010,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x4 operator *(int x, Int2x4 y) => default; /// @@ -3023,7 +3024,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x4 operator *(Int2x4 x, int y) => default; /// @@ -3037,7 +3038,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2 operator *(Int2x4 x, Int4 y) => default; /// @@ -3051,7 +3052,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x4 operator *(Int2x2 x, Int2x4 y) => default; /// @@ -3065,7 +3066,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x1 operator *(Int2x4 x, Int4x1 y) => default; /// @@ -3079,7 +3080,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x2 operator *(Int2x4 x, Int4x2 y) => default; /// @@ -3093,7 +3094,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x3 operator *(Int2x4 x, Int4x3 y) => default; /// @@ -3107,7 +3108,7 @@ public unsafe partial struct Int2x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int2x4 operator *(Int2x4 x, Int4x4 y) => default; /// @@ -3423,7 +3424,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x1 operator *(int x, Int3x1 y) => default; /// @@ -3437,7 +3438,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x1 operator *(Int3x1 x, int y) => default; /// @@ -3451,7 +3452,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x1 operator *(Int3x1 x, Int1x1 y) => default; /// @@ -3465,7 +3466,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x2 operator *(Int3x1 x, Int1x2 y) => default; /// @@ -3479,7 +3480,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x3 operator *(Int3x1 x, Int1x3 y) => default; /// @@ -3493,7 +3494,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x4 operator *(Int3x1 x, Int1x4 y) => default; /// @@ -3507,7 +3508,7 @@ public unsafe partial struct Int3x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x1 operator *(Int3x3 x, Int3x1 y) => default; /// @@ -3878,7 +3879,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x2 operator *(int x, Int3x2 y) => default; /// @@ -3892,7 +3893,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x2 operator *(Int3x2 x, int y) => default; /// @@ -3906,7 +3907,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(Int3x2 x, Int2 y) => default; /// @@ -3920,7 +3921,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x1 operator *(Int3x2 x, Int2x1 y) => default; /// @@ -3934,7 +3935,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x2 operator *(Int3x2 x, Int2x2 y) => default; /// @@ -3948,7 +3949,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x3 operator *(Int3x2 x, Int2x3 y) => default; /// @@ -3962,7 +3963,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x4 operator *(Int3x2 x, Int2x4 y) => default; /// @@ -3976,7 +3977,7 @@ public unsafe partial struct Int3x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x2 operator *(Int3x3 x, Int3x2 y) => default; /// @@ -4377,7 +4378,7 @@ public unsafe partial struct Int3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x3 operator *(int x, Int3x3 y) => default; /// @@ -4391,7 +4392,7 @@ public unsafe partial struct Int3x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x3 operator *(Int3x3 x, int y) => default; /// @@ -4828,7 +4829,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x4 operator *(int x, Int3x4 y) => default; /// @@ -4842,7 +4843,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x4 operator *(Int3x4 x, int y) => default; /// @@ -4856,7 +4857,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3 operator *(Int3x4 x, Int4 y) => default; /// @@ -4870,7 +4871,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x4 operator *(Int3x3 x, Int3x4 y) => default; /// @@ -4884,7 +4885,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x1 operator *(Int3x4 x, Int4x1 y) => default; /// @@ -4898,7 +4899,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x2 operator *(Int3x4 x, Int4x2 y) => default; /// @@ -4912,7 +4913,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x3 operator *(Int3x4 x, Int4x3 y) => default; /// @@ -4926,7 +4927,7 @@ public unsafe partial struct Int3x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int3x4 operator *(Int3x4 x, Int4x4 y) => default; /// @@ -5253,7 +5254,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x1 operator *(int x, Int4x1 y) => default; /// @@ -5267,7 +5268,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x1 operator *(Int4x1 x, int y) => default; /// @@ -5281,7 +5282,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x1 operator *(Int4x1 x, Int1x1 y) => default; /// @@ -5295,7 +5296,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x2 operator *(Int4x1 x, Int1x2 y) => default; /// @@ -5309,7 +5310,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x3 operator *(Int4x1 x, Int1x3 y) => default; /// @@ -5323,7 +5324,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x4 operator *(Int4x1 x, Int1x4 y) => default; /// @@ -5337,7 +5338,7 @@ public unsafe partial struct Int4x1 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x1 operator *(Int4x4 x, Int4x1 y) => default; /// @@ -5733,7 +5734,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x2 operator *(int x, Int4x2 y) => default; /// @@ -5747,7 +5748,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x2 operator *(Int4x2 x, int y) => default; /// @@ -5761,7 +5762,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(Int4x2 x, Int2 y) => default; /// @@ -5775,7 +5776,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x1 operator *(Int4x2 x, Int2x1 y) => default; /// @@ -5789,7 +5790,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x2 operator *(Int4x2 x, Int2x2 y) => default; /// @@ -5803,7 +5804,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x3 operator *(Int4x2 x, Int2x3 y) => default; /// @@ -5817,7 +5818,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x4 operator *(Int4x2 x, Int2x4 y) => default; /// @@ -5831,7 +5832,7 @@ public unsafe partial struct Int4x2 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x2 operator *(Int4x4 x, Int4x2 y) => default; /// @@ -6269,7 +6270,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x3 operator *(int x, Int4x3 y) => default; /// @@ -6283,7 +6284,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x3 operator *(Int4x3 x, int y) => default; /// @@ -6297,7 +6298,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4 operator *(Int4x3 x, Int3 y) => default; /// @@ -6311,7 +6312,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x1 operator *(Int4x3 x, Int3x1 y) => default; /// @@ -6325,7 +6326,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x2 operator *(Int4x3 x, Int3x2 y) => default; /// @@ -6339,7 +6340,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x3 operator *(Int4x3 x, Int3x3 y) => default; /// @@ -6353,7 +6354,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x4 operator *(Int4x3 x, Int3x4 y) => default; /// @@ -6367,7 +6368,7 @@ public unsafe partial struct Int4x3 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x3 operator *(Int4x4 x, Int4x3 y) => default; /// @@ -6853,7 +6854,7 @@ public unsafe partial struct Int4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x4 operator *(int x, Int4x4 y) => default; /// @@ -6867,7 +6868,7 @@ public unsafe partial struct Int4x4 /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static Int4x4 operator *(Int4x4 x, int y) => default; /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 3e62cbbc..69fff1a0 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -11,6 +11,12 @@ void GenerateAllMatrixProperties(string typeName, int elementSize) #> using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +<# + if (typeName == "Float" || typeName == "Int") + { + WriteLine("using ComputeSharp.Core.Intrinsics.Attributes;"); + } +#> #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; @@ -310,7 +316,7 @@ public unsafe partial struct <#=fullTypeName#> /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# } diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index cf275deb..25f2c264 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -58,6 +58,11 @@ void GenerateVectorProperties(string typeName, int elementSize) WriteLine("using System;"); WriteLine("using System.Globalization;"); } + + if (elementTypeName == "Float" || elementTypeName == "Int") + { + WriteLine("using ComputeSharp.Core.Intrinsics.Attributes;"); + } #> using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -374,7 +379,7 @@ public unsafe partial struct <#=typeName#> /// For more info, see . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// - [HlslIntrinsicName("mul", RequiresParametersMapping = true)] + [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# } From 7a92525b71cf840e29f7defc167f0d96b4876190 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 16:39:16 +0200 Subject: [PATCH 08/12] Implement operator intrinsics support for binary expressions --- .../SyntaxRewriters/HlslSourceRewriter.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs index e487032c..ba23e8d8 100644 --- a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs +++ b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs @@ -291,6 +291,31 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter return updatedNode; } + /// + public override SyntaxNode? VisitBinaryExpression(BinaryExpressionSyntax node) + { + var updatedNode = (BinaryExpressionSyntax)base.VisitBinaryExpression(node)!; + + // Process binary operations to see if the target operator method is an intrinsic + if (SemanticModel.For(node).GetOperation(node) is IBinaryOperation { OperatorMethod: { ContainingType.ContainingNamespace.Name: "ComputeSharp" } method }) + { + // If the operator is indeed an HLSL overload, replace the expression with an invocation. + // That is, do the following transformation: + // + // x * y => (x, y) + if (HlslKnownOperators.TryGetMappedName(method.GetFullMetadataName(), method.Parameters.Select(static p => p.Type.Name), out string? mapped)) + { + return + InvocationExpression(IdentifierName(mapped!)) + .AddArgumentListArguments( + Argument(updatedNode.Left), + Argument(updatedNode.Right)); + } + } + + return updatedNode; + } + /// public override SyntaxNode? VisitIdentifierName(IdentifierNameSyntax node) { From 1daf6338df440f5923469d74ea4e17da35e904c1 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 17:28:26 +0200 Subject: [PATCH 09/12] Remove mul() operators overriding scalar promotion multiplications --- .../Primitives/Float/Float2.g.cs | 28 -- .../Primitives/Float/Float3.g.cs | 28 -- .../Primitives/Float/Float4.g.cs | 28 -- .../Primitives/Float/FloatMxN.g.cs | 448 ------------------ .../Primitives/Int/Int2.g.cs | 28 -- .../Primitives/Int/Int3.g.cs | 28 -- .../Primitives/Int/Int4.g.cs | 28 -- .../Primitives/Int/IntMxN.g.cs | 448 ------------------ .../Primitives/MatrixType.ttinclude | 4 +- .../Primitives/VectorType.ttinclude | 20 +- 10 files changed, 22 insertions(+), 1066 deletions(-) diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index bbc61802..2ba0ec72 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -499,34 +499,6 @@ public unsafe partial struct Float2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator *(Float2 left, Float2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2 operator *(float x, Float2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2 operator *(Float2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 5d655a73..95d0c277 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1585,34 +1585,6 @@ public unsafe partial struct Float3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator *(Float3 left, Float3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3 operator *(float x, Float3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3 operator *(Float3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index e954aa8f..73593b57 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -4231,34 +4231,6 @@ public unsafe partial struct Float4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator *(Float4 left, Float4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4 operator *(float x, Float4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4 operator *(Float4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 54e0d5f6..6d8010e5 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -126,34 +126,6 @@ public unsafe partial struct Float1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator *(Float1x1 left, Float1x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x1 operator *(float x, Float1x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x1 operator *(Float1x1 x, float y) => default; - /// /// Subtracts two values. /// @@ -345,34 +317,6 @@ public unsafe partial struct Float1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator *(Float1x2 left, Float1x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x2 operator *(float x, Float1x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x2 operator *(Float1x2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -665,34 +609,6 @@ public unsafe partial struct Float1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator *(Float1x3 left, Float1x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x3 operator *(float x, Float1x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x3 operator *(Float1x3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -996,34 +912,6 @@ public unsafe partial struct Float1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator *(Float1x4 left, Float1x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x4 operator *(float x, Float1x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float1x4 operator *(Float1x4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1305,34 +1193,6 @@ public unsafe partial struct Float2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator *(Float2x1 left, Float2x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x1 operator *(float x, Float2x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x1 operator *(Float2x1 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1635,34 +1495,6 @@ public unsafe partial struct Float2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator *(Float2x2 left, Float2x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x2 operator *(float x, Float2x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x2 operator *(Float2x2 x, float y) => default; - /// /// Subtracts two values. /// @@ -1913,34 +1745,6 @@ public unsafe partial struct Float2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator *(Float2x3 left, Float2x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x3 operator *(float x, Float2x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x3 operator *(Float2x3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2299,34 +2103,6 @@ public unsafe partial struct Float2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator *(Float2x4 left, Float2x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x4 operator *(float x, Float2x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float2x4 operator *(Float2x4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2613,34 +2389,6 @@ public unsafe partial struct Float3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator *(Float3x1 left, Float3x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x1 operator *(float x, Float3x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x1 operator *(Float3x1 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2968,34 +2716,6 @@ public unsafe partial struct Float3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator *(Float3x2 left, Float3x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x2 operator *(float x, Float3x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x2 operator *(Float3x2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -3367,34 +3087,6 @@ public unsafe partial struct Float3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator *(Float3x3 left, Float3x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x3 operator *(float x, Float3x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x3 operator *(Float3x3 x, float y) => default; - /// /// Subtracts two values. /// @@ -3718,34 +3410,6 @@ public unsafe partial struct Float3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator *(Float3x4 left, Float3x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x4 operator *(float x, Float3x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float3x4 operator *(Float3x4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4043,34 +3707,6 @@ public unsafe partial struct Float4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator *(Float4x1 left, Float4x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x1 operator *(float x, Float4x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x1 operator *(Float4x1 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4423,34 +4059,6 @@ public unsafe partial struct Float4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator *(Float4x2 left, Float4x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x2 operator *(float x, Float4x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x2 operator *(Float4x2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4859,34 +4467,6 @@ public unsafe partial struct Float4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator *(Float4x3 left, Float4x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x3 operator *(float x, Float4x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x3 operator *(Float4x3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -5343,34 +4923,6 @@ public unsafe partial struct Float4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator *(Float4x4 left, Float4x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x4 operator *(float x, Float4x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Float4x4 operator *(Float4x4 x, float y) => default; - /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index ef3be113..107c4a56 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -499,34 +499,6 @@ public unsafe partial struct Int2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator *(Int2 left, Int2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2 operator *(int x, Int2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2 operator *(Int2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index fc61e841..b0ffbf82 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1585,34 +1585,6 @@ public unsafe partial struct Int3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator *(Int3 left, Int3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3 operator *(int x, Int3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3 operator *(Int3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 109b0908..362c31ce 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -4231,34 +4231,6 @@ public unsafe partial struct Int4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator *(Int4 left, Int4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4 operator *(int x, Int4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4 operator *(Int4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index 2a82aee7..f1b62349 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -126,34 +126,6 @@ public unsafe partial struct Int1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator *(Int1x1 left, Int1x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x1 operator *(int x, Int1x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x1 operator *(Int1x1 x, int y) => default; - /// /// Subtracts two values. /// @@ -445,34 +417,6 @@ public unsafe partial struct Int1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator *(Int1x2 left, Int1x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x2 operator *(int x, Int1x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x2 operator *(Int1x2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -865,34 +809,6 @@ public unsafe partial struct Int1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator *(Int1x3 left, Int1x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x3 operator *(int x, Int1x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x3 operator *(Int1x3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1296,34 +1212,6 @@ public unsafe partial struct Int1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator *(Int1x4 left, Int1x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x4 operator *(int x, Int1x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int1x4 operator *(Int1x4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1705,34 +1593,6 @@ public unsafe partial struct Int2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator *(Int2x1 left, Int2x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x1 operator *(int x, Int2x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x1 operator *(Int2x1 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2135,34 +1995,6 @@ public unsafe partial struct Int2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator *(Int2x2 left, Int2x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x2 operator *(int x, Int2x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x2 operator *(Int2x2 x, int y) => default; - /// /// Subtracts two values. /// @@ -2513,34 +2345,6 @@ public unsafe partial struct Int2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator *(Int2x3 left, Int2x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x3 operator *(int x, Int2x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x3 operator *(Int2x3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2999,34 +2803,6 @@ public unsafe partial struct Int2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator *(Int2x4 left, Int2x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x4 operator *(int x, Int2x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int2x4 operator *(Int2x4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -3413,34 +3189,6 @@ public unsafe partial struct Int3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator *(Int3x1 left, Int3x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x1 operator *(int x, Int3x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x1 operator *(Int3x1 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -3868,34 +3616,6 @@ public unsafe partial struct Int3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator *(Int3x2 left, Int3x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x2 operator *(int x, Int3x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x2 operator *(Int3x2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4367,34 +4087,6 @@ public unsafe partial struct Int3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator *(Int3x3 left, Int3x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x3 operator *(int x, Int3x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x3 operator *(Int3x3 x, int y) => default; - /// /// Subtracts two values. /// @@ -4818,34 +4510,6 @@ public unsafe partial struct Int3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator *(Int3x4 left, Int3x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x4 operator *(int x, Int3x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int3x4 operator *(Int3x4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -5243,34 +4907,6 @@ public unsafe partial struct Int4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator *(Int4x1 left, Int4x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x1 operator *(int x, Int4x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x1 operator *(Int4x1 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -5723,34 +5359,6 @@ public unsafe partial struct Int4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator *(Int4x2 left, Int4x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x2 operator *(int x, Int4x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x2 operator *(Int4x2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -6259,34 +5867,6 @@ public unsafe partial struct Int4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator *(Int4x3 left, Int4x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x3 operator *(int x, Int4x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x3 operator *(Int4x3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -6843,34 +6423,6 @@ public unsafe partial struct Int4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator *(Int4x4 left, Int4x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x4 operator *(int x, Int4x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// For more info, see . - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - /// - [HlslIntrinsicName("mul", RequiresParametersMatching = true)] - public static Int4x4 operator *(Int4x4 x, int y) => default; - /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 69fff1a0..63d6265b 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -297,9 +297,11 @@ public unsafe partial struct <#=fullTypeName#> /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator *(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; <# - // Process all operators for the mul() intrinsic + // Process all operators for the mul() intrinsic (see comments in VectorType.ttinclude for info on the filters below) foreach (var mulOverload in MulOverloads.Where(overload => !(overload.Params[0] == fullTypeName && overload.Params[1] == fullTypeName) && + Regex.IsMatch(overload.Params[0], @"\d") && + Regex.IsMatch(overload.Params[1], @"\d") && (overload.Return == fullTypeName && overload.Params.Contains(fullTypeName) || !overload.Params.Contains(overload.Return) && overload.Params[0] == fullTypeName))) { diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 25f2c264..295c6e1a 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -360,9 +360,27 @@ public unsafe partial struct <#=typeName#> /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default; <# - // Process all operators for the mul() intrinsic + // Process all operators for the mul() intrinsic. We apply the following filtering: + // 1) Operators where both arguments are of the containing type are skipped. This is because + // this operation is already defined as an elementwise product for all vector/matrix types. + // Defining the operator would cause a conflict, plus it would alter the semantics anyway. + // 2) Operators where either parameter is a primitive type (ie. not a vector) are skipped. This + // is because such operation is already implicitly defined (it's an elementwise product where + // the scalar is auto-promoted to the same vector/matrix type of the other argument). Again, + // defining the operator would cause the semantics of such expressions to change to a cross + // product, so these operators are intentionally skipped to keep code consistent with HLSL. + // 3) Among all available overloads, only either of these two cases are selected: + // - The containing type matches the return type and the first parameter type of the operator. + // This ensures that all overloads where the return type matches the containing type and the + // first parameter are generated inside the containing type, as one would do manually as well. + // - The return type is unlike both parameter types, but the containing type matches the type of + // the first parameter. This is the case when the operator (ie. the cross product) produces a + // result that's of a completely different type. In this case, the overload maps to a generated + // operator declared in the type that matches the type of the first parameter, as a convention. foreach (var mulOverload in MulOverloads.Where(overload => !(overload.Params[0] == typeName && overload.Params[1] == typeName) && + Regex.IsMatch(overload.Params[0], @"\d") && + Regex.IsMatch(overload.Params[1], @"\d") && (overload.Return == typeName && overload.Params.Contains(typeName) || !overload.Params.Contains(overload.Return) && overload.Params[0] == typeName))) { From 488f1912fca1681a31c26a88d8a3efd47ab43d8d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 18:16:42 +0200 Subject: [PATCH 10/12] Add scalar promotion multiplication operators for Float/Int types This avoids overload resolution conflicts with the mul() operators --- .../Primitives/Float/Float2.g.cs | 18 ++ .../Primitives/Float/Float3.g.cs | 18 ++ .../Primitives/Float/Float4.g.cs | 18 ++ .../Primitives/Float/FloatMxN.g.cs | 288 ++++++++++++++++++ .../Primitives/Int/Int2.g.cs | 18 ++ .../Primitives/Int/Int3.g.cs | 18 ++ .../Primitives/Int/Int4.g.cs | 18 ++ .../Primitives/Int/IntMxN.g.cs | 288 ++++++++++++++++++ .../Primitives/MatrixType.ttinclude | 39 ++- .../Primitives/VectorType.ttinclude | 72 +++-- 10 files changed, 765 insertions(+), 30 deletions(-) diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index 2ba0ec72..0d57e369 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -499,6 +499,24 @@ public unsafe partial struct Float2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator *(Float2 left, Float2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator *(Float2 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator *(float left, Float2 right) => default; + /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 95d0c277..fcc3c0d8 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1585,6 +1585,24 @@ public unsafe partial struct Float3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator *(Float3 left, Float3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator *(Float3 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator *(float left, Float3 right) => default; + /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index 73593b57..199d5dd2 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -4231,6 +4231,24 @@ public unsafe partial struct Float4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator *(Float4 left, Float4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator *(Float4 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator *(float left, Float4 right) => default; + /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 6d8010e5..026093b4 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -126,6 +126,24 @@ public unsafe partial struct Float1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator *(Float1x1 left, Float1x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x1 operator *(Float1x1 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x1 operator *(float left, Float1x1 right) => default; + /// /// Subtracts two values. /// @@ -317,6 +335,24 @@ public unsafe partial struct Float1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator *(Float1x2 left, Float1x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x2 operator *(Float1x2 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x2 operator *(float left, Float1x2 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -609,6 +645,24 @@ public unsafe partial struct Float1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator *(Float1x3 left, Float1x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x3 operator *(Float1x3 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x3 operator *(float left, Float1x3 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -912,6 +966,24 @@ public unsafe partial struct Float1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator *(Float1x4 left, Float1x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x4 operator *(Float1x4 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x4 operator *(float left, Float1x4 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -1193,6 +1265,24 @@ public unsafe partial struct Float2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator *(Float2x1 left, Float2x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x1 operator *(Float2x1 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x1 operator *(float left, Float2x1 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -1495,6 +1585,24 @@ public unsafe partial struct Float2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator *(Float2x2 left, Float2x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x2 operator *(Float2x2 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x2 operator *(float left, Float2x2 right) => default; + /// /// Subtracts two values. /// @@ -1745,6 +1853,24 @@ public unsafe partial struct Float2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator *(Float2x3 left, Float2x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x3 operator *(Float2x3 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x3 operator *(float left, Float2x3 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -2103,6 +2229,24 @@ public unsafe partial struct Float2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator *(Float2x4 left, Float2x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x4 operator *(Float2x4 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x4 operator *(float left, Float2x4 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -2389,6 +2533,24 @@ public unsafe partial struct Float3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator *(Float3x1 left, Float3x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x1 operator *(Float3x1 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x1 operator *(float left, Float3x1 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -2716,6 +2878,24 @@ public unsafe partial struct Float3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator *(Float3x2 left, Float3x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x2 operator *(Float3x2 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x2 operator *(float left, Float3x2 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -3087,6 +3267,24 @@ public unsafe partial struct Float3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator *(Float3x3 left, Float3x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x3 operator *(Float3x3 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x3 operator *(float left, Float3x3 right) => default; + /// /// Subtracts two values. /// @@ -3410,6 +3608,24 @@ public unsafe partial struct Float3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator *(Float3x4 left, Float3x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x4 operator *(Float3x4 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x4 operator *(float left, Float3x4 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -3707,6 +3923,24 @@ public unsafe partial struct Float4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator *(Float4x1 left, Float4x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x1 operator *(Float4x1 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x1 operator *(float left, Float4x1 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -4059,6 +4293,24 @@ public unsafe partial struct Float4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator *(Float4x2 left, Float4x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x2 operator *(Float4x2 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x2 operator *(float left, Float4x2 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -4467,6 +4719,24 @@ public unsafe partial struct Float4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator *(Float4x3 left, Float4x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x3 operator *(Float4x3 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x3 operator *(float left, Float4x3 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -4923,6 +5193,24 @@ public unsafe partial struct Float4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator *(Float4x4 left, Float4x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x4 operator *(Float4x4 left, float right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x4 operator *(float left, Float4x4 right) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index 107c4a56..9066df25 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -499,6 +499,24 @@ public unsafe partial struct Int2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator *(Int2 left, Int2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2 operator *(Int2 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2 operator *(int left, Int2 right) => default; + /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index b0ffbf82..8dfad0ef 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1585,6 +1585,24 @@ public unsafe partial struct Int3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator *(Int3 left, Int3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3 operator *(Int3 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3 operator *(int left, Int3 right) => default; + /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 362c31ce..d7e64606 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -4231,6 +4231,24 @@ public unsafe partial struct Int4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator *(Int4 left, Int4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4 operator *(Int4 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4 operator *(int left, Int4 right) => default; + /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index f1b62349..03b54736 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -126,6 +126,24 @@ public unsafe partial struct Int1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator *(Int1x1 left, Int1x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x1 operator *(Int1x1 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x1 operator *(int left, Int1x1 right) => default; + /// /// Subtracts two values. /// @@ -417,6 +435,24 @@ public unsafe partial struct Int1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator *(Int1x2 left, Int1x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x2 operator *(Int1x2 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x2 operator *(int left, Int1x2 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -809,6 +845,24 @@ public unsafe partial struct Int1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator *(Int1x3 left, Int1x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x3 operator *(Int1x3 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x3 operator *(int left, Int1x3 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -1212,6 +1266,24 @@ public unsafe partial struct Int1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator *(Int1x4 left, Int1x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x4 operator *(Int1x4 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x4 operator *(int left, Int1x4 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -1593,6 +1665,24 @@ public unsafe partial struct Int2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator *(Int2x1 left, Int2x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x1 operator *(Int2x1 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x1 operator *(int left, Int2x1 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -1995,6 +2085,24 @@ public unsafe partial struct Int2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator *(Int2x2 left, Int2x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x2 operator *(Int2x2 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x2 operator *(int left, Int2x2 right) => default; + /// /// Subtracts two values. /// @@ -2345,6 +2453,24 @@ public unsafe partial struct Int2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator *(Int2x3 left, Int2x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x3 operator *(Int2x3 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x3 operator *(int left, Int2x3 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -2803,6 +2929,24 @@ public unsafe partial struct Int2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator *(Int2x4 left, Int2x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x4 operator *(Int2x4 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x4 operator *(int left, Int2x4 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -3189,6 +3333,24 @@ public unsafe partial struct Int3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator *(Int3x1 left, Int3x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x1 operator *(Int3x1 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x1 operator *(int left, Int3x1 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -3616,6 +3778,24 @@ public unsafe partial struct Int3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator *(Int3x2 left, Int3x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x2 operator *(Int3x2 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x2 operator *(int left, Int3x2 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -4087,6 +4267,24 @@ public unsafe partial struct Int3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator *(Int3x3 left, Int3x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x3 operator *(Int3x3 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x3 operator *(int left, Int3x3 right) => default; + /// /// Subtracts two values. /// @@ -4510,6 +4708,24 @@ public unsafe partial struct Int3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator *(Int3x4 left, Int3x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x4 operator *(Int3x4 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x4 operator *(int left, Int3x4 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -4907,6 +5123,24 @@ public unsafe partial struct Int4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator *(Int4x1 left, Int4x1 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x1 operator *(Int4x1 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x1 operator *(int left, Int4x1 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -5359,6 +5593,24 @@ public unsafe partial struct Int4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator *(Int4x2 left, Int4x2 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x2 operator *(Int4x2 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x2 operator *(int left, Int4x2 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -5867,6 +6119,24 @@ public unsafe partial struct Int4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator *(Int4x3 left, Int4x3 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x3 operator *(Int4x3 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x3 operator *(int left, Int4x3 right) => default; + /// /// Multiplies two values using matrix math. /// @@ -6423,6 +6693,24 @@ public unsafe partial struct Int4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator *(Int4x4 left, Int4x4 right) => default; + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x4 operator *(Int4x4 left, int right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x4 operator *(int left, Int4x4 right) => default; + /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 63d6265b..a4134dcd 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -297,15 +297,39 @@ public unsafe partial struct <#=fullTypeName#> /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator *(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; <# - // Process all operators for the mul() intrinsic (see comments in VectorType.ttinclude for info on the filters below) - foreach (var mulOverload in MulOverloads.Where(overload => - !(overload.Params[0] == fullTypeName && overload.Params[1] == fullTypeName) && - Regex.IsMatch(overload.Params[0], @"\d") && - Regex.IsMatch(overload.Params[1], @"\d") && - (overload.Return == fullTypeName && overload.Params.Contains(fullTypeName) || - !overload.Params.Contains(overload.Return) && overload.Params[0] == fullTypeName))) + if (typeName == "Float" || typeName == "Int") { + // Add explicit operators when needed, see notes in VectorType.ttinclude for info WriteLine(""); +#> + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static <#=fullTypeName#> operator *(<#=fullTypeName#> left, <#=elementTypeName#> right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static <#=fullTypeName#> operator *(<#=elementTypeName#> left, <#=fullTypeName#> right) => default; +<# + + // Process all operators for the mul() intrinsic (see comments in VectorType.ttinclude for info on the filters below) + foreach (var mulOverload in MulOverloads.Where(overload => + !(overload.Params[0] == fullTypeName && overload.Params[1] == fullTypeName) && + Regex.IsMatch(overload.Params[0], @"\d") && + Regex.IsMatch(overload.Params[1], @"\d") && + (overload.Return == fullTypeName && overload.Params.Contains(fullTypeName) || + !overload.Params.Contains(overload.Return) && overload.Params[0] == fullTypeName))) + { + WriteLine(""); #> /// /// Multiplies two values using matrix math. @@ -321,6 +345,7 @@ public unsafe partial struct <#=fullTypeName#> [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# + } } WriteLine(""); diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 295c6e1a..6b75ac34 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -360,31 +360,56 @@ public unsafe partial struct <#=typeName#> /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default; <# - // Process all operators for the mul() intrinsic. We apply the following filtering: - // 1) Operators where both arguments are of the containing type are skipped. This is because - // this operation is already defined as an elementwise product for all vector/matrix types. - // Defining the operator would cause a conflict, plus it would alter the semantics anyway. - // 2) Operators where either parameter is a primitive type (ie. not a vector) are skipped. This - // is because such operation is already implicitly defined (it's an elementwise product where - // the scalar is auto-promoted to the same vector/matrix type of the other argument). Again, - // defining the operator would cause the semantics of such expressions to change to a cross - // product, so these operators are intentionally skipped to keep code consistent with HLSL. - // 3) Among all available overloads, only either of these two cases are selected: - // - The containing type matches the return type and the first parameter type of the operator. - // This ensures that all overloads where the return type matches the containing type and the - // first parameter are generated inside the containing type, as one would do manually as well. - // - The return type is unlike both parameter types, but the containing type matches the type of - // the first parameter. This is the case when the operator (ie. the cross product) produces a - // result that's of a completely different type. In this case, the overload maps to a generated - // operator declared in the type that matches the type of the first parameter, as a convention. - foreach (var mulOverload in MulOverloads.Where(overload => - !(overload.Params[0] == typeName && overload.Params[1] == typeName) && - Regex.IsMatch(overload.Params[0], @"\d") && - Regex.IsMatch(overload.Params[1], @"\d") && - (overload.Return == typeName && overload.Params.Contains(typeName) || - !overload.Params.Contains(overload.Return) && overload.Params[0] == typeName))) + if (elementTypeName == "Float" || elementTypeName == "Int") { + // Note: for Float and Int vector types, we need to also add explicit operators doing scalar promotion, + // otherwise there would be an overload issue trying to resolve the right overload when just multiplying + // by a scalar (which is not using the mul() intrinsic, but just doing elementwise product with promotion). WriteLine(""); +#> + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static <#=typeName#> operator *(<#=typeName#> left, <#=hlslElementTypeName#> right) => default; + + /// + /// Multiplies a pair of and values. + /// + /// The value to multiply. + /// The value to multiply. + /// The result of multiplying and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static <#=typeName#> operator *(<#=hlslElementTypeName#> left, <#=typeName#> right) => default; +<# + // Process all operators for the mul() intrinsic. We apply the following filtering: + // 1) Operators where both arguments are of the containing type are skipped. This is because + // this operation is already defined as an elementwise product for all vector/matrix types. + // Defining the operator would cause a conflict, plus it would alter the semantics anyway. + // 2) Operators where either parameter is a primitive type (ie. not a vector) are skipped. This + // is because such operation is already implicitly defined (it's an elementwise product where + // the scalar is auto-promoted to the same vector/matrix type of the other argument). Again, + // defining the operator would cause the semantics of such expressions to change to a cross + // product, so these operators are intentionally skipped to keep code consistent with HLSL. + // 3) Among all available overloads, only either of these two cases are selected: + // - The containing type matches the return type and the first parameter type of the operator. + // This ensures that all overloads where the return type matches the containing type and the + // first parameter are generated inside the containing type, as one would do manually as well. + // - The return type is unlike both parameter types, but the containing type matches the type of + // the first parameter. This is the case when the operator (ie. the cross product) produces a + // result that's of a completely different type. In this case, the overload maps to a generated + // operator declared in the type that matches the type of the first parameter, as a convention. + foreach (var mulOverload in MulOverloads.Where(overload => + !(overload.Params[0] == typeName && overload.Params[1] == typeName) && + Regex.IsMatch(overload.Params[0], @"\d") && + Regex.IsMatch(overload.Params[1], @"\d") && + (overload.Return == typeName && overload.Params.Contains(typeName) || + !overload.Params.Contains(overload.Return) && overload.Params[0] == typeName))) + { + WriteLine(""); #> /// /// Multiplies two values using matrix math. @@ -400,6 +425,7 @@ public unsafe partial struct <#=typeName#> [HlslIntrinsicName("mul", RequiresParametersMatching = true)] public static <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default; <# + } } WriteLine(""); From 83e21627007b8665b1bbae8708c520a58913061d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 19:02:38 +0200 Subject: [PATCH 11/12] Implement operator intrinsics support for compound assignments --- .../SyntaxRewriters/HlslSourceRewriter.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs index ba23e8d8..bda83b72 100644 --- a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs +++ b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs @@ -291,6 +291,33 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter return updatedNode; } + /// + public override SyntaxNode? VisitAssignmentExpression(AssignmentExpressionSyntax node) + { + var updatedNode = (AssignmentExpressionSyntax)base.VisitAssignmentExpression(node)!; + + if (SemanticModel.For(node).GetOperation(node) is ICompoundAssignmentOperation { OperatorMethod: { ContainingType.ContainingNamespace.Name: "ComputeSharp" } method }) + { + // If the compound assignment is using an HLSL operator, replace the expression with an invocation and assignment. + // That is, do the following transformation: + // + // x *= y => x = (x, y) + if (HlslKnownOperators.TryGetMappedName(method.GetFullMetadataName(), method.Parameters.Select(static p => p.Type.Name), out string? mapped)) + { + return + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + updatedNode.Left, + InvocationExpression(IdentifierName(mapped!)) + .AddArgumentListArguments( + Argument(updatedNode.Left), + Argument(updatedNode.Right))); + } + } + + return updatedNode; + } + /// public override SyntaxNode? VisitBinaryExpression(BinaryExpressionSyntax node) { From e66fd0f88f5d521771021a4a1e4f5af82ffe03b8 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 28 Aug 2022 21:10:44 +0200 Subject: [PATCH 12/12] Add unit tests for GLSL-style operators rewriting --- .../ComputeSharp.Tests/ShaderMembersTests.cs | 4 +- .../ComputeSharp.Tests/ShaderRewriterTests.cs | 139 +++++++++++++++++- 2 files changed, 138 insertions(+), 5 deletions(-) diff --git a/tests/ComputeSharp.Tests/ShaderMembersTests.cs b/tests/ComputeSharp.Tests/ShaderMembersTests.cs index 706aed37..5c83f514 100644 --- a/tests/ComputeSharp.Tests/ShaderMembersTests.cs +++ b/tests/ComputeSharp.Tests/ShaderMembersTests.cs @@ -85,7 +85,7 @@ public partial class ShaderMembersTests } } - // See: https://github.com/Sergio0694/ComputeSharp/issues/193 + // See https://github.com/Sergio0694/ComputeSharp/issues/193 [CombinatorialTestMethod] [AllDevices] public void BoolInstanceFields(Device device) @@ -135,7 +135,7 @@ public partial class ShaderMembersTests } } - // See: https://github.com/Sergio0694/ComputeSharp/issues/193 + // See https://github.com/Sergio0694/ComputeSharp/issues/193 [CombinatorialTestMethod] [AllDevices] public void BoolInstanceFieldInCustomStruct(Device device) diff --git a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs index 8b9cb27c..2d12710a 100644 --- a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs +++ b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs @@ -84,7 +84,7 @@ public partial class ShaderRewriterTests } } - // See: https://github.com/Sergio0694/ComputeSharp/issues/233 + // See https://github.com/Sergio0694/ComputeSharp/issues/233 [CombinatorialTestMethod] [AllDevices] public void CustomHlslOperators(Device device) @@ -130,7 +130,7 @@ public partial class ShaderRewriterTests } } - // See: https://github.com/Sergio0694/ComputeSharp/issues/361 + // See https://github.com/Sergio0694/ComputeSharp/issues/361 [CombinatorialTestMethod] [AllDevices] public void BitwiseHlslOperators(Device device) @@ -394,7 +394,7 @@ public partial class ShaderRewriterTests } } - // See: https://github.com/Sergio0694/ComputeSharp/issues/259 + // See https://github.com/Sergio0694/ComputeSharp/issues/259 [CombinatorialTestMethod] [AllDevices] public void ConstantsInShaderConstantFields(Device device) @@ -577,4 +577,137 @@ public partial class ShaderRewriterTests Hlsl.InterlockedCompareExchange(ref buffer[ThreadIds.X], ThreadIds.X, ThreadIds.X * 2, out _); } } + + // See https://github.com/Sergio0694/ComputeSharp/issues/156 + [CombinatorialTestMethod] + [AllDevices] + public void GlslStyleMulOperators(Device device) + { + float[] data1 = { 0.727829933f, 0.6413954f, 0.9373726f, 0.7044427f, 0.46349f, 0.8098116f, 0.604649544f, 0.309247822f, 0.470999569f, 0.7374923f, 0.6993038f, 0.518516064f, 0.44598946f }; + int[] data2 = { 287, 295, 953, 465, 1011, 308, 982, 186, 323, 325, 156, 454, 580 }; + + using ReadOnlyBuffer buffer1 = device.Get().AllocateReadOnlyBuffer(data1); + using ReadOnlyBuffer buffer2 = device.Get().AllocateReadOnlyBuffer(data2); + using ReadWriteBuffer buffer3 = device.Get().AllocateReadWriteBuffer(22, AllocationMode.Clear); + using ReadWriteBuffer buffer4 = device.Get().AllocateReadWriteBuffer(22, AllocationMode.Clear); + + device.Get().For(1, new GlslStyleMulOperatorsShader(buffer1, buffer2, buffer3, buffer4)); + + float[] results1 = buffer3.ToArray(); + int[] results2 = buffer4.ToArray(); + + CollectionAssert.AreEqual( + expected: results1.AsSpan(11).ToArray(), + actual: results1.AsSpan(0, 11).ToArray()); + + CollectionAssert.AreEqual( + expected: results2.AsSpan(11).ToArray(), + actual: results2.AsSpan(0, 11).ToArray()); + } + + [AutoConstructor] + internal readonly partial struct GlslStyleMulOperatorsShader : IComputeShader + { + public readonly ReadOnlyBuffer source1; + public readonly ReadOnlyBuffer source2; + public readonly ReadWriteBuffer destination1; + public readonly ReadWriteBuffer destination2; + + public void Execute() + { + float2 f2 = new(source1[0], source1[1]); + float f = source1[2]; + float2x2 f22 = new(source1[3], source1[4], source1[5], source1[6]); + float2x3 f23 = new(source1[7], source1[8], source1[9], source1[10], source1[11], source1[12]); + + float2 rf1 = f2 * f; + float2 rf2 = f * f2; + float2 rf3 = f2 * f22; + float3 rf4 = f2 * f23; + + float2 f2_copy1 = f2; + + f2_copy1 *= f22; + + float2 rf5 = new(f2.X * f, f2.Y * f); + float2 rf6 = Hlsl.Mul(f, f2); + float2 rf7 = Hlsl.Mul(f2, f22); + float3 rf8 = Hlsl.Mul(f2, f23); + + var f2_copy2 = f2; + + f2_copy2 = Hlsl.Mul(f2_copy2, f22); + + destination1[0] = rf1.X; + destination1[1] = rf1.Y; + destination1[2] = rf2.X; + destination1[3] = rf2.Y; + destination1[4] = rf3.X; + destination1[5] = rf3.Y; + destination1[6] = rf4.X; + destination1[7] = rf4.Y; + destination1[8] = rf4.Z; + destination1[9] = f2_copy1.X; + destination1[10] = f2_copy1.Y; + + destination1[11] = rf5.X; + destination1[12] = rf5.Y; + destination1[13] = rf6.X; + destination1[14] = rf6.Y; + destination1[15] = rf7.X; + destination1[16] = rf7.Y; + destination1[17] = rf8.X; + destination1[18] = rf8.Y; + destination1[19] = rf8.Z; + destination1[20] = f2_copy2.X; + destination1[21] = f2_copy2.Y; + + int2 i2 = new(source2[0], source2[1]); + int i = source2[2]; + int2x2 i22 = new(source2[3], source2[4], source2[5], source2[6]); + int2x3 i23 = new(source2[7], source2[8], source2[9], source2[10], source2[11], source2[12]); + + int2 ri1 = i2 * i; + int2 ri2 = i * i2; + int2 ri3 = i2 * i22; + int3 ri4 = i2 * i23; + + int2 i2_copy1 = i2; + + i2_copy1 *= i22; + + int2 ri5 = new(i2.X * i, i2.Y * i); + int2 ri6 = Hlsl.Mul(i, i2); + int2 ri7 = Hlsl.Mul(i2, i22); + int3 ri8 = Hlsl.Mul(i2, i23); + + var i2_copy2 = i2; + + i2_copy2 = Hlsl.Mul(i2_copy2, i22); + + destination2[0] = ri1.X; + destination2[1] = ri1.Y; + destination2[2] = ri2.X; + destination2[3] = ri2.Y; + destination2[4] = ri3.X; + destination2[5] = ri3.Y; + destination2[6] = ri4.X; + destination2[7] = ri4.Y; + destination2[8] = ri4.Z; + destination2[9] = i2_copy1.X; + destination2[10] = i2_copy1.Y; + + destination2[11] = ri5.X; + destination2[12] = ri5.Y; + destination2[13] = ri6.X; + destination2[14] = ri6.Y; + destination2[15] = ri7.X; + destination2[16] = ri7.Y; + destination2[17] = ri8.X; + destination2[18] = ri8.Y; + destination2[19] = ri8.Z; + destination2[20] = i2_copy2.X; + destination2[21] = i2_copy2.Y; + } + } }