Blender V5.0
services_gpu.h File Reference

Go to the source code of this file.

Classes

struct  RSDeviceString
struct  RSTypeDesc

Namespaces

namespace  DeviceStrings

Macros

#define READ_PATH_STATE(elem)

Functions

ccl_device_extern ccl_private OSLClosureosl_mul_closure_color (ccl_private ShaderGlobals *sg, ccl_private OSLClosure *a, const ccl_private float3 *weight)
ccl_device_extern ccl_private OSLClosureosl_mul_closure_float (ccl_private ShaderGlobals *sg, ccl_private OSLClosure *a, const float weight)
ccl_device_extern ccl_private OSLClosureosl_add_closure_closure (ccl_private ShaderGlobals *sg, ccl_private OSLClosure *a, ccl_private OSLClosure *b)
ccl_device_extern ccl_private OSLClosureosl_allocate_closure_component (ccl_private ShaderGlobals *sg, const int id, const int size)
ccl_device_extern ccl_private OSLClosureosl_allocate_weighted_closure_component (ccl_private ShaderGlobals *sg, const int id, const int size, const ccl_private float3 *weight)
ccl_device_extern void osl_error (ccl_private ShaderGlobals *sg, DeviceString format, void *args)
ccl_device_extern void osl_printf (ccl_private ShaderGlobals *sg, DeviceString format, void *args)
ccl_device_extern void osl_warning (ccl_private ShaderGlobals *sg, DeviceString format, void *args)
ccl_device_extern void osl_fprintf (ccl_private ShaderGlobals *sg, DeviceString filename, DeviceString format, void *args)
ccl_device_extern uint osl_range_check_err (const int indexvalue, const int length, DeviceString symname, ccl_private ShaderGlobals *sg, DeviceString sourcefile, const int sourceline, DeviceString groupname, const int layer, DeviceString layername, DeviceString shadername)
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_extern bool osl_get_matrix (ccl_private ShaderGlobals *sg, ccl_private float *res, DeviceString from)
ccl_device_extern bool osl_get_inverse_matrix (ccl_private ShaderGlobals *sg, ccl_private float *res, DeviceString to)
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)
template<typename T>
ccl_device_inline bool set_attribute (const T f, const TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_inline bool set_attribute_matrix (const ccl_private Transform &tfm, const TypeDesc type, 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_inline bool get_background_attribute (KernelGlobals kg, ccl_private ShaderGlobals *sg, ccl_private ShaderData *sd, DeviceString name, const TypeDesc type, bool derivatives, ccl_private void *val)
template<typename T>
ccl_device_inline bool 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 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 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 get_camera_attribute (ccl_private ShaderGlobals *sg, KernelGlobals kg, DeviceString name, TypeDesc type, bool derivatives, ccl_private void *val)
ccl_device_extern bool osl_get_attribute (ccl_private ShaderGlobals *sg, const int derivatives, DeviceString object_name, DeviceString name, const int array_lookup, const int index, const TypeDesc type, ccl_private void *res)
ccl_device_extern bool rend_get_userdata (RSDeviceString name, ccl_private void *data, int data_size, const RSTypeDesc &type, int index)
ccl_device_extern bool rs_texture (ccl_private ShaderGlobals *sg, RSDeviceString filename, ccl_private void *texture_handle, ccl_private void *texture_thread_info, ccl_private OSLTextureOptions *opt, const float s, const float t, const float dsdx, const float dtdx, const float dsdy, const float dtdy, const int nchannels, ccl_private float *result, ccl_private float *dresultds, ccl_private float *dresultdt, ccl_private void *errormessage)
ccl_device_extern bool rs_texture3d (ccl_private ShaderGlobals *sg, RSDeviceString filename, ccl_private void *texture_handle, ccl_private void *texture_thread_info, ccl_private OSLTextureOptions *opt, const ccl_private float3 *P, const ccl_private float3 *dPdx, const ccl_private float3 *dPdy, const ccl_private float3 *dPdz, const int nchannels, ccl_private float *result, ccl_private float *dresultds, ccl_private float *dresultdt, ccl_private float *dresultdr, ccl_private void *errormessage)
ccl_device_extern bool rs_environment (ccl_private ShaderGlobals *sg, RSDeviceString filename, ccl_private void *texture_handle, ccl_private void *texture_thread_info, ccl_private OSLTextureOptions *opt, const ccl_private float3 *R, const ccl_private float3 *dRdx, const ccl_private float3 *dRdy, const int nchannels, ccl_private float *result, ccl_private float *dresultds, ccl_private float *dresultdt, ccl_private void *errormessage)
ccl_device_extern bool rs_get_texture_info (ccl_private ShaderGlobals *sg, RSDeviceString filename, ccl_private void *texture_handle, ccl_private void *texture_thread_info, int subimage, RSDeviceString dataname, RSTypeDesc datatype, ccl_private void *data, ccl_private void *errormessage)
ccl_device_extern bool rs_get_texture_info_st (ccl_private ShaderGlobals *sg, RSDeviceString filename, ccl_private void *texture_handle, const float s, const float t, ccl_private void *texture_thread_info, int subimage, RSDeviceString dataname, RSTypeDesc datatype, ccl_private void *data, ccl_private void *errormessage)
ccl_device_extern int rs_pointcloud_search (ccl_private ShaderGlobals *sg, RSDeviceString filename, const ccl_private float3 *center, float radius, int max_points, bool sort, ccl_private int *out_indices, ccl_private float *out_distances, int derivs_offset)
ccl_device_extern int rs_pointcloud_get (ccl_private ShaderGlobals *sg, RSDeviceString filename, const ccl_private int *indices, int count, RSDeviceString attr_name, RSTypeDesc attr_type, ccl_private void *out_data)
ccl_device_extern bool rs_pointcloud_write (ccl_private ShaderGlobals *sg, RSDeviceString filename, const ccl_private float3 *pos, int nattribs, const ccl_private DeviceString *names, const ccl_private RSTypeDesc *types, const ccl_private void **data)
ccl_device_extern bool rs_trace (ccl_private ShaderGlobals *sg, ccl_private void *options, const ccl_private float3 *P, const ccl_private float3 *dPdx, const ccl_private float3 *dPdy, const ccl_private float3 *R, const ccl_private float3 *dRdx, const ccl_private float3 *dRdy)
ccl_device_extern bool rs_trace_get (ccl_private ShaderGlobals *sg, RSDeviceString name, RSTypeDesc type, ccl_private void *data, bool derivatives)
ccl_device_extern void osl_texture_set_firstchannel (ccl_private OSLTextureOptions *opt, const int firstchannel)
ccl_device_extern int osl_texture_decode_wrapmode (DeviceString name_)
ccl_device_extern void osl_texture_set_swrap_code (ccl_private OSLTextureOptions *opt, const int mode)
ccl_device_extern void osl_texture_set_twrap_code (ccl_private OSLTextureOptions *opt, const int mode)
ccl_device_extern void osl_texture_set_rwrap_code (ccl_private OSLTextureOptions *opt, const int mode)
ccl_device_extern void osl_texture_set_stwrap_code (ccl_private OSLTextureOptions *opt, const int mode)
ccl_device_extern void osl_texture_set_sblur (ccl_private OSLTextureOptions *opt, const float blur)
ccl_device_extern void osl_texture_set_tblur (ccl_private OSLTextureOptions *opt, const float blur)
ccl_device_extern void osl_texture_set_rblur (ccl_private OSLTextureOptions *opt, const float blur)
ccl_device_extern void osl_texture_set_stblur (ccl_private OSLTextureOptions *opt, const float blur)
ccl_device_extern void osl_texture_set_swidth (ccl_private OSLTextureOptions *opt, const float width)
ccl_device_extern void osl_texture_set_twidth (ccl_private OSLTextureOptions *opt, const float width)
ccl_device_extern void osl_texture_set_rwidth (ccl_private OSLTextureOptions *opt, const float width)
ccl_device_extern void osl_texture_set_stwidth (ccl_private OSLTextureOptions *opt, const float width)
ccl_device_extern void osl_texture_set_fill (ccl_private OSLTextureOptions *opt, const float fill)
ccl_device_extern void osl_texture_set_time (ccl_private OSLTextureOptions *opt, const float time)
ccl_device_extern void osl_texture_set_interp_code (ccl_private OSLTextureOptions *opt, const int mode)
ccl_device_extern void osl_texture_set_subimage (ccl_private OSLTextureOptions *opt, const int subimage)
ccl_device_extern void osl_texture_set_subimagename (ccl_private OSLTextureOptions *opt, DeviceString subimagename_)
ccl_device_extern void osl_texture_set_missingcolor_arena (ccl_private OSLTextureOptions *opt, ccl_private float3 *color)
ccl_device_extern void osl_texture_set_missingcolor_alpha (ccl_private OSLTextureOptions *opt, const int nchannels, const float alpha)
ccl_device_extern void osl_init_trace_options (ccl_private void *oec, ccl_private void *opt)
ccl_device_extern void osl_trace_set_mindist (ccl_private void *opt, float x)
ccl_device_extern void osl_trace_set_maxdist (ccl_private void *opt, float x)
ccl_device_extern void osl_trace_set_shade (ccl_private void *opt, int x)
ccl_device_extern void osl_trace_set_traceset (ccl_private void *opt, const DeviceString x)

Variables

ccl_device_constant DeviceString DeviceStrings::_emptystring_ = 0ull
ccl_device_constant DeviceString DeviceStrings::u_common = 14645198576927606093ull
ccl_device_constant DeviceString DeviceStrings::u_world = 16436542438370751598ull
ccl_device_constant DeviceString DeviceStrings::u_shader = 4279676006089868ull
ccl_device_constant DeviceString DeviceStrings::u_object = 973692718279674627ull
ccl_device_constant DeviceString DeviceStrings::u_ndc = 5148305047403260775ull
ccl_device_constant DeviceString DeviceStrings::u_screen = 14159088609039777114ull
ccl_device_constant DeviceString DeviceStrings::u_camera = 2159505832145726196ull
ccl_device_constant DeviceString DeviceStrings::u_raster = 7759263238610201778ull
ccl_device_constant DeviceString DeviceStrings::u_colorsystem = 1390623632464445670ull
ccl_device_constant DeviceString DeviceStrings::u_object_location = 7846190347358762897ull
ccl_device_constant DeviceString DeviceStrings::u_object_color = 12695623857059169556ull
ccl_device_constant DeviceString DeviceStrings::u_object_alpha = 11165053919428293151ull
ccl_device_constant DeviceString DeviceStrings::u_object_index = 6588325838217472556ull
ccl_device_constant DeviceString DeviceStrings::u_object_is_light = 13979755312845091842ull
ccl_device_constant DeviceString DeviceStrings::u_bump_map_normal = 9592102745179132106ull
ccl_device_constant DeviceString DeviceStrings::u_geom_dupli_generated = 6715607178003388908ull
ccl_device_constant DeviceString DeviceStrings::u_geom_dupli_uv = 1294253317490155849ull
ccl_device_constant DeviceString DeviceStrings::u_material_index = 741770758159634623ull
ccl_device_constant DeviceString DeviceStrings::u_object_random = 15789063994977955884ull
ccl_device_constant DeviceString DeviceStrings::u_particle_index = 9489711748229903784ull
ccl_device_constant DeviceString DeviceStrings::u_particle_random = 17993722202766855761ull
ccl_device_constant DeviceString DeviceStrings::u_particle_age = 7380730644710951109ull
ccl_device_constant DeviceString DeviceStrings::u_particle_lifetime = 16576828923156200061ull
ccl_device_constant DeviceString DeviceStrings::u_particle_location = 10309536211423573010ull
ccl_device_constant DeviceString DeviceStrings::u_particle_rotation = 17858543768041168459ull
ccl_device_constant DeviceString DeviceStrings::u_particle_size = 16461524249715420389ull
ccl_device_constant DeviceString DeviceStrings::u_particle_velocity = 13199101248768308863ull
ccl_device_constant DeviceString DeviceStrings::u_particle_angular_velocity = 16327930120486517910ull
ccl_device_constant DeviceString DeviceStrings::u_geom_numpolyvertices = 382043551489988826ull
ccl_device_constant DeviceString DeviceStrings::u_geom_trianglevertices = 17839267571524187074ull
ccl_device_constant DeviceString DeviceStrings::u_geom_polyvertices = 1345577201967881769ull
ccl_device_constant DeviceString DeviceStrings::u_geom_name = 13606338128269760050ull
ccl_device_constant DeviceString DeviceStrings::u_geom_undisplaced = 12431586303019276305ull
ccl_device_constant DeviceString DeviceStrings::u_is_smooth = 857544214094480123ull
ccl_device_constant DeviceString DeviceStrings::u_is_curve = 129742495633653138ull
ccl_device_constant DeviceString DeviceStrings::u_curve_thickness = 10605802038397633852ull
ccl_device_constant DeviceString DeviceStrings::u_curve_length = 11423459517663715453ull
ccl_device_constant DeviceString DeviceStrings::u_curve_tangent_normal = 12301397394034985633ull
ccl_device_constant DeviceString DeviceStrings::u_curve_random = 15293085049960492358ull
ccl_device_constant DeviceString DeviceStrings::u_is_point = 2511357849436175953ull
ccl_device_constant DeviceString DeviceStrings::u_point_radius = 9956381140398668479ull
ccl_device_constant DeviceString DeviceStrings::u_point_position = 15684484280742966916ull
ccl_device_constant DeviceString DeviceStrings::u_point_random = 5632627207092325544ull
ccl_device_constant DeviceString DeviceStrings::u_normal_map_normal = 10718948685686827073
ccl_device_constant DeviceString DeviceStrings::u_path_ray_length = 16391985802412544524ull
ccl_device_constant DeviceString DeviceStrings::u_path_ray_depth = 16643933224879500399ull
ccl_device_constant DeviceString DeviceStrings::u_path_diffuse_depth = 13191651286699118408ull
ccl_device_constant DeviceString DeviceStrings::u_path_glossy_depth = 15717768399057252940ull
ccl_device_constant DeviceString DeviceStrings::u_path_transparent_depth = 7821650266475578543ull
ccl_device_constant DeviceString DeviceStrings::u_path_transmission_depth = 15113408892323917624ull
ccl_device_constant DeviceString DeviceStrings::u_path_portal_depth = 13191651286699118408ull
ccl_device_constant DeviceString DeviceStrings::u_sensor_size = 7525693591727141378ull
ccl_device_constant DeviceString DeviceStrings::u_image_resolution = 5199143367706113607ull
ccl_device_constant DeviceString DeviceStrings::u_aperture_aspect_ratio = 8708221138893210943ull
ccl_device_constant DeviceString DeviceStrings::u_aperture_size = 3708482920470008383ull
ccl_device_constant DeviceString DeviceStrings::u_aperture_position = 12926784411960338650ull
ccl_device_constant DeviceString DeviceStrings::u_focal_distance = 7162995161881858159ull

Macro Definition Documentation

◆ READ_PATH_STATE

#define READ_PATH_STATE ( elem)
Value:
((state != -1) ? INTEGRATOR_STATE(state, path, elem) : \
(shadow_state != -1) ? INTEGRATOR_STATE(shadow_state, shadow_path, elem) : \
0)
static ulong state[N]
#define INTEGRATOR_STATE(state, nested_struct, member)
Definition state.h:235

Referenced by get_background_attribute().

Function Documentation

◆ copy_matrix() [1/2]

◆ copy_matrix() [2/2]

◆ get_background_attribute()

◆ get_camera_attribute()

◆ get_object_attribute()

◆ get_object_attribute_impl()

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

◆ get_object_standard_attribute()

ccl_device_inline bool 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 )

Definition at line 725 of file services_gpu.h.

References ATTR_STD_NORMAL_UNDISPLACED, ATTR_STD_NOT_FOUND, attribute_bump_map_normal(), ccl_device_inline, ccl_private, find_attribute(), get_background_attribute(), get_object_attribute(), hash_uint2_to_float(), name, object_alpha(), object_color(), object_dupli_generated(), object_dupli_uv(), object_location(), object_particle_id(), object_pass_id(), object_random_number(), AttributeDescriptor::offset, particle_age(), particle_angular_velocity(), particle_index(), particle_lifetime(), particle_location(), particle_rotation(), particle_size(), particle_velocity(), PRIMITIVE_CURVE, PRIMITIVE_LAMP, PRIMITIVE_POINT, PRIMITIVE_TRIANGLE, set_attribute(), shader_pass_id(), SHADER_SMOOTH_NORMAL, triangle_smooth_normal_unnormalized(), DeviceStrings::u_bump_map_normal, DeviceStrings::u_curve_random, DeviceStrings::u_curve_tangent_normal, DeviceStrings::u_curve_thickness, DeviceStrings::u_geom_dupli_generated, DeviceStrings::u_geom_dupli_uv, DeviceStrings::u_geom_name, DeviceStrings::u_geom_numpolyvertices, DeviceStrings::u_geom_polyvertices, DeviceStrings::u_geom_trianglevertices, DeviceStrings::u_is_curve, DeviceStrings::u_is_point, DeviceStrings::u_is_smooth, DeviceStrings::u_material_index, DeviceStrings::u_normal_map_normal, DeviceStrings::u_object_alpha, DeviceStrings::u_object_color, DeviceStrings::u_object_index, DeviceStrings::u_object_is_light, DeviceStrings::u_object_location, DeviceStrings::u_object_random, DeviceStrings::u_particle_age, DeviceStrings::u_particle_angular_velocity, DeviceStrings::u_particle_index, DeviceStrings::u_particle_lifetime, DeviceStrings::u_particle_location, DeviceStrings::u_particle_random, DeviceStrings::u_particle_rotation, DeviceStrings::u_particle_size, DeviceStrings::u_particle_velocity, DeviceStrings::u_point_position, DeviceStrings::u_point_radius, and DeviceStrings::u_point_random.

Referenced by osl_get_attribute().

◆ osl_add_closure_closure()

◆ osl_allocate_closure_component()

ccl_device_extern ccl_private OSLClosure * osl_allocate_closure_component ( ccl_private ShaderGlobals * sg,
const int id,
const int size )

Definition at line 232 of file services_gpu.h.

References ccl_device_extern, ccl_private, one_float3(), and size().

◆ osl_allocate_weighted_closure_component()

ccl_device_extern ccl_private OSLClosure * osl_allocate_weighted_closure_component ( ccl_private ShaderGlobals * sg,
const int id,
const int size,
const ccl_private float3 * weight )

Definition at line 250 of file services_gpu.h.

References ccl_device_extern, ccl_private, and size().

◆ osl_error()

ccl_device_extern void osl_error ( ccl_private ShaderGlobals * sg,
DeviceString format,
void * args )

Definition at line 270 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_fprintf()

ccl_device_extern void osl_fprintf ( ccl_private ShaderGlobals * sg,
DeviceString filename,
DeviceString format,
void * args )

Definition at line 280 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_get_attribute()

ccl_device_extern bool osl_get_attribute ( ccl_private ShaderGlobals * sg,
const int derivatives,
DeviceString object_name,
DeviceString name,
const int array_lookup,
const int index,
const TypeDesc type,
ccl_private void * res )

◆ osl_get_inverse_matrix()

◆ osl_get_matrix()

◆ osl_init_trace_options()

ccl_device_extern void osl_init_trace_options ( ccl_private void * oec,
ccl_private void * opt )

Definition at line 1318 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_mul_closure_color()

◆ osl_mul_closure_float()

ccl_device_extern ccl_private OSLClosure * osl_mul_closure_float ( ccl_private ShaderGlobals * sg,
ccl_private OSLClosure * a,
const float weight )

Definition at line 178 of file services_gpu.h.

References ccl_device_extern, ccl_private, make_float3(), and OSL_CLOSURE_MUL_ID.

◆ osl_printf()

ccl_device_extern void osl_printf ( ccl_private ShaderGlobals * sg,
DeviceString format,
void * args )

Definition at line 272 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_range_check_err()

ccl_device_extern uint osl_range_check_err ( const int indexvalue,
const int length,
DeviceString symname,
ccl_private ShaderGlobals * sg,
DeviceString sourcefile,
const int sourceline,
DeviceString groupname,
const int layer,
DeviceString layername,
DeviceString shadername )

Definition at line 287 of file services_gpu.h.

References ccl_device_extern, ccl_private, length(), printf, and result.

◆ osl_texture_decode_wrapmode()

ccl_device_extern int osl_texture_decode_wrapmode ( DeviceString name_)

Definition at line 1223 of file services_gpu.h.

References ccl_device_extern.

◆ osl_texture_set_fill()

ccl_device_extern void osl_texture_set_fill ( ccl_private OSLTextureOptions * opt,
const float fill )

Definition at line 1284 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_firstchannel()

ccl_device_extern void osl_texture_set_firstchannel ( ccl_private OSLTextureOptions * opt,
const int firstchannel )

Definition at line 1218 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_interp_code()

ccl_device_extern void osl_texture_set_interp_code ( ccl_private OSLTextureOptions * opt,
const int mode )

Definition at line 1292 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_missingcolor_alpha()

ccl_device_extern void osl_texture_set_missingcolor_alpha ( ccl_private OSLTextureOptions * opt,
const int nchannels,
const float alpha )

Definition at line 1312 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_missingcolor_arena()

ccl_device_extern void osl_texture_set_missingcolor_arena ( ccl_private OSLTextureOptions * opt,
ccl_private float3 * color )

Definition at line 1307 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_rblur()

ccl_device_extern void osl_texture_set_rblur ( ccl_private OSLTextureOptions * opt,
const float blur )

Definition at line 1256 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_rwidth()

ccl_device_extern void osl_texture_set_rwidth ( ccl_private OSLTextureOptions * opt,
const float width )

Definition at line 1274 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_rwrap_code()

ccl_device_extern void osl_texture_set_rwrap_code ( ccl_private OSLTextureOptions * opt,
const int mode )

Definition at line 1238 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_sblur()

ccl_device_extern void osl_texture_set_sblur ( ccl_private OSLTextureOptions * opt,
const float blur )

Definition at line 1248 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_stblur()

ccl_device_extern void osl_texture_set_stblur ( ccl_private OSLTextureOptions * opt,
const float blur )

Definition at line 1260 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_stwidth()

ccl_device_extern void osl_texture_set_stwidth ( ccl_private OSLTextureOptions * opt,
const float width )

Definition at line 1279 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_stwrap_code()

ccl_device_extern void osl_texture_set_stwrap_code ( ccl_private OSLTextureOptions * opt,
const int mode )

Definition at line 1243 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_subimage()

ccl_device_extern void osl_texture_set_subimage ( ccl_private OSLTextureOptions * opt,
const int subimage )

Definition at line 1297 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_subimagename()

ccl_device_extern void osl_texture_set_subimagename ( ccl_private OSLTextureOptions * opt,
DeviceString subimagename_ )

Definition at line 1302 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_swidth()

ccl_device_extern void osl_texture_set_swidth ( ccl_private OSLTextureOptions * opt,
const float width )

Definition at line 1264 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_swrap_code()

ccl_device_extern void osl_texture_set_swrap_code ( ccl_private OSLTextureOptions * opt,
const int mode )

Definition at line 1228 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_tblur()

ccl_device_extern void osl_texture_set_tblur ( ccl_private OSLTextureOptions * opt,
const float blur )

Definition at line 1252 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_time()

ccl_device_extern void osl_texture_set_time ( ccl_private OSLTextureOptions * opt,
const float time )

Definition at line 1288 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_twidth()

ccl_device_extern void osl_texture_set_twidth ( ccl_private OSLTextureOptions * opt,
const float width )

Definition at line 1269 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_texture_set_twrap_code()

ccl_device_extern void osl_texture_set_twrap_code ( ccl_private OSLTextureOptions * opt,
const int mode )

Definition at line 1233 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ osl_trace_set_maxdist()

ccl_device_extern void osl_trace_set_maxdist ( ccl_private void * opt,
float x )

Definition at line 1322 of file services_gpu.h.

References ccl_device_extern, ccl_private, and x.

◆ osl_trace_set_mindist()

ccl_device_extern void osl_trace_set_mindist ( ccl_private void * opt,
float x )

Definition at line 1320 of file services_gpu.h.

References ccl_device_extern, ccl_private, and x.

◆ osl_trace_set_shade()

ccl_device_extern void osl_trace_set_shade ( ccl_private void * opt,
int x )

Definition at line 1324 of file services_gpu.h.

References ccl_device_extern, ccl_private, and x.

◆ osl_trace_set_traceset()

ccl_device_extern void osl_trace_set_traceset ( ccl_private void * opt,
const DeviceString x )

Definition at line 1326 of file services_gpu.h.

References ccl_device_extern, ccl_private, and x.

◆ osl_warning()

ccl_device_extern void osl_warning ( ccl_private ShaderGlobals * sg,
DeviceString format,
void * args )

Definition at line 276 of file services_gpu.h.

References ccl_device_extern, and ccl_private.

◆ rend_get_userdata()

ccl_device_extern bool rend_get_userdata ( RSDeviceString name,
ccl_private void * data,
int data_size,
const RSTypeDesc & type,
int index )

◆ rs_environment()

ccl_device_extern bool rs_environment ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
ccl_private void * texture_handle,
ccl_private void * texture_thread_info,
ccl_private OSLTextureOptions * opt,
const ccl_private float3 * R,
const ccl_private float3 * dRdx,
const ccl_private float3 * dRdy,
const int nchannels,
ccl_private float * result,
ccl_private float * dresultds,
ccl_private float * dresultdt,
ccl_private void * errormessage )

