tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
sampler.h
Go to the documentation of this file.
1#pragma once
2#ifndef _TINYPBRT_SAMPLERS_H_
3#define _TINYPBRT_SAMPLERS_H_
4
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
36
53
64
73
84
95
108
119
147
148#ifdef __cplusplus
149}
150#endif
151#endif // _TINYPBRT_SAMPLERS_H_
int32_t tpbrt_int_t
Int type.
Definition fwd.h:73
uint32_t tpbrt_uint_t
Unsigned int type.
Definition fwd.h:78
uint8_t tpbrt_bool_t
Bool type.
Definition fwd.h:68
tpbrt_sampler_random_t
Sampler random type.
Definition sampler.h:41
tpbrt_sampler_type_t
Sampler types.
Definition sampler.h:20
@ TPBRT_SAMPLER_RANDOM_FAST_OWEN
Applies an efficient approximation to Owen scrambling.
Definition sampler.h:49
@ TPBRT_SAMPLER_RANDOM_OWEN
Applies Owen scrambling.
Definition sampler.h:47
@ TPBRT_SAMPLER_RANDOM_NONE
Disables randomization.
Definition sampler.h:43
@ TPBRT_SAMPLER_RANDOM_PERMUTE_DIGITS
Applies a random permutation to the digits of the sample.
Definition sampler.h:45
@ TPBRT_SAMPLER_RANDOM_MAX_NUM
Count of available random types.
Definition sampler.h:51
@ TPBRT_SAMPLER_TYPE_INDEPENDENT
Independent sampler.
Definition sampler.h:24
@ TPBRT_SAMPLER_TYPE_HALTON
Halton sampler.
Definition sampler.h:22
@ TPBRT_SAMPLER_TYPE_SOBOL
Sobol sampler.
Definition sampler.h:28
@ TPBRT_SAMPLER_TYPE_STRATIFIED
Stratified sampler.
Definition sampler.h:30
@ TPBRT_SAMPLER_TYPE_Z_SOBOL
Z-Sobol sampler.
Definition sampler.h:32
@ TPBRT_SAMPLER_TYPE_MAX_NUM
Count of available sampler types.
Definition sampler.h:34
@ TPBRT_SAMPLER_TYPE_PADDED_SOBOL
Padded sobol sampler.
Definition sampler.h:26
Halton sampler parameters.
Definition sampler.h:58
tpbrt_sampler_random_t randomization
Specifies a randomization algorithm to use.
Definition sampler.h:62
tpbrt_uint_t pixel_samples
The number of samples to take in each pixel.
Definition sampler.h:60
Independent sampler parameters.
Definition sampler.h:69
tpbrt_uint_t pixel_samples
The number of samples to take in each pixel.
Definition sampler.h:71
Padded sobol sampler parameters.
Definition sampler.h:78
tpbrt_sampler_random_t randomization
Specifies a randomization algorithm to use.
Definition sampler.h:82
tpbrt_uint_t pixel_samples
The number of samples to take in each pixel.
Definition sampler.h:80
Sobol sampler parameters.
Definition sampler.h:89
tpbrt_uint_t pixel_samples
The number of samples to take in each pixel.
Definition sampler.h:91
tpbrt_sampler_random_t randomization
Specifies a randomization algorithm to use.
Definition sampler.h:93
Stratified sampler parameters.
Definition sampler.h:100
tpbrt_bool_t jitter
Whether or not the generated samples should be jittered inside each stratum; this is generally only w...
Definition sampler.h:106
tpbrt_uint_t x_samples
The number of samples per pixel to take in the x direction.
Definition sampler.h:102
tpbrt_uint_t y_samples
The number of samples per pixel to take in the y direction. In general, "xsamples" and "ysamples" sho...
Definition sampler.h:104
PBRT sampler representation.
Definition sampler.h:124
tpbrt_sampler_padded_sobol_params_t padded_sobol
Padded sobol sampler parameters.
Definition sampler.h:135
tpbrt_sampler_stratified_params_t stratified
Stratified sampler parameters.
Definition sampler.h:139
union tpbrt_sampler_t::@22 as
Value dependent on type value.
tpbrt_sampler_type_t type
Sampler value type.
Definition sampler.h:145
tpbrt_sampler_sobol_params_t sobol
Sobol sampler parameters.
Definition sampler.h:137
tpbrt_sampler_independent_params_t independent
Independent sampler parameters.
Definition sampler.h:133
tpbrt_sampler_z_sobol_params_t z_sobol
Z-Sobol sampler parameters.
Definition sampler.h:141
tpbrt_int_t seed
A seed to use for the pseudorandom number generator. The default seed value is zero,...
Definition sampler.h:126
tpbrt_sampler_halton_params_t halton
Halton sampler parameters.
Definition sampler.h:131
Z-Sobol sampler parameters.
Definition sampler.h:113
tpbrt_sampler_random_t randomization
Specifies a randomization algorithm to use.
Definition sampler.h:117
tpbrt_uint_t pixel_samples
The number of samples to take in each pixel.
Definition sampler.h:115