Blender  V3.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ShaderEval Class Reference

#include <shader_eval.h>

Public Member Functions

 ShaderEval (Device *device, Progress &progress)
 
bool eval (const ShaderEvalType type, const int max_num_inputs, const int num_channels, const function< int(device_vector< KernelShaderEvalInput > &)> &fill_input, const function< void(device_vector< float > &)> &read_output)
 

Protected Member Functions

bool eval_cpu (Device *device, const ShaderEvalType type, device_vector< KernelShaderEvalInput > &input, device_vector< float > &output, const int64_t work_size)
 
bool eval_gpu (Device *device, const ShaderEvalType type, device_vector< KernelShaderEvalInput > &input, device_vector< float > &output, const int64_t work_size)
 

Protected Attributes

Devicedevice_
 
Progressprogress_
 

Detailed Description

Definition at line 24 of file integrator/shader_eval.h.

Constructor & Destructor Documentation

◆ ShaderEval()

CCL_NAMESPACE_BEGIN ShaderEval::ShaderEval ( Device device,
Progress progress 
)

Definition at line 18 of file shader_eval.cpp.

References DCHECK_NE, and device_.

Member Function Documentation

◆ eval()

bool ShaderEval::eval ( const ShaderEvalType  type,
const int  max_num_inputs,
const int  num_channels,
const function< int(device_vector< KernelShaderEvalInput > &)> &  fill_input,
const function< void(device_vector< float > &)> &  read_output 
)

◆ eval_cpu()

bool ShaderEval::eval_cpu ( Device device,
const ShaderEvalType  type,
device_vector< KernelShaderEvalInput > &  input,
device_vector< float > &  output,
const int64_t  work_size 
)
protected

◆ eval_gpu()

bool ShaderEval::eval_gpu ( Device device,
const ShaderEvalType  type,
device_vector< KernelShaderEvalInput > &  input,
device_vector< float > &  output,
const int64_t  work_size 
)
protected

Member Data Documentation

◆ device_

Device* ShaderEval::device_
protected

Definition at line 48 of file integrator/shader_eval.h.

Referenced by eval(), and ShaderEval().

◆ progress_

Progress& ShaderEval::progress_
protected

Definition at line 49 of file integrator/shader_eval.h.

Referenced by eval_cpu(), and eval_gpu().


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