|
Blender V5.0
|
#include "kernel/globals.h"#include "kernel/camera/projection.h"#include "kernel/geom/attribute.h"#include "kernel/geom/curve.h"#include "kernel/geom/object.h"#include "kernel/geom/point.h"#include "kernel/geom/triangle.h"#include "kernel/geom/volume.h"Go to the source code of this file.
Functions | |
| template<typename T> | |
| CCL_NAMESPACE_BEGIN ccl_device_forceinline dual< T > | primitive_surface_attribute (KernelGlobals kg, const ccl_private ShaderData *sd, const AttributeDescriptor desc, const bool dx=false, const bool dy=false) |
| ccl_device_forceinline float3 | primitive_uv (KernelGlobals kg, const ccl_private ShaderData *sd) |
| ccl_device bool | primitive_ptex (KernelGlobals kg, ccl_private ShaderData *sd, ccl_private float2 *uv, ccl_private int *face_id) |
| ccl_device float3 | primitive_tangent (KernelGlobals kg, ccl_private ShaderData *sd) |
| ccl_device_forceinline float4 | primitive_motion_vector (KernelGlobals kg, const ccl_private ShaderData *sd) |
| ccl_device_forceinline float4 primitive_motion_vector | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd ) |
Definition at line 156 of file primitive.h.
References ATTR_STD_MOTION_VERTEX_POSITION, ATTR_STD_NOT_FOUND, CAMERA_CUSTOM, CAMERA_PANORAMA, ccl_device_forceinline, ccl_private, direction_to_panorama(), find_attribute(), kernel_data, kernel_data_fetch, make_float3(), make_float4, normalize, object_fetch_motion_pass_transform(), OBJECT_PASS_MOTION_POST, OBJECT_PASS_MOTION_PRE, object_position_transform(), AttributeDescriptor::offset, PRIMITIVE_CURVE, PRIMITIVE_POINT, primitive_surface_attribute(), PRIMITIVE_TRIANGLE, SD_OBJECT_HAS_VERTEX_MOTION, SD_OBJECT_TRANSFORM_APPLIED, transform_perspective(), transform_point(), triangle_attribute(), float3::x, and float3::y.
Referenced by film_write_data_passes().
| ccl_device bool primitive_ptex | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| ccl_private float2 * | uv, | ||
| ccl_private int * | face_id ) |
Definition at line 101 of file primitive.h.
References ATTR_STD_NOT_FOUND, ATTR_STD_PTEX_FACE_ID, ATTR_STD_PTEX_UV, ccl_device, ccl_private, find_attribute(), make_float2, AttributeDescriptor::offset, primitive_surface_attribute(), float3::x, and float3::y.
| CCL_NAMESPACE_BEGIN ccl_device_forceinline dual< T > primitive_surface_attribute | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| const bool | dx = false, | ||
| const bool | dy = false ) |
Definition at line 32 of file primitive.h.
References ATTR_ELEMENT_MESH, ATTR_ELEMENT_OBJECT, attribute_data_fetch(), ccl_device_forceinline, ccl_private, AttributeDescriptor::element, make_zero(), AttributeDescriptor::offset, PRIMITIVE_CURVE, PRIMITIVE_POINT, PRIMITIVE_TRIANGLE, and triangle_attribute().
Referenced by get_object_attribute_impl(), get_object_attribute_impl(), osl_eval_nodes< SHADER_TYPE_SURFACE >(), primitive_motion_vector(), primitive_ptex(), primitive_tangent(), primitive_uv(), svm_node_closure_bsdf(), svm_node_enter_bump_eval(), svm_node_normal_map(), svm_node_tangent(), svm_node_vector_displacement(), svm_node_vertex_color(), svm_node_vertex_color_bump_dx(), svm_node_vertex_color_bump_dy(), svm_surface_attr(), svm_surface_attr_dx(), and svm_surface_attr_dy().
| ccl_device float3 primitive_tangent | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd ) |
Definition at line 125 of file primitive.h.
References ATTR_STD_GENERATED, ATTR_STD_NOT_FOUND, ccl_device, ccl_private, cross, data, find_attribute(), make_float3(), normalize, object_normal_transform(), AttributeDescriptor::offset, PRIMITIVE_CURVE, PRIMITIVE_POINT, and primitive_surface_attribute().
Referenced by svm_node_geometry().
| ccl_device_forceinline float3 primitive_uv | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd ) |
Definition at line 87 of file primitive.h.
References ATTR_STD_NOT_FOUND, ATTR_STD_UV, ccl_device_forceinline, ccl_private, find_attribute(), make_float3(), AttributeDescriptor::offset, primitive_surface_attribute(), float2::x, and float2::y.
Referenced by film_write_data_passes().