Blender V5.3
services_shared.h File Reference

Go to the source code of this file.

Macros

#define READ_PATH_STATE(elem)

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline bool is_type_float2 (const TypeDesc t)
ccl_device_inline bool is_type_float3 (const TypeDesc t)
ccl_device_inline bool is_type_float4 (const TypeDesc t)
ccl_device_inline bool is_type_int2 (const TypeDesc t)
ccl_device_inline bool is_type_int3 (const TypeDesc t)
template<typename T>
ccl_device_inline bool set_attribute (const dual< T > v, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_inline void set_data_float (const dual1 data, bool derivatives, ccl_private void *val)
ccl_device_inline void set_data_float3 (const dual3 data, bool derivatives, ccl_private void *val)
ccl_device_inline void set_data_float4 (const dual4 data, bool derivatives, ccl_private void *val)
ccl_device_inline void set_data_quaternion (const dual< Quaternion > data, bool derivatives, ccl_private void *val)
ccl_device_forceinline void copy_matrix (ccl_private float *res, const Transform &tfm)
ccl_device_forceinline void copy_matrix (ccl_private float *res, const ProjectionTransform &tfm)
ccl_device_inline bool osl_shared_get_object_matrix (KernelGlobals kg, ccl_private const ShaderData *sd, ccl_private float *res)
ccl_device_inline bool osl_shared_get_object_matrix_motion (KernelGlobals kg, ccl_private const ShaderData *sd, ccl_private float *res, float time)
ccl_device_inline bool osl_shared_get_object_inverse_matrix (KernelGlobals kg, ccl_private const ShaderData *sd, ccl_private float *res)
ccl_device_inline bool osl_shared_get_object_inverse_matrix_motion (KernelGlobals kg, ccl_private const ShaderData *sd, ccl_private float *res, float time)
ccl_device_inline bool osl_shared_get_named_matrix (KernelGlobals kg, DeviceString from, ccl_private float *res)
ccl_device_inline bool osl_shared_get_named_inverse_matrix (KernelGlobals kg, DeviceString to, ccl_private float *res)
ccl_device_template_spec bool set_attribute (const dual1 v, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_template_spec bool set_attribute (const dual2 v, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_template_spec bool set_attribute (const dual3 v, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_template_spec bool set_attribute (const dual4 v, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_template_spec bool set_attribute (const dual< Quaternion > v, const TypeDesc type, bool derivatives, ccl_private void *val)
template<typename T>
ccl_device_inline bool set_attribute (const T f, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_template_spec bool set_attribute (const int i, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_template_spec bool set_attribute (ustring str, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_inline bool set_attribute_matrix (const Transform &tfm, const TypeDesc type, ccl_private void *val)
ccl_device_inline bool set_attribute_float3_3 (const float3 P[3], TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device bool attribute_bump_map_normal (KernelGlobals kg, ccl_private const ShaderData *sd, ccl_private dual3 &f)
ccl_device_forceinline void rgba_to_nchannels (const float4 rgba, const int nchannels, ccl_private float *result)
ccl_device_forceinline float4 get_missingcolor (const float *missingcolor, const int nchannels)
ccl_device_forceinline void missingcolor_to_nchannels (const float *missingcolor, const int nchannels, ccl_private float *result)
ccl_device bool osl_shared_get_texture_info (KernelGlobals kg, ccl_private void *texture_handle, const float2 uv, const bool use_uv, DeviceString dataname, const TypeDesc datatype, void *data)
ccl_device bool osl_shared_texture (KernelGlobals kg, ccl_private ShaderGlobals *sg, ccl_private void *texture_handle, ccl_private OSLTextureOptions *opt, float s, float t, float dsdx, float dtdx, float dsdy, float dtdy, int nchannels, float *result)
ccl_device bool osl_shared_texture3d (KernelGlobals kg, ccl_private ShaderGlobals *sg, ccl_private void *texture_handle, float3 P, float3, float3, float3, int nchannels, float *result)
ccl_device bool osl_shared_environment (KernelGlobals kg, ccl_private ShaderGlobals *sg, ccl_private void *texture_handle, ccl_private OSLTextureOptions *opt, float3 R, float3 dRdx, float3 dRdy, int nchannels, float *result)
ccl_device_inline bool osl_shared_get_scene_attribute (KernelGlobals kg, DeviceString name, const TypeDesc type, bool derivatives, ccl_private void *val)
template<typename T>
ccl_device_inline bool osl_shared_get_object_attribute_impl (KernelGlobals kg, ccl_private ShaderData *sd, const AttributeDescriptor &desc, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_inline bool osl_shared_get_object_attribute (KernelGlobals kg, ccl_private ShaderData *sd, const AttributeDescriptor &desc, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_inline bool osl_shared_get_background_attribute (KernelGlobals kg, ccl_private ShaderGlobals *sg, ccl_private ShaderData *sd, DeviceString name, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_inline bool osl_shared_get_object_standard_attribute (KernelGlobals kg, ccl_private ShaderGlobals *sg, ccl_private ShaderData *sd, DeviceString name, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_inline bool osl_shared_get_camera_attribute (KernelGlobals kg, ccl_private ShaderGlobals *sg, DeviceString name, const TypeDesc type, bool derivatives, ccl_private void *val)

Macro Definition Documentation

◆ READ_PATH_STATE

#define READ_PATH_STATE ( elem)
Value:
((state != nullptr) ? state->path.elem : \
(shadow_state != nullptr) ? shadow_state->shadow_path.elem : \
0)
const int state

Referenced by osl_shared_get_background_attribute().

Function Documentation

◆ attribute_bump_map_normal()

◆ copy_matrix() [1/2]

◆ copy_matrix() [2/2]

◆ get_missingcolor()

ccl_device_forceinline float4 get_missingcolor ( const float * missingcolor,
const int nchannels )

◆ is_type_float2()

CCL_NAMESPACE_BEGIN ccl_device_inline bool is_type_float2 ( const TypeDesc t)

Definition at line 111 of file services_shared.h.

References ccl_device_inline, and is_type_float2().

Referenced by is_type_float2(), and osl_shared_get_texture_info().

◆ is_type_float3()

◆ is_type_float4()

◆ is_type_int2()

ccl_device_inline bool is_type_int2 ( const TypeDesc t)

Definition at line 129 of file services_shared.h.

References ccl_device_inline, and is_type_int2().

Referenced by is_type_int2(), and osl_shared_get_texture_info().

◆ is_type_int3()

ccl_device_inline bool is_type_int3 ( const TypeDesc t)

Definition at line 135 of file services_shared.h.

References ccl_device_inline, and is_type_int3().

Referenced by is_type_int3(), and osl_shared_get_texture_info().

◆ missingcolor_to_nchannels()

ccl_device_forceinline void missingcolor_to_nchannels ( const float * missingcolor,
const int nchannels,
ccl_private float * result )

◆ osl_shared_environment()

◆ osl_shared_get_background_attribute()

◆ osl_shared_get_camera_attribute()

◆ osl_shared_get_named_inverse_matrix()

◆ osl_shared_get_named_matrix()

◆ osl_shared_get_object_attribute()

◆ osl_shared_get_object_attribute_impl()

template<typename T>
ccl_device_inline bool osl_shared_get_object_attribute_impl ( KernelGlobals kg,
ccl_private ShaderData * sd,
const AttributeDescriptor & desc,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

◆ osl_shared_get_object_inverse_matrix()

◆ osl_shared_get_object_inverse_matrix_motion()

◆ osl_shared_get_object_matrix()

◆ osl_shared_get_object_matrix_motion()

◆ osl_shared_get_object_standard_attribute()

◆ osl_shared_get_scene_attribute()

ccl_device_inline bool osl_shared_get_scene_attribute ( KernelGlobals kg,
DeviceString name,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

◆ osl_shared_get_texture_info()

◆ osl_shared_texture()

◆ osl_shared_texture3d()

◆ rgba_to_nchannels()

ccl_device_forceinline void rgba_to_nchannels ( const float4 rgba,
const int nchannels,
ccl_private float * result )

◆ set_attribute() [1/9]

ccl_device_template_spec bool set_attribute ( const dual1 v,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

◆ set_attribute() [2/9]

ccl_device_template_spec bool set_attribute ( const dual2 v,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

◆ set_attribute() [3/9]

ccl_device_template_spec bool set_attribute ( const dual3 v,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

◆ set_attribute() [4/9]

ccl_device_template_spec bool set_attribute ( const dual4 v,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

◆ set_attribute() [5/9]

ccl_device_template_spec bool set_attribute ( const dual< Quaternion > v,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

◆ set_attribute() [6/9]

◆ set_attribute() [7/9]

ccl_device_template_spec bool set_attribute ( const int i,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

Definition at line 475 of file services_shared.h.

References ccl_device_template_spec, ccl_private, and set_attribute().

◆ set_attribute() [8/9]

template<typename T>
ccl_device_inline bool set_attribute ( const T f,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

Definition at line 467 of file services_shared.h.

References ccl_device_inline, ccl_private, set_attribute(), and T.

◆ set_attribute() [9/9]

ccl_device_template_spec bool set_attribute ( ustring str,
const TypeDesc type,
bool derivatives,
ccl_private void * val )

Definition at line 496 of file services_shared.h.

References ccl_device_template_spec, ccl_private, set_attribute(), and str.

◆ set_attribute_float3_3()

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

◆ set_attribute_matrix()

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

◆ set_data_float()

ccl_device_inline void set_data_float ( const dual1 data,
bool derivatives,
ccl_private void * val )

◆ set_data_float3()

ccl_device_inline void set_data_float3 ( const dual3 data,
bool derivatives,
ccl_private void * val )

◆ set_data_float4()

ccl_device_inline void set_data_float4 ( const dual4 data,
bool derivatives,
ccl_private void * val )

◆ set_data_quaternion()

ccl_device_inline void set_data_quaternion ( const dual< Quaternion > data,
bool derivatives,
ccl_private void * val )