Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/path_trace.cpp
| Show First 20 Lines • Show All 473 Lines • ▼ Show 20 Lines | if (denoiser_) { | ||||
| const DenoiseParams old_denoiser_params = denoiser_->get_params(); | const DenoiseParams old_denoiser_params = denoiser_->get_params(); | ||||
| if (old_denoiser_params.type == params.type) { | if (old_denoiser_params.type == params.type) { | ||||
| denoiser_->set_params(params); | denoiser_->set_params(params); | ||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| denoiser_ = Denoiser::create(device_, params); | denoiser_ = Denoiser::create(device_, params); | ||||
| denoiser_->is_cancelled_cb = [this]() { return is_cancel_requested(); }; | |||||
| /* Only take into account the "immediate" cancel to have interactive rendering responding to | |||||
| * navigation as quickly as possible, but allow to run denoiser after user hit Esc button while | |||||
| * doing offline rendering. */ | |||||
| denoiser_->is_cancelled_cb = [this]() { return render_cancel_.is_requested; }; | |||||
| } | } | ||||
| void PathTrace::set_adaptive_sampling(const AdaptiveSampling &adaptive_sampling) | void PathTrace::set_adaptive_sampling(const AdaptiveSampling &adaptive_sampling) | ||||
| { | { | ||||
| render_scheduler_.set_adaptive_sampling(adaptive_sampling); | render_scheduler_.set_adaptive_sampling(adaptive_sampling); | ||||
| } | } | ||||
| void PathTrace::cryptomatte_postprocess(const RenderWork &render_work) | void PathTrace::cryptomatte_postprocess(const RenderWork &render_work) | ||||
| ▲ Show 20 Lines • Show All 707 Lines • Show Last 20 Lines | |||||