Definition at line 1097 of file services_gpu.h.

References ccl_device_extern, ccl_private, R, and result.

◆ rs_get_texture_info()

ccl_device_extern bool rs_get_texture_info ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
ccl_private void * texture_handle,
ccl_private void * texture_thread_info,
int subimage,
RSDeviceString dataname,
RSTypeDesc datatype,
ccl_private void * data,
ccl_private void * errormessage )

Definition at line 1127 of file services_gpu.h.

References ccl_device_extern, ccl_private, and data.

◆ rs_get_texture_info_st()

ccl_device_extern bool rs_get_texture_info_st ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
ccl_private void * texture_handle,
const float s,
const float t,
ccl_private void * texture_thread_info,
int subimage,
RSDeviceString dataname,
RSTypeDesc datatype,
ccl_private void * data,
ccl_private void * errormessage )

Definition at line 1140 of file services_gpu.h.

References ccl_device_extern, ccl_private, and data.

◆ rs_pointcloud_get()

ccl_device_extern int rs_pointcloud_get ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
const ccl_private int * indices,
int count,
RSDeviceString attr_name,
RSTypeDesc attr_type,
ccl_private void * out_data )

Definition at line 1168 of file services_gpu.h.

References ccl_device_extern, ccl_private, count, and indices.

◆ rs_pointcloud_search()

