diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs index e029ee85..eb155fb4 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs @@ -4597,7 +4597,7 @@ namespace ComputeSharp /// The dot product of the parameter and the parameter. [Pure] [HlslIntrinsicName("dot")] - public static float Dot(Int2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int2)}, {typeof(Int2)})"); + public static int Dot(Int2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int2)}, {typeof(Int2)})"); /// /// Returns the dot product of two vectors. @@ -4607,7 +4607,7 @@ namespace ComputeSharp /// The dot product of the parameter and the parameter. [Pure] [HlslIntrinsicName("dot")] - public static float Dot(Int3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int3)}, {typeof(Int3)})"); + public static int Dot(Int3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int3)}, {typeof(Int3)})"); /// /// Returns the dot product of two vectors. @@ -4617,7 +4617,7 @@ namespace ComputeSharp /// The dot product of the parameter and the parameter. [Pure] [HlslIntrinsicName("dot")] - public static float Dot(Int4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int4)}, {typeof(Int4)})"); + public static int Dot(Int4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int4)}, {typeof(Int4)})"); /// /// Returns the base-e exponential of the specified value. diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude index 18195278..33497476 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude @@ -824,9 +824,9 @@ var Intrinsics = new[] new { Return = "float", Params = new[] { "Float2", "Float2" } }, new { Return = "float", Params = new[] { "Float3", "Float3" } }, new { Return = "float", Params = new[] { "Float4", "Float4" } }, - new { Return = "float", Params = new[] { "Int2", "Int2" } }, - new { Return = "float", Params = new[] { "Int3", "Int3" } }, - new { Return = "float", Params = new[] { "Int4", "Int4" } } + new { Return = "int", Params = new[] { "Int2", "Int2" } }, + new { Return = "int", Params = new[] { "Int3", "Int3" } }, + new { Return = "int", Params = new[] { "Int4", "Int4" } } }, IsPure = true },