Blender V5.0
blender::draw::PointCloudEvalCache Struct Reference

Public Attributes

gpu::Batch * dots
gpu::Batch * surface
gpu::Batch ** surface_per_mat
gpu::IndexBufgeom_indices
gpu::VertBufpos_rad
gpu::VertBufattr_viewer
gpu::VertBufattributes_buf [GPU_MAX_ATTR]
VectorSet< std::string > attr_used
VectorSet< std::string > attr_used_over_time
int last_attr_matching_time
int mat_len

Detailed Description

Definition at line 44 of file draw_cache_impl_pointcloud.cc.

Member Data Documentation

◆ attr_used

◆ attr_used_over_time

VectorSet<std::string> blender::draw::PointCloudEvalCache::attr_used_over_time

Attributes that were used at some point. This is used for garbage collection, to remove attributes that are not used in shaders anymore due to user edits.

Definition at line 67 of file draw_cache_impl_pointcloud.cc.

Referenced by blender::draw::DRW_pointcloud_batch_cache_free_old(), and blender::draw::pointcloud_surface_shaded_get().

◆ attr_viewer

gpu::VertBuf* blender::draw::PointCloudEvalCache::attr_viewer

◆ attributes_buf

◆ dots

◆ geom_indices

◆ last_attr_matching_time

int blender::draw::PointCloudEvalCache::last_attr_matching_time

The last time in seconds that the attr_used and attr_used_over_time were exactly the same. If the delta between this time and the current scene time is greater than the timeout set in user preferences (U.vbotimeout) then garbage collection is performed.

Definition at line 74 of file draw_cache_impl_pointcloud.cc.

Referenced by blender::draw::DRW_pointcloud_batch_cache_free_old().

◆ mat_len

◆ pos_rad

◆ surface

◆ surface_per_mat


The documentation for this struct was generated from the following file: