tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
Integrator

Data Structures

struct  tpbrt::integrator_ambient_occlusion_params
 C++ wrapper for tpbrt_integrator_ambient_occlusion_params_t. More...
 
struct  tpbrt::integrator_bdpt_params
 C++ wrapper for tpbrt_integrator_bdpt_params_t. More...
 
struct  tpbrt::integrator_light_path_params
 C++ wrapper for tpbrt_integrator_light_path_params_t. More...
 
struct  tpbrt::integrator_mlt_params
 C++ wrapper for tpbrt_integrator_mlt_params_t. More...
 
struct  tpbrt::integrator_path_params
 C++ wrapper for tpbrt_integrator_path_params_t. More...
 
struct  tpbrt::integrator_random_walk_params
 C++ wrapper for tpbrt_integrator_random_walk_params_t. More...
 
struct  tpbrt::integrator_simple_path_params
 C++ wrapper for tpbrt_integrator_simple_path_params_t. More...
 
struct  tpbrt::integrator_simple_vol_path_params
 C++ wrapper for tpbrt_integrator_simple_vol_path_params_t. More...
 
struct  tpbrt::integrator_sppm_params
 C++ wrapper for tpbrt_integrator_sppm_params_t. More...
 
struct  tpbrt::integrator_vol_path_params
 C++ wrapper for tpbrt_integrator_vol_path_params_t. More...
 
struct  tpbrt::integrator
 C++ wrapper for tpbrt_integrator_t. More...
 

Enumerations

enum class  tpbrt::integrator_type : uchar_t {
  tpbrt::integrator_type::AMBIENT_OCCLUSION = TPBRT_INTEGRATOR_TYPE_AMBIENT_OCCLUSION , tpbrt::integrator_type::BDPT = TPBRT_INTEGRATOR_TYPE_BDPT , tpbrt::integrator_type::LIGHT_PATH = TPBRT_INTEGRATOR_TYPE_LIGHT_PATH , tpbrt::integrator_type::MLT = TPBRT_INTEGRATOR_TYPE_MLT ,
  tpbrt::integrator_type::PATH = TPBRT_INTEGRATOR_TYPE_PATH , tpbrt::integrator_type::RANDOM_WALK = TPBRT_INTEGRATOR_TYPE_RANDOM_WALK , tpbrt::integrator_type::SIMPLE_PATH = TPBRT_INTEGRATOR_TYPE_SIMPLE_PATH , tpbrt::integrator_type::SIMPLE_VOL_PATH = TPBRT_INTEGRATOR_TYPE_SIMPLE_VOL_PATH ,
  tpbrt::integrator_type::SPPM = TPBRT_INTEGRATOR_TYPE_SPPM , tpbrt::integrator_type::VOL_PATH = TPBRT_INTEGRATOR_TYPE_VOL_PATH , tpbrt::integrator_type::MAX_NUM = TPBRT_INTEGRATOR_TYPE_MAX_NUM
}
 Integrator type. More...
 
enum class  tpbrt::integrator_light_sampler : uchar_t { tpbrt::integrator_light_sampler::BVH = TPBRT_INTEGRATOR_LIGHT_SAMPLER_BVH , tpbrt::integrator_light_sampler::UNIFORM = TPBRT_INTEGRATOR_LIGHT_SAMPLER_UNIFORM , tpbrt::integrator_light_sampler::POWER = TPBRT_INTEGRATOR_LIGHT_SAMPLER_POWER , tpbrt::integrator_light_sampler::MAX_NUM = TPBRT_INTEGRATOR_LIGHT_SAMPLER_MAX_NUM }
 Integrator light sampler type. More...
 

Functions

constexpr std::string_view tpbrt::to_string (const integrator_type type) noexcept
 Converts integrator_type enum value to string.
 
constexpr std::string_view tpbrt::to_string (const integrator_light_sampler sampler) noexcept
 Converts integrator_light_sampler enum value to string.
 

Detailed Description

Enumeration Type Documentation

◆ integrator_type

enum class tpbrt::integrator_type : uchar_t
strong

Integrator type.

Enumerator
AMBIENT_OCCLUSION 

Ambient occlusion (accessibility over the hemisphere).

BDPT 

Bidirectional path tracing.

LIGHT_PATH 

Path tracing starting from the light sources.

MLT 

Metropolis light transport using bidirectional path tracing.

PATH 

Path tracing.

RANDOM_WALK 

Rendering using a simple random walk without any explicit light sampling.

SIMPLE_PATH 

Path tracing with very basic sampling algorithms.

SIMPLE_VOL_PATH 

Volumetric path tracing with very basic sampling algorithms.

SPPM 

Stochastic progressive photon mapping.

VOL_PATH 

Volumetric path tracing.

MAX_NUM 

Count of available integrator types.

◆ integrator_light_sampler

Integrator light sampler type.

Enumerator
BVH 

BVH over the lights.

UNIFORM 

Uniform light sampling.

POWER 

Sampling lights according to their power.

MAX_NUM 

Count of available integrator light samplers.

Function Documentation

◆ to_string() [1/2]

constexpr std::string_view tpbrt::to_string ( const integrator_type  type)
constexprnoexcept

Converts integrator_type enum value to string.

Parameters
typeIntegrator type.
Returns
String value of integrator type.

◆ to_string() [2/2]

constexpr std::string_view tpbrt::to_string ( const integrator_light_sampler  sampler)
constexprnoexcept

Converts integrator_light_sampler enum value to string.

Parameters
samplerIntegrator light sampler.
Returns
String value of integrator light sampler.