Module simdnoise::sse41[][src]

SSE41 Accelerated noise functions. The vast majority of Intel/AMD cpus running support this. It is only a few % faster than SSE2 though.

Use is_x86_feature_detected!("sse4.1") 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

fbm_2d [
sse4.1
]

Get a single value of 2d fractal brownian motion. See FractalSettings for more details.

fbm_3d [
sse4.1
]

Get a single value of 3d fractal brownian motion. See FractalSettings for more details.

get_2d_noise [
sse4.1
]

Gets a width X height sized block of 2d noise, unscaled. start_x and start_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 [
sse4.1
]

Gets a width X height sized block of scaled 2d noise start_x and start_y can be used to provide an offset in the coordinates. scaled_min and scaled_max specify the range you want the noise scaled to.

get_3d_noise [
sse4.1
]

Gets a width X height X depth sized block of 3d noise, unscaled, start_x,start_y and start_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 [
sse4.1
]

Gets a width X height X depth sized block of scaled 3d noise start_x, start_y and start_z can be used to provide an offset in the coordinates. scaled_min and scaled_max specify the range you want the noise scaled to.

simplex_2d [
sse4.1
]

Get a single value of 2d simplex noise, results are not scaled.

simplex_3d [
sse4.1
]

Get a single value of 3d simplex noise, results are not scaled.

turbulence_2d

Get a single value of 2d turbulence. See FractalSettings for more details.

turbulence_3d [
sse4.1
]

Get a single value of 3d turbulence. See FractalSettings for more details.