Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/denoise.h
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | public: | ||||
| /* Viewport start sample. */ | /* Viewport start sample. */ | ||||
| int start_sample = 0; | int start_sample = 0; | ||||
| /* Auxiliary passes. */ | /* Auxiliary passes. */ | ||||
| bool use_pass_albedo = true; | bool use_pass_albedo = true; | ||||
| bool use_pass_normal = true; | bool use_pass_normal = true; | ||||
| /* Configure the denoiser to use motion vectors, previous image and a temporally stable model. */ | |||||
| bool temporally_stable = false; | |||||
| DenoiserPrefilter prefilter = DENOISER_PREFILTER_FAST; | DenoiserPrefilter prefilter = DENOISER_PREFILTER_FAST; | ||||
| static const NodeEnum *get_type_enum(); | static const NodeEnum *get_type_enum(); | ||||
| static const NodeEnum *get_prefilter_enum(); | static const NodeEnum *get_prefilter_enum(); | ||||
| DenoiseParams(); | DenoiseParams(); | ||||
| bool modified(const DenoiseParams &other) const | bool modified(const DenoiseParams &other) const | ||||
| { | { | ||||
| return !(use == other.use && type == other.type && start_sample == other.start_sample && | return !(use == other.use && type == other.type && start_sample == other.start_sample && | ||||
| use_pass_albedo == other.use_pass_albedo && | use_pass_albedo == other.use_pass_albedo && | ||||
| use_pass_normal == other.use_pass_normal && prefilter == other.prefilter); | use_pass_normal == other.use_pass_normal && | ||||
| temporally_stable == other.temporally_stable && prefilter == other.prefilter); | |||||
| } | } | ||||
| }; | }; | ||||
| /* All the parameters needed to perform buffer denoising on a device. | /* All the parameters needed to perform buffer denoising on a device. | ||||
| * Is not really a task in its canonical terms (as in, is not an asynchronous running task). Is | * Is not really a task in its canonical terms (as in, is not an asynchronous running task). Is | ||||
| * more like a wrapper for all the arguments and parameters needed to perform denoising. Is a | * more like a wrapper for all the arguments and parameters needed to perform denoising. Is a | ||||
| * single place where they are all listed, so that it's not required to modify all device methods | * single place where they are all listed, so that it's not required to modify all device methods | ||||
| * when these parameters do change. */ | * when these parameters do change. */ | ||||
| Show All 16 Lines | |||||