|
Blender V5.3
|
#include <IMB_partial_update.hh>
Public Types | |
| enum class | Kind { None , Partial , Full , Resized } |
Public Member Functions | |
| void | set_all_chunks_modified () |
| Vector< rcti > | modified_regions () const |
Public Attributes | |
| Kind | kind = Kind::None |
| int | buffer_width = 0 |
| int | buffer_height = 0 |
| int | chunk_x_len = 0 |
| int | chunk_y_len = 0 |
| BitVector | modified_chunks |
The changes to an ImBuf since a given changeset ID.
Definition at line 64 of file IMB_partial_update.hh.
|
strong |
| Enumerator | |
|---|---|
| None | Nothing changed. |
| Partial | Some regions of the image buffer changed. |
| Full | Full image buffer needs to be updated. |
| Resized | Image buffer resolution changed. |
Definition at line 65 of file IMB_partial_update.hh.
Get merged rectangular changed regions.
Definition at line 302 of file partial_update.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), blender::BLI_rcti_init(), buffer_height, buffer_width, blender::imbuf::partial_update::CHUNK_SIZE, chunk_x_len, chunk_y_len, blender::min_ii(), modified_chunks, blender::bits::BitVector< InlineBufferCapacity, Allocator >::size(), blender::x, and y.
Referenced by blender::IMB_gpu_texture_apply_partial_update(), blender::imbuf::partial_update::tests::TEST_F(), blender::imbuf::partial_update::tests::TEST_F(), blender::imbuf::partial_update::tests::TEST_F(), and blender::imbuf::partial_update::tests::TEST_F().
| void blender::imbuf::partial_update::Changes::set_all_chunks_modified | ( | ) |
Mark all chunks as modified.
Definition at line 294 of file partial_update.cc.
References buffer_height, buffer_width, blender::imbuf::partial_update::CHUNK_SIZE, chunk_x_len, chunk_y_len, blender::divide_ceil_u(), blender::bits::BitVector< InlineBufferCapacity, Allocator >::fill(), modified_chunks, and blender::bits::BitVector< InlineBufferCapacity, Allocator >::resize().
Referenced by blender::image_gpu_atlas_try_partial_update().
| int blender::imbuf::partial_update::Changes::buffer_height = 0 |
Definition at line 80 of file IMB_partial_update.hh.
Referenced by blender::IMB_partial_update_collect(), modified_regions(), and set_all_chunks_modified().
| int blender::imbuf::partial_update::Changes::buffer_width = 0 |
Definition at line 79 of file IMB_partial_update.hh.
Referenced by blender::IMB_partial_update_collect(), modified_regions(), and set_all_chunks_modified().
| int blender::imbuf::partial_update::Changes::chunk_x_len = 0 |
Definition at line 83 of file IMB_partial_update.hh.
Referenced by blender::IMB_partial_update_collect(), modified_regions(), and set_all_chunks_modified().
| int blender::imbuf::partial_update::Changes::chunk_y_len = 0 |
Definition at line 84 of file IMB_partial_update.hh.
Referenced by blender::IMB_partial_update_collect(), modified_regions(), and set_all_chunks_modified().
| Kind blender::imbuf::partial_update::Changes::kind = Kind::None |
Definition at line 76 of file IMB_partial_update.hh.
Referenced by blender::image_gpu_atlas_try_partial_update(), blender::imb_gpu_texture_apply_partial_updates(), blender::IMB_partial_update_collect(), blender::imbuf::partial_update::tests::TEST_F(), blender::imbuf::partial_update::tests::TEST_F(), blender::imbuf::partial_update::tests::TEST_F(), and blender::imbuf::partial_update::tests::TEST_F().
| BitVector blender::imbuf::partial_update::Changes::modified_chunks |
Definition at line 87 of file IMB_partial_update.hh.
Referenced by blender::IMB_gpu_texture_apply_partial_update(), blender::IMB_partial_update_collect(), modified_regions(), and set_all_chunks_modified().