5#ifndef __OSL_GLOBALS_H__
6#define __OSL_GLOBALS_H__
10# include <OSL/oslexec.h>
12# include <OpenImageIO/refcnt.h>
13# include <OpenImageIO/unordered_map_concurrent.h>
30class ColorSpaceProcessor;
49 OSLGlobals *osl_globals,
50 const int thread_init);
56 OSL::ShadingSystem *ss;
57 OSL::TextureSystem *ts;
65 OSL::ShaderGroupRef background_state;
68 typedef unordered_map<OSLUStringHash, int> ObjectNameMap;
70 ObjectNameMap object_name_map;
86 OSL::ShaderGlobals globals;
87 OSL::PerThreadInfo *osl_thread_info;
88 OSLTraceData tracedata;
89 OSL::ShadingContext *context;
90 OIIO::TextureSystem::Perthread *oiio_thread_info;
#define CCL_NAMESPACE_END