Blender V4.3
BKE_lightprobe.h File Reference

General operations for probes. More...

Go to the source code of this file.

Functions

void BKE_lightprobe_type_set (struct LightProbe *probe, short lightprobe_type)
 
void * BKE_lightprobe_add (struct Main *bmain, const char *name)
 
void BKE_lightprobe_cache_blend_write (struct BlendWriter *writer, struct LightProbeObjectCache *cache)
 
void BKE_lightprobe_cache_blend_read (struct BlendDataReader *reader, struct LightProbeObjectCache *cache)
 
struct LightProbeGridCacheFrameBKE_lightprobe_grid_cache_frame_create (void)
 
LightProbeGridCacheFrameBKE_lightprobe_grid_cache_frame_copy (LightProbeGridCacheFrame *src)
 
void BKE_lightprobe_grid_cache_frame_free (struct LightProbeGridCacheFrame *cache)
 
void BKE_lightprobe_cache_create (struct Object *object)
 
LightProbeObjectCacheBKE_lightprobe_cache_copy (LightProbeObjectCache *src_cache)
 
void BKE_lightprobe_cache_free (struct Object *object)
 
int64_t BKE_lightprobe_grid_cache_frame_sample_count (const struct LightProbeGridCacheFrame *cache)
 

Detailed Description

General operations for probes.

Definition in file BKE_lightprobe.h.

Function Documentation

◆ BKE_lightprobe_add()

void * BKE_lightprobe_add ( struct Main * bmain,
const char * name )

Definition at line 107 of file lightprobe.cc.

References BKE_id_new(), and ID_LP.

Referenced by BKE_object_obdata_add_from_type().

◆ BKE_lightprobe_cache_blend_read()

void BKE_lightprobe_cache_blend_read ( struct BlendDataReader * reader,
struct LightProbeObjectCache * cache )

◆ BKE_lightprobe_cache_blend_write()

void BKE_lightprobe_cache_blend_write ( struct BlendWriter * writer,
struct LightProbeObjectCache * cache )

◆ BKE_lightprobe_cache_copy()

LightProbeObjectCache * BKE_lightprobe_cache_copy ( LightProbeObjectCache * src_cache)

Create a copy of a whole cache. This does not include the in-progress baking data.

Definition at line 253 of file lightprobe.cc.

References BKE_lightprobe_grid_cache_frame_copy(), BLI_assert, LightProbeObjectCache::grid_static_cache, and MEM_dupallocN.

Referenced by object_copy_data().

◆ BKE_lightprobe_cache_create()

void BKE_lightprobe_cache_create ( struct Object * object)

Create the grid cache list depending on the lightprobe baking settings. The list is left empty to be filled by the baking process.

Definition at line 245 of file lightprobe.cc.

References BLI_assert, and MEM_callocN.

Referenced by lightprobe_cache_irradiance_volume_subset_get().

◆ BKE_lightprobe_cache_free()

void BKE_lightprobe_cache_free ( struct Object * object)

◆ BKE_lightprobe_grid_cache_frame_copy()

◆ BKE_lightprobe_grid_cache_frame_create()

struct LightProbeGridCacheFrame * BKE_lightprobe_grid_cache_frame_create ( void )

Create a single empty irradiance grid cache.

Definition at line 206 of file lightprobe.cc.

References MEM_callocN.

Referenced by blender::eevee::IrradianceBake::read_result_packed(), and blender::eevee::IrradianceBake::read_result_unpacked().

◆ BKE_lightprobe_grid_cache_frame_free()

◆ BKE_lightprobe_grid_cache_frame_sample_count()

int64_t BKE_lightprobe_grid_cache_frame_sample_count ( const struct LightProbeGridCacheFrame * cache)

Return the number of sample stored inside an irradiance cache. This depends on the light cache type.

◆ BKE_lightprobe_type_set()