Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/denoiser_oidn.cpp
| Show First 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | void read_pass_pixels(const OIDNPass &oidn_pass, const PassAccessor::Destination &destination) | ||||
| pass_access_info.use_approximate_shadow_catcher_background = false; | pass_access_info.use_approximate_shadow_catcher_background = false; | ||||
| pass_access_info.show_active_pixels = false; | pass_access_info.show_active_pixels = false; | ||||
| /* OIDN will perform an auto-exposure, so it is not required to know exact exposure configured | /* OIDN will perform an auto-exposure, so it is not required to know exact exposure configured | ||||
| * by users. What is important is to use same exposure for read and write access of the pass | * by users. What is important is to use same exposure for read and write access of the pass | ||||
| * pixels. */ | * pixels. */ | ||||
| const PassAccessorCPU pass_accessor(pass_access_info, 1.0f, num_samples_); | const PassAccessorCPU pass_accessor(pass_access_info, 1.0f, num_samples_); | ||||
| pass_accessor.get_render_tile_pixels(render_buffers_, buffer_params_, destination); | BufferParams buffer_params = buffer_params_; | ||||
| buffer_params.window_x = 0; | |||||
| buffer_params.window_y = 0; | |||||
| buffer_params.window_width = buffer_params.width; | |||||
| buffer_params.window_height = buffer_params.height; | |||||
| pass_accessor.get_render_tile_pixels(render_buffers_, buffer_params, destination); | |||||
| } | } | ||||
| /* Read pass pixels using PassAccessor into a temporary buffer which is owned by the pass.. */ | /* Read pass pixels using PassAccessor into a temporary buffer which is owned by the pass.. */ | ||||
| void read_pass_pixels_into_buffer(OIDNPass &oidn_pass) | void read_pass_pixels_into_buffer(OIDNPass &oidn_pass) | ||||
| { | { | ||||
| VLOG(3) << "Allocating temporary buffer for pass " << oidn_pass.name << " (" | VLOG(3) << "Allocating temporary buffer for pass " << oidn_pass.name << " (" | ||||
| << pass_type_as_string(oidn_pass.type) << ")"; | << pass_type_as_string(oidn_pass.type) << ")"; | ||||
| ▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines | |||||