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

Data Structures

struct  tpbrt::sampler_halton_params
 C++ wrapper for tpbrt_sampler_halton_params_t. More...
 
struct  tpbrt::sampler_independent_params
 C++ wrapper for tpbrt_sampler_independent_params_t. More...
 
struct  tpbrt::sampler_padded_sobol_params
 C++ wrapper for tpbrt_sampler_padded_sobol_params_t. More...
 
struct  tpbrt::sampler_sobol_params
 C++ wrapper for tpbrt_sampler_sobol_params_t. More...
 
struct  tpbrt::sampler_stratified_params
 C++ wrapper for tpbrt_sampler_stratified_params_t. More...
 
struct  tpbrt::sampler_z_sobol_params
 C++ wrapper for tpbrt_sampler_z_sobol_params_t. More...
 
struct  tpbrt::sampler
 C++ wrapper for tpbrt_sampler_t. More...
 

Enumerations

enum class  tpbrt::sampler_type : uchar_t {
  tpbrt::sampler_type::HALTON = TPBRT_SAMPLER_TYPE_HALTON , tpbrt::sampler_type::INDEPENDENT = TPBRT_SAMPLER_TYPE_INDEPENDENT , tpbrt::sampler_type::PADDED_SOBOL = TPBRT_SAMPLER_TYPE_PADDED_SOBOL , tpbrt::sampler_type::SOBOL = TPBRT_SAMPLER_TYPE_SOBOL ,
  tpbrt::sampler_type::STRATIFIED = TPBRT_SAMPLER_TYPE_STRATIFIED , tpbrt::sampler_type::Z_SOBOL = TPBRT_SAMPLER_TYPE_Z_SOBOL , tpbrt::sampler_type::MAX_NUM = TPBRT_SAMPLER_TYPE_MAX_NUM
}
 Sampler types. More...
 
enum class  tpbrt::sampler_random : uchar_t {
  tpbrt::sampler_random::NONE = TPBRT_SAMPLER_RANDOM_NONE , tpbrt::sampler_random::PERMUTE_DIGITS = TPBRT_SAMPLER_RANDOM_PERMUTE_DIGITS , tpbrt::sampler_random::OWEN = TPBRT_SAMPLER_RANDOM_OWEN , tpbrt::sampler_random::FAST_OWEN = TPBRT_SAMPLER_RANDOM_FAST_OWEN ,
  tpbrt::sampler_random::MAX_NUM = TPBRT_SAMPLER_RANDOM_MAX_NUM
}
 Sampler types. More...
 

Functions

constexpr std::string_view tpbrt::to_string (const sampler_type type) noexcept
 Converts sampler_type enum value to string.
 
constexpr std::string_view tpbrt::to_string (const sampler_random random) noexcept
 Converts sampler_random enum value to string.
 

Detailed Description

Enumeration Type Documentation

◆ sampler_type

enum class tpbrt::sampler_type : uchar_t
strong

Sampler types.

Enumerator
HALTON 

Halton sampler.

INDEPENDENT 

Independent sampler.

PADDED_SOBOL 

Padded sobol sampler.

SOBOL 

Sobol sampler.

STRATIFIED 

Stratified sampler.

Z_SOBOL 

Z-Sobol sampler.

MAX_NUM 

Count of available sampler types.

◆ sampler_random

enum class tpbrt::sampler_random : uchar_t
strong

Sampler types.

Enumerator
NONE 

Disables randomization.

PERMUTE_DIGITS 

Applies a random permutation to the digits of the sample.

OWEN 

Applies Owen scrambling.

FAST_OWEN 

Applies an efficient approximation to Owen scrambling.

MAX_NUM 

Count of available random types.

Function Documentation

◆ to_string() [1/2]

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

Converts sampler_type enum value to string.

Parameters
typeSampler type.
Returns
String value of sampler type.

◆ to_string() [2/2]

constexpr std::string_view tpbrt::to_string ( const sampler_random  random)
constexprnoexcept

Converts sampler_random enum value to string.

Parameters
randomSampler random.
Returns
String value of sampler random.