Fix T57393: Cycles OSL bevel and AO not working after OSL upgrade.
[blender.git] / intern / cycles / kernel / osl / osl_services.h
index 50044746fd10dacddd530cd06b50657a5779024e..5dcaa4d74454af572175b699d72ef3f17012ae18 100644 (file)
@@ -93,6 +93,10 @@ public:
        bool getmessage(OSL::ShaderGlobals *sg, ustring source, ustring name,
                        TypeDesc type, void *val, bool derivatives);
 
+       TextureSystem::TextureHandle *get_texture_handle(ustring filename);
+
+       bool good(TextureSystem::TextureHandle *texture_handle);
+
        bool texture(ustring filename,
                     TextureSystem::TextureHandle *texture_handle,
                     TexturePerthread *texture_thread_info,
@@ -103,7 +107,8 @@ public:
                     int nchannels,
                     float *result,
                     float *dresultds,
-                    float *dresultdt);
+                    float *dresultdt,
+                    ustring *errormessage);
 
        bool texture3d(ustring filename,
                       TextureHandle *texture_handle,