summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorcheneym2 <acheney@nvidia.com>2025-02-24 12:56:43 -0500
committerGitHub <noreply@github.com>2025-02-24 09:56:43 -0800
commit4e897189e301e44cba71906e6c5e561b7cd07a62 (patch)
treea42253e85cfc1ea191ec41203fbbf4a128983297 /source
parent5bf0c95294fbe88f7cfa0cdbfba2e96643d232a4 (diff)
Remove noise() from core library (#6421)
noise() is currently marked "unsupported" in Slang documentation, and has also been unsupported in HLSL since SM 2.0 Until now, noise() was present only to prevent compilation errors, but not for any actual use since it returns 0.0 always. Closes #5775
Diffstat (limited to 'source')
-rw-r--r--source/slang/hlsl.meta.slang19
1 files changed, 0 insertions, 19 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang
index 78eb48a33..a2b685b69 100644
--- a/source/slang/hlsl.meta.slang
+++ b/source/slang/hlsl.meta.slang
@@ -11676,25 +11676,6 @@ vector<T,N> nextafter(vector<T,N> x, vector<T,N> y)
}
}
-/// Generate a random number (unsupported).
-/// @param x The seed value.
-/// @remarks This function is not supported in that it always returns 0.
-/// @deprecated
-/// @category math
-[__readNone]
-[deprecated("Always returns 0")]
-float noise(float x)
-{
- return 0;
-}
-
-[__readNone]
-[deprecated("Always returns 0")]
-__generic<let N : int> float noise(vector<float, N> x)
-{
- return 0;
-}
-
/// Indicate that an index may be non-uniform at execution time.
///
/// Shader Model 5.1 and 6.x introduce support for dynamic indexing