Blender V4.3
types_spectrum.h File Reference

Go to the source code of this file.

Macros

#define SPECTRUM_CHANNELS   3
 
#define SPECTRUM_DATA_TYPE   float3
 
#define PACKED_SPECTRUM_DATA_TYPE   packed_float3
 
#define make_spectrum(f)   CONCAT(make_, SPECTRUM_DATA_TYPE(f))
 
#define load_spectrum(f)   CONCAT(load_, SPECTRUM_DATA_TYPE(f))
 
#define store_spectrum(s, f)   CONCAT(store_, SPECTRUM_DATA_TYPE((s), (f)))
 
#define zero_spectrum   CONCAT(zero_, SPECTRUM_DATA_TYPE)
 
#define one_spectrum   CONCAT(one_, SPECTRUM_DATA_TYPE)
 
#define FOREACH_SPECTRUM_CHANNEL(counter)    for (int counter = 0; counter < SPECTRUM_CHANNELS; counter++)
 
#define GET_SPECTRUM_CHANNEL(v, i)   (((ccl_private float *)(&(v)))[i])
 

Typedefs

using Spectrum = SPECTRUM_DATA_TYPE
 
using PackedSpectrum = PACKED_SPECTRUM_DATA_TYPE
 

Macro Definition Documentation

◆ FOREACH_SPECTRUM_CHANNEL

#define FOREACH_SPECTRUM_CHANNEL ( counter)     for (int counter = 0; counter < SPECTRUM_CHANNELS; counter++)

◆ GET_SPECTRUM_CHANNEL

◆ load_spectrum

#define load_spectrum ( f)    CONCAT(load_, SPECTRUM_DATA_TYPE(f))

Definition at line 22 of file types_spectrum.h.

◆ make_spectrum

◆ one_spectrum

◆ PACKED_SPECTRUM_DATA_TYPE

#define PACKED_SPECTRUM_DATA_TYPE   packed_float3

Definition at line 16 of file types_spectrum.h.

◆ SPECTRUM_CHANNELS

#define SPECTRUM_CHANNELS   3

Definition at line 14 of file types_spectrum.h.

Referenced by bssrdf_setup(), and volume_sample_channel().

◆ SPECTRUM_DATA_TYPE

#define SPECTRUM_DATA_TYPE   float3

Definition at line 15 of file types_spectrum.h.

◆ store_spectrum

#define store_spectrum ( s,
f )   CONCAT(store_, SPECTRUM_DATA_TYPE((s), (f)))

Definition at line 23 of file types_spectrum.h.

◆ zero_spectrum

#define zero_spectrum   CONCAT(zero_, SPECTRUM_DATA_TYPE)

Typedef Documentation

◆ PackedSpectrum

Definition at line 19 of file types_spectrum.h.

◆ Spectrum

Definition at line 18 of file types_spectrum.h.