|
Blender V4.5
|
#include <OSL/oslversion.h>#include "util/defines.h"#include "util/types_float3.h"#include "closures_template.h"Go to the source code of this file.
Classes | |
| struct | OSLClosure |
| struct | ShaderGlobals |
| struct | OSLNoiseOptions |
| struct | OSLTextureOptions |
Macros | |
| #define | OSL_CLOSURE_STRUCT_BEGIN(Upper, lower) OSL_CLOSURE_##Upper##_ID, |
| #define | OSL_TEXTURE_HANDLE_TYPE_IES ((uintptr_t)0x2 << 30) |
| #define | OSL_TEXTURE_HANDLE_TYPE_SVM ((uintptr_t)0x1 << 30) |
| #define | OSL_TEXTURE_HANDLE_TYPE_AO_OR_BEVEL ((uintptr_t)0x3 << 30) |
| #define | OSL_TEXTURE_HANDLE_TYPE(handle) ((unsigned int)((uintptr_t)(handle) & ((uintptr_t)0x3 << 30))) |
| #define | OSL_TEXTURE_HANDLE_SLOT(handle) ((unsigned int)((uintptr_t)(handle) & ((uintptr_t)0x3FFFFFFF))) |
Typedefs | |
| using | DeviceString = const char * |
Enumerations | |
| enum | OSLClosureType { OSL_CLOSURE_MUL_ID = -1 , OSL_CLOSURE_ADD_ID = -2 , OSL_CLOSURE_NONE_ID = 0 , OSL_CLOSURE_LAYER_ID } |
Functions | |
| ccl_device_inline DeviceString | make_string (const char *str, const size_t hash) |
| #define OSL_CLOSURE_STRUCT_BEGIN | ( | Upper, | |
| lower ) OSL_CLOSURE_##Upper##_ID, |
Definition at line 58 of file kernel/osl/types.h.
| #define OSL_TEXTURE_HANDLE_SLOT | ( | handle | ) | ((unsigned int)((uintptr_t)(handle) & ((uintptr_t)0x3FFFFFFF))) |
Definition at line 155 of file kernel/osl/types.h.
Referenced by rs_texture(), and rs_texture3d().
| #define OSL_TEXTURE_HANDLE_TYPE | ( | handle | ) | ((unsigned int)((uintptr_t)(handle) & ((uintptr_t)0x3 << 30))) |
Definition at line 153 of file kernel/osl/types.h.
Referenced by rs_texture(), and rs_texture3d().
| #define OSL_TEXTURE_HANDLE_TYPE_AO_OR_BEVEL ((uintptr_t)0x3 << 30) |
Definition at line 151 of file kernel/osl/types.h.
Referenced by OSLRenderServices::get_texture_handle().
| #define OSL_TEXTURE_HANDLE_TYPE_IES ((uintptr_t)0x2 << 30) |
Definition at line 149 of file kernel/osl/types.h.
Referenced by OSLRenderServices::get_texture_handle(), and rs_texture().
| #define OSL_TEXTURE_HANDLE_TYPE_SVM ((uintptr_t)0x1 << 30) |
Definition at line 150 of file kernel/osl/types.h.
Referenced by OSLRenderServices::get_texture_handle(), rs_texture(), and rs_texture3d().
| using DeviceString = const char * |
Definition at line 26 of file kernel/osl/types.h.
| enum OSLClosureType |
| Enumerator | |
|---|---|
| OSL_CLOSURE_MUL_ID | |
| OSL_CLOSURE_ADD_ID | |
| OSL_CLOSURE_NONE_ID | |
| OSL_CLOSURE_LAYER_ID | |
Definition at line 52 of file kernel/osl/types.h.
| ccl_device_inline DeviceString make_string | ( | const char * | str, |
| const size_t | hash ) |
Definition at line 34 of file kernel/osl/types.h.
References hash, kernel_assert, result, and str.
Referenced by osl_closure_bssrdf_setup(), osl_closure_conductor_bsdf_setup(), osl_closure_dielectric_bsdf_setup(), osl_closure_generalized_schlick_bsdf_setup(), osl_closure_microfacet_f82_tint_setup(), and osl_closure_microfacet_setup().