|
Blender V5.0
|
#include "kernel/osl/closures_setup.h"#include "kernel/osl/types.h"#include "kernel/util/differential.h"#include "closures_template.h"Go to the source code of this file.
Macros | |
| #define | OSL_CLOSURE_STRUCT_BEGIN(Upper, lower) |
| #define | OSL_CLOSURE_STRUCT_END(Upper, lower) |
| #define | OSL_CLOSURE_STRUCT_MEMBER(Upper, TYPE, type, name, key) |
| #define | OSL_CLOSURE_STRUCT_ARRAY_MEMBER(Upper, TYPE, type, name, key, size) |
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline void | shaderdata_to_shaderglobals (ccl_private ShaderData *sd, const uint32_t path_flag, ccl_private ShaderGlobals *globals) |
| ccl_device void | flatten_closure_tree (KernelGlobals kg, ccl_private ShaderData *sd, const uint32_t path_flag, const ccl_private OSLClosure *closure) |
| template<ShaderType type> | |
| void | osl_eval_nodes (const ThreadKernelGlobalsCPU *kg, const void *state, ShaderData *sd, uint32_t path_flag) |
| #define OSL_CLOSURE_STRUCT_BEGIN | ( | Upper, | |
| lower ) |
| #define OSL_CLOSURE_STRUCT_END | ( | Upper, | |
| lower ) |
| #define OSL_CLOSURE_STRUCT_MEMBER | ( | Upper, | |
| TYPE, | |||
| type, | |||
| name, | |||
| key ) |
| ccl_device void flatten_closure_tree | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| const uint32_t | path_flag, | ||
| const ccl_private OSLClosure * | closure ) |
Definition at line 72 of file kernel/osl/osl.h.
References add(), ccl_device, ccl_private, closure_layering_weight(), is_zero(), kernel_assert, mul(), one_float3(), OSL_CLOSURE_ADD_ID, OSL_CLOSURE_MUL_ID, and zero_float3().
Referenced by osl_eval_nodes< SHADER_TYPE_SURFACE >(), and osl_eval_nodes< SHADER_TYPE_VOLUME >().
| void osl_eval_nodes | ( | const ThreadKernelGlobalsCPU * | kg, |
| const void * | state, | ||
| ShaderData * | sd, | ||
| uint32_t | path_flag ) |
References ccl_device_inline, ccl_private, PATH_RAY_SHADOW, SHADER_MASK, and state.
| CCL_NAMESPACE_BEGIN ccl_device_inline void shaderdata_to_shaderglobals | ( | ccl_private ShaderData * | sd, |
| const uint32_t | path_flag, | ||
| ccl_private ShaderGlobals * | globals ) |
Definition at line 27 of file kernel/osl/osl.h.
References ccl_device_inline, ccl_private, differential_from_compact(), differential3::dx, differential3::dy, and SD_BACKFACING.
Referenced by osl_eval_nodes< SHADER_TYPE_DISPLACEMENT >(), osl_eval_nodes< SHADER_TYPE_SURFACE >(), and osl_eval_nodes< SHADER_TYPE_VOLUME >().