Blender V5.0
kernel_arch.h File Reference

Go to the source code of this file.

Macros

#define KERNEL_INTEGRATOR_FUNCTION(name)
#define KERNEL_INTEGRATOR_SHADE_FUNCTION(name)
#define KERNEL_INTEGRATOR_INIT_FUNCTION(name)
#define KERNEL_FILM_CONVERT_FUNCTION(name)

Functions

 KERNEL_INTEGRATOR_INIT_FUNCTION (init_from_camera)
 KERNEL_INTEGRATOR_INIT_FUNCTION (init_from_bake)
 KERNEL_INTEGRATOR_SHADE_FUNCTION (megakernel)
void KERNEL_FUNCTION_FULL_NAME shader_eval_background (const ThreadKernelGlobalsCPU *kg, const KernelShaderEvalInput *input, float *output, const int offset)
void KERNEL_FUNCTION_FULL_NAME shader_eval_displace (const ThreadKernelGlobalsCPU *kg, const KernelShaderEvalInput *input, float *output, const int offset)
void KERNEL_FUNCTION_FULL_NAME shader_eval_curve_shadow_transparency (const ThreadKernelGlobalsCPU *kg, const KernelShaderEvalInput *input, float *output, const int offset)
void KERNEL_FUNCTION_FULL_NAME shader_eval_volume_density (const ThreadKernelGlobalsCPU *kg, const KernelShaderEvalInput *input, float *output, const int offset)
bool KERNEL_FUNCTION_FULL_NAME adaptive_sampling_convergence_check (const ThreadKernelGlobalsCPU *kg, ccl_global float *render_buffer, const int x, const int y, const float threshold, const int reset, const int offset, int stride)
void KERNEL_FUNCTION_FULL_NAME adaptive_sampling_filter_x (const ThreadKernelGlobalsCPU *kg, ccl_global float *render_buffer, const int y, const int start_x, const int width, const int offset, int stride)
void KERNEL_FUNCTION_FULL_NAME adaptive_sampling_filter_y (const ThreadKernelGlobalsCPU *kg, ccl_global float *render_buffer, const int x, const int start_y, const int height, const int offset, int stride)
void KERNEL_FUNCTION_FULL_NAME cryptomatte_postprocess (const ThreadKernelGlobalsCPU *kg, ccl_global float *render_buffer, int pixel_index)
void KERNEL_FUNCTION_FULL_NAME volume_guiding_filter_x (const ThreadKernelGlobalsCPU *kg, ccl_global float *render_buffer, const int y, const int center_x, const int min_x, const int max_x, const int offset, int stride)
void KERNEL_FUNCTION_FULL_NAME volume_guiding_filter_y (const ThreadKernelGlobalsCPU *kg, ccl_global float *render_buffer, const int x, const int center_y, const int height, const int offset, int stride)

Macro Definition Documentation

◆ KERNEL_FILM_CONVERT_FUNCTION

#define KERNEL_FILM_CONVERT_FUNCTION ( name)
Value:
void KERNEL_FUNCTION_FULL_NAME(film_convert_##name)(const KernelFilmConvert *kfilm_convert, \
const float *buffer, \
float *pixel, \
const int width, \
const int buffer_stride, \
const int pixel_stride); \
void KERNEL_FUNCTION_FULL_NAME(film_convert_half_rgba_##name)( \
const KernelFilmConvert *kfilm_convert, \
const float *buffer, \
half4 *pixel, \
const int width, \
const int buffer_stride);
#define KERNEL_FUNCTION_FULL_NAME(name)
const char * name
Definition half.h:60

Definition at line 36 of file kernel_arch.h.

◆ KERNEL_INTEGRATOR_FUNCTION

#define KERNEL_INTEGRATOR_FUNCTION ( name)
Value:

Definition at line 11 of file kernel_arch.h.

◆ KERNEL_INTEGRATOR_INIT_FUNCTION

