Blender V4.5
blender::draw::CurvesEvalFinalCache Struct Reference

#include <draw_curves_private.hh>

Public Attributes

int hair_subdiv
int thickres
gpu::VertBufproc_buf
gpu::Batch * proc_hairs
int resolution
VectorSet< std::string > attr_used
VectorSet< std::string > attr_used_over_time
int last_attr_matching_time
gpu::VertBufattributes_buf [GPU_MAX_ATTR]

Detailed Description

Definition at line 36 of file draw_curves_private.hh.

Member Data Documentation

◆ attr_used

◆ attr_used_over_time

VectorSet<std::string> blender::draw::CurvesEvalFinalCache::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 58 of file draw_curves_private.hh.

Referenced by blender::draw::DRW_curves_batch_cache_free_old(), and blender::draw::ensure_attributes().

◆ attributes_buf

◆ hair_subdiv

int blender::draw::CurvesEvalFinalCache::hair_subdiv

The "additional subdivision" setting from the scene. See MAX_HAIR_SUBDIV.

Definition at line 38 of file draw_curves_private.hh.

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

◆ last_attr_matching_time

int blender::draw::CurvesEvalFinalCache::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 65 of file draw_curves_private.hh.

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

◆ proc_buf

◆ proc_hairs

gpu::Batch* blender::draw::CurvesEvalFinalCache::proc_hairs

◆ resolution

◆ thickres

int blender::draw::CurvesEvalFinalCache::thickres

Definition at line 40 of file draw_curves_private.hh.

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


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