Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/osl/osl_globals.h
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
| /* trace() call result */ | /* trace() call result */ | ||||
| struct OSLTraceData { | struct OSLTraceData { | ||||
| Ray ray; | Ray ray; | ||||
| Intersection isect; | Intersection isect; | ||||
| ShaderData sd; | ShaderData sd; | ||||
| bool setup; | bool setup; | ||||
| bool init; | bool init; | ||||
| bool hit; | |||||
| }; | }; | ||||
| /* thread key for thread specific data lookup */ | /* thread key for thread specific data lookup */ | ||||
| struct OSLThreadData { | struct OSLThreadData { | ||||
| OSL::ShaderGlobals globals; | OSL::ShaderGlobals globals; | ||||
| OSL::PerThreadInfo *osl_thread_info; | OSL::PerThreadInfo *osl_thread_info; | ||||
| OSLTraceData tracedata; | OSLTraceData tracedata; | ||||
| OSL::ShadingContext *context; | OSL::ShadingContext *context; | ||||
| OIIO::TextureSystem::Perthread *oiio_thread_info; | OIIO::TextureSystem::Perthread *oiio_thread_info; | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif | #endif | ||||
| #endif /* __OSL_GLOBALS_H__ */ | #endif /* __OSL_GLOBALS_H__ */ | ||||