Blender
V3.3
|
#include <draw_curves_private.h>
Public Attributes | |
GPUVertBuf * | proc_buf |
GPUTexture * | proc_tex |
GPUBatch * | proc_hairs [MAX_THICKRES] |
int | strands_res |
DRW_Attributes | attr_used |
DRW_Attributes | attr_used_over_time |
int | last_attr_matching_time |
GPUVertBuf * | attributes_buf [GPU_MAX_ATTR] |
GPUTexture * | attributes_tex [GPU_MAX_ATTR] |
Definition at line 34 of file draw_curves_private.h.
DRW_Attributes CurvesEvalFinalCache::attr_used |
Attributes currently being drawn or about to be drawn.
Definition at line 46 of file draw_curves_private.h.
Referenced by curves_discard_attributes(), curves_ensure_attributes(), DRW_curves_batch_cache_free_old(), drw_curves_cache_update_compute(), drw_curves_cache_update_transform_feedback(), DRW_curves_texture_for_evaluated_attribute(), DRW_shgroup_curves_create_sub(), and request_attribute().
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().
GPUVertBuf* CurvesEvalFinalCache::attributes_buf[GPU_MAX_ATTR] |
Definition at line 63 of file draw_curves_private.h.
Referenced by curves_batch_cache_ensure_procedural_final_attr(), curves_batch_ensure_attribute(), curves_discard_attributes(), drw_curves_cache_update_compute(), and drw_curves_cache_update_transform_feedback().
GPUTexture* CurvesEvalFinalCache::attributes_tex[GPU_MAX_ATTR] |
Definition at line 64 of file draw_curves_private.h.
Referenced by curves_batch_cache_ensure_procedural_final_attr(), curves_batch_ensure_attribute(), curves_discard_attributes(), DRW_curves_texture_for_evaluated_attribute(), and DRW_shgroup_curves_create_sub().
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().
GPUVertBuf* CurvesEvalFinalCache::proc_buf |
Definition at line 36 of file draw_curves_private.h.
Referenced by curves_batch_cache_clear_data(), curves_batch_cache_ensure_procedural_final_points(), drw_curves_cache_update_compute(), drw_curves_cache_update_transform_feedback(), and DRW_curves_pos_buffer_get().
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().
GPUTexture* CurvesEvalFinalCache::proc_tex |
Definition at line 37 of file draw_curves_private.h.
Referenced by curves_batch_cache_clear_data(), curves_batch_cache_ensure_procedural_final_points(), and DRW_shgroup_curves_create_sub().
int CurvesEvalFinalCache::strands_res |
Points per curve, at least 2.
Definition at line 43 of file draw_curves_private.h.
Referenced by curves_batch_cache_ensure_procedural_final_attr(), curves_batch_cache_ensure_procedural_final_points(), curves_batch_cache_ensure_procedural_indices(), drw_curves_cache_shgrp_attach_resources(), drw_curves_cache_update_compute(), drw_curves_cache_update_transform_feedback(), and DRW_shgroup_curves_create_sub().