16 path_trace.get_render_tile_size(),
17 path_trace.get_render_size(),
18 path_trace.get_render_tile_params().
layer,
19 path_trace.get_render_tile_params().
view),
20 path_trace_(path_trace),
21 copied_from_device_(
false)
26 const int num_channels,
32 if (!copied_from_device_) {
34 path_trace_.copy_render_tile_from_device();
35 copied_from_device_ =
true;
38 const BufferParams &buffer_params = path_trace_.get_render_tile_params();
41 if (pass ==
nullptr) {
45 const bool has_denoised_result = path_trace_.has_denoised_result() ||
49 if (pass ==
nullptr) {
56 if (pass ==
nullptr) {
62 const float exposure = buffer_params.
exposure;
63 const int num_samples = path_trace_.get_num_render_tile_samples();
70 const PassAccessorCPU pass_accessor(pass_access_info, exposure, num_samples);
73 return path_trace_.get_render_tile_pixels(pass_accessor, destination);
77 const int num_channels,
78 const float *pixels)
const
83 const BufferParams &buffer_params = path_trace_.get_render_tile_params();
93 const float exposure = buffer_params.
exposure;
94 const int num_samples = 1;
100 return path_trace_.set_render_tile_pixels(pass_accessor, source);
bool use_approximate_shadow_catcher
const BufferPass * find_pass(string_view name) const
const BufferPass * get_actual_display_pass(PassType type, PassMode mode=PassMode::NOISY) const
bool use_transparent_background
NODE_DECLARE PassType type
Tile(const int2 offset, const int2 size, const int2 full_size, const string_view layer, const string_view view)
bool use_approximate_shadow_catcher
bool use_approximate_shadow_catcher_background
bool set_pass_pixels(const string_view pass_name, const int num_channels, const float *pixels) const override
bool get_pass_pixels(const string_view pass_name, const int num_channels, float *pixels) const override
PathTraceTile(PathTrace &path_trace)
#define CCL_NAMESPACE_END
bool is_volume_guiding_pass(const PassType pass_type)