Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel.cpp
| Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
| void kernel_cpu_convert_to_half_float(KernelGlobals *kg, uchar4 *rgba, float *buffer, float sample_scale, int x, int y, int offset, int stride) | void kernel_cpu_convert_to_half_float(KernelGlobals *kg, uchar4 *rgba, float *buffer, float sample_scale, int x, int y, int offset, int stride) | ||||
| { | { | ||||
| kernel_film_convert_to_half_float(kg, rgba, buffer, sample_scale, x, y, offset, stride); | kernel_film_convert_to_half_float(kg, rgba, buffer, sample_scale, x, y, offset, stride); | ||||
| } | } | ||||
| /* Shader Evaluation */ | /* Shader Evaluation */ | ||||
| void kernel_cpu_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i, int sample) | void kernel_cpu_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i, int offset, int sample) | ||||
| { | { | ||||
| if(type >= SHADER_EVAL_BAKE) | if(type >= SHADER_EVAL_BAKE) | ||||
| kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i, sample); | kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i, offset, sample); | ||||
| else | else | ||||
| kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i, sample); | kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i, sample); | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||