Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/session.h
| Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | public: | ||||
| void set_samples(int samples); | void set_samples(int samples); | ||||
| void set_pause(bool pause); | void set_pause(bool pause); | ||||
| void update_scene(); | void update_scene(); | ||||
| void load_kernels(); | void load_kernels(); | ||||
| void device_free(); | void device_free(); | ||||
| /* Returns the rendering progress or 0 if no progress can be determined | |||||
| * (for example, when rendering with unlimited samples). */ | |||||
| float get_progress(); | |||||
| protected: | protected: | ||||
| struct DelayedReset { | struct DelayedReset { | ||||
| thread_mutex mutex; | thread_mutex mutex; | ||||
| bool do_reset; | bool do_reset; | ||||
| BufferParams params; | BufferParams params; | ||||
| int samples; | int samples; | ||||
| } delayed_reset; | } delayed_reset; | ||||
| Show All 12 Lines | protected: | ||||
| void run_gpu(); | void run_gpu(); | ||||
| bool draw_gpu(BufferParams& params, DeviceDrawParams& draw_params); | bool draw_gpu(BufferParams& params, DeviceDrawParams& draw_params); | ||||
| void reset_gpu(BufferParams& params, int samples); | void reset_gpu(BufferParams& params, int samples); | ||||
| bool acquire_tile(Device *tile_device, RenderTile& tile); | bool acquire_tile(Device *tile_device, RenderTile& tile); | ||||
| void update_tile_sample(RenderTile& tile); | void update_tile_sample(RenderTile& tile); | ||||
| void release_tile(RenderTile& tile); | void release_tile(RenderTile& tile); | ||||
| void update_progress_sample(); | |||||
| bool device_use_gl; | bool device_use_gl; | ||||
| thread *session_thread; | thread *session_thread; | ||||
| volatile bool display_outdated; | volatile bool display_outdated; | ||||
| volatile bool gpu_draw_ready; | volatile bool gpu_draw_ready; | ||||
| volatile bool gpu_need_tonemap; | volatile bool gpu_need_tonemap; | ||||
| thread_condition_variable gpu_need_tonemap_cond; | thread_condition_variable gpu_need_tonemap_cond; | ||||
| bool pause; | bool pause; | ||||
| thread_condition_variable pause_cond; | thread_condition_variable pause_cond; | ||||
| thread_mutex pause_mutex; | thread_mutex pause_mutex; | ||||
| thread_mutex tile_mutex; | thread_mutex tile_mutex; | ||||
| thread_mutex buffers_mutex; | thread_mutex buffers_mutex; | ||||
| thread_mutex display_mutex; | thread_mutex display_mutex; | ||||
| bool kernels_loaded; | bool kernels_loaded; | ||||
| double start_time; | |||||
| double reset_time; | double reset_time; | ||||
| double preview_time; | |||||
| double paused_time; | |||||
| /* progressive refine */ | /* progressive refine */ | ||||
| double last_update_time; | double last_update_time; | ||||
| bool update_progressive_refine(bool cancel); | bool update_progressive_refine(bool cancel); | ||||
| vector<RenderBuffers *> tile_buffers; | vector<RenderBuffers *> tile_buffers; | ||||
| DeviceRequestedFeatures get_requested_device_features(); | DeviceRequestedFeatures get_requested_device_features(); | ||||
| Show All 14 Lines | |||||