|
Blender V5.3
|
#include "kernel/globals.h"#include "kernel/types.h"#include "kernel/util/colorspace.h"#include "util/color.h"Go to the source code of this file.
Typedefs | |
| template<typename U, typename V> | |
| using | attribute_data_type_is_same = std::is_same<U, V> |
| using attribute_data_type_is_same = std::is_same<U, V> |
Definition at line 214 of file kernel/geom/attribute.h.
| ccl_device_template_spec Quaternion attribute_data_fetch | ( | KernelGlobals | kg, |
| AttributeElement | element, | ||
| int | offset ) |
Definition at line 125 of file kernel/geom/attribute.h.
References attribute_data_fetch(), ccl_device_template_spec, and kernel_data_fetch.
Referenced by attribute_data_fetch(), attribute_data_fetch(), attribute_data_fetch_3(), primitive_attribute_matrix(), primitive_surface_attribute(), triangle_attribute(), and triangle_face_normal_undisplaced().
| ccl_device_template_spec float attribute_data_fetch | ( | KernelGlobals | kg, |
| AttributeElement | element, | ||
| int | offset ) |
Definition at line 118 of file kernel/geom/attribute.h.
References attribute_data_fetch(), ccl_device_template_spec, and kernel_data_fetch.
| ccl_device_inline void attribute_data_fetch_3 | ( | KernelGlobals | kg, |
| const AttributeElement | element, | ||
| const int | offset, | ||
| const int | i0, | ||
| const int | i1, | ||
| const int | i2, | ||
| ccl_private T | f[3] ) |
Definition at line 218 of file kernel/geom/attribute.h.
References ATTR_ELEMENT_IS_NORMAL, attribute_data_fetch(), attribute_data_fetch_3(), attribute_data_fetch_normals(), ccl_device_inline, ccl_private, kernel_data_fetch, and T.
Referenced by attribute_data_fetch_3(), and triangle_attribute().
| ccl_device_inline float3 attribute_data_fetch_normal | ( | KernelGlobals | kg, |
| int | offset ) |
Definition at line 155 of file kernel/geom/attribute.h.
References attribute_data_fetch_normal(), ccl_device_inline, packed_normal::decode(), and kernel_data_fetch.
Referenced by attribute_data_fetch_normal(), attribute_data_fetch_normals(), and attribute_data_interpolate_normals().
| ccl_device_inline void attribute_data_fetch_normals | ( | KernelGlobals | kg, |
| const int | offset, | ||
| const int | i0, | ||
| const int | i1, | ||
| const int | i2, | ||
| ccl_private float3 | N[3] ) |
Definition at line 161 of file kernel/geom/attribute.h.
References attribute_data_fetch_normal(), attribute_data_fetch_normals(), ccl_device_inline, ccl_private, kernel_data_fetch, make_float3(), make_int4(), N, packed_normal_decode_simd(), float4::x, float4::y, and float4::z.
Referenced by attribute_data_fetch_3(), attribute_data_fetch_normals(), motion_triangle_normals_for_step(), triangle_smooth_normal(), triangle_smooth_normal_unnormalized_object_space(), and triangle_vertices_and_normals().
| ccl_device_inline float3 attribute_data_interpolate_normals | ( | KernelGlobals | kg, |
| const int | offset, | ||
| const int | i0, | ||
| const int | i1, | ||
| const int | i2, | ||
| const float | u, | ||
| const float | v ) |
Definition at line 185 of file kernel/geom/attribute.h.
References attribute_data_fetch_normal(), attribute_data_interpolate_normals(), ccl_device_inline, dot(), kernel_data_fetch, make_float3(), make_float4, make_int4(), and packed_normal_decode_simd().
Referenced by attribute_data_interpolate_normals(), and triangle_smooth_normal().
| ccl_device_inline AttributeDescriptor attribute_not_found | ( | ) |
Definition at line 29 of file kernel/geom/attribute.h.
References ATTR_ELEMENT_NONE, ATTR_STD_NOT_FOUND, attribute_not_found(), and ccl_device_inline.
Referenced by attribute_not_found(), find_attribute(), find_attribute(), svm_node_attr_init(), and svm_node_normal_map().
| ccl_device bool find_attr_offset | ( | const ccl_global AttributeMap * | attributes_map, |
| ccl_private uint & | attr_offset, | ||
| const uint64_t | id ) |
Definition at line 42 of file kernel/geom/attribute.h.
References ATTR_PRIM_TYPES, ATTR_STD_NONE, ccl_device, ccl_global, ccl_private, AttributeMap::element, find_attr_offset(), AttributeMap::id, AttributeMap::offset, and UNLIKELY.
Referenced by find_attr_offset(), and find_attribute().
| ccl_device_inline AttributeDescriptor find_attribute | ( | const ccl_global AttributeMap * | attributes_map, |
| uint | attr_offset, | ||
| const int | prim, | ||
| const uint64_t | id ) |
Definition at line 66 of file kernel/geom/attribute.h.
References ATTR_ELEMENT_MESH, ATTR_ELEMENT_NONE, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VOXEL, ATTR_STD_NOT_FOUND, attribute_not_found(), ccl_device_inline, ccl_global, AttributeDescriptor::element, AttributeMap::element, find_attr_offset(), find_attribute(), AttributeDescriptor::offset, AttributeMap::offset, PRIM_NONE, AttributeDescriptor::type, and AttributeMap::type.
Referenced by ObjectManager::device_update_geom_offsets(), find_attribute(), find_attribute(), find_attribute(), OSLRenderServices::get_attribute(), osl_eval_nodes_surface(), osl_get_attribute(), osl_shared_get_object_standard_attribute(), primitive_normal_set_undisplaced(), primitive_ptex(), primitive_tangent(), primitive_uv(), svm_node_attr_init(), svm_node_closure_bsdf(), svm_node_enter_bump_eval(), svm_node_normal_map(), svm_node_principled_volume(), svm_node_tangent(), svm_node_vector_displacement(), update_gsplat_std_point_attribute_offset(), and update_gsplat_std_point_attribute_offset_and_flag().
| ccl_device_inline AttributeDescriptor find_attribute | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd, | ||
| const uint64_t | id ) |
Definition at line 107 of file kernel/geom/attribute.h.
References ccl_device_inline, ccl_private, and find_attribute().
| ccl_device_inline AttributeDescriptor find_attribute | ( | KernelGlobals | kg, |
| const int | object, | ||
| const int | prim, | ||
| const uint64_t | id ) |
Definition at line 94 of file kernel/geom/attribute.h.
References attribute_not_found(), ccl_device_inline, find_attribute(), kernel_data_fetch, object_attribute_map_offset(), and OBJECT_NONE.
| CCL_NAMESPACE_BEGIN ccl_device_forceinline bool is_attribute_found | ( | const ccl_private AttributeDescriptor & | desc | ) |
Definition at line 24 of file kernel/geom/attribute.h.
References ATTR_STD_NOT_FOUND, ccl_device_forceinline, ccl_private, and is_attribute_found().
Referenced by OSLRenderServices::get_attribute(), is_attribute_found(), osl_eval_nodes_surface(), osl_get_attribute(), osl_shared_get_object_standard_attribute(), primitive_normal_set_undisplaced(), primitive_ptex(), primitive_tangent(), primitive_uv(), svm_node_attr_init(), svm_node_attr_surface_eval(), svm_node_closure_bsdf(), svm_node_enter_bump_eval(), svm_node_normal_map(), svm_node_principled_volume(), svm_node_tangent(), and svm_node_vector_displacement().
| ccl_device_inline uint object_attribute_map_offset | ( | KernelGlobals | kg, |
| const int | object ) |
Definition at line 37 of file kernel/geom/attribute.h.
References ccl_device_inline, kernel_data_fetch, and object_attribute_map_offset().
Referenced by find_attribute(), and object_attribute_map_offset().
| ccl_device Transform primitive_attribute_matrix | ( | KernelGlobals | kg, |
| const AttributeDescriptor | desc ) |
Definition at line 266 of file kernel/geom/attribute.h.
References attribute_data_fetch(), ccl_device, AttributeDescriptor::element, AttributeDescriptor::offset, and primitive_attribute_matrix().
Referenced by osl_shared_get_object_attribute(), and primitive_attribute_matrix().