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();
48 if (pass ==
nullptr) {
55 if (pass ==
nullptr) {
61 const float exposure = buffer_params.
exposure;
62 const int num_samples = path_trace_.get_num_render_tile_samples();
69 const PassAccessorCPU pass_accessor(pass_access_info, exposure, num_samples);
72 return path_trace_.get_render_tile_pixels(pass_accessor, destination);
76 const int num_channels,
77 const float *pixels)
const
82 const BufferParams &buffer_params = path_trace_.get_render_tile_params();
92 const float exposure = buffer_params.
exposure;
93 const int num_samples = 1;
99 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