|
Blender V5.0
|
Inherits blender::NonMovable.
Public Member Functions | |
| PositionUndoStorage (StepData &step_data) | |
| ~PositionUndoStorage () | |
| void | ensure_compression_complete () |
| Public Member Functions inherited from blender::NonMovable | |
| NonMovable (NonMovable &&other)=delete | |
| NonMovable & | operator= (NonMovable &&other)=delete |
| NonMovable ()=default | |
| NonMovable (const NonMovable &other)=default | |
| NonMovable & | operator= (const NonMovable &other)=default |
Static Public Member Functions | |
| static void | compress_fn (TaskPool *, void *task_data) |
Public Attributes | |
| Vector< std::unique_ptr< Node > > | nodes_to_compress |
| bool | multires_undo |
| Array< Array< std::byte > > | compressed_indices |
| Array< Array< std::byte > > | compressed_positions |
| Array< int > | unique_verts_nums |
| TaskPool * | compression_task_pool |
| std::atomic< bool > | compression_ready = false |
| std::atomic< bool > | compression_started = false |
| StepData * | owner_step_data = nullptr |
Definition at line 354 of file sculpt_undo.cc.
|
inlineexplicit |
Definition at line 371 of file sculpt_undo.cc.
References BLI_task_pool_create_background(), BLI_task_pool_push(), compress_fn(), blender::ed::sculpt_paint::undo::StepData::grids, blender::ed::sculpt_paint::undo::StepData::grids_num, i, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), multires_undo, nodes_to_compress, owner_step_data, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and TASK_PRIORITY_LOW.
Referenced by compress_fn().
|
inline |
Definition at line 388 of file sculpt_undo.cc.
References BLI_task_pool_free(), BLI_task_pool_work_and_wait(), compression_started, and compression_task_pool.
|
inlinestatic |
Definition at line 403 of file sculpt_undo.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), compressed_indices, data, blender::ed::sculpt_paint::undo::compression::filter_compress(), i, indices, blender::threading::isolate_task(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::threading::parallel_for(), PositionUndoStorage(), and SCOPED_TIMER_AVERAGED.
Referenced by PositionUndoStorage().
|
inline |
Definition at line 396 of file sculpt_undo.cc.
References BLI_task_pool_work_and_wait(), compression_ready, and compression_task_pool.
Referenced by blender::ed::sculpt_paint::undo::restore_position_mesh().
Definition at line 358 of file sculpt_undo.cc.
Referenced by compress_fn(), blender::ed::sculpt_paint::undo::restore_position_grids(), and blender::ed::sculpt_paint::undo::restore_position_mesh().
Definition at line 362 of file sculpt_undo.cc.
Referenced by blender::ed::sculpt_paint::undo::restore_position_grids(), and blender::ed::sculpt_paint::undo::restore_position_mesh().
| std::atomic<bool> blender::ed::sculpt_paint::undo::PositionUndoStorage::compression_ready = false |
Definition at line 367 of file sculpt_undo.cc.
Referenced by ensure_compression_complete().
| std::atomic<bool> blender::ed::sculpt_paint::undo::PositionUndoStorage::compression_started = false |
Definition at line 368 of file sculpt_undo.cc.
Referenced by ~PositionUndoStorage().
| TaskPool* blender::ed::sculpt_paint::undo::PositionUndoStorage::compression_task_pool |
Definition at line 366 of file sculpt_undo.cc.
Referenced by ensure_compression_complete(), and ~PositionUndoStorage().
| bool blender::ed::sculpt_paint::undo::PositionUndoStorage::multires_undo |
Definition at line 356 of file sculpt_undo.cc.
Referenced by PositionUndoStorage().
| Vector<std::unique_ptr<Node> > blender::ed::sculpt_paint::undo::PositionUndoStorage::nodes_to_compress |
Definition at line 355 of file sculpt_undo.cc.
Referenced by PositionUndoStorage().
Definition at line 369 of file sculpt_undo.cc.
Referenced by PositionUndoStorage().
| Array<int> blender::ed::sculpt_paint::undo::PositionUndoStorage::unique_verts_nums |
Definition at line 364 of file sculpt_undo.cc.
Referenced by blender::ed::sculpt_paint::undo::restore_position_mesh().