diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-22 19:48:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-22 19:48:53 +0300 |
commit | 7f726b48ace40a90b707bc5c68bf7e3f5477f21b (patch) | |
tree | a6ab15752b798c267c452ed1dfd9ab8a87f46a50 /source/blender/draw/intern/draw_curves_private.h | |
parent | 58be9708bfa069df2db7415a64ec76c3fc012868 (diff) |
Cleanup: Remove unused variables, adjust comments
Diffstat (limited to 'source/blender/draw/intern/draw_curves_private.h')
-rw-r--r-- | source/blender/draw/intern/draw_curves_private.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/source/blender/draw/intern/draw_curves_private.h b/source/blender/draw/intern/draw_curves_private.h index f92e051daca..76d5f15319d 100644 --- a/source/blender/draw/intern/draw_curves_private.h +++ b/source/blender/draw/intern/draw_curves_private.h @@ -26,30 +26,28 @@ struct GPUBatch; struct GPUTexture; typedef struct CurvesEvalFinalCache { - /* Output of the subdivision stage: vertex buff sized to subdiv level. */ + /* Output of the subdivision stage: vertex buffer sized to subdiv level. */ GPUVertBuf *proc_buf; GPUTexture *proc_tex; - /* Just contains a huge index buffer used to draw the final hair. */ + /* Just contains a huge index buffer used to draw the final curves. */ GPUBatch *proc_hairs[MAX_THICKRES]; - int strands_res; /* points per hair, at least 2 */ + /* Points per curve, at least 2. */ + int strands_res; } CurvesEvalFinalCache; +/* Curves procedural display: Evaluation is done on the GPU. */ typedef struct CurvesEvalCache { - GPUVertBuf *pos; - GPUIndexBuf *indices; - GPUBatch *hairs; - - /* Hair Procedural display: Interpolation is done on the GPU. */ - GPUVertBuf *proc_point_buf; /* Input control points */ + /* Input control points */ + GPUVertBuf *proc_point_buf; GPUTexture *point_tex; - /** Infos of control points strands (segment count and base index) */ + /** Info of control points strands (segment count and base index) */ GPUVertBuf *proc_strand_buf; GPUTexture *strand_tex; - /* Hair Length */ + /* Curve length data. */ GPUVertBuf *proc_length_buf; GPUTexture *length_tex; |