Expand description
SSE2 Accelerated noise functions.
Use is_x86_feature_detected!("sse2")
provided
by the Rust stanard library to detect at runtime.
When using the get_
functions, you will get a performance boost when width
is evenly divisble by 4, and when it is not small relative height and depth.
Functions§
- cellular_
2d ⚠sse2
- Get a single value of 2d cellular/voroni noise
- cellular_
3d ⚠sse2
- Get a single value of 3d cellular/voroni noise
- fbm_1d⚠
sse2
- Get a single value of 1d fractal brownian motion.
- fbm_2d⚠
sse2
- Get a single value of 2d fractal brownian motion.
- fbm_3d⚠
sse2
- Get a single value of 3d fractal brownian motion.
- fbm_4d⚠
sse2
- Get a single value of 4d fractal brownian motion.
- get_
1d_ ⚠noise sse2
- Gets a width sized block of 1d noise, unscaled.
start_x
can be used to provide an offset in the coordinates. Results are unscaled, ‘min’ and ‘max’ noise values are returned so you can scale and transform the noise as you see fit in a single pass. - get_
1d_ ⚠scaled_ noise sse2
- Gets a width sized block of scaled 2d noise
start_x
can be used to provide an offset in the coordinates.scaled_min
andscaled_max
specify the range you want the noise scaled to. - get_
2d_ ⚠noise sse2
- Gets a width X height sized block of 2d noise, unscaled.
start_x
andstart_y
can be used to provide an offset in the coordinates. Results are unscaled, ‘min’ and ‘max’ noise values are returned so you can scale and transform the noise as you see fit in a single pass. - get_
2d_ ⚠scaled_ noise sse2
- Gets a width X height sized block of scaled 2d noise
start_x
andstart_y
can be used to provide an offset in the coordinates.scaled_min
andscaled_max
specify the range you want the noise scaled to. - get_
3d_ ⚠noise sse2
- Gets a width X height X depth sized block of 3d noise, unscaled,
start_x
,start_y
andstart_z
can be used to provide an offset in the coordinates. Results are unscaled, ‘min’ and ‘max’ noise values are returned so you can scale and transform the noise as you see fit in a single pass. - get_
3d_ ⚠scaled_ noise sse2
- Gets a width X height X depth sized block of scaled 3d noise
start_x
,start_y
andstart_z
can be used to provide an offset in the coordinates.scaled_min
andscaled_max
specify the range you want the noise scaled to. - get_
4d_ ⚠noise sse2
- Gets a width X height X depth x time sized block of 4d noise, unscaled,
start_*
can be used to provide an offset in the coordinates. Results are unscaled, ‘min’ and ‘max’ noise values are returned so you can scale and transform the noise as you see fit in a single pass. - get_
4d_ ⚠scaled_ noise sse2
- Gets a width X height X depth X time sized block of scaled 4d noise
start_*
can be used to provide an offset in the coordinates.scaled_min
andscaled_max
specify the range you want the noise scaled to. - ridge_
1d ⚠sse2
- Get a single value of 2d ridge noise.
- ridge_
2d ⚠sse2
- Get a single value of 2d ridge noise.
- ridge_
3d ⚠sse2
- Get a single value of 3d ridge noise.
- ridge_
4d ⚠sse2
- Get a single value of 4d ridge noise.
- simplex_
1d ⚠sse2
- Get a single value of 1d simplex noise, results are not scaled.
- simplex_
2d ⚠sse2
- Get a single value of 2d simplex noise, results are not scaled.
- simplex_
3d ⚠sse2
- Get a single value of 3d simplex noise, results are not scaled.
- simplex_
4d ⚠sse2
- Get a single value of 4d simplex noise, results are not scaled.
- turbulence_
1d ⚠sse2
- Get a single value of 2d turbulence.
- turbulence_
2d ⚠sse2
- Get a single value of 2d turbulence.
- turbulence_
3d ⚠sse2
- Get a single value of 3d turbulence.
- turbulence_
4d ⚠sse2
- Get a single value of 4d turbulence.