diff --git a/rtiow/build_all_features.sh b/rtiow/build_all_features.sh new file mode 100755 index 0000000..a7f9d45 --- /dev/null +++ b/rtiow/build_all_features.sh @@ -0,0 +1,5 @@ +export RUSTFLAGS="-D warnings" +cargo watch -x 'build' \ + -x 'build --features=prom' \ + -x 'build --features=profile' \ + -x 'build --features=prom,profile' diff --git a/rtiow/src/bin/noise_explorer.rs b/rtiow/src/bin/noise_explorer.rs index 85f339d..9d8a638 100644 --- a/rtiow/src/bin/noise_explorer.rs +++ b/rtiow/src/bin/noise_explorer.rs @@ -153,7 +153,7 @@ fn render_noise(noise_params: NoiseParams) -> image::GrayImage { const SEED: [u8; 16] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; let rng: &mut XorShiftRng = &mut SeedableRng::from_seed(SEED); let mut img = image::GrayImage::new(noise_params.width, noise_params.height); - let tex: NoiseTexture> = match noise_params.noise_source { + let tex: NoiseTexture> = match noise_params.noise_source { NoiseSource::Perlin => { NoiseTexture::new(Box::new(Perlin::new(rng)), noise_params.noise_type) }