Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_session.h
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | void bake(BL::Depsgraph &b_depsgrah, | ||||
| const int bake_height); | const int bake_height); | ||||
| void write_render_result(BL::RenderLayer &b_rlay); | void write_render_result(BL::RenderLayer &b_rlay); | ||||
| void write_render_tile(); | void write_render_tile(); | ||||
| /* update functions are used to update display buffer only after sample was rendered | /* update functions are used to update display buffer only after sample was rendered | ||||
| * only needed for better visual feedback */ | * only needed for better visual feedback */ | ||||
| void update_render_result(BL::RenderLayer &b_rlay); | void update_render_result(BL::RenderLayer &b_rlay); | ||||
| void update_render_tile(); | |||||
| /* read functions for baking input */ | /* read functions for baking input */ | ||||
| void read_render_tile(); | void read_render_tile(); | ||||
| /* interactive updates */ | /* interactive updates */ | ||||
| void synchronize(BL::Depsgraph &b_depsgraph); | void synchronize(BL::Depsgraph &b_depsgraph); | ||||
| /* drawing */ | /* drawing */ | ||||
| void draw(BL::SpaceImageEditor &space_image); | |||||
| void view_draw(int w, int h); | void view_draw(int w, int h); | ||||
| void tag_redraw(); | void tag_redraw(); | ||||
| void tag_update(); | void tag_update(); | ||||
| void get_status(string &status, string &substatus); | void get_status(string &status, string &substatus); | ||||
| void get_progress(float &progress, double &total_time, double &render_time); | void get_progress(float &progress, double &total_time, double &render_time); | ||||
| void test_cancel(); | void test_cancel(); | ||||
| void update_status_progress(); | void update_status_progress(); | ||||
| void update_bake_progress(); | void update_bake_progress(); | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | public: | ||||
| static int start_resumable_chunk; | static int start_resumable_chunk; | ||||
| static int end_resumable_chunk; | static int end_resumable_chunk; | ||||
| static bool print_render_stats; | static bool print_render_stats; | ||||
| protected: | protected: | ||||
| void stamp_view_layer_metadata(Scene *scene, const string &view_layer_name); | void stamp_view_layer_metadata(Scene *scene, const string &view_layer_name); | ||||
| void do_write_update_render_tile(bool do_update_only); | |||||
| void builtin_images_load(); | void builtin_images_load(); | ||||
| /* Update tile manager to reflect resumable render settings. */ | /* Update tile manager to reflect resumable render settings. */ | ||||
| void update_resumable_tile_manager(int num_samples); | void update_resumable_tile_manager(int num_samples); | ||||
| /* Is used after each render layer synchronization is done with the goal | /* Is used after each render layer synchronization is done with the goal | ||||
| * of freeing render engine data which is held from Blender side (for | * of freeing render engine data which is held from Blender side (for | ||||
| * example, dependency graph). | * example, dependency graph). | ||||
| */ | */ | ||||
| void free_blender_memory_if_possible(); | void free_blender_memory_if_possible(); | ||||
| struct { | |||||
| thread_mutex mutex; | |||||
| int last_pass_index = -1; | |||||
| } draw_state_; | |||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __BLENDER_SESSION_H__ */ | #endif /* __BLENDER_SESSION_H__ */ | ||||