Blender V2.61 - r43446
Functions

svm_math.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN __device float safe_asinf (float a)
__device float safe_acosf (float a)
__device float safe_powf (float a, float b)
__device float safe_logf (float a, float b)
__device float safe_divide (float a, float b)
__device float svm_math (NodeMath type, float Fac1, float Fac2)
__device float average_fac (float3 v)
__device void svm_vector_math (float *Fac, float3 *Vector, NodeVectorMath type, float3 Vector1, float3 Vector2)
__device void svm_node_math (KernelGlobals *kg, ShaderData *sd, float *stack, uint itype, uint f1_offset, uint f2_offset, int *offset)
__device void svm_node_vector_math (KernelGlobals *kg, ShaderData *sd, float *stack, uint itype, uint v1_offset, uint v2_offset, int *offset)

Function Documentation

__device float average_fac ( float3  v)

Definition at line 117 of file svm_math.h.

References fabsf, float3::x, float3::y, and float3::z.

Referenced by svm_vector_math().

__device float safe_acosf ( float  a)

Definition at line 31 of file svm_math.h.

References acosf, and M_PI_F.

Referenced by sky_angle_between(), and svm_math().

CCL_NAMESPACE_BEGIN __device float safe_asinf ( float  a)

Definition at line 21 of file svm_math.h.

References asinf, and M_PI_2_F.

Referenced by svm_math().

__device float safe_divide ( float  a,
float  b 
)

Definition at line 61 of file svm_math.h.

Referenced by svm_math().

__device float safe_logf ( float  a,
float  b 
)

Definition at line 53 of file svm_math.h.

References logf.

Referenced by svm_math().

__device float safe_powf ( float  a,
float  b 
)

Definition at line 41 of file svm_math.h.

References powf.

Referenced by svm_math().

__device float svm_math ( NodeMath  type,
float  Fac1,
float  Fac2 
)
__device void svm_node_math ( KernelGlobals *  kg,
ShaderData sd,
float *  stack,
uint  itype,
uint  f1_offset,
uint  f2_offset,
int *  offset 
)

Definition at line 157 of file svm_math.h.

References read_node(), stack_load_float(), stack_store_float(), svm_math(), and uint4::y.

Referenced by svm_eval_nodes().

__device void svm_node_vector_math ( KernelGlobals *  kg,
ShaderData sd,
float *  stack,
uint  itype,
uint  v1_offset,
uint  v2_offset,
int *  offset 
)
__device void svm_vector_math ( float *  Fac,
float3 Vector,
NodeVectorMath  type,
float3  Vector1,
float3  Vector2 
)