|
Blender V5.3
|
#include <IMB_imbuf_types.hh>
Public Attributes | |
| std::atomic< gpu::Texture * > | texture = nullptr |
| int64_t | lastused = 0 |
| ImBufGPUFlag | flag = ImBufGPUFlag(0) |
| std::atomic< imbuf::ChangesetID > | partial_update_changeset_id = -1 |
| blender::Mutex | mutex |
Definition at line 138 of file IMB_imbuf_types.hh.
| ImBufGPUFlag blender::ImBufGPU::flag = ImBufGPUFlag(0) |
GPU buffer flags.
Definition at line 156 of file IMB_imbuf_types.hh.
Referenced by blender::BKE_image_free_old_buffers(), blender::image_get_gpu_texture_single(), blender::IMB_acquire_gpu_texture(), blender::IMB_assign_gpu_texture(), blender::IMB_free_gpu_textures(), and blender::imb_gpu_texture_apply_partial_updates().
| int64_t blender::ImBufGPU::lastused = 0 |
Last used timestamp for garbage collection
Definition at line 153 of file IMB_imbuf_types.hh.
Referenced by blender::BKE_image_free_old_buffers(), blender::image_get_gpu_texture_tiled(), blender::IMB_acquire_gpu_texture(), and blender::IMB_create_gpu_texture().
| blender::Mutex blender::ImBufGPU::mutex |
Mutex guarding access to texture, lastused, and flag.
Definition at line 162 of file IMB_imbuf_types.hh.
Referenced by blender::IMB_acquire_gpu_texture(), blender::IMB_assign_gpu_texture(), and blender::IMB_free_gpu_textures().
| std::atomic<imbuf::ChangesetID> blender::ImBufGPU::partial_update_changeset_id = -1 |
Changeset tracking for partial update.
Definition at line 159 of file IMB_imbuf_types.hh.
Referenced by blender::image_get_gpu_texture_tiled(), blender::image_gpu_atlas_try_partial_update(), blender::IMB_acquire_gpu_texture(), blender::IMB_assign_gpu_texture(), blender::IMB_free_gpu_textures(), blender::imb_gpu_texture_apply_partial_updates(), and blender::imbuf::partial_update::tracker_ensure().
| std::atomic<gpu::Texture *> blender::ImBufGPU::texture = nullptr |
Texture which corresponds to the state of the ImBuf on the GPU.
Allocation is supposed to happen outside of the ImBuf module from a proper GPU context. De-referencing the ImBuf or its GPU texture can happen from any state.
TODO(@sergey): This should become a list of textures, to support having high-res ImBuf on GPU without hitting hardware limitations.
Atomic because partial update tracking reads this without holding a lock.
Definition at line 150 of file IMB_imbuf_types.hh.
Referenced by blender::BKE_image_free_gpu_fallback(), blender::BKE_image_free_old_buffers(), blender::BKE_image_has_gpu_texture(), blender::ED_space_image_acquire_buffer(), blender::image_cache_free_inactive_frame_gpu_textures(), blender::image_from_context_has_data_poll(), blender::image_gpu_atlas_try_partial_update(), blender::image_gpu_error_imbuf_ensure(), blender::IMB_acquire_gpu_texture(), blender::IMB_assign_gpu_texture(), blender::IMB_dupImBuf(), blender::IMB_ensure_host_buffer(), blender::IMB_free_gpu_textures(), blender::imb_gpu_texture_apply_partial_updates(), blender::imb_track_updates(), blender::uiTemplateImageInfo(), blender::render::Context::write_frame_cache(), and blender::render::Context::write_viewer_image().