Blender
V3.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 11 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 18 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 27 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 36 of file integrator/tile.cpp.
References DCHECK_GE, DCHECK_LE, TileSize::height, max, min, num_pixels, TileSize::num_samples, 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(), and TEST().