Blender V5.0
PathTraceWorkCPU Class Reference

#include <path_trace_work_cpu.h>

Inherits PathTraceWork.

Public Member Functions

 PathTraceWorkCPU (Device *device, Film *film, DeviceScene *device_scene, const bool *cancel_requested_flag)
void init_execution () override
void render_samples (RenderStatistics &statistics, const int start_sample, const int samples_num, const int sample_offset) override
void copy_to_display (PathTraceDisplay *display, PassMode pass_mode, const int num_samples) override
void destroy_gpu_resources (PathTraceDisplay *display) override
bool copy_render_buffers_from_device () override
bool copy_render_buffers_to_device () override
bool zero_render_buffers () override
int adaptive_sampling_converge_filter_count_active (const float threshold, bool reset) override
void cryptomatte_postproces () override
void denoise_volume_guiding_buffers () override
Public Member Functions inherited from PathTraceWork
virtual ~PathTraceWork ()
RenderBuffersget_render_buffers ()
void set_effective_buffer_params (const BufferParams &effective_full_params, const BufferParams &effective_big_tile_params, const BufferParams &effective_buffer_params)
bool has_multiple_works () const
virtual void alloc_work_memory ()
void copy_to_render_buffers (RenderBuffers *render_buffers)
void copy_from_render_buffers (const RenderBuffers *render_buffers)
void copy_from_denoised_render_buffers (const RenderBuffers *render_buffers)
bool get_render_tile_pixels (const PassAccessor &pass_accessor, const PassAccessor::Destination &destination)
bool set_render_tile_pixels (PassAccessor &pass_accessor, const PassAccessor::Source &source)
bool is_cancel_requested () const
Deviceget_device () const

Protected Member Functions

void render_samples_full_pipeline (ThreadKernelGlobalsCPU *kernel_globals, const KernelWorkTile &work_tile, const int samples_num)
Protected Member Functions inherited from PathTraceWork
 PathTraceWork (Device *device, Film *film, DeviceScene *device_scene, const 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 PassMode mode) const

Protected Attributes

const CPUKernelskernels_
vector< ThreadKernelGlobalsCPUkernel_thread_globals_
Protected Attributes inherited from PathTraceWork
Devicedevice_
Filmfilm_
DeviceScenedevice_scene_
unique_ptr< RenderBuffersbuffers_
BufferParams effective_full_params_
BufferParams effective_big_tile_params_
BufferParams effective_buffer_params_
const bool * cancel_requested_flag_ = nullptr

Additional Inherited Members

Static Public Member Functions inherited from PathTraceWork
static unique_ptr< PathTraceWorkcreate (Device *device, Film *film, DeviceScene *device_scene, const bool *cancel_requested_flag)

Detailed Description

Definition at line 29 of file path_trace_work_cpu.h.

Constructor & Destructor Documentation

◆ PathTraceWorkCPU()

PathTraceWorkCPU::PathTraceWorkCPU ( Device * device,
Film * film,
DeviceScene * device_scene,
const bool * cancel_requested_flag )

Member Function Documentation

◆ adaptive_sampling_converge_filter_count_active()

int PathTraceWorkCPU::adaptive_sampling_converge_filter_count_active ( const float threshold,
bool reset )
overridevirtual

◆ copy_render_buffers_from_device()

bool PathTraceWorkCPU::copy_render_buffers_from_device ( )
overridevirtual

Implements PathTraceWork.

Definition at line 225 of file path_trace_work_cpu.cpp.

References PathTraceWork::buffers_.

◆ copy_render_buffers_to_device()

bool PathTraceWorkCPU::copy_render_buffers_to_device ( )
overridevirtual

Implements PathTraceWork.

Definition at line 230 of file path_trace_work_cpu.cpp.

References PathTraceWork::buffers_.

◆ copy_to_display()

◆ cryptomatte_postproces()

void PathTraceWorkCPU::cryptomatte_postproces ( )
overridevirtual

◆ denoise_volume_guiding_buffers()

void PathTraceWorkCPU::denoise_volume_guiding_buffers ( )
overridevirtual

◆ destroy_gpu_resources()

void PathTraceWorkCPU::destroy_gpu_resources ( PathTraceDisplay * display)
overridevirtual

Implements PathTraceWork.

Definition at line 223 of file path_trace_work_cpu.cpp.

◆ init_execution()

void PathTraceWorkCPU::init_execution ( )
overridevirtual

Implements PathTraceWork.

Definition at line 57 of file path_trace_work_cpu.cpp.

References PathTraceWork::device_, and kernel_thread_globals_.

◆ render_samples()

◆ render_samples_full_pipeline()

void PathTraceWorkCPU::render_samples_full_pipeline ( ThreadKernelGlobalsCPU * kernel_globals,
const KernelWorkTile & work_tile,
const int samples_num )
protected

◆ zero_render_buffers()

bool PathTraceWorkCPU::zero_render_buffers ( )
overridevirtual

Implements PathTraceWork.

Definition at line 236 of file path_trace_work_cpu.cpp.

References PathTraceWork::buffers_.

Member Data Documentation

◆ kernel_thread_globals_

◆ kernels_


The documentation for this class was generated from the following files: