Blender V5.3
services_gpu.h File Reference

Go to the source code of this file.

Classes

struct  RSDeviceString

Typedefs

using RSTypeDesc = long long

Functions

CCL_NAMESPACE_BEGIN ccl_device_extern ccl_private void * rs_allocate_closure (ccl_private ShaderGlobals *sg, const size_t size, const size_t alignment)
ccl_device_extern ccl_private OSLClosure * osl_mul_closure_color (ccl_private ShaderGlobals *sg, ccl_private OSLClosure *a, const ccl_private float3 *weight)
ccl_device_extern ccl_private OSLClosure * osl_mul_closure_float (ccl_private ShaderGlobals *sg, ccl_private OSLClosure *a, const float weight)
ccl_device_extern ccl_private OSLClosure * osl_add_closure_closure (ccl_private ShaderGlobals *sg, ccl_private OSLClosure *a, ccl_private OSLClosure *b)
ccl_device_extern ccl_private OSLClosure * osl_allocate_closure_component (ccl_private ShaderGlobals *sg, const int id, const int size)
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)
ccl_device_extern void osl_error (ccl_private ShaderGlobals *, DeviceString, void *)
ccl_device_extern void osl_printf (ccl_private ShaderGlobals *, DeviceString, void *)
ccl_device_extern void osl_warning (ccl_private ShaderGlobals *, DeviceString, void *)
ccl_device_extern void osl_fprintf (ccl_private ShaderGlobals *, DeviceString, DeviceString, void *)
ccl_device_extern uint osl_range_check_err (const int indexvalue, const int length, DeviceString, ccl_private ShaderGlobals *, DeviceString, const int, DeviceString, const int, DeviceString, DeviceString)
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_extern bool osl_get_attribute (ccl_private ShaderGlobals *sg, const int derivatives, DeviceString object_name, DeviceString name, const int, const int, const RSTypeDesc type_abi, ccl_private void *res)
ccl_device_extern bool rend_get_userdata (RSDeviceString name, ccl_private void *data, int data_size, const TypeDesc &type, int)
ccl_device_extern bool rs_texture (ccl_private ShaderGlobals *sg, RSDeviceString, ccl_private void *texture_handle, ccl_private void *, 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 *, ccl_private float *, ccl_private void *)
ccl_device_extern bool rs_texture3d (ccl_private ShaderGlobals *sg, RSDeviceString, ccl_private void *texture_handle, ccl_private void *, ccl_private OSLTextureOptions *, 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 *, ccl_private float *, ccl_private float *, ccl_private void *)
ccl_device_extern bool rs_environment (ccl_private ShaderGlobals *sg, RSDeviceString, ccl_private void *texture_handle, ccl_private void *, 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 *, ccl_private float *, ccl_private void *)
ccl_device_extern bool rs_get_texture_info (ccl_private ShaderGlobals *, RSDeviceString, ccl_private void *texture_handle, ccl_private void *, int, RSDeviceString dataname, TypeDesc datatype, ccl_private void *data, ccl_private void *)
ccl_device_extern bool rs_get_texture_info_st (ccl_private ShaderGlobals *, RSDeviceString, ccl_private void *texture_handle, const float s, const float t, ccl_private void *, int, RSDeviceString dataname, TypeDesc datatype, ccl_private void *data, ccl_private void *)
ccl_device_extern int rs_pointcloud_search (ccl_private ShaderGlobals *, RSDeviceString, const ccl_private float3 *, float, int, bool, ccl_private int *, ccl_private float *, int)
ccl_device_extern int rs_pointcloud_get (ccl_private ShaderGlobals *, RSDeviceString, const ccl_private int *, int, RSDeviceString, TypeDesc, ccl_private void *)
ccl_device_extern bool rs_pointcloud_write (ccl_private ShaderGlobals *, RSDeviceString, const ccl_private float3 *, int, const ccl_private DeviceString *, const ccl_private TypeDesc *, const ccl_private void **)
ccl_device_extern bool rs_trace (ccl_private ShaderGlobals *, ccl_private void *, const ccl_private float3 *, const ccl_private float3 *, const ccl_private float3 *, const ccl_private float3 *, const ccl_private float3 *, const ccl_private float3 *)
ccl_device_extern bool rs_trace_get (ccl_private ShaderGlobals *, RSDeviceString, TypeDesc, ccl_private void *, bool)
ccl_device_extern void osl_texture_set_firstchannel (ccl_private OSLTextureOptions *, const int)
ccl_device_extern int osl_texture_decode_wrapmode (DeviceString)
ccl_device_extern void osl_texture_set_swrap_code (ccl_private OSLTextureOptions *, const int)
ccl_device_extern void osl_texture_set_twrap_code (ccl_private OSLTextureOptions *, const int)
ccl_device_extern void osl_texture_set_rwrap_code (ccl_private OSLTextureOptions *, const int)
ccl_device_extern void osl_texture_set_stwrap_code (ccl_private OSLTextureOptions *, const int)
ccl_device_extern void osl_texture_set_sblur (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_tblur (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_rblur (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_stblur (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_swidth (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_twidth (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_rwidth (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_stwidth (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_fill (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_time (ccl_private OSLTextureOptions *, const float)
ccl_device_extern void osl_texture_set_interp_code (ccl_private OSLTextureOptions *, const int)
ccl_device_extern void osl_texture_set_subimage (ccl_private OSLTextureOptions *, const int)
ccl_device_extern void osl_texture_set_subimagename (ccl_private OSLTextureOptions *, DeviceString)
ccl_device_extern void osl_texture_set_missingcolor_arena (ccl_private OSLTextureOptions *opt, ccl_private float *missing)
ccl_device_extern void osl_texture_set_missingcolor_alpha (ccl_private OSLTextureOptions *opt, const int alphaindex, const float missingalpha)
ccl_device_extern void osl_init_trace_options (ccl_private void *, ccl_private void *)
ccl_device_extern void osl_trace_set_mindist (ccl_private void *, float)
ccl_device_extern void osl_trace_set_maxdist (ccl_private void *, float)
ccl_device_extern void osl_trace_set_shade (ccl_private void *, int)
ccl_device_extern void osl_trace_set_traceset (ccl_private void *, const DeviceString)

Typedef Documentation

◆ RSTypeDesc

using RSTypeDesc = long long

Definition at line 217 of file services_gpu.h.

Function Documentation

◆ 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 )

◆ 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 )

◆ osl_error()

ccl_device_extern void osl_error ( ccl_private ShaderGlobals * ,
DeviceString ,
void *  )

Definition at line 137 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_error().

Referenced by osl_error().

◆ osl_fprintf()

ccl_device_extern void osl_fprintf ( ccl_private ShaderGlobals * ,
DeviceString ,
DeviceString ,
void *  )

Definition at line 155 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_fprintf().

Referenced by osl_fprintf().

◆ osl_get_attribute()

◆ osl_get_inverse_matrix()

◆ osl_get_matrix()

◆ osl_init_trace_options()

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

Definition at line 547 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_init_trace_options().

Referenced by osl_init_trace_options().

◆ osl_mul_closure_color()

◆ osl_mul_closure_float()

◆ osl_printf()

ccl_device_extern void osl_printf ( ccl_private ShaderGlobals * ,
DeviceString ,
void *  )

Definition at line 143 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_printf().

Referenced by osl_printf().

◆ osl_range_check_err()

ccl_device_extern uint osl_range_check_err ( const int indexvalue,
const int length,
DeviceString ,
ccl_private ShaderGlobals * ,
DeviceString ,
const int ,
DeviceString ,
const int ,
DeviceString ,
DeviceString  )

Definition at line 162 of file services_gpu.h.

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

Referenced by osl_range_check_err().

◆ osl_texture_decode_wrapmode()

ccl_device_extern int osl_texture_decode_wrapmode ( DeviceString )

Definition at line 441 of file services_gpu.h.

References ccl_device_extern, and osl_texture_decode_wrapmode().

Referenced by osl_texture_decode_wrapmode().

◆ osl_texture_set_fill()

ccl_device_extern void osl_texture_set_fill ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 506 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_fill().

Referenced by osl_texture_set_fill().

◆ osl_texture_set_firstchannel()

ccl_device_extern void osl_texture_set_firstchannel ( ccl_private OSLTextureOptions * ,
const int  )

◆ osl_texture_set_interp_code()

ccl_device_extern void osl_texture_set_interp_code ( ccl_private OSLTextureOptions * ,
const int  )

◆ osl_texture_set_missingcolor_alpha()

ccl_device_extern void osl_texture_set_missingcolor_alpha ( ccl_private OSLTextureOptions * opt,
const int alphaindex,
const float missingalpha )

◆ osl_texture_set_missingcolor_arena()

ccl_device_extern void osl_texture_set_missingcolor_arena ( ccl_private OSLTextureOptions * opt,
ccl_private float * missing )

◆ osl_texture_set_rblur()

ccl_device_extern void osl_texture_set_rblur ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 476 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_rblur().

Referenced by osl_texture_set_rblur().

◆ osl_texture_set_rwidth()

ccl_device_extern void osl_texture_set_rwidth ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 496 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_rwidth().

Referenced by osl_texture_set_rwidth().

◆ osl_texture_set_rwrap_code()

ccl_device_extern void osl_texture_set_rwrap_code ( ccl_private OSLTextureOptions * ,
const int  )

Definition at line 456 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_rwrap_code().

Referenced by osl_texture_set_rwrap_code().

◆ osl_texture_set_sblur()

ccl_device_extern void osl_texture_set_sblur ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 466 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_sblur().

Referenced by osl_texture_set_sblur().

◆ osl_texture_set_stblur()

ccl_device_extern void osl_texture_set_stblur ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 481 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_stblur().

Referenced by osl_texture_set_stblur().

◆ osl_texture_set_stwidth()

ccl_device_extern void osl_texture_set_stwidth ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 501 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_stwidth().

Referenced by osl_texture_set_stwidth().

◆ osl_texture_set_stwrap_code()

ccl_device_extern void osl_texture_set_stwrap_code ( ccl_private OSLTextureOptions * ,
const int  )

◆ osl_texture_set_subimage()

ccl_device_extern void osl_texture_set_subimage ( ccl_private OSLTextureOptions * ,
const int  )

Definition at line 521 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_subimage().

Referenced by osl_texture_set_subimage().

◆ osl_texture_set_subimagename()

ccl_device_extern void osl_texture_set_subimagename ( ccl_private OSLTextureOptions * ,
DeviceString  )

◆ osl_texture_set_swidth()

ccl_device_extern void osl_texture_set_swidth ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 486 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_swidth().

Referenced by osl_texture_set_swidth().

◆ osl_texture_set_swrap_code()

ccl_device_extern void osl_texture_set_swrap_code ( ccl_private OSLTextureOptions * ,
const int  )

Definition at line 446 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_swrap_code().

Referenced by osl_texture_set_swrap_code().

◆ osl_texture_set_tblur()

ccl_device_extern void osl_texture_set_tblur ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 471 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_tblur().

Referenced by osl_texture_set_tblur().

◆ osl_texture_set_time()

ccl_device_extern void osl_texture_set_time ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 511 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_time().

Referenced by osl_texture_set_time().

◆ osl_texture_set_twidth()

ccl_device_extern void osl_texture_set_twidth ( ccl_private OSLTextureOptions * ,
const float  )

Definition at line 491 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_twidth().

Referenced by osl_texture_set_twidth().

◆ osl_texture_set_twrap_code()

ccl_device_extern void osl_texture_set_twrap_code ( ccl_private OSLTextureOptions * ,
const int  )

Definition at line 451 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_texture_set_twrap_code().

Referenced by osl_texture_set_twrap_code().

◆ osl_trace_set_maxdist()

ccl_device_extern void osl_trace_set_maxdist ( ccl_private void * ,
float  )

Definition at line 554 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_trace_set_maxdist().

Referenced by osl_trace_set_maxdist().

◆ osl_trace_set_mindist()

ccl_device_extern void osl_trace_set_mindist ( ccl_private void * ,
float  )

Definition at line 552 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_trace_set_mindist().

Referenced by osl_trace_set_mindist().

◆ osl_trace_set_shade()

ccl_device_extern void osl_trace_set_shade ( ccl_private void * ,
int  )

Definition at line 556 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_trace_set_shade().

Referenced by osl_trace_set_shade().

◆ osl_trace_set_traceset()

ccl_device_extern void osl_trace_set_traceset ( ccl_private void * ,
const DeviceString  )

Definition at line 558 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_trace_set_traceset().

Referenced by osl_trace_set_traceset().

◆ osl_warning()

ccl_device_extern void osl_warning ( ccl_private ShaderGlobals * ,
DeviceString ,
void *  )

Definition at line 149 of file services_gpu.h.

References ccl_device_extern, ccl_private, and osl_warning().

Referenced by osl_warning().

◆ rend_get_userdata()

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

◆ rs_allocate_closure()

◆ rs_environment()

ccl_device_extern bool rs_environment ( ccl_private ShaderGlobals * sg,
RSDeviceString ,
ccl_private void * texture_handle,
ccl_private void * ,
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 * ,
ccl_private float * ,
ccl_private void *  )

Definition at line 325 of file services_gpu.h.

References ccl_device_extern, ccl_private, osl_shared_environment(), R, and rs_environment().

Referenced by rs_environment().

◆ rs_get_texture_info()

ccl_device_extern bool rs_get_texture_info ( ccl_private ShaderGlobals * ,
RSDeviceString ,
ccl_private void * texture_handle,
ccl_private void * ,
int ,
RSDeviceString dataname,
TypeDesc datatype,
ccl_private void * data,
ccl_private void *  )

◆ rs_get_texture_info_st()

ccl_device_extern bool rs_get_texture_info_st ( ccl_private ShaderGlobals * ,
RSDeviceString ,
ccl_private void * texture_handle,
const float s,
const float t,
ccl_private void * ,
int ,
RSDeviceString dataname,
TypeDesc datatype,
ccl_private void * data,
ccl_private void *  )

◆ rs_pointcloud_get()

ccl_device_extern int rs_pointcloud_get ( ccl_private ShaderGlobals * ,
RSDeviceString ,
const ccl_private int * ,
int ,
RSDeviceString ,
TypeDesc ,
ccl_private void *  )

Definition at line 386 of file services_gpu.h.

References ccl_device_extern, ccl_private, and rs_pointcloud_get().

Referenced by rs_pointcloud_get().

◆ rs_pointcloud_search()

ccl_device_extern int rs_pointcloud_search ( ccl_private ShaderGlobals * ,
RSDeviceString ,
const ccl_private float3 * ,
float ,
int ,
bool ,
ccl_private int * ,
ccl_private float * ,
int  )

Definition at line 373 of file services_gpu.h.

References ccl_device_extern, ccl_private, and rs_pointcloud_search().

Referenced by rs_pointcloud_search().

◆ rs_pointcloud_write()

ccl_device_extern bool rs_pointcloud_write ( ccl_private ShaderGlobals * ,
RSDeviceString ,
const ccl_private float3 * ,
int ,
const ccl_private DeviceString * ,
const ccl_private TypeDesc * ,
const ccl_private void **  )

Definition at line 397 of file services_gpu.h.

References ccl_device_extern, ccl_private, and rs_pointcloud_write().

Referenced by rs_pointcloud_write().

◆ rs_texture()

ccl_device_extern bool rs_texture ( ccl_private ShaderGlobals * sg,
RSDeviceString ,
ccl_private void * texture_handle,
ccl_private void * ,
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 * ,
ccl_private float * ,
ccl_private void *  )

Definition at line 284 of file services_gpu.h.

References ccl_device_extern, ccl_private, osl_shared_texture(), and rs_texture().

Referenced by rs_texture().

◆ rs_texture3d()

ccl_device_extern bool rs_texture3d ( ccl_private ShaderGlobals * sg,
RSDeviceString ,
ccl_private void * texture_handle,
ccl_private void * ,
ccl_private OSLTextureOptions * ,
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 * ,
ccl_private float * ,
ccl_private float * ,
ccl_private void *  )

Definition at line 305 of file services_gpu.h.

References ccl_device_extern, ccl_private, dPdx(), dPdy(), osl_shared_texture3d(), P, and rs_texture3d().

Referenced by rs_texture3d().

◆ rs_trace()

ccl_device_extern bool rs_trace ( ccl_private ShaderGlobals * ,
ccl_private void * ,
const ccl_private float3 * ,
const ccl_private float3 * ,
const ccl_private float3 * ,
const ccl_private float3 * ,
const ccl_private float3 * ,
const ccl_private float3 *  )

Definition at line 408 of file services_gpu.h.

References ccl_device_extern, ccl_private, and rs_trace().

Referenced by rs_trace().

◆ rs_trace_get()

ccl_device_extern bool rs_trace_get ( ccl_private ShaderGlobals * ,
RSDeviceString ,
TypeDesc ,
ccl_private void * ,
bool  )

Definition at line 420 of file services_gpu.h.

References ccl_device_extern, ccl_private, and rs_trace_get().

Referenced by rs_trace_get().