Blender V4.3
globals.h File Reference
#include "kernel/tables.h"
#include "kernel/types.h"
#include "kernel/util/profiling.h"
#include "util/guiding.h"
#include "kernel/data_arrays.h"

Go to the source code of this file.

Classes

struct  kernel_array< T >
 
struct  KernelGlobalsCPU
 

Macros

#define KERNEL_DATA_ARRAY(type, name)   kernel_array<type> name;
 
#define kernel_data_fetch(name, index)   (kg->name.fetch(index))
 
#define kernel_data_array(name)   (kg->name.data)
 
#define kernel_data   (kg->data)
 

Typedefs

typedef struct KernelGlobalsCPU KernelGlobalsCPU
 
typedef const KernelGlobalsCPU *ccl_restrict KernelGlobals
 

Macro Definition Documentation

◆ kernel_data

#define kernel_data   (kg->data)

Definition at line 76 of file device/cpu/globals.h.

Referenced by background_light_pdf(), background_light_sample(), background_map_pdf(), background_map_sample(), background_num_possible_portals(), background_portal_data_fetch_and_check_side(), background_portal_pdf(), background_portal_sample(), background_sun_pdf(), background_sun_sample(), blue_noise_indexing(), bsdf_hair_huang_energy_scale(), bsdf_label(), bsdf_microfacet_estimate_albedo(), bsdf_sample(), bsdf_sheen_setup(), BVH(), BVH(), BVH(), camera_direction_from_point(), camera_distance(), camera_position(), camera_sample(), camera_sample_orthographic(), camera_sample_perspective(), camera_world_to_ndc(), camera_z_depth(), displacement_shader_eval(), film_adaptive_sampling_convergence_check(), film_adaptive_sampling_filter_x(), film_adaptive_sampling_filter_y(), film_clamp_light(), film_cryptomatte_post(), film_need_sample_pixel(), film_pass_pixel_render_buffer(), film_pass_pixel_render_buffer_shadow(), film_write_adaptive_buffer(), film_write_aov_pass_color(), film_write_aov_pass_value(), film_write_background(), film_write_combined_pass(), film_write_combined_transparent_pass(), film_write_data_passes(), film_write_data_passes_background(), film_write_direct_light(), film_write_emission_or_background_pass(), film_write_sample(), film_write_surface_emission(), film_write_transparent(), film_write_volume_emission(), fresnel_iridescence(), OSLRenderServices::get_background_attribute(), OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_matrix(), OSLRenderServices::get_matrix(), get_work_pixel(), guiding_record_background(), guiding_record_bssrdf_bounce(), guiding_record_bssrdf_segment(), guiding_record_bssrdf_weight(), guiding_record_continuation_probability(), guiding_record_direct_light(), guiding_record_light_surface_segment(), guiding_record_surface_bounce(), guiding_record_surface_emission(), guiding_record_surface_segment(), guiding_record_volume_bounce(), guiding_record_volume_emission(), guiding_record_volume_segment(), guiding_record_volume_transmission(), guiding_write_debug_passes(), integrate_background(), integrate_camera_sample(), integrate_distant_lights(), integrate_shadow_max_transparent_hits(), integrate_surface(), integrate_surface_bsdf_bssrdf_bounce(), integrate_surface_direct_light(), integrate_surface_emission(), integrator_eval_background_shader(), integrator_init_from_bake(), integrator_init_from_camera(), integrator_intersect_closest(), integrator_intersect_next_kernel(), integrator_intersect_next_kernel_after_volume(), integrator_intersect_shadow(), integrator_intersect_skip_lights(), integrator_shade_light(), integrator_state_read_shadow_ray_self(), integrator_state_write_shadow_ray_self(), integrator_volume_stack_update_for_subsurface(), intersection_skip_shadow_link(), kernel_embree_convert_hit(), kernel_embree_intersect(), kernel_shadow_catcher_is_path_split_bounce(), light_distribution_pdf_lamp(), light_distribution_sample(), light_distribution_sample(), light_link_light_match(), light_link_object_match(), light_link_receiver_forward(), light_link_receiver_nee(), light_sample(), light_sample_from_position(), light_sample_from_volume_segment(), light_sample_mis_weight_forward(), light_sample_mis_weight_forward_background(), light_sample_mis_weight_forward_lamp(), light_sample_mis_weight_forward_surface(), light_sample_mis_weight_nee(), light_sample_terminate(), light_tree_root_node_index(), light_tree_sample(), lights_intersect_impl(), linear_rgb_to_gray(), microfacet_ggx_preserve_energy(), object_volume_step_size(), osl_closure_generalized_schlick_bsdf_setup(), osl_closure_skip(), osl_get_inverse_matrix(), osl_get_matrix(), path_rng_1D(), path_rng_2D(), path_rng_3D(), path_rng_4D(), path_rng_pixel_init(), path_state_ao_bounce(), path_state_continuation_probability(), path_state_init_integrator(), path_state_next(), path_state_rng_light_termination(), primitive_motion_vector(), rec709_to_rgb(), scene_intersect(), scene_intersect_shadow(), shader_setup_from_background(), sky_radiance_nishita(), surface_shader_bsdf_eval(), surface_shader_eval(), surface_shader_prepare_closures(), svm_node_camera(), svm_node_closure_bsdf(), svm_node_tex_coord(), svm_node_tex_coord_bump_dx(), svm_node_tex_coord_bump_dy(), svm_node_vector_transform(), tabulated_sobol_sample_1D(), tabulated_sobol_sample_2D(), tabulated_sobol_sample_3D(), tabulated_sobol_sample_4D(), tabulated_sobol_shuffled_sample_index(), OSLRenderServices::trace(), triangle_light_pdf(), triangle_light_sample(), and xyz_to_rgb().

