Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | ParticleHairFinalCache |
struct | ParticleHairCache |
Macros | |
#define | MAX_LAYER_NAME_CT 4 /* u0123456789, u, au, a0123456789 */ |
#define | MAX_LAYER_NAME_LEN (GPU_MAX_SAFE_ATTR_NAME + 2) |
#define | MAX_THICKRES 2 /* see eHairType */ |
#define | MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */ |
Typedefs | |
typedef enum ParticleRefineShader | ParticleRefineShader |
typedef struct ParticleHairFinalCache | ParticleHairFinalCache |
typedef struct ParticleHairCache | ParticleHairCache |
Enumerations | |
enum | ParticleRefineShader { PART_REFINE_CATMULL_ROM = 0 , PART_REFINE_MAX_SHADER } |
Functions | |
bool | particles_ensure_procedural_data (struct Object *object, struct ParticleSystem *psys, struct ModifierData *md, struct ParticleHairCache **r_hair_cache, struct GPUMaterial *gpu_material, int subdiv, int thickness_res) |
#define MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */ |
Definition at line 17 of file draw_hair_private.h.
Definition at line 14 of file draw_hair_private.h.
#define MAX_LAYER_NAME_LEN (GPU_MAX_SAFE_ATTR_NAME + 2) |
Definition at line 15 of file draw_hair_private.h.
Definition at line 16 of file draw_hair_private.h.
typedef struct ParticleHairCache ParticleHairCache |
typedef struct ParticleHairFinalCache ParticleHairFinalCache |
typedef enum ParticleRefineShader ParticleRefineShader |
enum ParticleRefineShader |
Enumerator | |
---|---|
PART_REFINE_CATMULL_ROM | |
PART_REFINE_MAX_SHADER |
Definition at line 19 of file draw_hair_private.h.
bool particles_ensure_procedural_data | ( | struct Object * | object, |
struct ParticleSystem * | psys, | ||
struct ModifierData * | md, | ||
struct ParticleHairCache ** | r_hair_cache, | ||
struct GPUMaterial * | gpu_material, | ||
int | subdiv, | ||
int | thickness_res | ||
) |
Ensure all textures and buffers needed for GPU accelerated drawing.
Definition at line 1688 of file draw_cache_impl_particles.c.
References ParticleSettings::draw_step, drw_particle_get_hair_source(), drw_particle_update_ptcache(), ParticleDrawSource::edit, ensure_seg_pt_count(), ParticleHairCache::final, ParticleBatchCache::hair, ParticleDrawSource::md, NULL, ParticleSystem::part, particle_batch_cache_ensure_procedural_final_points(), particle_batch_cache_ensure_procedural_indices(), particle_batch_cache_ensure_procedural_pos(), particle_batch_cache_ensure_procedural_strand_data(), particle_batch_cache_get(), ParticleDrawSource::psys, and ParticleHairFinalCache::strands_res.
Referenced by drw_hair_particle_cache_get().