Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/path_trace.h
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | public: | ||||
| * more accurately which scene device memory may need to allocated on the host. */ | * more accurately which scene device memory may need to allocated on the host. */ | ||||
| void alloc_work_memory(); | void alloc_work_memory(); | ||||
| /* Check whether now it is a good time to reset rendering. | /* Check whether now it is a good time to reset rendering. | ||||
| * Used to avoid very often resets in the viewport, giving it a chance to draw intermediate | * Used to avoid very often resets in the viewport, giving it a chance to draw intermediate | ||||
| * render result. */ | * render result. */ | ||||
| bool ready_to_reset(); | bool ready_to_reset(); | ||||
| void reset(const BufferParams &big_tile_params); | void reset(const BufferParams &full_params, const BufferParams &big_tile_params); | ||||
| /* Set progress tracker. | /* Set progress tracker. | ||||
| * Used to communicate details about the progress to the outer world, check whether rendering is | * Used to communicate details about the progress to the outer world, check whether rendering is | ||||
| * to be canceled. | * to be canceled. | ||||
| * | * | ||||
| * The path tracer writes to this object, and then at a convenient moment runs | * The path tracer writes to this object, and then at a convenient moment runs | ||||
| * progress_update_cb() callback. */ | * progress_update_cb() callback. */ | ||||
| void set_progress(Progress *progress); | void set_progress(Progress *progress); | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | protected: | ||||
| /* Per-compute device descriptors of work which is responsible for path tracing on its configured | /* Per-compute device descriptors of work which is responsible for path tracing on its configured | ||||
| * device. */ | * device. */ | ||||
| vector<unique_ptr<PathTraceWork>> path_trace_works_; | vector<unique_ptr<PathTraceWork>> path_trace_works_; | ||||
| /* Per-path trace work information needed for multi-device balancing. */ | /* Per-path trace work information needed for multi-device balancing. */ | ||||
| vector<WorkBalanceInfo> work_balance_infos_; | vector<WorkBalanceInfo> work_balance_infos_; | ||||
| /* Render buffer parameters of the the big tile. */ | /* Render buffer parameters of the full frame and current big tile. */ | ||||
| BufferParams full_params_; | |||||
| BufferParams big_tile_params_; | BufferParams big_tile_params_; | ||||
| /* Denoiser which takes care of denoising the big tile. */ | /* Denoiser which takes care of denoising the big tile. */ | ||||
| unique_ptr<Denoiser> denoiser_; | unique_ptr<Denoiser> denoiser_; | ||||
| /* State which is common for all the steps of the render work. | /* State which is common for all the steps of the render work. | ||||
| * Is brought up to date in the `render()` call and is accessed from all the steps involved into | * Is brought up to date in the `render()` call and is accessed from all the steps involved into | ||||
| * rendering the work. */ | * rendering the work. */ | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||