|
Blender V5.3
|
Namespaces | |
| namespace | tests |
Classes | |
| struct | Changes |
| struct | Changeset |
| struct | Tracker |
Functions | |
| static int | chunk_number_for_pixel (int pixel_offset) |
| static Tracker & | tracker_ensure (ImBuf *ibuf) |
Variables | |
| constexpr int | CHUNK_SIZE = 256 |
| constexpr int | MAX_HISTORY_LEN = 4 |
| static uint64_t | g_change_id_counter = 0 |
|
static |
Get the chunk number for the given pixel coordinate.
As chunks are squares this can be used for both x and y axis.
Definition at line 42 of file partial_update.cc.
References chunk_number_for_pixel(), and CHUNK_SIZE.
Referenced by chunk_number_for_pixel(), and blender::imbuf::partial_update::Changeset::mark_region().
Definition at line 359 of file partial_update.cc.
References blender::ImBuf::gpu, blender::IMB_partial_update_changeset_id_next(), blender::ImBuf::partial_update, blender::ImBufGPU::partial_update_changeset_id, and tracker_ensure().
Referenced by blender::IMB_partial_update_collect(), blender::IMB_partial_update_flush(), blender::IMB_partial_update_mark_full(), blender::IMB_partial_update_mark_region(), and tracker_ensure().
|
constexpr |
Size of the chunks that partial changes are tracked in.
Definition at line 61 of file IMB_partial_update.hh.
Referenced by chunk_number_for_pixel(), blender::IMB_gpu_texture_apply_partial_update(), blender::imbuf::partial_update::Changes::modified_regions(), blender::imbuf::partial_update::Changes::set_all_chunks_modified(), blender::imbuf::partial_update::tests::TEST_F(), blender::imbuf::partial_update::tests::TEST_F(), and blender::imbuf::partial_update::Changeset::update_resolution().
|
static |
This is global so that consumers can store only changeset IDs and detect changes even as image buffers change. If they would store ImBuf pointers, the same ImBuf address might get reused for another UDIM tile or pass.
Definition at line 188 of file partial_update.cc.
Referenced by blender::IMB_partial_update_changeset_id_current(), and blender::IMB_partial_update_changeset_id_next().
|
constexpr |
Max number of changesets to keep in history.
Longer history needs more memory and processing, but lets more consumers benefit from partial changes, when they don't redraw/update on every frame.
Definition at line 35 of file partial_update.cc.
Referenced by blender::imbuf::partial_update::Tracker::limit_history().