ccl_device_extern int rs_pointcloud_search ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
const ccl_private float3 * center,
float radius,
int max_points,
bool sort,
ccl_private int * out_indices,
ccl_private float * out_distances,
int derivs_offset )

Definition at line 1155 of file services_gpu.h.

References ccl_device_extern, ccl_private, and sort().

◆ rs_pointcloud_write()

ccl_device_extern bool rs_pointcloud_write ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
const ccl_private float3 * pos,
int nattribs,
const ccl_private DeviceString * names,
const ccl_private RSTypeDesc * types,
const ccl_private void ** data )

Definition at line 1179 of file services_gpu.h.

References ccl_device_extern, ccl_private, data, pos, and types.

◆ rs_texture()

ccl_device_extern bool rs_texture ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
ccl_private void * texture_handle,
ccl_private void * texture_thread_info,
ccl_private OSLTextureOptions * opt,
const float s,
const float t,
const float dsdx,
const float dtdx,
const float dsdy,
const float dtdy,
const int nchannels,
ccl_private float * result,
ccl_private float * dresultds,
ccl_private float * dresultdt,
ccl_private void * errormessage )

◆ rs_texture3d()

ccl_device_extern bool rs_texture3d ( ccl_private ShaderGlobals * sg,
RSDeviceString filename,
ccl_private void * texture_handle,
ccl_private void * texture_thread_info,
ccl_private OSLTextureOptions * opt,
const ccl_private float3 * P,
const ccl_private float3 * dPdx,
const ccl_private float3 * dPdy,
const ccl_private float3 * dPdz,
const int nchannels,
ccl_private float * result,
ccl_private float * dresultds,
ccl_private float * dresultdt,
ccl_private float * dresultdr,
ccl_private void * errormessage )

