Blender
V3.3
|
#include <path_trace_work_cpu.h>
Protected Member Functions | |
void | render_samples_full_pipeline (KernelGlobalsCPU *kernel_globals, const KernelWorkTile &work_tile, const int samples_num) |
![]() | |
PathTraceWork (Device *device, Film *film, DeviceScene *device_scene, bool *cancel_requested_flag) | |
PassAccessor::PassAccessInfo | get_display_pass_access_info (PassMode pass_mode) const |
PassAccessor::Destination | get_display_destination_template (const PathTraceDisplay *display) const |
Protected Attributes | |
const CPUKernels & | kernels_ |
vector< CPUKernelThreadGlobals > | kernel_thread_globals_ |
![]() | |
Device * | device_ |
Film * | film_ |
DeviceScene * | device_scene_ |
unique_ptr< RenderBuffers > | buffers_ |
BufferParams | effective_full_params_ |
BufferParams | effective_big_tile_params_ |
BufferParams | effective_buffer_params_ |
bool * | cancel_requested_flag_ = nullptr |
Additional Inherited Members | |
![]() | |
static unique_ptr< PathTraceWork > | create (Device *device, Film *film, DeviceScene *device_scene, bool *cancel_requested_flag) |
Definition at line 27 of file path_trace_work_cpu.h.
PathTraceWorkCPU::PathTraceWorkCPU | ( | Device * | device, |
Film * | film, | ||
DeviceScene * | device_scene, | ||
bool * | cancel_requested_flag | ||
) |
Definition at line 43 of file path_trace_work_cpu.cpp.
References DCHECK_EQ, DEVICE_CPU, Device::info, and DeviceInfo::type.
|
overridevirtual |
Implements PathTraceWork.
Definition at line 205 of file path_trace_work_cpu.cpp.
References CPUKernels::adaptive_sampling_convergence_check, CPUKernels::adaptive_sampling_filter_x, CPUKernels::adaptive_sampling_filter_y, atomic_fetch_and_add_uint32(), PathTraceWork::buffers_, PathTraceWork::device_, PathTraceWork::effective_buffer_params_, full_x, BufferParams::full_x, full_y, BufferParams::full_y, BufferParams::height, height, kernel_globals, kernel_thread_globals_, kernels_, local_tbb_arena_create(), num_active_pixels, offset, BufferParams::offset, blender::threading::parallel_for(), render_buffer, reset, BufferParams::stride, stride, threshold, BufferParams::width, width, x, and y.
|
overridevirtual |
Implements PathTraceWork.
Definition at line 188 of file path_trace_work_cpu.cpp.
References PathTraceWork::buffers_.
|
overridevirtual |
Implements PathTraceWork.
Definition at line 193 of file path_trace_work_cpu.cpp.
References PathTraceWork::buffers_.
|
overridevirtual |
Implements PathTraceWork.
Definition at line 156 of file path_trace_work_cpu.cpp.
References PathTraceWork::buffers_, DeviceScene::data, PathTraceWork::device_, PathTraceWork::device_scene_, PathTraceWork::effective_buffer_params_, PathTraceWork::get_display_destination_template(), PathTraceWork::get_display_pass_access_info(), PassAccessor::get_render_tile_pixels(), local_tbb_arena_create(), PathTraceDisplay::map_texture_buffer(), num_samples, PassAccessor::Destination::pixels_half_rgba, and PathTraceDisplay::unmap_texture_buffer().
|
overridevirtual |
Implements PathTraceWork.
Definition at line 257 of file path_trace_work_cpu.cpp.
References PathTraceWork::buffers_, CPUKernels::cryptomatte_postprocess, PathTraceWork::device_, PathTraceWork::effective_buffer_params_, BufferParams::height, height, kernel_globals, kernel_thread_globals_, kernels_, local_tbb_arena_create(), blender::threading::parallel_for(), render_buffer, BufferParams::width, width, x, and y.
|
overridevirtual |
Implements PathTraceWork.
Definition at line 184 of file path_trace_work_cpu.cpp.
|
overridevirtual |
Implements PathTraceWork.
Definition at line 53 of file path_trace_work_cpu.cpp.
References PathTraceWork::device_, Device::get_cpu_kernel_thread_globals(), and kernel_thread_globals_.
|
overridevirtual |
Implements PathTraceWork.
Definition at line 59 of file path_trace_work_cpu.cpp.
References Profiler::active(), PathTraceWork::device_, PathTraceWork::effective_buffer_params_, BufferParams::full_x, BufferParams::full_y, KernelWorkTile::h, BufferParams::height, PathTraceWork::is_cancel_requested(), kernel_globals, kernel_thread_globals_, kernel_thread_globals_get(), local_tbb_arena_create(), KernelWorkTile::num_samples, PathTraceWork::RenderStatistics::occupancy, KernelWorkTile::offset, BufferParams::offset, blender::threading::parallel_for(), Device::profiler, render_samples_full_pipeline(), KernelWorkTile::sample_offset, KernelWorkTile::start_sample, KernelWorkTile::stride, BufferParams::stride, KernelWorkTile::w, BufferParams::width, work_index, KernelWorkTile::x, x, KernelWorkTile::y, and y.
|
protected |
Definition at line 109 of file path_trace_work_cpu.cpp.
References KernelData::bake, PathTraceWork::buffers_, DeviceScene::data, PathTraceWork::device_scene_, CPUKernels::integrator_init_from_bake, CPUKernels::integrator_init_from_camera, CPUKernels::integrator_megakernel, PathTraceWork::is_cancel_requested(), kernel_globals, kernels_, path_state_init_queues(), render_buffer, sample, KernelWorkTile::start_sample, state, and KernelBake::use.
Referenced by render_samples().
|
overridevirtual |
Implements PathTraceWork.
Definition at line 199 of file path_trace_work_cpu.cpp.
References PathTraceWork::buffers_.
|
protected |
Definition at line 67 of file path_trace_work_cpu.h.
Referenced by adaptive_sampling_converge_filter_count_active(), cryptomatte_postproces(), init_execution(), and render_samples().
|
protected |
Definition at line 60 of file path_trace_work_cpu.h.
Referenced by adaptive_sampling_converge_filter_count_active(), cryptomatte_postproces(), and render_samples_full_pipeline().