Blender V4.3
attribute.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline uint subd_triangle_patch (KernelGlobals kg, int prim)
 
ccl_device_inline uint attribute_primitive_type (KernelGlobals kg, int prim, int type)
 
ccl_device_inline AttributeDescriptor attribute_not_found ()
 
ccl_device_inline uint object_attribute_map_offset (KernelGlobals kg, int object)
 
ccl_device_inline AttributeDescriptor find_attribute (KernelGlobals kg, int object, int prim, int type, uint64_t id)
 
ccl_device_inline AttributeDescriptor find_attribute (KernelGlobals kg, ccl_private const ShaderData *sd, uint64_t id)
 
ccl_device Transform primitive_attribute_matrix (KernelGlobals kg, const AttributeDescriptor desc)
 

Function Documentation

◆ attribute_not_found()

ccl_device_inline AttributeDescriptor attribute_not_found ( )

Definition at line 35 of file kernel/geom/attribute.h.

References ATTR_ELEMENT_NONE, and ATTR_STD_NOT_FOUND.

Referenced by find_attribute(), and svm_node_attr_init().

◆ attribute_primitive_type()

ccl_device_inline uint attribute_primitive_type ( KernelGlobals kg,
int prim,
int type )

◆ find_attribute() [1/2]

Definition at line 95 of file kernel/geom/attribute.h.

References find_attribute().

◆ find_attribute() [2/2]

◆ object_attribute_map_offset()

ccl_device_inline uint object_attribute_map_offset ( KernelGlobals kg,
int object )

Definition at line 44 of file kernel/geom/attribute.h.

References kernel_data_fetch.

Referenced by find_attribute().

◆ primitive_attribute_matrix()

◆ subd_triangle_patch()