|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN std::ostream & | operator<< (std::ostream &os, const TileSize &tile_size) |
| ccl_device_inline uint | round_down_to_power_of_two (uint x) |
| ccl_device_inline uint | round_up_to_power_of_two (uint x) |
| TileSize | tile_calculate_best_size (const bool accel_rt, const int2 &image_size, const int num_samples, const int max_num_path_states, const float scrambling_distance) |
| CCL_NAMESPACE_BEGIN std::ostream & operator<< | ( | std::ostream & | os, |
| const TileSize & | tile_size ) |
Definition at line 14 of file integrator/tile.cpp.
References TileSize::height, TileSize::num_samples, and TileSize::width.
| ccl_device_inline uint round_down_to_power_of_two | ( | uint | x | ) |
Definition at line 21 of file integrator/tile.cpp.
References is_power_of_two(), prev_power_of_two(), and x.
Referenced by tile_calculate_best_size().
| ccl_device_inline uint round_up_to_power_of_two | ( | uint | x | ) |
Definition at line 30 of file integrator/tile.cpp.
References is_power_of_two(), next_power_of_two(), and x.
Referenced by tile_calculate_best_size().
| TileSize tile_calculate_best_size | ( | const bool | accel_rt, |
| const int2 & | image_size, | ||
| const int | num_samples, | ||
| const int | max_num_path_states, | ||
| const float | scrambling_distance ) |
Definition at line 39 of file integrator/tile.cpp.
References DCHECK_GE, DCHECK_LE, TileSize::height, min, TileSize::num_samples, round_down_to_power_of_two(), round_up_to_power_of_two(), sqrt(), TileSize::width, int2::x, and int2::y.
Referenced by WorkTileScheduler::reset_scheduler_state(), TEST(), and TEST().