◆ rs_trace()

ccl_device_extern bool rs_trace ( ccl_private ShaderGlobals * sg,
ccl_private void * options,
const ccl_private float3 * P,
const ccl_private float3 * dPdx,
const ccl_private float3 * dPdy,
const ccl_private float3 * R,
const ccl_private float3 * dRdx,
const ccl_private float3 * dRdy )

Definition at line 1190 of file services_gpu.h.

References ccl_device_extern, ccl_private, dPdx(), dPdy(), options, P, and R.

◆ rs_trace_get()

ccl_device_extern bool rs_trace_get ( ccl_private ShaderGlobals * sg,
RSDeviceString name,
RSTypeDesc type,
ccl_private void * data,
bool derivatives )

Definition at line 1202 of file services_gpu.h.

References ccl_device_extern, ccl_private, data, and name.

◆ set_attribute() [1/6]

◆ set_attribute() [2/6]

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

◆ set_attribute() [3/6]

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

◆ set_attribute() [4/6]

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

◆ set_attribute() [5/6]

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

Definition at line 564 of file services_gpu.h.

References ccl_device_template_spec, ccl_private, and i.

◆ set_attribute() [6/6]

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

Definition at line 541 of file services_gpu.h.

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

◆ set_attribute_matrix()

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

Definition at line 549 of file services_gpu.h.

References ccl_device_inline, ccl_private, and copy_matrix().

Referenced by get_object_attribute().