Blender V5.0
path_trace_tile.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2021-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
8
10
11/* PathTraceTile
12 *
13 * Implementation of OutputDriver::Tile interface for path tracer. */
14
15class PathTrace;
16
18 public:
19 PathTraceTile(PathTrace &path_trace);
20
21 bool get_pass_pixels(const string_view pass_name,
22 const int num_channels,
23 float *pixels) const override;
24 bool set_pass_pixels(const string_view pass_name,
25 const int num_channels,
26 const float *pixels) const override;
27
28 private:
29 PathTrace &path_trace_;
30 mutable bool copied_from_device_;
31};
32
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