Skip to content

Commit 46a283b

Browse files
committed
update
1 parent 0dddcf9 commit 46a283b

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ edition = "2021"
55

66
[features]
77
default = ["oidn", "vector_constgenerics"]
8-
small_rng = ["rand/small_rng"]
98
oidn = ["dep:oidn", "dep:flate2", "dep:tar", "dep:zip"]
109
vector_constgenerics = []
1110

src/pathtracer/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,5 @@ fn denoise_image(width: usize, height: usize, buffer: &mut [Float3]) {
9191
}
9292

9393
pub fn get_rng() -> RNGType {
94-
#[cfg(not(feature = "small_rng"))]
9594
return rand::rng();
96-
97-
#[cfg(feature = "small_rng")]
98-
{
99-
use rand::rngs::SmallRng;
100-
use rand::{RngCore, SeedableRng};
101-
102-
return SmallRng::from_rng(rand::thread_rng()).unwrap();
103-
}
10495
}

src/scene/mod.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ pub type Float0 = f64;
1616
pub type Int = i64;
1717
pub const PI: Float0 = std::f64::consts::PI as Float0;
1818

19-
cfg_if! {
20-
if #[cfg(feature="small_rng")] {
21-
pub type RNGType = rand::rngs::SmallRng;
22-
} else {
23-
pub type RNGType = rand::rngs::ThreadRng;
24-
}
25-
}
19+
pub type RNGType = rand::rngs::ThreadRng;
2620

2721
#[derive(Debug)]
2822
pub struct Scene {

0 commit comments

Comments
 (0)