Blender  V2.93
Macros | Functions
kernel_cpu.h File Reference

Go to the source code of this file.

Macros

#define DECLARE_SPLIT_KERNEL_FUNCTION(name)    void KERNEL_FUNCTION_FULL_NAME(name)(KernelGlobals * kg, KernelData * data);
 

Functions

void KERNEL_FUNCTION_FULL_NAME() path_trace (KernelGlobals *kg, float *buffer, int sample, int x, int y, int offset, int stride)
 
void KERNEL_FUNCTION_FULL_NAME() convert_to_byte (KernelGlobals *kg, uchar4 *rgba, float *buffer, float sample_scale, int x, int y, int offset, int stride)
 
void KERNEL_FUNCTION_FULL_NAME() convert_to_half_float (KernelGlobals *kg, uchar4 *rgba, float *buffer, float sample_scale, int x, int y, int offset, int stride)
 
void KERNEL_FUNCTION_FULL_NAME() shader (KernelGlobals *kg, uint4 *input, float4 *output, int type, int filter, int i, int offset, int sample)
 
void KERNEL_FUNCTION_FULL_NAME() bake (KernelGlobals *kg, float *buffer, int sample, int x, int y, int offset, int stride)
 
void KERNEL_FUNCTION_FULL_NAME() data_init (KernelGlobals *kg, ccl_constant KernelData *data, ccl_global void *split_data_buffer, int num_elements, ccl_global char *ray_state, int start_sample, int end_sample, int sx, int sy, int sw, int sh, int offset, int stride, ccl_global int *Queue_index, int queuesize, ccl_global char *use_queues_flag, ccl_global unsigned int *work_pool_wgs, unsigned int num_samples, ccl_global float *buffer)
 

Macro Definition Documentation

◆ DECLARE_SPLIT_KERNEL_FUNCTION

#define DECLARE_SPLIT_KERNEL_FUNCTION (   name)     void KERNEL_FUNCTION_FULL_NAME(name)(KernelGlobals * kg, KernelData * data);

Definition at line 74 of file kernel_cpu.h.

Function Documentation

◆ bake()

void KERNEL_FUNCTION_FULL_NAME() bake ( KernelGlobals *  kg,
float buffer,
int  sample,
int  x,
int  y,
int  offset,
int  stride 
)

Definition at line 137 of file kernel_cpu_impl.h.

References bake(), buffer, KERNEL_ARCH, kg, blender::compositor::sample(), stride, x, and y.

Referenced by bake().

◆ convert_to_byte()

void KERNEL_FUNCTION_FULL_NAME() convert_to_byte ( KernelGlobals *  kg,
uchar4 rgba,
float buffer,
float  sample_scale,
int  x,
int  y,
int  offset,
int  stride 
)

Definition at line 103 of file kernel_cpu_impl.h.

References buffer, convert_to_byte(), KERNEL_ARCH, kernel_film_convert_to_byte(), kg, stride, x, and y.

Referenced by convert_to_byte().

◆ convert_to_half_float()

void KERNEL_FUNCTION_FULL_NAME() convert_to_half_float ( KernelGlobals *  kg,
uchar4 rgba,
float buffer,
float  sample_scale,
int  x,
int  y,
int  offset,
int  stride 
)

◆ data_init()

void KERNEL_FUNCTION_FULL_NAME() data_init ( KernelGlobals *  kg,
ccl_constant KernelData data,
ccl_global void *  split_data_buffer,
int  num_elements,
ccl_global char *  ray_state,
int  start_sample,
int  end_sample,
int  sx,
int  sy,
int  sw,
int  sh,
int  offset,
int  stride,
ccl_global int *  Queue_index,
int  queuesize,
ccl_global char *  use_queues_flag,
ccl_global unsigned int *  work_pool_wgs,
unsigned int  num_samples,
ccl_global float buffer 
)

Referenced by kernel_data_init().

◆ path_trace()

void KERNEL_FUNCTION_FULL_NAME() path_trace ( KernelGlobals *  kg,
float buffer,
int  sample,
int  x,
int  y,
int  offset,
int  stride 
)

◆ shader()

void KERNEL_FUNCTION_FULL_NAME() shader ( KernelGlobals *  kg,
uint4 input,
float4 *  output,
int  type,
int  filter,
int  i,
int  offset,
int  sample 
)

Definition at line 151 of file kernel_cpu_impl.h.

References KERNEL_ARCH, kernel_background_evaluate(), kernel_displace_evaluate(), kg, output, shader(), SHADER_EVAL_DISPLACE, and type.

