Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/path_trace_tile.cpp
| Show All 27 Lines | bool PathTraceTile::get_pass_pixels(const string_view pass_name, | ||||
| float *pixels) const | float *pixels) const | ||||
| { | { | ||||
| /* NOTE: The code relies on a fact that session is fully update and no scene/buffer modification | /* NOTE: The code relies on a fact that session is fully update and no scene/buffer modification | ||||
| * is happening while this function runs. */ | * is happening while this function runs. */ | ||||
| if (!copied_from_device_) { | if (!copied_from_device_) { | ||||
| /* Copy from device on demand. */ | /* Copy from device on demand. */ | ||||
| path_trace_.copy_render_tile_from_device(); | path_trace_.copy_render_tile_from_device(); | ||||
| const_cast<PathTraceTile *>(this)->copied_from_device_ = true; | copied_from_device_ = true; | ||||
| } | } | ||||
| const BufferParams &buffer_params = path_trace_.get_render_tile_params(); | const BufferParams &buffer_params = path_trace_.get_render_tile_params(); | ||||
| const BufferPass *pass = buffer_params.find_pass(pass_name); | const BufferPass *pass = buffer_params.find_pass(pass_name); | ||||
| if (pass == nullptr) { | if (pass == nullptr) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||