|
Blender V5.3
|
#include "kernel/types.h"Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device ccl_private ShaderClosure * | closure_alloc (ccl_private ShaderData *sd, const uint size, ClosureType type, Spectrum weight) |
| ccl_device ccl_private void * | closure_alloc_extra (ccl_private ShaderData *sd, const int size) |
| ccl_device_inline float | closure_sample_weight (const int runtime_flag, ccl_private Spectrum &weight) |
| ccl_device_inline ccl_private ShaderClosure * | bsdf_alloc (ccl_private ShaderData *sd, const int size, Spectrum weight) |
| template<class Bsdf> | |
| ccl_device_inline ccl_private Bsdf * | bsdf_alloc_maybe_emission (ccl_private ShaderData *sd, ccl_private Bsdf *bsdf, Spectrum weight) |
| ccl_device_inline ccl_private ShaderClosure * bsdf_alloc | ( | ccl_private ShaderData * | sd, |
| const int | size, | ||
| Spectrum | weight ) |
Definition at line 76 of file alloc.h.
References bsdf_alloc(), ccl_device_inline, ccl_private, closure_alloc(), CLOSURE_NONE_ID, closure_sample_weight(), and size().
Referenced by bsdf_alloc(), bsdf_alloc_maybe_emission(), bsdf_diffuse_setup(), bsdf_oren_nayar_setup(), bsdf_thin_glass_reflection_setup(), bsdf_thin_glass_transmission_setup(), bsdf_thin_subsurface_setup(), bsdf_translucent_setup(), osl_closure_anisotropic_vdf_setup(), osl_closure_ashikhmin_velvet_setup(), osl_closure_burley_diffuse_bsdf_setup(), osl_closure_conductor_bsdf_setup(), osl_closure_dielectric_bsdf_setup(), osl_closure_diffuse_ramp_setup(), osl_closure_diffuse_toon_setup(), osl_closure_draine_setup(), osl_closure_fournier_forand_setup(), osl_closure_generalized_schlick_bsdf_setup(), osl_closure_glossy_toon_setup(), osl_closure_hair_chiang_setup(), osl_closure_hair_huang_setup(), osl_closure_hair_reflection_setup(), osl_closure_hair_transmission_setup(), osl_closure_henyey_greenstein_setup(), osl_closure_microfacet_f82_tint_setup(), osl_closure_microfacet_multi_ggx_aniso_setup(), osl_closure_microfacet_multi_ggx_glass_setup(), osl_closure_microfacet_setup(), osl_closure_phong_ramp_setup(), osl_closure_rayleigh_setup(), osl_closure_reflection_setup(), osl_closure_refraction_setup(), svm_alloc_closure_volume_scatter(), svm_node_closure_bsdf(), and svm_node_principled_volume().
| ccl_device_inline ccl_private Bsdf * bsdf_alloc_maybe_emission | ( | ccl_private ShaderData * | sd, |
| ccl_private Bsdf * | bsdf, | ||
| Spectrum | weight ) |
Definition at line 97 of file alloc.h.
References bsdf_alloc(), bsdf_alloc_maybe_emission(), ccl_device_inline, ccl_private, closure_sample_weight(), and SD_HAS_EMISSION.
Referenced by bsdf_alloc_maybe_emission(), bsdf_coat_setup(), and bsdf_sheen_setup().
| CCL_NAMESPACE_BEGIN ccl_device ccl_private ShaderClosure * closure_alloc | ( | ccl_private ShaderData * | sd, |
| const uint | size, | ||
| ClosureType | type, | ||
| Spectrum | weight ) |
Definition at line 11 of file alloc.h.
References ccl_device, ccl_private, closure_alloc(), kernel_assert, and size().
Referenced by bsdf_alloc(), bsdf_ray_portal_setup(), bsdf_transparent_setup(), bssrdf_alloc(), closure_alloc(), osl_closure_holdout_setup(), and svm_node_closure_holdout().
| ccl_device ccl_private void * closure_alloc_extra | ( | ccl_private ShaderData * | sd, |
| const int | size ) |
Definition at line 34 of file alloc.h.
References ccl_device, ccl_private, closure_alloc_extra(), and size().
Referenced by closure_alloc_extra(), osl_closure_conductor_bsdf_setup(), osl_closure_dielectric_bsdf_setup(), osl_closure_diffuse_ramp_setup(), osl_closure_generalized_schlick_bsdf_setup(), osl_closure_hair_huang_setup(), osl_closure_microfacet_f82_tint_setup(), osl_closure_phong_ramp_setup(), and svm_node_closure_bsdf().
| ccl_device_inline float closure_sample_weight | ( | const int | runtime_flag, |
| ccl_private Spectrum & | weight ) |
Definition at line 55 of file alloc.h.
References average(), ccl_device_inline, ccl_private, closure_sample_weight(), CLOSURE_WEIGHT_CUTOFF, fabsf, isfinite_safe(), kernel_assert, max, SR_IS_VOLUME_SHADER_EVAL, and zero_float3().
Referenced by bsdf_alloc(), bsdf_alloc_maybe_emission(), and closure_sample_weight().