Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/device/cpu/kernel_arch.h
| Show All 15 Lines | |||||
| /* Templated common declaration part of all CPU kernels. */ | /* Templated common declaration part of all CPU kernels. */ | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Integrator. | * Integrator. | ||||
| */ | */ | ||||
| #define KERNEL_INTEGRATOR_FUNCTION(name) \ | #define KERNEL_INTEGRATOR_FUNCTION(name) \ | ||||
| void KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobals *ccl_restrict kg, \ | void KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobalsCPU *ccl_restrict kg, \ | ||||
| IntegratorStateCPU *state) | IntegratorStateCPU *state) | ||||
| #define KERNEL_INTEGRATOR_SHADE_FUNCTION(name) \ | #define KERNEL_INTEGRATOR_SHADE_FUNCTION(name) \ | ||||
| void KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobals *ccl_restrict kg, \ | void KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobalsCPU *ccl_restrict kg, \ | ||||
| IntegratorStateCPU *state, \ | IntegratorStateCPU *state, \ | ||||
| ccl_global float *render_buffer) | ccl_global float *render_buffer) | ||||
| #define KERNEL_INTEGRATOR_INIT_FUNCTION(name) \ | #define KERNEL_INTEGRATOR_INIT_FUNCTION(name) \ | ||||
| bool KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobals *ccl_restrict kg, \ | bool KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobalsCPU *ccl_restrict kg, \ | ||||
| IntegratorStateCPU *state, \ | IntegratorStateCPU *state, \ | ||||
| KernelWorkTile *tile, \ | KernelWorkTile *tile, \ | ||||
| ccl_global float *render_buffer) | ccl_global float *render_buffer) | ||||
| KERNEL_INTEGRATOR_INIT_FUNCTION(init_from_camera); | KERNEL_INTEGRATOR_INIT_FUNCTION(init_from_camera); | ||||
| KERNEL_INTEGRATOR_INIT_FUNCTION(init_from_bake); | KERNEL_INTEGRATOR_INIT_FUNCTION(init_from_bake); | ||||
| KERNEL_INTEGRATOR_FUNCTION(intersect_closest); | KERNEL_INTEGRATOR_FUNCTION(intersect_closest); | ||||
| KERNEL_INTEGRATOR_FUNCTION(intersect_shadow); | KERNEL_INTEGRATOR_FUNCTION(intersect_shadow); | ||||
| Show All 9 Lines | |||||
| #undef KERNEL_INTEGRATOR_FUNCTION | #undef KERNEL_INTEGRATOR_FUNCTION | ||||
| #undef KERNEL_INTEGRATOR_INIT_FUNCTION | #undef KERNEL_INTEGRATOR_INIT_FUNCTION | ||||
| #undef KERNEL_INTEGRATOR_SHADE_FUNCTION | #undef KERNEL_INTEGRATOR_SHADE_FUNCTION | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Shader evaluation. | * Shader evaluation. | ||||
| */ | */ | ||||
| void KERNEL_FUNCTION_FULL_NAME(shader_eval_background)(const KernelGlobals *kg, | void KERNEL_FUNCTION_FULL_NAME(shader_eval_background)(const KernelGlobalsCPU *kg, | ||||
| const KernelShaderEvalInput *input, | const KernelShaderEvalInput *input, | ||||
| float *output, | float *output, | ||||
| const int offset); | const int offset); | ||||
| void KERNEL_FUNCTION_FULL_NAME(shader_eval_displace)(const KernelGlobals *kg, | void KERNEL_FUNCTION_FULL_NAME(shader_eval_displace)(const KernelGlobalsCPU *kg, | ||||
| const KernelShaderEvalInput *input, | const KernelShaderEvalInput *input, | ||||
| float *output, | float *output, | ||||
| const int offset); | const int offset); | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Adaptive sampling. | * Adaptive sampling. | ||||
| */ | */ | ||||
| bool KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_convergence_check)( | bool KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_convergence_check)( | ||||
| const KernelGlobals *kg, | const KernelGlobalsCPU *kg, | ||||
| ccl_global float *render_buffer, | ccl_global float *render_buffer, | ||||
| int x, | int x, | ||||
| int y, | int y, | ||||
| float threshold, | float threshold, | ||||
| bool reset, | bool reset, | ||||
| int offset, | int offset, | ||||
| int stride); | int stride); | ||||
| void KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_filter_x)(const KernelGlobals *kg, | void KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_filter_x)(const KernelGlobalsCPU *kg, | ||||
| ccl_global float *render_buffer, | ccl_global float *render_buffer, | ||||
| int y, | int y, | ||||
| int start_x, | int start_x, | ||||
| int width, | int width, | ||||
| int offset, | int offset, | ||||
| int stride); | int stride); | ||||
| void KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_filter_y)(const KernelGlobals *kg, | void KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_filter_y)(const KernelGlobalsCPU *kg, | ||||
| ccl_global float *render_buffer, | ccl_global float *render_buffer, | ||||
| int x, | int x, | ||||
| int start_y, | int start_y, | ||||
| int height, | int height, | ||||
| int offset, | int offset, | ||||
| int stride); | int stride); | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Cryptomatte. | * Cryptomatte. | ||||
| */ | */ | ||||
| void KERNEL_FUNCTION_FULL_NAME(cryptomatte_postprocess)(const KernelGlobals *kg, | void KERNEL_FUNCTION_FULL_NAME(cryptomatte_postprocess)(const KernelGlobalsCPU *kg, | ||||
| ccl_global float *render_buffer, | ccl_global float *render_buffer, | ||||
| int pixel_index); | int pixel_index); | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Bake. | * Bake. | ||||
| */ | */ | ||||
| /* TODO(sergey): Needs to be re-implemented. Or not? Brecht did it already :) */ | /* TODO(sergey): Needs to be re-implemented. Or not? Brecht did it already :) */ | ||||
| void KERNEL_FUNCTION_FULL_NAME(bake)( | void KERNEL_FUNCTION_FULL_NAME(bake)( | ||||
| const KernelGlobals *kg, float *buffer, int sample, int x, int y, int offset, int stride); | const KernelGlobalsCPU *kg, float *buffer, int sample, int x, int y, int offset, int stride); | ||||
| #undef KERNEL_ARCH | #undef KERNEL_ARCH | ||||