Blender  V3.3
Functions
integrator/tile.cpp File Reference
#include "integrator/tile.h"
#include "util/log.h"
#include "util/math.h"

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)
 

Function Documentation

◆ operator<<()

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.

◆ round_down_to_power_of_two()

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().

◆ round_up_to_power_of_two()

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().

◆ 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 
)