Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/session.h
| Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | public: | ||||
| /* When quick cancel is requested path tracing is cancelles as soon as possible, without waiting | /* When quick cancel is requested path tracing is cancelles as soon as possible, without waiting | ||||
| * for the buffer to be uniformly sampled. */ | * for the buffer to be uniformly sampled. */ | ||||
| void cancel(bool quick = false); | void cancel(bool quick = false); | ||||
| void draw(); | void draw(); | ||||
| void wait(); | void wait(); | ||||
| bool ready_to_reset(); | bool ready_to_reset(); | ||||
| void reset(BufferParams ¶ms, int samples); | void reset(const SessionParams &session_params, const BufferParams &buffer_params); | ||||
| void set_pause(bool pause); | void set_pause(bool pause); | ||||
| void set_samples(int samples); | void set_samples(int samples); | ||||
| void set_time_limit(double time_limit); | void set_time_limit(double time_limit); | ||||
| void set_gpu_display(unique_ptr<GPUDisplay> gpu_display); | void set_gpu_display(unique_ptr<GPUDisplay> gpu_display); | ||||
| Show All 20 Lines | public: | ||||
| bool get_render_tile_pixels(const string &pass_name, int num_components, float *pixels); | bool get_render_tile_pixels(const string &pass_name, int num_components, float *pixels); | ||||
| bool set_render_tile_pixels(const string &pass_name, int num_components, const float *pixels); | bool set_render_tile_pixels(const string &pass_name, int num_components, const float *pixels); | ||||
| protected: | protected: | ||||
| struct DelayedReset { | struct DelayedReset { | ||||
| thread_mutex mutex; | thread_mutex mutex; | ||||
| bool do_reset; | bool do_reset; | ||||
| BufferParams params; | SessionParams session_params; | ||||
| int samples; | BufferParams buffer_params; | ||||
| } delayed_reset_; | } delayed_reset_; | ||||
| void run(); | void run(); | ||||
| /* Update for the new iteration of the main loop in run implementation (run_cpu and run_gpu). | /* Update for the new iteration of the main loop in run implementation (run_cpu and run_gpu). | ||||
| * | * | ||||
| * Will take care of the following things: | * Will take care of the following things: | ||||
| * - Delayed reset | * - Delayed reset | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||