From 5e80d7910e82827a158500a4ce36da5a57709b20 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 13 Mar 2021 14:33:16 +0100 Subject: [PATCH] Removed unsupported noise HLSL intrinsic --- src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs | 27 ------------------- .../Core/Intrinsics/Hlsl.ttinclude | 18 ------------- 2 files changed, 45 deletions(-) diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs index 4743c153..102e479e 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs @@ -11471,33 +11471,6 @@ namespace ComputeSharp [HlslIntrinsicName("mul")] public static Int4x4 Mul(Int4x4 x, Int4x4 y) => default; /// - /// Generates a random value using the Perlin-noise algorithm. - /// - /// A floating-point vector from which to generate Perlin noise. - /// The Perlin noise value within a range between -1 and 1. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - [Pure] - [HlslIntrinsicName("noise")] - public static float Noise(Float2 x) => default; - /// - /// Generates a random value using the Perlin-noise algorithm. - /// - /// A floating-point vector from which to generate Perlin noise. - /// The Perlin noise value within a range between -1 and 1. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - [Pure] - [HlslIntrinsicName("noise")] - public static float Noise(Float3 x) => default; - /// - /// Generates a random value using the Perlin-noise algorithm. - /// - /// A floating-point vector from which to generate Perlin noise. - /// The Perlin noise value within a range between -1 and 1. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - [Pure] - [HlslIntrinsicName("noise")] - public static float Noise(Float4 x) => default; - /// /// Normalizes the specified floating-point vector according to x / length(x). /// /// The specified floating-point vector. diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude index 33497476..0fb2200d 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude @@ -1888,24 +1888,6 @@ var Intrinsics = new[] IsPure = true }, new - { - Name = "Noise", - HlslName = "noise", - Summary = "Generates a random value using the Perlin-noise algorithm.", - Parameters = new[] - { - new { IsOut = false, Name = "x", Info = "A floating-point vector from which to generate Perlin noise." } - }, - Returns = "The Perlin noise value within a range between -1 and 1.", - Overloads = new[] - { - new { Return = "float", Params = new[] { "Float2" } }, - new { Return = "float", Params = new[] { "Float3" } }, - new { Return = "float", Params = new[] { "Float4" } } - }, - IsPure = true - }, - new { Name = "Normalize", HlslName = "normalize",