#define KERNEL_INTEGRATOR_INIT_FUNCTION ( name)
Value:
bool KERNEL_FUNCTION_FULL_NAME(integrator_##name)( \
#define ccl_global
const ccl_global KernelWorkTile * tile
ccl_gpu_kernel_postfix ccl_global KernelWorkTile const int ccl_global float * render_buffer

Definition at line 21 of file kernel_arch.h.

◆ KERNEL_INTEGRATOR_SHADE_FUNCTION

#define KERNEL_INTEGRATOR_SHADE_FUNCTION ( name)
Value:

Definition at line 15 of file kernel_arch.h.

Function Documentation

◆ adaptive_sampling_convergence_check()

bool KERNEL_FUNCTION_FULL_NAME adaptive_sampling_convergence_check ( const ThreadKernelGlobalsCPU * kg,
ccl_global float * render_buffer,
const int x,
const int y,
const float threshold,
const int reset,
const int offset,
int stride )

◆ adaptive_sampling_filter_x()

void KERNEL_FUNCTION_FULL_NAME adaptive_sampling_filter_x ( const ThreadKernelGlobalsCPU * kg,
ccl_global float * render_buffer,
const int y,
const int start_x,
const int width,
const int offset,
int stride )

◆ adaptive_sampling_filter_y()

void KERNEL_FUNCTION_FULL_NAME adaptive_sampling_filter_y ( const ThreadKernelGlobalsCPU * kg,
ccl_global float * render_buffer,
const int x,
const int start_y,
const int height,
const int offset,
int stride )

◆ cryptomatte_postprocess()

void KERNEL_FUNCTION_FULL_NAME cryptomatte_postprocess ( const ThreadKernelGlobalsCPU * kg,
ccl_global float * render_buffer,
int pixel_index )

◆ KERNEL_INTEGRATOR_INIT_FUNCTION() [1/2]

KERNEL_INTEGRATOR_INIT_FUNCTION ( init_from_bake )

◆ KERNEL_INTEGRATOR_INIT_FUNCTION() [2/2]

KERNEL_INTEGRATOR_INIT_FUNCTION ( init_from_camera )

◆ KERNEL_INTEGRATOR_SHADE_FUNCTION()

KERNEL_INTEGRATOR_SHADE_FUNCTION ( megakernel )

◆ shader_eval_background()

void KERNEL_FUNCTION_FULL_NAME shader_eval_background ( const ThreadKernelGlobalsCPU * kg,
const KernelShaderEvalInput * input,
float * output,
const int offset )

◆ shader_eval_curve_shadow_transparency()

void KERNEL_FUNCTION_FULL_NAME shader_eval_curve_shadow_transparency ( const ThreadKernelGlobalsCPU * kg,
const KernelShaderEvalInput * input,
float * output,
const int offset )

◆ shader_eval_displace()

void KERNEL_FUNCTION_FULL_NAME shader_eval_displace ( const ThreadKernelGlobalsCPU * kg,
const KernelShaderEvalInput * input,
float * output,
const int offset )

◆ shader_eval_volume_density()

void KERNEL_FUNCTION_FULL_NAME shader_eval_volume_density ( const ThreadKernelGlobalsCPU * kg,
const KernelShaderEvalInput * input,
float * output,
const int offset )

◆ volume_guiding_filter_x()

void KERNEL_FUNCTION_FULL_NAME volume_guiding_filter_x ( const ThreadKernelGlobalsCPU * kg,
ccl_global float * render_buffer,
const int y,
const int center_x,
const int min_x,
const int max_x,
const int offset,
int stride )

◆ volume_guiding_filter_y()

void KERNEL_FUNCTION_FULL_NAME volume_guiding_filter_y ( const ThreadKernelGlobalsCPU * kg,
ccl_global float * render_buffer,
const int x,
const int center_y,
const int height,
const int offset,
int stride )