Classes | |
struct | Sampling_data |
struct | Stream_one |
struct | Stream_one< mi::math::Color_struct > |
struct | Stream_one< mi::math::Vector<VE, VDIM> > |
struct | Verify_one |
struct | Verify_one<float> |
struct | Verify_one< mi::math::Color_struct > |
struct | Verify_one< mi::math::Vector<VE, VDIM> > |
Functions | |
bool | equal_float_relative (float a, float b, const float rel_eps=1.0e-4f) |
template<typename T> | |
void | write_array (std::ostream &os, const std::vector<T> &v) |
template<typename T> | |
void | read_array (std::istream &is, std::vector<T> &v) |
template<typename T> | |
bool | verify_array (const std::vector<T> &v, const std::vector<T> &ref_v) |
void | write_sampling_data (std::ostream &os, const Sampling_data &smpl_data) |
void | read_sampling_data (std::istream &is, Sampling_data &smpl_data) |
int | verify_sample_data (const Sampling_data &smpl_data, const Sampling_data &ref_smpl_data) |
template<typename T> | |
void | get_masked_user_value (const nv::index::IRay_sampling_result *smpl_result, const nv::index::IRay_sampling_result::Sample_range &srange, mi::Uint32 user_value_index, const std::vector< mi::Uint32 > &value_masks, std::vector<T> &values, const T &default_value) |
void | get_sample_data (const nv::index::IRay_sampling_result *smpl_result, const nv::index::IRay_sampling_result::Sample_range &srange, bool has_user_values, Sampling_data &smpl_data) |
void | export_sampling_result (std::ostream &os, mi::Uint32 max_nb_samples, const nv::index::IRay_sampling_result *smpl_result) |
void | import_sampling_result (std::istream &is, std::vector< Sampling_data > &smpl_data) |
std::string | make_sample_filename (const std::string &basename, std::map< std::string, std::string > &opt_map, const std::string &info) |
void | export_sample_file (const nv::index::IRay_sampling_result *smpl_result, std::map< std::string, std::string > &opt_map, const std::string &basename, const std::string &info) |
int | verify_sample_file (const nv::index::IRay_sampling_result *smpl_result, std::map< std::string, std::string > &opt_map, const std::string &basename, const std::string &info) |
int | handle_verification (const nv::index::IRay_sampling_result *smpl_result, std::map< std::string, std::string > &opt_map, const std::string &info) |
|
inline |
Definition at line 1527 of file ray_sampling.cpp.
void test::export_sample_file | ( | const nv::index::IRay_sampling_result * | smpl_result, |
std::map< std::string, std::string > & | opt_map, | ||
const std::string & | basename, | ||
const std::string & | info | ||
) |
Definition at line 1829 of file ray_sampling.cpp.
void test::export_sampling_result | ( | std::ostream & | os, |
mi::Uint32 | max_nb_samples, | ||
const nv::index::IRay_sampling_result * | smpl_result | ||
) |
Definition at line 1734 of file ray_sampling.cpp.
void test::get_masked_user_value | ( | const nv::index::IRay_sampling_result * | smpl_result, |
const nv::index::IRay_sampling_result::Sample_range & | srange, | ||
mi::Uint32 | user_value_index, | ||
const std::vector< mi::Uint32 > & | value_masks, | ||
std::vector<T> & | values, | ||
const T & | default_value | ||
) |
Definition at line 1681 of file ray_sampling.cpp.
void test::get_sample_data | ( | const nv::index::IRay_sampling_result * | smpl_result, |
const nv::index::IRay_sampling_result::Sample_range & | srange, | ||
bool | has_user_values, | ||
Sampling_data & | smpl_data | ||
) |
Definition at line 1698 of file ray_sampling.cpp.
int test::handle_verification | ( | const nv::index::IRay_sampling_result * | smpl_result, |
std::map< std::string, std::string > & | opt_map, | ||
const std::string & | info | ||
) |
Definition at line 1906 of file ray_sampling.cpp.
void test::import_sampling_result | ( | std::istream & | is, |
std::vector< Sampling_data > & | smpl_data | ||
) |
Definition at line 1782 of file ray_sampling.cpp.
std::string test::make_sample_filename | ( | const std::string & | basename, |
std::map< std::string, std::string > & | opt_map, | ||
const std::string & | info | ||
) |
Definition at line 1805 of file ray_sampling.cpp.
void test::read_array | ( | std::istream & | is, |
std::vector<T> & | v | ||
) |
Definition at line 1619 of file ray_sampling.cpp.
void test::read_sampling_data | ( | std::istream & | is, |
Sampling_data & | smpl_data | ||
) |
Definition at line 1658 of file ray_sampling.cpp.
bool test::verify_array | ( | const std::vector<T> & | v, |
const std::vector<T> & | ref_v | ||
) |
Definition at line 1631 of file ray_sampling.cpp.
int test::verify_sample_data | ( | const Sampling_data & | smpl_data, |
const Sampling_data & | ref_smpl_data | ||
) |
Definition at line 1668 of file ray_sampling.cpp.
int test::verify_sample_file | ( | const nv::index::IRay_sampling_result * | smpl_result, |
std::map< std::string, std::string > & | opt_map, | ||
const std::string & | basename, | ||
const std::string & | info | ||
) |
Definition at line 1841 of file ray_sampling.cpp.
void test::write_array | ( | std::ostream & | os, |
const std::vector<T> & | v | ||
) |
Definition at line 1607 of file ray_sampling.cpp.
void test::write_sampling_data | ( | std::ostream & | os, |
const Sampling_data & | smpl_data | ||
) |
Definition at line 1647 of file ray_sampling.cpp.