Blender  V3.3
Public Attributes | List of all members
CurvesEvalFinalCache Struct Reference

#include <draw_curves_private.h>

Public Attributes

GPUVertBufproc_buf
 
GPUTextureproc_tex
 
GPUBatchproc_hairs [MAX_THICKRES]
 
int strands_res
 
DRW_Attributes attr_used
 
DRW_Attributes attr_used_over_time
 
int last_attr_matching_time
 
GPUVertBufattributes_buf [GPU_MAX_ATTR]
 
GPUTextureattributes_tex [GPU_MAX_ATTR]
 

Detailed Description

Definition at line 34 of file draw_curves_private.h.

Member Data Documentation

◆ attr_used

DRW_Attributes CurvesEvalFinalCache::attr_used

◆ attr_used_over_time

DRW_Attributes 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 52 of file draw_curves_private.h.

Referenced by curves_ensure_attributes(), and DRW_curves_batch_cache_free_old().

◆ attributes_buf

GPUVertBuf* CurvesEvalFinalCache::attributes_buf[GPU_MAX_ATTR]

◆ attributes_tex

GPUTexture* CurvesEvalFinalCache::attributes_tex[GPU_MAX_ATTR]

◆ last_attr_matching_time

int 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 59 of file draw_curves_private.h.

Referenced by DRW_curves_batch_cache_free_old().

◆ proc_buf

GPUVertBuf* CurvesEvalFinalCache::proc_buf

◆ proc_hairs

GPUBatch* CurvesEvalFinalCache::proc_hairs[MAX_THICKRES]

Just contains a huge index buffer used to draw the final curves.

Definition at line 40 of file draw_curves_private.h.

Referenced by curves_batch_cache_clear_data(), curves_batch_cache_ensure_procedural_indices(), and DRW_shgroup_curves_create_sub().

◆ proc_tex

GPUTexture* CurvesEvalFinalCache::proc_tex

◆ strands_res

int CurvesEvalFinalCache::strands_res

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