◆ KERNEL_DATA_ARRAY

#define KERNEL_DATA_ARRAY ( type,
name )   kernel_array<type> name;

Definition at line 41 of file device/cpu/globals.h.

◆ kernel_data_array

#define kernel_data_array ( name)    (kg->name.data)

◆ kernel_data_fetch

#define kernel_data_fetch ( name,
index )   (kg->name.fetch(index))

Definition at line 74 of file device/cpu/globals.h.

Referenced by __anyhit__kernel_optix_local_hit(), __anyhit__kernel_optix_shadow_all_hit(), __anyhit__kernel_optix_visibility_test(), __anyhit__kernel_optix_volume_test(), __closesthit__kernel_optix_hit(), background_map_pdf(), background_map_sample(), background_portal_data_fetch_and_check_side(), background_portal_pdf(), background_portal_sample(), bsdf_eval(), bsdf_sample(), BVH(), BVH(), BVH(), BVH(), bvh_aligned_node_intersect(), bvh_node_intersect(), bvh_unaligned_node_fetch_space(), bvh_unaligned_node_intersect(), compute_emitter_centroid_and_dir(), distant_light_sample_from_intersection(), fetch_float(), fetch_node_float(), film_write_data_passes(), find_attribute(), get_left_probability(), integrate_background(), integrate_distant_lights(), integrate_surface_direct_light(), integrate_surface_emission(), integrator_init_from_bake(), integrator_intersect_closest(), integrator_intersect_next_kernel(), integrator_intersect_next_kernel_after_volume(), intersection_curve_shadow_transparency(), intersection_find_attribute(), intersection_get_object_flags(), intersection_get_shader_flags(), intersection_get_shader_from_isect_prim(), intersection_skip_shadow_link(), kernel_embree_convert_hit(), kernel_embree_convert_sss_hit(), kernel_embree_filter_occluded_volume_all_func_impl(), kernel_embree_is_self_intersection(), kernel_ies_interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp(), kernel_tex_image_interp(), kernel_tex_image_interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d(), kernel_tex_image_interp_3d(), kernel_tex_image_interp_3d(), lamp_fetch_transform(), lamp_lightgroup(), lamp_random_number(), light_distribution_sample(), light_link_light_match(), light_link_object_match(), light_sample(), light_sample(), light_sample_from_intersection(), light_sample_mis_weight_forward_background(), light_sample_mis_weight_forward_lamp(), light_sample_mis_weight_forward_surface(), light_sample_shader_eval(), light_sample_update(), light_select_reached_max_bounces(), light_tree_cluster_select_emitter(), light_tree_emitter_importance(), light_tree_pdf(), light_tree_root_node_index(), light_tree_sample(), light_tree_to_local_space(), lights_intersect_impl(), lookup_table_read(), motion_triangle_compute_info(), motion_triangle_intersect(), motion_triangle_normals_for_step(), motion_triangle_shader_setup(), motion_triangle_smooth_normal(), motion_triangle_vertices(), motion_triangle_vertices_and_normals(), motion_triangle_verts_for_step(), object_alpha(), object_attribute_map_offset(), object_color(), object_cryptomatte_asset_id(), object_cryptomatte_id(), object_dupli_generated(), object_dupli_uv(), object_fetch_motion_pass_transform(), object_fetch_transform(), object_fetch_transform_motion_test(), object_lightgroup(), object_particle_id(), object_pass_id(), object_patch_map_offset(), object_random_number(), object_volume_density(), object_volume_step_size(), osl_closure_hair_huang_setup(), particle_age(), particle_angular_velocity(), particle_index(), particle_lifetime(), particle_location(), particle_rotation(), particle_size(), particle_velocity(), patch_eval_basis(), patch_eval_float(), patch_eval_float2(), patch_eval_float3(), patch_eval_float4(), patch_eval_indices(), patch_eval_uchar4(), patch_map_find_patch(), primitive_attribute_matrix(), primitive_motion_vector(), read_node(), read_node_float(), scene_intersect(), shader_pass_id(), shader_setup_from_background(), shader_setup_from_displace(), shader_setup_from_ray(), shader_setup_from_sample(), shadow_ray_offset(), subd_triangle_attribute_float(), subd_triangle_attribute_float2(), subd_triangle_attribute_float3(), subd_triangle_attribute_float4(), subd_triangle_patch(), subd_triangle_patch_corners(), subd_triangle_patch_face(), subd_triangle_patch_indices(), subd_triangle_patch_num_corners(), subd_triangle_patch_uv(), surface_shader_constant_emission(), svm_image_texture_read_2d(), svm_image_texture_read_3d(), svm_node_closure_bsdf(), tabulated_sobol_sample_1D(), tabulated_sobol_sample_2D(), tabulated_sobol_sample_3D(), tabulated_sobol_sample_4D(), triangle_attribute_float(), triangle_attribute_float2(), triangle_attribute_float3(), triangle_attribute_float4(), triangle_dPdudv(), triangle_intersect(), triangle_light_sample(), triangle_light_valid_ray_segment(), triangle_normal(), triangle_point_from_uv(), triangle_point_normal(), triangle_shader_setup(), triangle_smooth_normal(), triangle_smooth_normal_unnormalized(), triangle_vertices(), triangle_vertices_and_normals(), and triangle_world_space_vertices().

Typedef Documentation

◆ KernelGlobals

Definition at line 71 of file device/cpu/globals.h.

◆ KernelGlobalsCPU

typedef struct KernelGlobalsCPU KernelGlobalsCPU