Blender
V3.3
|
Go to the source code of this file.
Functions | |
CCL_NAMESPACE_BEGIN ccl_device_inline uint | subd_triangle_patch (KernelGlobals kg, ccl_private const ShaderData *sd) |
ccl_device_inline uint | attribute_primitive_type (KernelGlobals kg, ccl_private const ShaderData *sd) |
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, ccl_private const ShaderData *sd, uint id) |
ccl_device Transform | primitive_attribute_matrix (KernelGlobals kg, ccl_private const ShaderData *sd, const AttributeDescriptor desc) |
ccl_device_inline AttributeDescriptor attribute_not_found | ( | ) |
Definition at line 34 of file kernel/geom/attribute.h.
References ATTR_ELEMENT_NONE, and ATTR_STD_NOT_FOUND.
Referenced by find_attribute(), and svm_node_attr_init().
ccl_device_inline uint attribute_primitive_type | ( | KernelGlobals | kg, |
ccl_private const ShaderData * | sd | ||
) |
Definition at line 24 of file kernel/geom/attribute.h.
References ATTR_PRIM_GEOMETRY, ATTR_PRIM_SUBD, PRIMITIVE_TRIANGLE, and subd_triangle_patch().
Referenced by find_attribute(), and OSLRenderServices::get_attribute().
ccl_device_inline AttributeDescriptor find_attribute | ( | KernelGlobals | kg, |
ccl_private const ShaderData * | sd, | ||
uint | id | ||
) |
Definition at line 48 of file kernel/geom/attribute.h.
References ATTR_ELEMENT_MESH, ATTR_ELEMENT_NONE, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VOXEL, ATTR_PRIM_TYPES, ATTR_STD_NONE, ATTR_STD_NOT_FOUND, attribute_not_found(), attribute_primitive_type(), AttributeDescriptor::element, AttributeMap::element, AttributeDescriptor::flags, AttributeMap::flags, AttributeMap::id, if(), kernel_data_fetch, object_attribute_map_offset(), OBJECT_NONE, AttributeDescriptor::offset, AttributeMap::offset, PRIM_NONE, AttributeDescriptor::type, AttributeMap::type, and UNLIKELY.
Referenced by primitive_motion_vector(), 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(), svm_node_vertex_color(), svm_node_vertex_color_bump_dx(), and svm_node_vertex_color_bump_dy().
ccl_device_inline uint object_attribute_map_offset | ( | KernelGlobals | kg, |
int | object | ||
) |
Definition at line 43 of file kernel/geom/attribute.h.
References kernel_data_fetch.
Referenced by find_attribute().
ccl_device Transform primitive_attribute_matrix | ( | KernelGlobals | kg, |
ccl_private const ShaderData * | sd, | ||
const AttributeDescriptor | desc | ||
) |
Definition at line 96 of file kernel/geom/attribute.h.
References kernel_data_fetch, AttributeDescriptor::offset, Transform::x, Transform::y, and Transform::z.
Referenced by get_mesh_attribute().
CCL_NAMESPACE_BEGIN ccl_device_inline uint subd_triangle_patch | ( | KernelGlobals | kg, |
ccl_private const ShaderData * | sd | ||
) |
Definition at line 19 of file kernel/geom/attribute.h.
References kernel_data_fetch, and PRIM_NONE.
Referenced by attribute_primitive_type(), primitive_motion_vector(), primitive_surface_attribute_float(), primitive_surface_attribute_float2(), primitive_surface_attribute_float3(), primitive_surface_attribute_float4(), subd_triangle_attribute_float(), subd_triangle_attribute_float2(), subd_triangle_attribute_float3(), and subd_triangle_attribute_float4().