Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/osl/osl_shader.h
| Show All 23 Lines | |||||
| * Holds all variables to execute and use OSL shaders from the kernel. These | * Holds all variables to execute and use OSL shaders from the kernel. These | ||||
| * are initialized externally by OSLShaderManager before rendering starts. | * are initialized externally by OSLShaderManager before rendering starts. | ||||
| * | * | ||||
| * Before/after a thread starts rendering, thread_init/thread_free must be | * Before/after a thread starts rendering, thread_init/thread_free must be | ||||
| * called, which will store any per thread OSL state in thread local storage. | * called, which will store any per thread OSL state in thread local storage. | ||||
| * This means no thread state must be passed along in the kernel itself. | * This means no thread state must be passed along in the kernel itself. | ||||
| */ | */ | ||||
| #include "kernel_types.h" | #include "kernel/kernel_types.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| class Scene; | class Scene; | ||||
| struct ShaderClosure; | struct ShaderClosure; | ||||
| struct ShaderData; | struct ShaderData; | ||||
| struct differential3; | struct differential3; | ||||
| Show All 30 Lines | |||||