Blender V4.3
services.cpp File Reference

Go to the source code of this file.

Functions

static CCL_NAMESPACE_BEGIN void copy_matrix (OSL::Matrix44 &m, const Transform &tfm)
 
static void copy_matrix (OSL::Matrix44 &m, const ProjectionTransform &tfm)
 
static bool set_attribute_float2 (float2 f[3], TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_float3 (float3 f[3], TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_float3 (float3 f, TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_float4 (float4 f[3], TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_float (float f[3], TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_float (float f, TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_int (int i, TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_string (ustring str, TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_float3_3 (float3 P[3], TypeDesc type, bool derivatives, void *val)
 
static bool set_attribute_matrix (const Transform &tfm, TypeDesc type, void *val)
 
static bool get_object_attribute (const KernelGlobalsCPU *kg, ShaderData *sd, const AttributeDescriptor &desc, const TypeDesc &type, bool derivatives, void *val)
 

Function Documentation

◆ copy_matrix() [1/2]

static void copy_matrix ( OSL::Matrix44 & m,
const ProjectionTransform & tfm )
static

Definition at line 60 of file services.cpp.

References projection_transpose().

◆ copy_matrix() [2/2]

◆ get_object_attribute()

◆ set_attribute_float() [1/2]

static bool set_attribute_float ( float f,
TypeDesc type,
bool derivatives,
void * val )
static

Definition at line 685 of file services.cpp.

References set_attribute_float().

◆ set_attribute_float() [2/2]

static bool set_attribute_float ( float f[3],
TypeDesc type,
bool derivatives,
void * val )
static

◆ set_attribute_float2()

static bool set_attribute_float2 ( float2 f[3],
TypeDesc type,
bool derivatives,
void * val )
static

Definition at line 415 of file services.cpp.

References average(), TypeFloatArray4(), float2::x, and float2::y.

Referenced by get_object_attribute().

◆ set_attribute_float3() [1/2]

static bool set_attribute_float3 ( float3 f,
TypeDesc type,
bool derivatives,
void * val )
static

Definition at line 544 of file services.cpp.

References make_float3(), and set_attribute_float3().

◆ set_attribute_float3() [2/2]

static bool set_attribute_float3 ( float3 f[3],
TypeDesc type,
bool derivatives,
void * val )
static

◆ set_attribute_float3_3()

static bool set_attribute_float3_3 ( float3 P[3],
TypeDesc type,
bool derivatives,
void * val )
static

Definition at line 732 of file services.cpp.

References P.

Referenced by OSLRenderServices::get_object_standard_attribute().

◆ set_attribute_float4()

static bool set_attribute_float4 ( float4 f[3],
TypeDesc type,
bool derivatives,
void * val )
static

◆ set_attribute_int()

static bool set_attribute_int ( int i,
TypeDesc type,
bool derivatives,
void * val )
static

◆ set_attribute_matrix()

static bool set_attribute_matrix ( const Transform & tfm,
TypeDesc type,
void * val )
static

Definition at line 762 of file services.cpp.

References copy_matrix().

Referenced by get_object_attribute().

◆ set_attribute_string()

static bool set_attribute_string ( ustring str,
TypeDesc type,
bool derivatives,
void * val )
static

Definition at line 713 of file services.cpp.

References str, and OSLRenderServices::u_empty.

Referenced by OSLRenderServices::get_object_standard_attribute().