Struct rs_pbrt::integrators::bdpt::BDPTIntegrator
source · pub struct BDPTIntegrator {
pub camera: Arc<Camera>,
pub sampler: Box<Sampler>,
pub pixel_bounds: Bounds2i,
pub max_depth: u32,
pub light_sample_strategy: String,
}
Expand description
Bidirectional Path Tracing (Global Illumination)
Fields§
§camera: Arc<Camera>
§sampler: Box<Sampler>
§pixel_bounds: Bounds2i
§max_depth: u32
§light_sample_strategy: String
Implementations§
source§impl BDPTIntegrator
impl BDPTIntegrator
pub fn new( camera: Arc<Camera>, sampler: Box<Sampler>, pixel_bounds: Bounds2i, max_depth: u32, light_sample_strategy: String ) -> Self
pub fn get_light_sample_strategy(&self) -> String
pub fn render(&self, scene: &Scene, num_threads: u8)
pub fn get_camera(&self) -> Arc<Camera>
pub fn get_sampler(&self) -> &Sampler
Auto Trait Implementations§
impl RefUnwindSafe for BDPTIntegrator
impl Send for BDPTIntegrator
impl Sync for BDPTIntegrator
impl Unpin for BDPTIntegrator
impl UnwindSafe for BDPTIntegrator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more