Referenced by aa_samples(), Hair::add_curve(), ShaderManager::add_default(), Mesh::add_triangle(), ShaderNode::attributes(), ImageTextureNode::attributes(), EnvironmentTextureNode::attributes(), PointDensityTextureNode::attributes(), AnisotropicBsdfNode::attributes(), PrincipledBsdfNode::attributes(), PrincipledVolumeNode::attributes(), PrincipledHairBsdfNode::attributes(), GeometryNode::attributes(), TextureCoordinateNode::attributes(), UVMapNode::attributes(), ParticleInfoNode::attributes(), HairInfoNode::attributes(), VolumeInfoNode::attributes(), VertexColorNode::attributes(), AttributeNode::attributes(), NormalMapNode::attributes(), TangentNode::attributes(), VectorDisplacementNode::attributes(), Background::Background(), blender::gpu::GLVaoCache::base_instance_vao_get(), bc_get_base_color(), bc_get_cot_from_shader(), bc_get_emission(), bc_get_float_from_shader(), bind_fallback_shader(), BLI_STATIC_ASSERT(), BPyGPUShader_CreatePyObject(), BVH(), blender::gpu::debug::check_gl_resources(), Mesh::clear(), RenderStats::collect_profiling(), SVMCompiler::compile(), SVMCompiler::compile_type(), Object::compute_volume_step_size(), count_active_texture_sampler(), create_mesh(), GeometryManager::create_volume_mesh(), createGPUShader(), ImageTextureNode::cull_tiles(), GeometryManager::device_update_attributes(), LightManager::device_update_background(), ShaderManager::device_update_common(), GeometryManager::device_update_displacement_images(), LightManager::device_update_distribution(), LightManager::device_update_points(), SVMShaderManager::device_update_shader(), GeometryManager::displace(), DRW_draw_cursor(), DRW_draw_cursor_2d(), DRW_shader_free(), DRW_shgroup_create(), drw_shgroup_create_ex(), drw_shgroup_init(), DRW_shgroup_transform_feedback_create(), ED_node_shader_default(), EEVEE_lookdev_cache_init(), blender::io::usd::USDAbstractWriter::ensure_usd_material(), ShaderManager::get_cryptomatte_materials(), MaterialNode::get_diffuse_image(), Scene::get_max_closure_count(), ShaderManager::get_requested_features(), Background::get_shader(), Profiler::get_shader(), ShaderManager::get_shader_id(), GPU_batch_draw_advanced(), GPU_batch_program_set_builtin_with_config(), GPU_batch_set_shader(), GPU_matrix_bind(), GPU_pass_compile(), gpu_pass_shader_validate(), GPU_shader_bind(), GPU_shader_create_ex(), GPU_shader_free(), GPU_shader_get_builtin_shader(), GPU_shader_get_builtin_shader_code(), GPU_shader_get_builtin_shader_with_config(), GPU_shader_get_program(), GPU_shader_set_srgb_uniform(), GPU_shader_transform_feedback_disable(), GPU_shader_transform_feedback_enable(), GPU_shader_uniform_float(), GPU_shader_uniform_int(), GPU_shader_uniform_vector(), GPU_shader_uniform_vector_int(), GPU_vertformat_from_shader(), Light::has_contribution(), Geometry::has_true_displacement(), icon_draw_cache_texture_flush_ex(), icon_draw_rect(), icon_draw_texture(), image_cache_image(), immBindBuiltinProgram(), immBindShader(), indirect_background(), Method_ShaderSource(), Geometry::need_attribute(), Geometry::needed_attributes(), NODE_DEFINE(), LightManager::object_usable_as_light(), ObtainCacheParticleData(), Operators_create(), Hair::pack_curves(), Mesh::pack_shaders(), pygpu_batch_program_set(), pygpu_shader__tp_new(), pygpu_shader_from_builtin(), pygpu_shader_uniform_location_get(), Mesh::reserve_mesh(), Mesh::resize_mesh(), ProfilingHelper::set_shader(), shader(), shader_constant_emission_eval(), shader_cryptomatte_id(), shader_setup_from_displace(), shader_setup_from_sample(), blender::gpu::GLDrawList::submit(), Film::tag_passes_update(), Object::tag_update(), Geometry::tag_update(), Integrator::tag_update(), LightManager::test_enabled_lights(), triangle_point_normal(), ShaderManager::update_shaders_used(), blender::gpu::GLVaoCache::vao_get(), wm_draw_region_blend(), workbench_antialiasing_cache_init(), workbench_shader_cavity_get(), workbench_shader_composite_get(), workbench_shader_get_ex(), workbench_shader_shadow_pass_get_ex(), workbench_shader_volume_get(), xml_read_background(), xml_read_mesh(), xml_read_shader(), xml_read_shader_graph(), xml_read_state(), and OCIO_GPUShader::~OCIO_GPUShader().