MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / noise

Function noise

amd_lib/shared/d3d11/src/AMD_Rand.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace AMD
29{
30 float noise(uint x)
31 {
32 x = (x<<13) ^ x;
33 return ( 1.0f - ( (x * (x * x * 15731 + 789221) + 1376312589) & 0x7fffffff) / 1073741824.0f);
34 }
35
36 float random_float(uint seed, float a, float b)
37 {

Callers 1

random_floatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected