|
Blender V4.5
|
#include <cstring>#include "scene/colorspace.h"#include "scene/object.h"#include "util/log.h"#include "util/string.h"#include "kernel/device/cpu/image.h"#include "kernel/osl/globals.h"#include "kernel/osl/services.h"#include "kernel/osl/services_shared.h"#include "kernel/osl/types.h"#include "kernel/integrator/state.h"#include "kernel/integrator/state_util.h"#include "kernel/geom/primitive.h"#include "kernel/geom/shader_data.h"#include "kernel/bvh/bvh.h"#include "kernel/camera/camera.h"#include "kernel/svm/ao.h"#include "kernel/svm/bevel.h"#include "kernel/util/ies.h"Go to the source code of this file.
Macros | |
| #define | READ_PATH_STATE(elem) |
Functions | |
| static CCL_NAMESPACE_BEGIN void | copy_matrix (OSL::Matrix44 &m, const Transform &tfm) |
| static void | copy_matrix (OSL::Matrix44 &m, const ProjectionTransform &tfm) |
| template<typename T> | |
| bool | set_attribute (const T v, const T dx, const T dy, TypeDesc type, bool derivatives, void *val) |
| void | set_data_float (const float v, const float dx, const float dy, bool derivatives, void *val) |
| void | set_data_float3 (const float3 v, const float3 dx, const float3 dy, bool derivatives, void *val) |
| void | set_data_float4 (const float4 v, const float4 dx, const float4 dy, bool derivatives, void *val) |
| ccl_device_template_spec bool | set_attribute (const float v, const float dx, const float dy, TypeDesc type, bool derivatives, void *val) |
| ccl_device_template_spec bool | set_attribute (const float2 v, const float2 dx, const float2 dy, TypeDesc type, bool derivatives, void *val) |
| ccl_device_template_spec bool | set_attribute (const float3 v, const float3 dx, const float3 dy, TypeDesc type, bool derivatives, void *val) |
| ccl_device_template_spec bool | set_attribute (const float4 v, const float4 dx, const float4 dy, TypeDesc type, bool derivatives, void *val) |
| template<typename T> | |
| ccl_device_inline bool | set_attribute (const T f, const TypeDesc type, bool derivatives, void *val) |
| ccl_device_template_spec bool | set_attribute (const int i, const TypeDesc type, bool derivatives, void *val) |
| ccl_device_template_spec bool | set_attribute (ustring str, const TypeDesc type, bool derivatives, void *val) |
| static bool | set_attribute_float3_3 (const float3 P[3], TypeDesc type, bool derivatives, void *val) |
| static bool | set_attribute_matrix (const Transform &tfm, const TypeDesc type, void *val) |
| template<typename T> | |
| bool | get_object_attribute_impl (const ThreadKernelGlobalsCPU *kg, ShaderData *sd, const AttributeDescriptor &desc, const TypeDesc &type, bool derivatives, void *val) |
| static bool | get_object_attribute (const ThreadKernelGlobalsCPU *kg, ShaderData *sd, const AttributeDescriptor &desc, const TypeDesc &type, bool derivatives, void *val) |
| #define READ_PATH_STATE | ( | elem | ) |
Referenced by OSLRenderServices::get_background_attribute().
|
static |
Definition at line 54 of file services.cpp.
References projection_transpose().
|
static |
Definition at line 48 of file services.cpp.
References projection_transpose().
Referenced by OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_matrix(), OSLRenderServices::get_matrix(), OSLRenderServices::get_matrix(), OSLRenderServices::get_matrix(), and set_attribute_matrix().
|
static |
Definition at line 669 of file services.cpp.
References get_object_attribute_impl(), NODE_ATTR_FLOAT, NODE_ATTR_FLOAT2, NODE_ATTR_FLOAT3, NODE_ATTR_FLOAT4, NODE_ATTR_MATRIX, NODE_ATTR_RGBA, primitive_attribute_matrix(), set_attribute_matrix(), and AttributeDescriptor::type.
Referenced by OSLRenderServices::get_attribute().
|
inline |
Definition at line 646 of file services.cpp.
References make_zero(), primitive_surface_attribute(), set_attribute(), T, and v.
Referenced by get_object_attribute().
| ccl_device_template_spec bool set_attribute | ( | const float | v, |
| const float | dx, | ||
| const float | dy, | ||
| TypeDesc | type, | ||
| bool | derivatives, | ||
| void * | val ) |
Definition at line 461 of file services.cpp.
References ccl_device_template_spec, make_float3(), make_float4(), set_data_float(), set_data_float3(), set_data_float4(), TypeFloatArray4(), and v.
| ccl_device_template_spec bool set_attribute | ( | const float2 | v, |
| const float2 | dx, | ||
| const float2 | dy, | ||
| TypeDesc | type, | ||
| bool | derivatives, | ||
| void * | val ) |
Definition at line 484 of file services.cpp.
References average(), ccl_device_template_spec, make_float3(), make_float4(), set_data_float(), set_data_float3(), set_data_float4(), TypeFloatArray4(), v, float2::x, and float2::y.
| ccl_device_template_spec bool set_attribute | ( | const float3 | v, |
| const float3 | dx, | ||
| const float3 | dy, | ||
| TypeDesc | type, | ||
| bool | derivatives, | ||
| void * | val ) |
Definition at line 507 of file services.cpp.
References average(), ccl_device_template_spec, make_float4(), set_data_float(), set_data_float3(), set_data_float4(), TypeFloatArray4(), and v.
| ccl_device_template_spec bool set_attribute | ( | const float4 | v, |
| const float4 | dx, | ||
| const float4 | dy, | ||
| TypeDesc | type, | ||
| bool | derivatives, | ||
| void * | val ) |
Definition at line 535 of file services.cpp.
References average(), ccl_device_template_spec, make_float3(), set_data_float(), set_data_float3(), set_data_float4(), TypeFloatArray4(), and v.
| ccl_device_template_spec bool set_attribute | ( | const int | i, |
| const TypeDesc | type, | ||
| bool | derivatives, | ||
| void * | val ) |
Definition at line 563 of file services.cpp.
References ccl_device_template_spec, and i.
| ccl_device_inline bool set_attribute | ( | const T | f, |
| const TypeDesc | type, | ||
| bool | derivatives, | ||
| void * | val ) |
Definition at line 558 of file services.cpp.
References ccl_device_inline, make_zero(), set_attribute(), and T.
| ccl_device_template_spec bool set_attribute | ( | ustring | str, |
| const TypeDesc | type, | ||
| bool | derivatives, | ||
| void * | val ) |
Definition at line 583 of file services.cpp.
References ccl_device_template_spec, and str.
|
static |
Definition at line 605 of file services.cpp.
References P.
Referenced by OSLRenderServices::get_object_standard_attribute().
Definition at line 635 of file services.cpp.
References copy_matrix().
Referenced by get_object_attribute().
|
inline |
Definition at line 413 of file services.cpp.
References v.
Referenced by set_attribute(), set_attribute(), set_attribute(), and set_attribute().
|
inline |
Definition at line 424 of file services.cpp.
References v, float3::x, float3::y, and float3::z.
Referenced by set_attribute(), set_attribute(), set_attribute(), and set_attribute().
|
inline |
Definition at line 441 of file services.cpp.
References v.
Referenced by set_attribute(), set_attribute(), set_attribute(), and set_attribute().