|
Blender V5.3
|
Public Member Functions | |
| LightBake (Main *bmain, ViewLayer *view_layer, Scene *scene, Span< Object * > probes, bool run_as_job, std::string &report, int frame, int delay_ms=0) | |
| ~LightBake () | |
| void | update () |
| void | run (const bool *stop=nullptr, bool *do_update=nullptr, float *progress=nullptr) |
Definition at line 46 of file eevee_lightcache.cc.
|
inline |
Definition at line 81 of file eevee_lightcache.cc.
References blender::BLI_assert(), blender::BLI_thread_is_main(), blender::DAG_EVAL_RENDER, blender::DEG_graph_new(), blender::GPU_use_main_context_workaround(), blender::Span< T >::size(), blender::WM_system_gpu_context_create(), and blender::wm_window_reset_drawable().
Referenced by blender::EEVEE_lightbake_job_create(), and blender::EEVEE_lightbake_job_data_alloc().
|
inline |
Definition at line 106 of file eevee_lightcache.cc.
References blender::BLI_assert(), blender::BLI_thread_is_main(), and blender::DEG_graph_free().
|
inline |
Called from worker thread.
Definition at line 148 of file eevee_lightcache.cc.
References blender::BKE_lightprobe_grid_cache_frame_free(), blender::BLI_time_sleep_ms(), blender::DEG_evaluate_on_framechange(), blender::DEG_get_evaluated(), blender::DEG_graph_relations_update(), blender::G, lock, and blender::StringRefNull::StringRefNull().
|
inline |
Called from main thread. Copy result to original scene data. Note that since this is in the main thread, the viewport cannot be using the light cache. So there is no race condition here.
Definition at line 118 of file eevee_lightcache.cc.
References blender::BKE_lightprobe_grid_cache_frame_free(), blender::BLI_assert(), blender::BLI_thread_is_main(), blender::DEG_id_tag_update(), blender::LightProbeObjectCache::grid_static_cache, blender::Object::id, blender::ID_RECALC_SHADING, blender::ID_RECALC_SYNC_TO_EVAL, blender::Object::lightprobe_cache, and lock.