Skip to content

Commit 0729cca

Browse files
authored
Adjust deprecations (#832)
Remove a method that has been deprecated since OSL 1.6, and mark some methods that were deprecated since 1.8 with the OSL_DEPRECATED warning.
1 parent 5f99b5c commit 0729cca

4 files changed

Lines changed: 9 additions & 18 deletions

File tree

src/include/OSL/oslexec.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,6 @@ class OSLEXECPUBLIC ShadingSystem
456456
/// setup, don't actually run the shader.
457457
bool execute (ShadingContext *ctx, ShaderGroup &group,
458458
ShaderGlobals &globals, bool run=true);
459-
OSL_DEPRECATED("Deprecated since 1.6, pass context pointer, not reference.")
460-
bool execute (ShadingContext &ctx, ShaderGroup &group,
461-
ShaderGlobals &globals, bool run=true);
462459

463460
/// Bind a shader group and globals to the context, in preparation to
464461
/// execute, including optimization and JIT of the group (if it has not

src/include/OSL/rendererservices.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@ class OSLEXECPUBLIC RendererServices {
244244
float dsdy, float dtdy, int nchannels,
245245
float *result, float *dresultds, float *dresultdt,
246246
ustring *errormessage);
247-
// Deprecated version, with no errormessage parameter. This will
247+
// DEPRECATED(1.8) version, with no errormessage parameter. This will
248248
// eventually disappear.
249+
OSL_DEPRECATED ("Deprecated since 1.8, use the version with an errormessage parameter.")
249250
virtual bool texture (ustring filename, TextureHandle *texture_handle,
250251
TexturePerthread *texture_thread_info,
251252
TextureOpt &options, ShaderGlobals *sg,
@@ -286,8 +287,9 @@ class OSLEXECPUBLIC RendererServices {
286287
float *result, float *dresultds,
287288
float *dresultdt, float *dresultdr,
288289
ustring *errormessage);
289-
// Deprecated version, with no errormessage parameter. This will
290+
// DEPRECATED(1.8) version, with no errormessage parameter. This will
290291
// eventually disappear.
292+
OSL_DEPRECATED ("Deprecated since 1.8, use the version with an errormessage parameter.")
291293
virtual bool texture3d (ustring filename, TextureHandle *texture_handle,
292294
TexturePerthread *texture_thread_info,
293295
TextureOpt &options, ShaderGlobals *sg,
@@ -325,8 +327,9 @@ class OSLEXECPUBLIC RendererServices {
325327
int nchannels, float *result,
326328
float *dresultds, float *dresultdt,
327329
ustring *errormessage);
328-
// Deprecated version, with no errormessage parameter. This will
330+
// DEPRECATED(1.8) version, with no errormessage parameter. This will
329331
// eventually disappear.
332+
OSL_DEPRECATED ("Deprecated since 1.8, use the version with an errormessage parameter.")
330333
virtual bool environment (ustring filename, TextureHandle *texture_handle,
331334
TexturePerthread *texture_thread_info,
332335
TextureOpt &options, ShaderGlobals *sg,

src/liboslexec/rendservices.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ RendererServices::texture (ustring filename, TextureHandle *texture_handle,
184184

185185

186186

187-
// Deprecated version
187+
// Deprecated version (1.8)
188188
bool
189189
RendererServices::texture (ustring filename, TextureHandle *texture_handle,
190190
TexturePerthread *texture_thread_info,
@@ -256,7 +256,7 @@ RendererServices::texture3d (ustring filename, TextureHandle *texture_handle,
256256

257257

258258

259-
// Deprecated version
259+
// Deprecated version (1.8)
260260
bool
261261
RendererServices::texture3d (ustring filename, TextureHandle *texture_handle,
262262
TexturePerthread *texture_thread_info,
@@ -327,7 +327,7 @@ RendererServices::environment (ustring filename, TextureHandle *texture_handle,
327327

328328

329329

330-
// Deprecated version
330+
// Deprecated version (1.8)
331331
bool
332332
RendererServices::environment (ustring filename, TextureHandle *texture_handle,
333333
TexturePerthread *texture_thread_info,

src/liboslexec/shadingsys.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,6 @@ ShadingSystem::execute (ShadingContext *ctx, ShaderGroup &group,
237237

238238

239239

240-
bool
241-
ShadingSystem::execute (ShadingContext &ctx, ShaderGroup &group,
242-
ShaderGlobals &globals, bool run)
243-
{
244-
return m_impl->execute (&ctx, group, globals, run);
245-
}
246-
247-
248-
249240
bool
250241
ShadingSystem::execute_init (ShadingContext &ctx, ShaderGroup &group,
251242
ShaderGlobals &globals, bool run)

0 commit comments

Comments
 (0)