2023-06-14 16:52:36 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
|
|
|
|
|
#include "device/cpu/kernel.h"
|
|
|
|
|
|
|
|
|
|
#include "kernel/device/cpu/kernel.h"
|
|
|
|
|
|
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
2025-01-11 20:27:19 +01:00
|
|
|
#define KERNEL_FUNCTIONS(name) KERNEL_NAME_EVAL(cpu, name), KERNEL_NAME_EVAL(cpu_avx2, name)
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
|
|
|
|
|
#define REGISTER_KERNEL(name) name(KERNEL_FUNCTIONS(name))
|
2021-11-05 21:01:23 +01:00
|
|
|
#define REGISTER_KERNEL_FILM_CONVERT(name) \
|
|
|
|
|
film_convert_##name(KERNEL_FUNCTIONS(film_convert_##name)), \
|
|
|
|
|
film_convert_half_rgba_##name(KERNEL_FUNCTIONS(film_convert_half_rgba_##name))
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
|
|
|
|
|
CPUKernels::CPUKernels()
|
|
|
|
|
: /* Integrator. */
|
|
|
|
|
REGISTER_KERNEL(integrator_init_from_camera),
|
|
|
|
|
REGISTER_KERNEL(integrator_init_from_bake),
|
|
|
|
|
REGISTER_KERNEL(integrator_megakernel),
|
|
|
|
|
/* Shader evaluation. */
|
|
|
|
|
REGISTER_KERNEL(shader_eval_displace),
|
|
|
|
|
REGISTER_KERNEL(shader_eval_background),
|
2021-09-20 16:16:11 +02:00
|
|
|
REGISTER_KERNEL(shader_eval_curve_shadow_transparency),
|
2024-11-29 12:20:56 +01:00
|
|
|
REGISTER_KERNEL(shader_eval_volume_density),
|
2021-09-22 14:48:01 +10:00
|
|
|
/* Adaptive sampling. */
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
REGISTER_KERNEL(adaptive_sampling_convergence_check),
|
|
|
|
|
REGISTER_KERNEL(adaptive_sampling_filter_x),
|
|
|
|
|
REGISTER_KERNEL(adaptive_sampling_filter_y),
|
2025-02-25 19:11:08 +01:00
|
|
|
/* Volume Scattering Probability Guiding. */
|
|
|
|
|
REGISTER_KERNEL(volume_guiding_filter_x),
|
|
|
|
|
REGISTER_KERNEL(volume_guiding_filter_y),
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
/* Cryptomatte. */
|
2021-11-05 21:01:23 +01:00
|
|
|
REGISTER_KERNEL(cryptomatte_postprocess),
|
|
|
|
|
/* Film Convert. */
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(depth),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(mist),
|
2025-02-25 19:11:08 +01:00
|
|
|
REGISTER_KERNEL_FILM_CONVERT(volume_majorant),
|
2021-11-05 21:01:23 +01:00
|
|
|
REGISTER_KERNEL_FILM_CONVERT(sample_count),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(float),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(light_path),
|
2025-05-21 12:23:13 +02:00
|
|
|
REGISTER_KERNEL_FILM_CONVERT(rgbe),
|
2021-11-05 21:01:23 +01:00
|
|
|
REGISTER_KERNEL_FILM_CONVERT(float3),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(motion),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(cryptomatte),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(shadow_catcher),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(shadow_catcher_matte_with_shadow),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(combined),
|
|
|
|
|
REGISTER_KERNEL_FILM_CONVERT(float4)
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#undef REGISTER_KERNEL
|
2021-11-05 21:01:23 +01:00
|
|
|
#undef REGISTER_KERNEL_FILM_CONVERT
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
#undef KERNEL_FUNCTIONS
|
|
|
|
|
|
|
|
|
|
CCL_NAMESPACE_END
|