Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | CurvesEvalFinalCache |
struct | CurvesEvalCache |
Macros | |
#define | MAX_THICKRES 2 /* see eHairType */ |
#define | MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */ |
#define | CURVES_EVAL_SHADER_NUM 3 |
Typedefs | |
typedef enum CurvesEvalShader | CurvesEvalShader |
typedef struct CurvesEvalFinalCache | CurvesEvalFinalCache |
typedef struct CurvesEvalCache | CurvesEvalCache |
Enumerations | |
enum | CurvesEvalShader { CURVES_EVAL_CATMULL_ROM = 0 , CURVES_EVAL_BEZIER = 1 } |
Functions | |
bool | curves_ensure_procedural_data (struct Curves *curves, struct CurvesEvalCache **r_hair_cache, struct GPUMaterial *gpu_material, int subdiv, int thickness_res) |
void | drw_curves_get_attribute_sampler_name (const char *layer_name, char r_sampler_name[32]) |
#define CURVES_EVAL_SHADER_NUM 3 |
Definition at line 32 of file draw_curves_private.h.
#define MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */ |
Definition at line 26 of file draw_curves_private.h.
Definition at line 25 of file draw_curves_private.h.
typedef struct CurvesEvalCache CurvesEvalCache |
typedef struct CurvesEvalFinalCache CurvesEvalFinalCache |
typedef enum CurvesEvalShader CurvesEvalShader |
enum CurvesEvalShader |
Enumerator | |
---|---|
CURVES_EVAL_CATMULL_ROM | |
CURVES_EVAL_BEZIER |
Definition at line 28 of file draw_curves_private.h.
bool curves_ensure_procedural_data | ( | struct Curves * | curves, |
struct CurvesEvalCache ** | r_hair_cache, | ||
struct GPUMaterial * | gpu_material, | ||
int | subdiv, | ||
int | thickness_res | ||
) |
Ensure all necessary textures and buffers exist for GPU accelerated drawing.
Definition at line 571 of file draw_cache_impl_curves.cc.
References curves, curves_batch_cache_ensure_procedural_final_points(), curves_batch_cache_ensure_procedural_indices(), curves_batch_cache_ensure_procedural_pos(), curves_batch_cache_ensure_procedural_strand_data(), curves_batch_cache_get(), CurvesBatchCache::curves_cache, curves_ensure_attributes(), ensure_seg_pt_count(), and steps.
Referenced by drw_curves_cache_get().
void drw_curves_get_attribute_sampler_name | ( | const char * | layer_name, |
char | r_sampler_name[32] | ||
) |
Definition at line 307 of file draw_cache_impl_curves.cc.
References BLI_snprintf(), GPU_MAX_SAFE_ATTR_NAME, and GPU_vertformat_safe_attr_name().
Referenced by curves_batch_ensure_attribute(), and DRW_shgroup_curves_create_sub().